/* ============================================
   TOKENS
============================================ */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dim: #8B6E2E;
  --black: #0A0A0A;
  --near-black: #111111;
  --surface: #161616;
  --surface-2: #1E1E1E;
  --border: rgba(201,168,76,0.18);
  --border-bright: rgba(201,168,76,0.4);
  --text: #F0EDE6;
  --text-muted: #8A8478;
  --text-dim: #504D47;

  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ============================================
   RESET
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; color: inherit; background: transparent; border: none; outline: none; }
ul { list-style: none; }

/* ============================================
   GLOBAL BACKGROUND LAYERS
============================================ */
.bp-grid {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  will-change: transform;
}
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ============================================
   CURSOR GLOW + TRAIL
============================================ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, rgba(201,168,76,0.02) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity 0.3s;
  opacity: 0;
}
.cursor-core {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  background: var(--gold-light);
  box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(201,168,76,0.6);
  transform: translate(-50%, -50%);
  will-change: transform;
  opacity: 0;
}
.cursor-trail-dot {
  position: fixed;
  top: 0; left: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 998;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold), 0 0 12px rgba(201,168,76,0.35);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  will-change: transform, opacity;
}
@media (hover: none) {
  .cursor-glow, .cursor-core, .cursor-trail-dot { display: none; }
}

/* ============================================
   SCROLL PROGRESS BAR — Enhancement #8
============================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  z-index: 99;
  pointer-events: none;
}

/* ============================================
   LAYOUT HELPERS
============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 5;
}
section { position: relative; z-index: 5; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.section-label::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 16px;
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 64px;
}
.section-pad { padding: 120px 0; }
@media (max-width: 768px) { .section-pad { padding: 80px 0; } }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201,168,76,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.08);
  color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 18px; font-size: 0.72rem; }
.btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ============================================
   FOCUS STATES
============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* ============================================
   UTILITY
============================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
