/* ═══════════════════════════════════════════════════════════
   ADCEL — Base Styles
   Reset, body, globals, scrollbar, grain
═══════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text-1);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-normal);
  overflow-x: hidden;
  cursor: none; /* Hidden — custom cursor handles it */
}

/* ── Custom Scrollbar ───────────────────── */
::-webkit-scrollbar          { width: 4px; }
::-webkit-scrollbar-track    { background: var(--clr-bg); }
::-webkit-scrollbar-thumb    { background: var(--clr-text-3); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--clr-blue); }

/* ── Text Selection ─────────────────────── */
::selection {
  background: rgba(250, 204, 21, 0.4);
  color: var(--clr-text-1);
}

/* ── Focus visible ──────────────────────── */
:focus-visible {
  outline: 2px solid var(--clr-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Grain Overlay ──────────────────────── */
.grain-overlay {
  position: fixed;
  inset: -20%;
  width: 140%;
  height: 140%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.038;
  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)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain-shift 0.4s steps(2) infinite;
  mix-blend-mode: multiply;
  opacity: 0.05;
}
@keyframes grain-shift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-3%, -2%); }
  50%  { transform: translate(2%, 3%); }
  75%  { transform: translate(-1%, 1%); }
  100% { transform: translate(3%, -1%); }
}

/* ── Typography globals ─────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--clr-text-1);
}

p { color: var(--clr-text-2); }

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

button { cursor: none; border: none; background: none; font: inherit; }

svg { display: block; }

/* ── Utility ────────────────────────────── */
.br-desk { display: none; }
@media (min-width: 1024px) { .br-desk { display: block; } }

/* ── Gradient text utility ──────────────── */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Preloader state: hide scrolling ────── */
body.is-loading {
  overflow: hidden;
}

/* ── Hidden until JS loads ──────────────── */
.js-hidden { opacity: 0; }
