:root {
  --black: #000000;
  --white: #ffffff;
  --gray-light: #f2f2f2;
  --gray-mid: #888888;
  --gray-dark: #333333;
  --gold: var(--white);
  --text-dark: #1a1a1a;
  --bg-light: var(--gray-light);
  --bg-dark: var(--black);
  --red: var(--gray-mid);
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    filter: none;
  }
  20%, 22%, 24%, 55% {
    opacity: 0.3;
    filter: none;
  }
}

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

body {
  background: var(--bg-dark);
  color: #fff;
  font-family: 'Neue Montreal', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

.serif {
  font-family: 'DM Serif Display', serif;
}

.mono {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
}

/* Cursor */
#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: width 0.3s, height 0.3s;
}

#cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

#loader-line {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  position: relative;
}

#loader-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--gold);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.header-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--white);
  text-decoration: none;
  transition: color 0.4s ease;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-family: 'Space Mono', monospace;
  transition: color 0.4s ease;
}

/* Global Noise Overlay */
#noise-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Mobile Global Breakpoints */
@media (max-width: 900px) {
  header {
    padding: 20px 20px;
  }
  .header-logo img {
    height: 14px !important;
    width: auto !important;
  }
  .nav-links {
    gap: 15px;
  }
  .nav-links a {
    font-size: 8px;
    letter-spacing: 0.1em;
  }
}
