/* ─── BASE STYLES ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Cursor default state - hidden on desktop via media query logic */
.custom-cursor { display: block; }
@media (hover: none) and (pointer: coarse) { .custom-cursor { display: none !important; } }

/* Grain Overlay */
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='0.04'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.6;
}

a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); margin: 0; }
.tiny { font-size: 0.85rem; }
.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 10000;
}
.skip-link:focus { left: 12px; }