/* ============================================================
   base.css — reset, tokens, editorial typography
   Redesign v2: light & airy, oversized type.
   ============================================================ */

:root {
  /* ---- Black & gold luxury palette ---- */
  --paper:    #0a0a0b;   /* page bg, near-black */
  --paper-2:  #121214;   /* alt section bg */
  --panel:    #161618;   /* raised panels */
  --panel-2:  #1c1c1f;   /* cards / form */
  --char:     #f4f1ea;   /* PRIMARY TEXT — off-white */
  --char-2:   #d8d3c8;
  --mute:     #948f86;   /* secondary text */
  --line:     rgba(255, 255, 255, 0.10);
  --line-2:   rgba(255, 255, 255, 0.18);
  --white:    #ffffff;
  --black:    #0a0a0b;

  /* ---- Gold accent scale ---- */
  --gold:        #c9a24a;
  --gold-soft:   #d4b463;
  --gold-bright: #e3c87e;
  --gold-deep:   #a07d34;

  /* legacy names kept (no longer foregrounded) */
  --navy:        #0a0a0b;
  --navy-deep:   #060607;

  /* Dark-section tokens (now match the page) */
  --on-dark:       rgba(244,241,234,.92);
  --on-dark-mute:  rgba(244,241,234,.55);
  --line-dark:     rgba(255,255,255,.12);

  /* ---- Type ---- */
  --font-sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Cormorant Garamond", "Didot", "Bodoni MT", Georgia, serif;

  /* ---- Layout ---- */
  --container: 1280px;
  --container-wide: 1480px;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);

  /* ---- Radii & shadows ---- */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-soft:  0 18px 50px rgba(20,23,28,.08);
  --shadow-card:  0 30px 70px rgba(20,23,28,.12);

  /* ---- Easing ---- */
  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-io:  cubic-bezier(.65,.05,.36,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  /* Native smooth-scroll is OFF — Lenis drives it. Falls back to instant if no JS. */
}
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--char);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
ul { padding: 0; margin: 0; list-style: none; }

/* ---- Editorial type scale — serif display to match the JETONE wordmark ---- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0 0 0.4em;
  color: var(--char);
  text-wrap: balance;
}
h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  color: var(--char);
  text-wrap: balance;
}
.display {
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.005em;
}
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.65rem); }
p  { margin: 0 0 1em; }
strong { font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin: 0 0 1.5rem;
  color: var(--mute);
}
.eyebrow::before {
  content: '';
  width: 1.8em; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.gold { color: var(--gold); }
.eyebrow.on-dark { color: var(--on-dark-mute); }
.eyebrow.no-rule::before { display: none; }

.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--char-2);
  font-weight: 400;
}

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

/* ============================================================
   Reveal gating — initial hidden states apply ONLY when JS is
   active (html.js). Without JS, everything is visible.
   ============================================================ */
html.js [data-reveal] {
  opacity: 0;
}
html.js [data-reveal="up"]    { transform: translateY(40px); }
html.js [data-reveal="left"]  { transform: translateX(-40px); }
html.js [data-reveal="right"] { transform: translateX(40px); }
html.js [data-reveal="fade"]  { transform: none; }

/* Masked line reveal (hero headline) — pure CSS so it ALWAYS plays,
   independent of GSAP/CDN/rAF. Without JS the title shows statically. */
.line-mask { display: block; overflow: hidden; }
/* Base state is VISIBLE (transform none). The animation only ADDS the
   slide-up motion via `backwards` fill, so if animations are ever paused
   or unsupported, the title still shows. */
html.js .line-mask > span {
  display: block;
  animation: lineReveal 1s var(--ease) .35s backwards;
}
html.js .hero-title .line-mask:nth-of-type(2) > span { animation-delay: .47s; }
@keyframes lineReveal { from { transform: translateY(110%); } to { transform: translateY(0); } }

/* ---- Reduced motion: neutralize everything ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal],
  html.js .line-mask > span { opacity: 1 !important; transform: none !important; }
}

/* ---- Subpage entrance (pages without the preloader) ---- */
html.js body.subpage { animation: pageFade .6s var(--ease) both; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

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