/* ============================================================================
   MK ENHANCE . CINEMATIC DESIGN LAYER
   One file. Zero opacity:0 on content. Zero dark overrides on white sections.
   Transform-only animations with visible fallbacks.
   ============================================================================ */

/* ============================================================================
   CUSTOM CURSOR (desktop only)
   ============================================================================ */
@media (pointer: fine) {
  html.mk-enhanced { cursor: none !important; }
  html.mk-enhanced a,
  html.mk-enhanced button,
  html.mk-enhanced [role="button"] { cursor: none !important; }
}

.mk-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  border: 2px solid var(--gold-70);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  mix-blend-mode: difference;
  will-change: transform;
}

.mk-cursor.mk-cursor--hover {
  width: 44px; height: 44px;
  background: rgba(200, 150, 55, 0.15);
  border-color: var(--gold-60);
}

.mk-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 5px; height: 5px;
  background: var(--gold-70);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* ============================================================================
   SCROLL PROGRESS SIDEBAR
   ============================================================================ */
.mk-sidebar {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.mk-sidebar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--chrome-80);
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
}

.mk-sidebar-dot.active {
  background: var(--gold-70);
  box-shadow: 0 0 12px rgba(200, 150, 55, 0.5);
  transform: scale(1.4);
}

.mk-sidebar-label {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.mk-sidebar-dot:hover .mk-sidebar-label,
.mk-sidebar-dot.active .mk-sidebar-label {
  opacity: 1;
}

@media (max-width: 1200px) {
  .mk-sidebar { display: none; }
}

/* ============================================================================
   SCROLL PROGRESS BAR (top of page)
   ============================================================================ */
.mk-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-60), var(--gold-80), var(--gold-60));
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(200, 150, 55, 0.4);
}

/* ============================================================================
   HERO ENHANCEMENTS
   ============================================================================ */
.hero {
  position: relative;
  overflow: hidden;
}

/* Patriotic accent stripe at top */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--red-70) 0%, var(--red-70) 33%,
    var(--bg-1) 33%, var(--bg-1) 66%,
    var(--blue-50) 66%, var(--blue-50) 100%);
  z-index: 10;
}

/* Gold orb behind portrait */
.hero-portrait {
  position: relative;
}

.hero-portrait::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 400px; height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200, 150, 55, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroOrb 6s ease-in-out infinite;
}

@keyframes heroOrb {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Hero title shimmer effect */
.hero-name {
  position: relative;
}

.hero-name::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 200, 0.15), transparent);
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ============================================================================
   SECTION REVEAL ANIMATIONS (transform-only, content always visible)
   ============================================================================ */
.mk-reveal {
  transform: translateY(30px);
  transition: transform 0.8s var(--ease-out-expo);
}

.mk-reveal.mk-visible {
  transform: translateY(0);
}

/* Stagger children */
.mk-stagger > * {
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-out-expo);
}

.mk-stagger.mk-visible > *:nth-child(1) { transition-delay: 0ms; transform: translateY(0); }
.mk-stagger.mk-visible > *:nth-child(2) { transition-delay: 80ms; transform: translateY(0); }
.mk-stagger.mk-visible > *:nth-child(3) { transition-delay: 160ms; transform: translateY(0); }
.mk-stagger.mk-visible > *:nth-child(4) { transition-delay: 240ms; transform: translateY(0); }
.mk-stagger.mk-visible > *:nth-child(5) { transition-delay: 320ms; transform: translateY(0); }
.mk-stagger.mk-visible > *:nth-child(6) { transition-delay: 400ms; transform: translateY(0); }

/* ============================================================================
   GOLD ACCENT LINES ON SECTION HEADERS
   ============================================================================ */
.section-title {
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--grad-gold-h);
  margin-top: 16px;
  transition: width 0.6s var(--ease-out-expo);
}

.mk-visible .section-title::after {
  width: 120px;
}

/* Center the line for centered sections */
.section-title[style*="center"]::after,
.hero + .section .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================================
   ENHANCED NAVIGATION
   ============================================================================ */
#nav.scrolled {
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line-gold), 0 8px 32px -8px rgba(10, 45, 92, 0.08);
}

/* ============================================================================
   CARD HOVER EFFECTS (issues, coalition, etc.)
   ============================================================================ */
.issue-card {
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px -12px rgba(10, 45, 92, 0.12), 0 0 0 1px var(--line-gold);
}

.coalition-card {
  transition: transform 0.3s var(--ease-out-expo);
}

/* ============================================================================
   TIMELINE ENHANCEMENT (Five Stops)
   ============================================================================ */
.stop-card {
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.stop-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 40px -8px rgba(10, 45, 92, 0.1);
}

/* Gold accent on active timeline number */
.stop-num {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.stop-card:hover .stop-num {
  text-shadow: 0 0 20px rgba(200, 150, 55, 0.3);
}

/* ============================================================================
   BUTTON MAGNETIC HOVER (visual only, no layout shift)
   ============================================================================ */
.btn {
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--gold:hover {
  box-shadow: 0 8px 24px -4px rgba(200, 150, 55, 0.3);
}

.btn--ghost:hover {
  box-shadow: 0 8px 24px -4px rgba(10, 45, 92, 0.1);
}

/* ============================================================================
   MARQUEE DIVIDER (between major sections)
   ============================================================================ */
.mk-marquee {
  overflow: hidden;
  padding: 12px 0;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  background: linear-gradient(90deg, rgba(200, 150, 55, 0.03), rgba(200, 150, 55, 0.06), rgba(200, 150, 55, 0.03));
}

.mk-marquee-track {
  display: flex;
  gap: 48px;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
}

.mk-marquee-item {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-60);
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================================
   FILM GRAIN OVERLAY (subtle, enhances paper texture)
   ============================================================================ */
.mk-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* Static grain: the texture reads the same at 0.03 opacity, but without the
     steps(1) infinite repaint that pinned the compositor on older phones. */
}

/* ============================================================================
   COUNTDOWN ENHANCEMENT
   ============================================================================ */
.hero-countdown {
  position: relative;
}

.cd-num {
  position: relative;
}

/* Gold glow on countdown numbers */
.cd-num::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: radial-gradient(circle, rgba(200, 150, 55, 0.08) 0%, transparent 70%);
  border-radius: 8px;
  pointer-events: none;
}

/* ============================================================================
   DONATION TIER BUTTONS ENHANCEMENT
   ============================================================================ */
.donate-tier {
  transition: transform 0.2s var(--ease-out-expo), border-color 0.2s ease, box-shadow 0.2s ease;
}

.donate-tier:hover {
  transform: translateY(-2px);
  border-color: var(--gold-70);
  box-shadow: 0 8px 24px -8px rgba(200, 150, 55, 0.2);
}

.donate-tier.active {
  border-color: var(--gold-60);
  box-shadow: 0 0 0 2px rgba(200, 150, 55, 0.2), 0 8px 24px -8px rgba(200, 150, 55, 0.3);
}

/* ============================================================================
   FAQ ENHANCEMENT
   ============================================================================ */
.faq-q {
  transition: color 0.2s ease;
}

.faq-q:hover {
  color: var(--gold-60);
}

.faq-item {
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--line-gold);
}

/* ============================================================================
   PRESS SECTION ENHANCEMENT
   ============================================================================ */
.press-item {
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.press-item:hover {
  transform: translateX(4px);
  box-shadow: -4px 0 0 var(--gold-60);
}

/* ============================================================================
   FOOTER ENHANCEMENT
   ============================================================================ */
footer {
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: var(--grad-gold-h);
}

/* ============================================================================
   GOLD RAIN PARTICLE EFFECT (triggered on interaction)
   ============================================================================ */
.mk-particle {
  position: fixed;
  pointer-events: none;
  z-index: 99990;
  width: 4px; height: 4px;
  background: var(--gold-70);
  border-radius: 50%;
  animation: particleFall 2s ease-in forwards;
}

@keyframes particleFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */
@media (max-width: 768px) {
  .mk-cursor, .mk-cursor-dot { display: none !important; }
  .mk-sidebar { display: none; }
  
  .mk-reveal {
    transform: translateY(20px);
  }
  
  .hero-portrait::before {
    width: 280px; height: 280px;
  }
}

/* ============================================================================
   PRINT STYLES (hide enhancement elements)
   ============================================================================ */
@media print {
  .mk-cursor, .mk-cursor-dot, .mk-sidebar, .mk-progress, .mk-grain, .mk-marquee { display: none !important; }
  .mk-reveal { transform: none !important; }
}

/* ============================================================================
   "READY FOR LIVE CHAT" PILL . white-label cover for the ElevenLabs widget
   Themed in the campaign palette: flag-blue pill, gold label, green online dot.
   ============================================================================ */
:root{
  --crp-bg-1:#16407e;  --crp-bg-2:#0A2D5C;  --crp-bg-3:#061f44;   /* flag-blue gradient */
  --crp-text-1:#F2CA64; --crp-text-2:#C89637;                     /* gold label */
  --crp-dot-1:#7df3a3; --crp-dot-2:#25d366; --crp-dot-3:#15a34a;  /* green "online" dot */
  --crp-right:47px;   /* measured: aligns pill right edge with the widget bar */
}
.chat-ready-pill{
  position:fixed;
  right:var(--crp-right);
  bottom:3px;
  z-index:9600;
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 14px 7px 11px;
  background:linear-gradient(135deg, var(--crp-bg-1) 0%, var(--crp-bg-2) 58%, var(--crp-bg-3) 100%);
  border:1px solid rgba(255,255,255,0.18);
  border-radius:999px;
  box-shadow:0 10px 24px -8px rgba(0,16,52,0.6), 0 2px 6px rgba(0,0,0,0.28);
  font-family:"Inter", system-ui, sans-serif;
  font-weight:800; font-size:12.5px; letter-spacing:0.04em; line-height:1;
  white-space:nowrap; user-select:none; -webkit-tap-highlight-color:transparent;
}
.chat-ready-pill .crp-dot{
  width:9px; height:9px; flex:0 0 auto; border-radius:50%;
  background:radial-gradient(circle at 32% 30%, var(--crp-dot-1) 0%, var(--crp-dot-2) 52%, var(--crp-dot-3) 100%);
  box-shadow:0 0 6px 1px rgba(37,211,102,0.75);
  animation:crpBlink 1.5s ease-in-out infinite;
}
.chat-ready-pill .crp-text{
  background:linear-gradient(90deg, var(--crp-text-1) 0%, var(--crp-text-2) 100%);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
@keyframes crpBlink{
  0%,100%{ opacity:1;   box-shadow:0 0 6px 1px rgba(37,211,102,0.75); }
  50%    { opacity:0.4; box-shadow:0 0 2px 0   rgba(37,211,102,0.2); }
}
@media (prefers-reduced-motion:reduce){ .chat-ready-pill .crp-dot{ animation:none; } }
@media (max-width:640px){
  .chat-ready-pill{ right:var(--crp-right); bottom:3px; font-size:11.5px; padding:6px 12px 6px 10px; }
}
