/* ═══════════════════════════════
   VELTRIX — GLOBAL / MAIN STYLES
   ═══════════════════════════════ */

/* Section base */
section {
  position: relative;
  overflow: hidden;
}

/* Common section header */
.section-head {
  text-align: center;
  padding: var(--sp-32) var(--sp-8) var(--sp-16);
}
.sec-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  border: 1px solid var(--amber-border);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-6);
}
.sec-h {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--ice);
  margin-bottom: var(--sp-4);
}
.sec-sub {
  font-size: 1rem;
  color: var(--ice-dim);
  max-width: 520px;
  margin: 0 auto;
}
.em {
  font-style: normal;
  color: var(--amber);
}

/* Glass card mixin */
.glass {
  background: rgba(23, 23, 28, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--ice-border);
  border-radius: var(--r-lg);
}

/* Amber glow accent line */
.accent-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--amber);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-6);
}

/* ── COMMON ANIMATION STATES ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

/* Animated amber underline for links */
.hover-amber {
  position: relative;
}
.hover-amber::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width var(--dur-mid) var(--ease-out);
}
.hover-amber:hover::after {
  width: 100%;
}

/* Scanline texture overlay (decorative) */
.scanlines-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: var(--z-content);
}
