/* ============================================
   NATE FRIEDMAN SHOW — Shared Styles
   ============================================ */

:root {
  --black: #08080c;
  --off-black: #08080c;
  --dark: #08080c;
  --panel: #08080c;
  --border: rgba(255,255,255,0.06);
  --border-bright: rgba(255,255,255,0.12);
  --red: #a31818;
  --red-dim: #5c1010;
  --red-glow: rgba(163,24,24,0.18);
  --amber: #c8920d;
  --amber-dim: rgba(200,146,13,0.12);
  --white: #f0ede8;
  --muted: #888;
  --mono: 'JetBrains Mono', monospace;
  --display: 'Oswald', sans-serif;
  --serif: 'Playfair Display', serif;
  --body: 'Inter', sans-serif;
}

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

body {
  background: #08080c;
  color: var(--white);
  font-family: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
  min-height: 100vh;
}

/* Global link transitions */
a { transition: color 0.3s ease, opacity 0.3s ease; }

/* Skip-to-content — visible only on keyboard focus */
.skip-to-content {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100000;
  padding: 12px 24px;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 0;
  outline: none;
}

/* Focus states for keyboard navigation */
:focus-visible {
  outline: 2px solid rgba(220,38,38,0.6);
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(220,38,38,0.6);
  outline-offset: 2px;
}

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

/* ============================================
   NAV — with mobile hamburger
   ============================================ */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(8,8,12,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--white);
  text-decoration: none;
  z-index: 101;
}

.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--red); border-bottom: 1px solid var(--red); padding-bottom: 2px; }
.nav-links a.active::after { display: none; }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--red);
  color: var(--red);
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 101;
  border-radius: 2px;
}

.nav-cta:hover {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 16px rgba(163,24,24,0.3);
}

/* Compact btn-primary sized for nav bars */
.nav-primary-cta {
  padding: 10px 22px !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  white-space: nowrap;
}
/* Pulsing red glow for SUPPORT OUR WORK CTA */
.nav-support-glow {
  background: linear-gradient(135deg, #ff2020 0%, #e02020 55%, #a31818 100%) !important;
  border: 1px solid rgba(255,70,70,0.9) !important;
  color: #fff !important;
  text-shadow: 0 0 8px rgba(255,80,80,0.85), 0 1px 2px rgba(0,0,0,0.6);
  box-shadow:
    0 0 0 1px rgba(255,60,60,0.55),
    0 0 18px rgba(224,32,32,0.8),
    0 0 38px rgba(255,40,40,0.5),
    0 0 72px rgba(255,40,40,0.28);
  animation: navSupportPulse 2.2s ease-in-out infinite;
}
.nav-support-glow:hover {
  background: linear-gradient(135deg, #ff3030 0%, #ff2020 55%, #c01818 100%) !important;
  border-color: rgba(255,90,90,1) !important;
  animation-play-state: paused;
  box-shadow:
    0 0 0 1px rgba(255,90,90,1),
    0 0 28px rgba(255,40,40,1),
    0 0 58px rgba(255,40,40,0.7),
    0 0 96px rgba(255,40,40,0.4);
}
@keyframes navSupportPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255,60,60,0.5),
      0 0 16px rgba(224,32,32,0.65),
      0 0 34px rgba(255,40,40,0.38),
      0 0 64px rgba(255,40,40,0.2);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255,80,80,0.95),
      0 0 26px rgba(255,50,50,1),
      0 0 56px rgba(255,40,40,0.72),
      0 0 100px rgba(255,40,40,0.42);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-support-glow { animation: none; }
}

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

.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);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,8,12,0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: 4px;
  color: var(--white);
  text-decoration: none;
  padding: 16px 0;
  transition: color 0.2s;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu.open a {
  animation: mobileMenuIn 0.4s ease forwards;
}

.mobile-menu.open a:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.open a:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu.open a:nth-child(6) { animation-delay: 0.3s; }
.mobile-menu.open a:nth-child(7) { animation-delay: 0.35s; }

.mobile-menu a:hover { color: var(--red); }
.mobile-menu a.active { color: var(--red); }

.mobile-menu .mobile-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--red);
  color: var(--red);
  margin-top: 24px;
}

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

/* ============================================
   COMMON SECTION STYLES
   ============================================ */
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--red-dim);
}

.page-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.6s ease 0.1s both;
}

.page-eyebrow::before { content: '//'; opacity: 0.5; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--red) 0%, #6e0f0f 100%);
  color: white;
  text-decoration: none;
  border: 1px solid rgba(163,24,24,0.4);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #bc2020 0%, #8a1414 100%);
  box-shadow: 0 0 24px rgba(163,24,24,0.4), 0 4px 16px rgba(0,0,0,0.4);
  transform: translateY(-2px) scale(1.03);
}

.btn-secondary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 0 18px rgba(255,255,255,0.06), 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-2px) scale(1.03);
}

/* ============================================
   CTA SECTION (shared across pages)
   ============================================ */
.cta-section {
  background: var(--dark);
  text-align: center;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: 2px;
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-title span { color: var(--red); }

.cta-body {
  max-width: 420px;
  margin: 0 auto 40px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(240,237,232,0.4);
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ============================================
   SITE FOOTER
   ============================================ */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.site-footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-footer-name {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1;
}
.site-footer-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(240,237,232,0.4);
}

.site-footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.site-footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(240,237,232,0.55);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}
.site-footer-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.25s ease;
}
.site-footer-links a:hover { color: var(--white); }
.site-footer-links a:hover::after { width: 100%; }

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.site-footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(240,237,232,0.32);
  text-transform: uppercase;
}
.site-footer-legal {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(240,237,232,0.28);
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.site-footer-legal a {
  color: rgba(240,237,232,0.32);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer-legal a:hover { color: var(--white); }
.site-footer-legal span { opacity: 0.4; }

@media (max-width: 720px) {
  .site-footer { padding: 36px 24px 20px; }
  .site-footer-main { flex-direction: column; align-items: flex-start; gap: 20px; }
  .site-footer-links { gap: 18px 22px; }
  .site-footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================
   PREMIUM UTILITY CLASSES
   ============================================ */

/* Glassmorphism */
.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s ease;
}
.glass:hover {
  box-shadow: inset 0 0 30px rgba(255,255,255,0.02);
}

/* Hover lift */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Perspective tilt on hover */
.tilt {
  transition: transform 0.3s ease;
}
.tilt:hover {
  transform: perspective(700px) rotateX(2deg) rotateY(4deg) scale(1.01);
}

/* Text depth shadow for headings */
.text-depth {
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
}

/* Glow accents */
.glow-red   { box-shadow: 0 0 20px rgba(163,24,24,0.3); }
.glow-amber { box-shadow: 0 0 20px rgba(200,146,13,0.3); }

/* Radius utility */
.radius-sm { border-radius: 2px; }

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(163,24,24,0.55);
  z-index: 9999;       /* above ticker (9990) */
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ============================================
   LASER SCAN INTRO
   ============================================ */
#laser-scan-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black, #08080c);
  pointer-events: all;
}

#laser-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #dc2626;
  box-shadow:
    0 0 20px #dc2626,
    0 0 60px rgba(220,38,38,0.5),
    0 0 100px rgba(220,38,38,0.2);
  animation: laserSweep 0.8s ease-in-out forwards;
  top: 0;
}

@keyframes laserSweep {
  from { top: 0; }
  to   { top: 100vh; }
}

#laser-scan-overlay.scan-fade {
  animation: overlayFade 0.4s ease forwards;
  pointer-events: none;
}

@keyframes overlayFade {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #laser-scan-overlay { display: none !important; }
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
body.page-exit { opacity: 0; transition: opacity 0.25s ease; }

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none !important; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .cta-section { padding: 80px 24px; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

/* ============================================
   CUSTOM CURSOR (pointer devices only)
   JS-driven dot + trailing shadow — see shared.js
   ============================================ */
@media (pointer: fine) {
  html, *, *::before, *::after { cursor: none !important; }
}

/* ============================================
   SCROLL REVEAL SYSTEM
   ============================================ */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-fade {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal         { transform: translateY(28px); }
.reveal-left    { transform: translateX(-32px); }
.reveal-right   { transform: translateX(32px); }
.reveal-scale   { transform: scale(0.94); }
.reveal-fade    { transform: none; }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-fade.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1),
.reveal-stagger > .reveal-scale:nth-child(1),
.reveal-stagger > .reveal-fade:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > .reveal:nth-child(2),
.reveal-stagger > .reveal-scale:nth-child(2),
.reveal-stagger > .reveal-fade:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > .reveal:nth-child(3),
.reveal-stagger > .reveal-scale:nth-child(3),
.reveal-stagger > .reveal-fade:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > .reveal:nth-child(4),
.reveal-stagger > .reveal-scale:nth-child(4),
.reveal-stagger > .reveal-fade:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger > .reveal:nth-child(5),
.reveal-stagger > .reveal-scale:nth-child(5),
.reveal-stagger > .reveal-fade:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger > .reveal:nth-child(6),
.reveal-stagger > .reveal-scale:nth-child(6),
.reveal-stagger > .reveal-fade:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger > .reveal:nth-child(7),
.reveal-stagger > .reveal-scale:nth-child(7),
.reveal-stagger > .reveal-fade:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger > .reveal:nth-child(8),
.reveal-stagger > .reveal-scale:nth-child(8),
.reveal-stagger > .reveal-fade:nth-child(8) { transition-delay: 0.75s; }

/* ============================================
   TAB BUTTON HOVER BACKGROUNDS
   ============================================ */
.tab-btn:not(.active):hover {
  background: rgba(255,255,255,0.03);
}
.tab-btn.active {
  background: rgba(255,255,255,0.05);
}

/* ============================================
   HERO VIGNETTE
   ============================================ */
.hero-section::after,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(8,8,12,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.divider-pulse {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--red-dim);
  animation: dividerPulse 3s ease-in-out infinite;
  margin: 0;
}

@keyframes dividerPulse {
  0%, 100% { opacity: 0.06; }
  50%       { opacity: 0.15; }
}

.divider-scan {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(163,24,24,0.08);
  position: relative;
  overflow: hidden;
  margin: 0;
}

.divider-scan::after {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(163,24,24,0.6), rgba(220,38,38,0.9), rgba(163,24,24,0.6), transparent);
  animation: scanSlide 4s linear infinite;
}

@keyframes scanSlide {
  from { left: -20%; }
  to   { left: 100%; }
}

/* ============================================
   PARALLAX DEPTH LAYERS
   ============================================ */
.parallax-bg {
  will-change: transform;
}

/* ============================================
   BREAKING TICKER
   Site-wide endorsement bar fixed to top.
   Injected by shared.js via createBreakingTicker().
   ============================================ */
#breaking-ticker {
  position: fixed;
  top: 2px;            /* sits below 2px scroll progress bar */
  left: 0;
  right: 0;
  height: 34px;
  background: rgba(220,38,38,0.03);
  border-bottom: 1px solid rgba(220,38,38,0.18);
  overflow: hidden;
  z-index: 9990;
  pointer-events: none;
  display: flex;
  align-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#breaking-ticker::before,
#breaking-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 96px;
  z-index: 2;
  pointer-events: none;
}
#breaking-ticker::before {
  left: 0;
  background: linear-gradient(90deg, rgba(8,8,12,0.95) 0%, rgba(8,8,12,0) 100%);
}
#breaking-ticker::after {
  right: 0;
  background: linear-gradient(270deg, rgba(8,8,12,0.95) 0%, rgba(8,8,12,0) 100%);
}

.breaking-ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  animation: tickerScroll 45s linear infinite;
  will-change: transform;
}

.breaking-ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 28px;
  position: relative;
}
.breaking-ticker-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(220,38,38,0.25);
}
.breaking-ticker-item:last-child::after { display: none; }

.breaking-ticker-name {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #dc2626;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(220,38,38,0.25);
}

.breaking-ticker-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: rgba(240,237,232,0.4);
  white-space: nowrap;
}

.breaking-ticker-sep {
  display: inline-block;
  margin: 0 4px;
  color: rgba(220,38,38,0.45);
  font-family: var(--mono);
  font-size: 10px;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}

/* Push the rest of the page down to make room for ticker + scroll bar */
body.has-breaking-ticker { padding-top: 36px; }

/* Site-wide Sign In pill — fixed top-right, below ticker.
   Hidden by default, fades in on scroll (subpages) or always visible (homepage).
   Hidden when authenticated. */
#site-signin {
  position: fixed;
  top: 46px;
  right: 22px;
  z-index: 9985;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  background: rgba(220,38,38,0.10);
  border: 1px solid rgba(220,38,38,0.55);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45), 0 0 18px rgba(220,38,38,0.18);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
#site-signin.signin-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#site-signin::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse 2s ease infinite;
}
#site-signin:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.5), 0 0 28px rgba(220,38,38,0.45);
}

@media (max-width: 600px) {
  #site-signin {
    top: 38px;
    right: 14px;
    padding: 7px 12px;
    font-size: 9px;
    letter-spacing: 1.5px;
  }
}

/* Site-wide Support pill — fixed below sign-in pill, pulsing red glow.
   Same visibility logic as #site-signin. */
#site-support-pill {
  position: fixed;
  top: 88px;
  right: 22px;
  z-index: 9984;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ff2020 0%, #e02020 55%, #a31818 100%);
  border: 1px solid rgba(255,70,70,0.9);
  border-radius: 999px;
  text-shadow: 0 0 8px rgba(255,80,80,0.85), 0 1px 2px rgba(0,0,0,0.6);
  box-shadow:
    0 0 0 1px rgba(255,60,60,0.55),
    0 0 18px rgba(224,32,32,0.8),
    0 0 38px rgba(255,40,40,0.5),
    0 0 72px rgba(255,40,40,0.28);
  animation: navSupportPulse 2.2s ease-in-out infinite;
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
#site-support-pill.support-pill-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#site-support-pill:hover {
  background: linear-gradient(135deg, #ff3030 0%, #ff2020 55%, #c01818 100%);
  border-color: rgba(255,90,90,1);
  animation-play-state: paused;
  box-shadow:
    0 0 0 1px rgba(255,90,90,1),
    0 0 28px rgba(255,40,40,1),
    0 0 58px rgba(255,40,40,0.7),
    0 0 96px rgba(255,40,40,0.4);
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
  #site-support-pill { animation: none; }
}
@media (max-width: 600px) {
  #site-support-pill {
    top: 74px;
    right: 14px;
    padding: 7px 12px;
    font-size: 9px;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 600px) {
  #breaking-ticker { height: 30px; }
  body.has-breaking-ticker { padding-top: 32px; }
  .breaking-ticker-name { font-size: 9px; letter-spacing: 2px; }
  .breaking-ticker-quote { font-size: 11px; }
  .breaking-ticker-item { padding: 0 18px; gap: 8px; }
  #breaking-ticker::before,
  #breaking-ticker::after { width: 48px; }
}

/* ── GLOBAL YOUTUBE PLAYER + MODAL ─────────────────────────────────────────── */
.yt-player {
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.yt-player img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 82%;
  display: block;
}
.yt-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: none; border: none;
  cursor: pointer; padding: 0;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.yt-player:hover .yt-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}
#yt-modal { padding: 20px; }
.yt-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.yt-modal-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
}
.yt-modal-close {
  position: absolute;
  top: -40px; right: 0;
  background: none; border: none;
  color: #fff; font-size: 32px;
  cursor: pointer; line-height: 1;
}
.yt-modal-player {
  width: 100%; height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

@media (prefers-reduced-motion: reduce) {
  .breaking-ticker-track { animation: none; }
}

/* ============================================
   MOBILE TABS NAV
   At ≤768px the tabs-nav collapses to a hamburger
   button + active label. Tap opens a dropdown overlay.
   Markup is injected by shared.js — see initMobileTabsNav().
   ============================================ */
.tabs-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  margin: 16px 16px 0;
  width: calc(100% - 32px);
}
.tabs-mobile-active {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.tabs-mobile-active-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(240,237,232,0.35);
}
.tabs-mobile-active-name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
}
.tabs-mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  cursor: pointer;
  padding: 5px 6px;
  transition: border-color 0.2s ease;
}
.tabs-mobile-toggle:hover { border-color: rgba(220,38,38,0.6); }
.tabs-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.tabs-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(3px, 4px); }
.tabs-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.tabs-mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(3px, -4px); }

.tabs-mobile-dropdown {
  position: fixed;
  inset: 0;
  background: rgba(8,8,12,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9988;
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 100px 28px 60px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tabs-mobile-dropdown.open {
  display: flex;
  opacity: 1;
}
.tabs-mobile-dropdown-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tabs-mobile-dropdown-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--red);
}
.tabs-mobile-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tabs-mobile-dropdown-item {
  width: 100%;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(240,237,232,0.55);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.tabs-mobile-dropdown-item:hover {
  color: var(--white);
  background: rgba(255,255,255,0.03);
}
.tabs-mobile-dropdown-item.active {
  color: var(--white);
  border-left-color: var(--red);
  background: rgba(220,38,38,0.06);
}
.tabs-mobile-dropdown-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  width: 36px;
  height: 36px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .tabs-section .tabs-nav,
  .tabs-mobile-host .tabs-nav { display: none !important; }
  .tabs-mobile-bar { display: flex; }
}

/* ============================================
   GLOBAL HOVER SCALE — clickable cards site-wide
   Adds a subtle scale(1.02) lift on hover.
   Any element with .hover-scale picks this up, and
   common card selectors are auto-included below.
   ============================================ */
.hover-scale,
.video-card,
.cat-card,
.file-card,
.price-card,
.evidence-card,
.method-card,
.method-card-lg,
.feat-press-card,
.coverage-card,
.appearance-card,
.stat-cell,
.timeline-item,
.ff-card,
.ff-preview-dossier,
.ff-preview-video,
.hero-pill,
.truth-social-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-scale:hover,
.video-card:hover,
.cat-card:hover,
.file-card:hover,
.price-card:hover,
.evidence-card:hover,
.method-card:hover,
.method-card-lg:hover,
.feat-press-card:hover,
.coverage-card:hover,
.appearance-card:hover,
.stat-cell:hover,
.timeline-item:hover,
.ff-card:hover,
.ff-preview-dossier:hover,
.ff-preview-video:hover,
.hero-pill:hover,
.truth-social-card:hover {
  transform: scale(1.02);
}

/* ============================================
   REDUCED MOTION — disable all new animations
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .divider-pulse { animation: none !important; opacity: 0.1; }
  .divider-scan::after { animation: none !important; }
  .parallax-bg { transform: none !important; }

  .btn-primary:hover  { transform: translateY(-2px) !important; }
  .btn-secondary:hover { transform: translateY(-2px) !important; }

  /* Disable hover scale transforms for reduced-motion users */
  .hover-scale:hover,
  .video-card:hover,
  .cat-card:hover,
  .file-card:hover,
  .price-card:hover,
  .evidence-card:hover,
  .method-card:hover,
  .method-card-lg:hover,
  .feat-press-card:hover,
  .coverage-card:hover,
  .appearance-card:hover,
  .stat-cell:hover,
  .timeline-item:hover,
  .ff-card:hover,
  .ff-preview-dossier:hover,
  .ff-preview-video:hover,
  .hero-pill:hover,
  .truth-social-card:hover { transform: none !important; }
}

/* ============================================
   UI POLISH
   ============================================ */

/* Heading depth — subtle text-shadow for white headings */
h1, h2, h3, h4 { text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* Card depth — layered shadows for major card types */
.video-card,
.endorse-card,
.ff-archive-card,
.press-feat-card,
.press-coverage-item,
.lead-capture-card {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.3),
    0 4px 12px rgba(0,0,0,0.2),
    0 12px 32px rgba(0,0,0,0.15);
}

/* Gradient dividers for generic <hr> */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 24px 0;
}

/* Mobile touch targets — min 44px */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary,
  .tab-btn,
  .nav-primary-cta,
  .hamburger,
  .ff-subtab-btn,
  .mobile-cta {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Image performance — decoding hint handled by HTML attrs, lazy by default */
img { content-visibility: auto; }
