/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
  --bg: #0a0a0a;
  --bg-alt: #111110;
  --surface: #171615;
  --surface-2: #1e1c1a;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f2ee;
  --text-muted: #a19c93;
  --text-dim: #6b665f;
  --accent: #ff5a2b;
  --accent-2: #ffa26b;
  --accent-contrast: #0a0a0a;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container: 1360px;
  --gutter: clamp(24px, 5vw, 64px);
  --section-pad: clamp(80px, 10vw, 160px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* From here up, the fixed dock-nav (left) and social-bar (right) sit in their
   own 28px + ~46px rail — widen the gutter so section content clears them
   instead of running underneath. */
@media (min-width: 1025px) {
  :root {
    --gutter: max(clamp(24px, 5vw, 64px), 120px);
  }
}

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

html {
  background: var(--bg);
}

/* Lenis drives the smoothing itself — native smooth-scroll would double up
   and stutter against it. Only used as the CSS fallback if Lenis fails to load. */
html.lenis-smooth-fallback {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

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

ul { list-style: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

em { font-style: italic; color: var(--accent); }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  margin-bottom: 20px;
}

/* Text fills in with the accent color as it scrolls through view — driven by
   ScrollTrigger in animations.js, which tweens background-position-x. */
.fill-text {
  display: inline-block;
  background-image: linear-gradient(90deg, var(--accent) 50%, var(--text-dim) 50%);
  background-size: 200% 100%;
  background-position-x: 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-muted);
  max-width: 46ch;
  font-size: 17px;
}

.section-head {
  max-width: 720px;
  margin: 0 0 clamp(48px, 6vw, 88px);
  padding: 0 var(--gutter);
}

[data-reveal],
[data-reveal-line] {
  opacity: 0;
}

/* ==========================================================================
   Custom cursor
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .accordion__trigger { cursor: none; }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
  }

  .cursor-ring {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(244, 242, 238, 0.35);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  }

  .cursor-ring.is-hover {
    width: 64px;
    height: 64px;
    background: rgba(255, 90, 43, 0.1);
    border-color: var(--accent);
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.preloader__mark {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.preloader__count {
  font-size: 14px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
