/* ==========================================================
   Reset, base element styles, and shared layout utilities
========================================================== */

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }

body{
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; }
button{ font-family: inherit; cursor: pointer; }

#bg-canvas{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.wrap{ max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* Shared section scaffolding used across most components */
section{ position: relative; z-index: 2; }
.panel{ background: color-mix(in srgb, var(--charcoal) 92%, transparent); border-top: 1px solid var(--line-soft); }
.section-inner{ padding: 120px 0; }
.section-head{
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 64px; flex-wrap: wrap;
}
.section-head .eyebrow{ margin-bottom: 14px; }
.section-head h2{
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); max-width: 20ch; letter-spacing: -0.01em;
}
.section-head p{ color: var(--fog); max-width: 36ch; font-size: 14.5px; }

.eyebrow{
  font-family: var(--font-mono); font-size: 12px; color: var(--signal-2);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before{ content: ''; width: 24px; height: 1px; background: var(--signal-2); }

.btn-primary{
  font-family: var(--font-mono); font-size: 13px; background: var(--paper); color: var(--ink);
  padding: 15px 26px; border-radius: 999px; font-weight: 500;
  transition: transform .25s ease, box-shadow .25s ease; display: inline-block; border: none;
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.btn-secondary{
  font-family: var(--font-mono); font-size: 13px; color: var(--paper); padding: 15px 8px;
  border-bottom: 1px solid var(--line); transition: border-color .2s ease, color .2s ease;
  background: none; border-top: none; border-left: none; border-right: none;
}
.btn-secondary:hover{ border-color: var(--signal-2); color: var(--signal-2); }

@media (max-width: 640px){
  .wrap{ padding: 0 20px; }
  .section-inner{ padding: 72px 0; }
  .section-head{ margin-bottom: 40px; gap: 20px; }
  .section-head h2{ font-size: clamp(1.5rem, 6vw, 2rem); }
}

@media (max-width: 380px){
  .wrap{ padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

/* Global section spacing */
section {
  padding: 100px 0; 
}

/* Mobile global section spacing */
@media (max-width: 768px) {
  section {
    padding: 60px 0; 
  }
}