/* Tea with Esh — Site Styles
   BotBuhdy | Dark alien theme with green/teal glows */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Cinzel:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --bg:          #030D0A;
  --bg2:         #071410;
  --bg3:         #0A1E18;
  --bg4:         #0F2920;
  --bg5:         #152E25;

  /* Accent — alien green/teal */
  --esh:         #00FFA3;
  --esh-dim:     rgba(0, 255, 163, 0.12);
  --esh-border:  rgba(0, 255, 163, 0.35);
  --esh-glow:    0 0 24px rgba(0, 255, 163, 0.25);
  --teal:        #06B6D4;
  --teal-dim:    rgba(6, 182, 212, 0.12);
  --teal-border: rgba(6, 182, 212, 0.35);

  /* Neutrals */
  --text:        #D4EDE5;
  --text-muted:  #7CA89A;
  --text-light:  #4A7068;
  --border:      rgba(0, 255, 163, 0.08);
  --border2:     rgba(0, 255, 163, 0.18);

  /* Amber for dates/accents */
  --amber:       #D4AF37;
  --amber-dim:   rgba(212, 175, 55, 0.15);

  /* Status */
  --green:  #22C55E;
  --red:    #EF4444;

  /* Typography */
  --font:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif:  'Cinzel', Georgia, serif;
  --mono:   'JetBrains Mono', 'Courier New', monospace;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.6);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.7);

  --radius:    12px;
  --radius-sm:  8px;
  --radius-lg: 20px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
  padding-top: 50px;
  margin: 0;
}

/* ── Stars background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(0,255,163,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 55%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 10%, rgba(0,255,163,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 75%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 85%, rgba(6,182,212,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 60%, rgba(0,255,163,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 90%, rgba(255,255,255,0.15) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

body > *:not(#particles):not(#site-header):not(.video-modal-overlay) { position: relative; z-index: 1; }

/* ────────────────────────────────────────────
   HEADER BANNER
──────────────────────────────────────────── */
#site-header {
  width: 100%;
  background: rgba(3, 13, 10, 0.97);
  border-bottom: 1px solid var(--esh-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,255,163,0.08);
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.header-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: filter 0.2s ease;
}
.header-logo img:hover {
  filter: drop-shadow(0 0 6px rgba(0,255,163,0.3));
}

.header-nav {
  display: flex;
  align-items: center;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.header-links a:hover,
.header-links a.active {
  color: var(--esh);
  background: var(--esh-dim);
}

.header-links a.active {
  border: 1px solid var(--esh-border);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--esh);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
}

/* ────────────────────────────────────────────
   HERO
──────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 24px 20px 48px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,255,163,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--esh);
  background: var(--esh-dim);
  border: 1px solid var(--esh-border);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.hero h1 .accent {
  color: var(--esh);
  text-shadow: 0 0 40px rgba(0,255,163,0.4);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 32px;
  font-style: italic;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ────────────────────────────────────────────
   BUTTONS
──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--esh);
  color: var(--bg);
}

.btn-primary:hover {
  background: #00e090;
  box-shadow: 0 0 24px rgba(0,255,163,0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--esh);
  border: 1px solid var(--esh-border);
}

.btn-outline:hover {
  background: var(--esh-dim);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border2);
}

/* ────────────────────────────────────────────
   VIDEO EMBED
──────────────────────────────────────────── */
.video-wrap {
  max-width: 860px;
  margin: 0 auto 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--esh-border);
  box-shadow: var(--esh-glow), var(--shadow-lg);
  background: #000;
  aspect-ratio: 16/9;
  position: relative;
}

.video-wrap video,
.video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 48px;
  font-style: italic;
}

/* ────────────────────────────────────────────
   LAYOUT
──────────────────────────────────────────── */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.page-header {
  margin-bottom: 48px;
}

.page-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.15;
}

.page-header h2 .accent {
  color: var(--esh);
}

.page-header .subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  font-style: italic;
}

.esh-quote {
  background: var(--esh-dim);
  border-left: 3px solid var(--esh);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--esh);
  font-size: 1.05rem;
  box-shadow: var(--esh-glow);
}

.esh-quote::before {
  content: '"';
  font-size: 2.5rem;
  line-height: 0;
  vertical-align: -0.6em;
  margin-right: 6px;
  color: var(--esh);
  opacity: 0.5;
}

/* ────────────────────────────────────────────
   SECTION HEADERS
──────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.section-header h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--esh);
  background: var(--esh-dim);
  border: 1px solid var(--esh-border);
  padding: 3px 10px;
  border-radius: 4px;
}

/* ────────────────────────────────────────────
   CARDS
──────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--esh-border);
  box-shadow: var(--esh-glow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.card h4 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card .card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.tag-green  { background: rgba(34,197,94,0.12);    color: #4ade80;   border: 1px solid rgba(34,197,94,0.25); }
.tag-esh    { background: var(--esh-dim);           color: var(--esh); border: 1px solid var(--esh-border); }
.tag-teal   { background: var(--teal-dim);          color: var(--teal); border: 1px solid var(--teal-border); }
.tag-amber  { background: var(--amber-dim);         color: var(--amber); border: 1px solid rgba(212,175,55,0.25); }
.tag-red    { background: rgba(239,68,68,0.12);    color: #f87171;   border: 1px solid rgba(239,68,68,0.25); }

/* ────────────────────────────────────────────
   TIMELINE
──────────────────────────────────────────── */
.timeline-container {
  position: relative;
  padding-left: 40px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--esh-border) 5%, var(--esh-border) 95%, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  animation: fadeIn 0.4s ease-out;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--esh);
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px var(--esh);
}

.timeline-era {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--esh);
  background: var(--esh-dim);
  border: 1px solid var(--esh-border);
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.timeline-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--amber);
  margin-bottom: 6px;
}

.timeline-item h4 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 760px;
}

.timeline-item .esh-note {
  display: inline-block;
  margin-top: 10px;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--esh);
  background: var(--esh-dim);
  border-left: 2px solid var(--esh);
  padding: 6px 14px;
  border-radius: 0 6px 6px 0;
}

.era-divider {
  position: relative;
  text-align: center;
  margin: 48px 0 40px;
  padding-left: 0;
}

.era-divider::before {
  content: '';
  position: absolute;
  left: -40px;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(to right, var(--esh-border), transparent);
}

.era-divider span {
  position: relative;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0 16px;
}

/* ────────────────────────────────────────────
   EVIDENCE
──────────────────────────────────────────── */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.evidence-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
}

.evidence-card:hover {
  border-color: var(--esh-border);
  box-shadow: var(--esh-glow);
  transform: translateY(-2px);
}

.evidence-card .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg3);
  display: block;
}

.evidence-card .card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.6;
}

.evidence-card .card-body {
  padding: 20px;
}

.evidence-card .card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.evidence-card h4 {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.evidence-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.evidence-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--esh);
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.evidence-card .card-link:hover {
  text-decoration: underline;
}

/* ────────────────────────────────────────────
   CONGRESSIONAL
──────────────────────────────────────────── */
.statement-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  transition: all 0.2s;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
}

.statement-card:hover {
  border-color: var(--esh-border);
  box-shadow: var(--esh-glow);
}

.statement-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg4);
  border: 2px solid var(--esh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--esh-glow);
  flex-shrink: 0;
}

.statement-meta {
  margin-bottom: 10px;
}

.statement-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 2px;
}

.statement-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.statement-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  border-left: 2px solid var(--esh-border);
  padding-left: 16px;
  margin: 12px 0;
}

.statement-context {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ────────────────────────────────────────────
   ESH COMMENTARY
──────────────────────────────────────────── */
.commentary-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

.esh-portrait {
  position: sticky;
  top: 84px;
}

.esh-portrait img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--esh-border);
  box-shadow: var(--esh-glow), var(--shadow-lg);
  display: block;
}

.esh-portrait .portrait-caption {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.esh-bio {
  background: var(--bg2);
  border: 1px solid var(--esh-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.esh-bio strong {
  color: var(--esh);
}

.commentary-content h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 16px;
}

.commentary-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  transition: border-color 0.2s;
}

.commentary-block:hover {
  border-color: var(--esh-border);
}

.commentary-block h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--esh);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.commentary-block p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.commentary-block p:last-child { margin-bottom: 0; }

/* ────────────────────────────────────────────
   NAV SECTION CARDS (home)
──────────────────────────────────────────── */
.nav-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 20px;
}

.nav-section-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: all 0.2s;
}

.nav-section-card:hover {
  border-color: var(--esh-border);
  box-shadow: var(--esh-glow);
  transform: translateY(-2px);
}

.nav-section-card .card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.nav-section-card .card-text h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--esh);
  margin-bottom: 6px;
}

.nav-section-card .card-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ────────────────────────────────────────────
   STATS BAR
──────────────────────────────────────────── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 28px 20px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--esh);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
  margin-top: 40px;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--esh);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--esh); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* ────────────────────────────────────────────
   UTILITIES
──────────────────────────────────────────── */
.text-esh   { color: var(--esh); }
.text-teal  { color: var(--teal); }
.text-muted { color: var(--text-muted); }
.text-amber { color: var(--amber); }
.font-mono  { font-family: var(--mono); }
.font-serif { font-family: var(--serif); }

.img-placeholder {
  background: linear-gradient(135deg, var(--bg3) 0%, var(--bg4) 100%);
  border: 1px dashed var(--esh-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 24px;
  min-height: 180px;
}

.img-placeholder span:first-child {
  font-size: 2.5rem;
  opacity: 0.5;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

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

.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0,255,163,0.2); }
  50%       { box-shadow: 0 0 32px rgba(0,255,163,0.45); }
}

/* ────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────── */
@media (max-width: 900px) {
  .header-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .header-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    gap: 4px;
  }
  .header-logo img { height: 36px; }
  .nav-section-grid { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .commentary-layout { grid-template-columns: 1fr; }
  .esh-portrait { position: static; }
  .statement-card { grid-template-columns: 1fr; }
  .statement-avatar { width: 48px; height: 48px; font-size: 1.4rem; }
  .stats-bar { gap: 20px; }
  .stat-divider { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 16px 16px 32px; }
  .page { padding: 32px 16px 60px; }
  #site-header { padding: 0 12px; }
  .timeline-container { padding-left: 28px; }
  .timeline-item::before { left: -20px; }
  .timeline-container::before { left: 8px; }
  .video-gallery-grid { grid-template-columns: 1fr; }
  .video-featured-grid { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────
   VIDEO GALLERY
──────────────────────────────────────────── */
.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.video-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  border-color: var(--esh-border);
  box-shadow: var(--esh-glow), var(--shadow-lg);
}

.video-card.featured {
  border-color: var(--esh-border);
  box-shadow: var(--esh-glow), var(--shadow-md);
}

.video-card .video-player-wrap {
  background: #000;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-card .video-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-card .video-meta {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-card .video-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

.video-card .video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.video-card .video-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.video-card .esh-video-note {
  font-size: 0.78rem;
  color: var(--esh);
  border-left: 2px solid var(--esh-border);
  padding-left: 10px;
  font-style: italic;
  line-height: 1.5;
  margin-top: auto;
  padding-top: 8px;
}

.duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.7rem;
  font-family: var(--mono);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
}

.duration-badge.long {
  background: rgba(74,222,128,0.15);
  color: #4ade80;
  border-color: rgba(74,222,128,0.3);
}

.video-region-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 20px;
}

.video-region-divider::before,
.video-region-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.video-region-divider span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.timeline-video-embed {
  margin: 16px 0 4px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--esh-border);
  background: #000;
  aspect-ratio: 16/9;
  max-width: 600px;
}

.timeline-video-embed video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.timeline-video-caption {
  font-size: 0.72rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 8px;
}

/* Particle diffusion background */
#particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

