/* ═══════════════════════════════════════════════
   m3kko — Grid & Layout
   ═══════════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-mono);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* ── Background ── */
.bg-grid {
  display: none;
}

/* ── Noise Overlay ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url('../assets/noise.svg');
  background-repeat: repeat;
}

/* ── Scanlines ── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  opacity: 0.02;
}

/* ── Page Container ── */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--margin-desk);
}

/* ── 12-Column Grid ── */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

.col-full  { grid-column: 1 / -1; }
.col-8     { grid-column: span 8; }
.col-6     { grid-column: span 6; }
.col-4     { grid-column: span 4; }
.col-3     { grid-column: span 3; }

/* ── Section Spacing ── */
.section {
  padding: 120px 0 80px;
  position: relative;
}

/* ── Section Divider ── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
  width: 100%;
}

.section-divider__index {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-shadow: var(--glow-text);
  flex-shrink: 0;
}

.section-divider__line {
  flex: 1;
  height: 1px;
  background: var(--border-accent);
}

.section-divider__name {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .page {
    padding: 0 var(--margin-mob);
  }

  .col-8,
  .col-6,
  .col-4,
  .col-3 {
    grid-column: 1 / -1;
  }

  .section {
    padding: 80px 0 60px;
  }

  :root {
    --text-hero: 40px;
    --text-h1:   32px;
    --text-h2:   20px;
  }
}

@media (max-width: 480px) {
  :root {
    --text-hero: 32px;
    --text-h1:   28px;
  }
}
