/* ===== BASE ===== */
:root{
  --bg:#0a0a0a;
  --text:#ffffff;
  --muted:#a0a0a0;
  --brand:#3b82f6;
  --brand2:#60a5fa;
  --brand-warm:#f59e0b;
  --brand-warm-light:#fbbf24;
  --accent:#10b981;
  --accent-light:#34d399;
  --ring:rgba(96,165,250,.45);
  --card:#1a1a1a;
  --light:#2a2a2a;
  --radius:18px;
  --shadow:0 16px 40px rgba(0,0,0,.3);
  --shadow-colored:0 16px 40px rgba(59,130,246,.15);
  --gradient-primary:linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
  --gradient-warm:linear-gradient(135deg, #f59e0b, #fbbf24, #fde047);
  --gradient-accent:linear-gradient(135deg, #10b981, #34d399, #6ee7b7);
  --gradient-dark:linear-gradient(135deg, #1a1a1a, #2a2a2a, #1a1a1a);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-padding-top: 80px}
body{
  font-family: ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",Ubuntu,"Helvetica Neue",Arial;
  color:#ffffff; 
  line-height:1.7; 
  background:#0a0a0a;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
img{max-width:100%; display:block}
a{text-decoration:none; color:var(--brand2)}
a:hover{opacity:.9}
.no-scroll{overflow:hidden}

/* Enhanced Typography Hierarchy */
h1{
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h2{
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); 
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

h3{
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h4{
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

p{
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.7;
  margin: 0 0 1rem;
  font-weight: 400;
}

.lead{
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
}

/* Enhanced Button Styles */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-size: clamp(0.95rem, 1.8vw, 1rem);
  letter-spacing: -0.005em;
}

.btn::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before{
  left: 100%;
}


/* Global Micro-interactions - but not for critical elements */
*:not(.hero-van):not(.fallout-seq):not(.fall-item) {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
*:focus {
  outline: 2px solid var(--brand2);
  outline-offset: 2px;
}

/* Loading animation for images - but not for gallery or van */
img:not(.gallery-item img):not(.hero-van) {
  transition: opacity 0.3s ease;
}

img[loading="lazy"]:not(.gallery-item img):not(.hero-van) {
  opacity: 0;
}

img[loading="lazy"].loaded:not(.gallery-item img):not(.hero-van) {
  opacity: 1;
}

/* Pulse animation for loading states */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}


/* Mobile viewport optimizations */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  /* Optimize text rendering */
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Better tap highlighting */
  a, button, .card, .btn {
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
  }
  
  /* Improve scrolling performance */
  .hero, .section {
    -webkit-overflow-scrolling: touch;
  }
}