/* ==========================================================================
   ADAM'S — Base / Reset
   ========================================================================== */

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

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis {
  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-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

svg {
  display: block;
}

::selection {
  background: var(--color-gold);
  color: #0c0c0c;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-dim);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* ---- Focus states (accessibility) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--color-gold);
  outline-offset: 4px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Typography
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-gold);
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--color-gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  line-height: 1.02;
  color: var(--color-text);
}

.section-title {
  font-size: clamp(34px, 4.6vw, 56px);
  margin-top: 14px;
}

p {
  color: var(--color-text-dim);
  font-weight: 400;
}

.lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-dim);
  max-width: 480px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 2px;
  transition: background var(--dur-fast) var(--ease-luxury),
              color var(--dur-fast) var(--ease-luxury),
              border-color var(--dur-fast) var(--ease-luxury),
              transform var(--dur-fast) var(--ease-luxury);
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: var(--color-gold);
  color: #14110a;
  border: 1px solid var(--color-gold);
}

.btn-gold:hover {
  background: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}

.btn-ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease-luxury);
}

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

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-strong);
  padding-bottom: 6px;
  transition: color var(--dur-fast) var(--ease-luxury), border-color var(--dur-fast) var(--ease-luxury);
}

.btn-text svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-fast) var(--ease-luxury);
}

.btn-text:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-text:hover svg {
  transform: translateX(4px);
}

/* ---- Section spacing ---- */
.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  position: relative;
}

.section-tight-top {
  padding-top: 0;
}

@media (max-width: 991px) {
  .section {
    padding-top: var(--section-space-mobile);
    padding-bottom: var(--section-space-mobile);
  }
}

/* ---- Reveal helpers (JS-controlled, base hidden state) ---- */
.reveal-text {
  overflow: hidden;
}

[data-split-text] .word,
[data-split-text] .char {
  will-change: transform;
}

.gold-text {
  color: var(--color-gold);
}

/* ==========================================================================
   Preloader (lives in base.css so every page loads it — previously this
   was mistakenly scoped to extra-pages.css and missing on some pages)
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: #0c0c0c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.preloader__mark {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--color-text);
  margin-bottom: 28px;
  overflow: hidden;
}

.preloader__bar {
  width: 220px;
  height: 1px;
  background: var(--color-border-strong);
  position: relative;
  overflow: hidden;
}

.preloader__bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--color-gold);
}

.preloader__pct {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-faint);
}
