/* ═══════════════════════════════════════════════════════
   VALHALLA MUSIC — Global Styles
   Premium underground electronic music brand
   ═══════════════════════════════════════════════════════ */

/* ── Akira Font ────────────────────────────────────── */
@font-face {
  font-family: 'Akira';
  src: url('../assets/fonts/akira.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Custom Properties ─────────────────────────────── */
:root {
  /* Color palette */
  --bg-primary: #070707;
  --bg-secondary: #0b0b0b;
  --bg-tertiary: #040404;
  --bg-card: #0e0e0e;
  --text-primary: #ede9e1;
  --text-secondary: rgba(237, 233, 225, 0.64);
  --text-dim: rgba(237, 233, 225, 0.42);
  --text-ghost: rgba(237, 233, 225, 0.12);
  --accent: #3a6e73;
  --accent-hover: #4a8a90;
  --accent-glow: rgba(58, 110, 115, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.15);
  --white: #ffffff;
  --black: #000000;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', Helvetica, sans-serif;
  --font-accent: 'Akira', sans-serif;

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 100px;
  --space-2xl: 160px;
  --space-section: clamp(100px, 12vh, 180px);

  /* Layout */
  --wrap-width: 1320px;
  --wrap-narrow: 900px;
  --wrap-padding: clamp(24px, 4vw, 60px);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --duration-fast: 0.25s;
  --duration-normal: 0.5s;
  --duration-slow: 0.8s;
  --duration-slower: 1.2s;

  /* Cursor */
  --cursor-size: 12px;
  --cursor-ring-size: 40px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

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

button {
  cursor: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

input, textarea, button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

/* ── Typography ────────────────────────────────────── */
.h1 {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 11rem);
  line-height: 0.88;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 7rem);
  line-height: 0.92;
  color: var(--white);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 400;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 4rem);
  line-height: 0.94;
  color: var(--white);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 400;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}

.body-large {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.85;
  font-weight: 300;
}

/* ── Layout ────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 var(--wrap-padding);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding: var(--space-section) 0;
}

.section--dark {
  background: var(--bg-primary);
}

.section--darker {
  background: var(--bg-secondary);
}

/* ── Noise Texture Overlay ─────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Custom Cursor ─────────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--cursor-size);
  height: var(--cursor-size);
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              background 0.3s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--cursor-ring-size);
  height: var(--cursor-ring-size);
  border: 1px solid rgba(237, 233, 225, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out-expo),
              height 0.4s var(--ease-out-expo),
              border-color 0.3s,
              opacity 0.3s;
}

.cursor-dot.is-hovering {
  width: 60px;
  height: 60px;
  background: rgba(58, 110, 115, 0.12);
  mix-blend-mode: normal;
}

.cursor-ring.is-hovering {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
  opacity: 0.6;
}

.cursor-dot.is-clicking {
  width: 8px;
  height: 8px;
}

.cursor-ring.is-clicking {
  width: 30px;
  height: 30px;
}

/* ── Preloader ─────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
}

.preloader__logo {
  height: 50px;
  opacity: 0;
  filter: brightness(0) invert(1);
}

.preloader__bar {
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.preloader__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

.preloader__text {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
}

/* ── Scroll Progress ───────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 9997;
  transform-origin: left;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 38px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 400;
  transition: all var(--duration-fast) ease;
  position: relative;
  overflow: hidden;
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--bg-primary);
  border-color: var(--white);
}

.btn--amber {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn--amber:hover {
  background: var(--white);
  color: var(--bg-primary);
  border-color: var(--white);
}

.btn--outline-amber {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: transparent;
}

.btn--outline-amber:hover {
  background: var(--white);
  color: var(--bg-primary);
  border-color: var(--white);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Magnetic wrapper */
.magnetic {
  display: inline-block;
}

/* ── Reveal Animations (used by GSAP) ──────────────── */
.reveal {
  clip-path: inset(0 0 100% 0);
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-fade {
  opacity: 0;
}

.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

.line-reveal {
  overflow: hidden;
}

.line-reveal span {
  display: block;
  transform: translateY(100%);
}

/* Image reveal */
.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  transform-origin: top;
}

.img-reveal img {
  transform: scale(1.2);
  transition: transform 1.4s var(--ease-out-expo);
}

.img-reveal.is-revealed::after {
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1s var(--ease-in-out);
}

.img-reveal.is-revealed img {
  transform: scale(1);
}

/* ── Horizontal Rule ───────────────────────────────── */
.hr {
  width: 48px;
  height: 1px;
  background: var(--accent);
  border: none;
}

.hr--wide {
  width: 100%;
  background: var(--border-subtle);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 960px) {
  :root {
    --space-section: clamp(72px, 10vh, 120px);
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

@media (hover: none) {
  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}
