/* ══ RESET ════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg  { display: block; max-width: 100%; }
a         { color: inherit; text-decoration: none; }
button    { cursor: pointer; font: inherit; }

/* ══ BASE ════════════════════════════════════════════════ */
html { scroll-behavior: smooth; }

body {
  background:            var(--ink);
  color:                 var(--t1);
  font-family:           var(--font-sans);
  font-weight:           300;
  font-size:             1rem;
  line-height:           1.75;
  overflow-x:            hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══ NOISE OVERLAY ════════════════════════════════════════
   Matches SPAYA's grain texture. Fixed so it doesn't scroll.
═══════════════════════════════════════════════════════════ */
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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

/* ══ GRID LINES ══════════════════════════════════════════ */
.grid-lines {
  background-image:
    linear-gradient(var(--bd) 1px, transparent 1px),
    linear-gradient(90deg, var(--bd) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ══ GRADIENT TEXT ═══════════════════════════════════════ */
.grad-text {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 50%, var(--accent-c) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══ SCROLL REVEAL ════════════════════════════════════════
   reveal.js adds .visible via IntersectionObserver
═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.reveal.visible {
  opacity:   1;
  transform: none;
}

/* ══ SELECTION ═══════════════════════════════════════════ */
::selection {
  background: var(--accent-a-20);
  color:      var(--accent-a);
}
