/* ============================================================
   BASE & RESET
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font: inherit;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  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.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* Scrollbar */
::-webkit-scrollbar        { width: 4px; }
::-webkit-scrollbar-track  { background: var(--black); }
::-webkit-scrollbar-thumb  { background: var(--cyan-dim); border-radius: 2px; }

/* Section shared */
section {
  padding: var(--section-pad);
  position: relative;
  z-index: 2;
  /* Prevent fixed navbar from covering anchored sections */
  scroll-margin-top: calc(var(--nav-h) + 24px);
}


/* Section header shared */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.section-num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--cyan);
  letter-spacing: .2em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.02em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* Reveal animation class */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor */
#cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  width: 12px; height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, opacity .2s;
  mix-blend-mode: screen;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 9998;
  pointer-events: none;
  width: 40px; height: 40px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s;
}
