:root {
  --bg: #0a0806;
  --bg-alt: #120d08;
  --gold-light: #f7e2a4;
  --gold: #d4af37;
  --gold-dark: #8a6a1f;
  --text: #f3ecdd;
  --text-muted: #b8a986;
  --line: rgba(212, 175, 55, 0.25);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* background photo — desaturated + gold-graded so it reads as brand, not a snapshot */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../assets/bg-photo-wide.jpg");
  background-size: cover;
  background-position: 100% center;
  background-repeat: no-repeat;
}

/* dark scrim + gold vignette on top of the photo — guarantees copy contrast regardless of what's behind it */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 65% at 34% 45%, rgba(6,4,2,0.82) 0%, rgba(6,4,2,0.5) 55%, rgba(6,4,2,0) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.12) 18%, rgba(0,0,0,0.14) 82%, rgba(0,0,0,0.5) 100%),
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(212,175,55,0.08), transparent 60%);
}

main, header, .ticker-wrap { position: relative; z-index: 1; }
main { display: flex; flex-direction: column; flex: 1; min-height: 0; }

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

.gold {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Ticker ===== */
.ticker-wrap {
  flex-shrink: 0;
  background: linear-gradient(90deg, #000 0%, #1a1206 50%, #000 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker-scroll 22s linear infinite;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--gold);
}
.ticker-track span { padding-right: 3rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Header ===== */
.site-header {
  flex-shrink: 0;
  padding: 1rem 5vw;
  display: flex;
  justify-content: center;
}
.header-inner { display: flex; align-items: center; }

/* ===== Spinning coin badge ===== */
.coin-wrap {
  perspective: 600px;
  filter: drop-shadow(0 0 16px rgba(212,175,55,0.4));
}
.coin {
  width: 96px;
  height: 96px;
  position: relative;
  transform-style: preserve-3d;
  animation: coin-spin 7s linear infinite;
}
.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  background: radial-gradient(circle at 34% 28%, #2a2420, #16120e 55%, #050403 100%);
  border: 2px solid var(--gold);
  box-shadow:
    inset 0 0 0 1px rgba(212,175,55,0.35),
    inset 0 3px 6px rgba(0,0,0,0.6),
    inset 0 -3px 6px rgba(0,0,0,0.5);
}
.coin-back { transform: rotateY(180deg); }
.coin-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  box-sizing: border-box;
  display: block;
}
@keyframes coin-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* ===== Hero (fills all remaining space — no scroll) ===== */
.hero {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 6vw;
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  height: 60vh;
  background: radial-gradient(closest-side, rgba(212,175,55,0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 900px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  background: rgba(212,175,55,0.06);
}

.hero-title {
  font-family: var(--font-display);
  line-height: 0.95;
  font-weight: 400;
  font-size: clamp(2.25rem, 6.5vw, 4.75rem);
  letter-spacing: 0.01em;
  margin-bottom: 1.1rem;
}
.hero-title span { display: block; }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.75rem;
  line-height: 1.5;
}
.hero-sub strong { color: var(--text); font-weight: 700; }

.hero-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ===== CTA Button ===== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #1a1206;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(212,175,55,0.25), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255,255,255,0.15);
}
.cta-btn--lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(212,175,55,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
}

.cta-icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ===== Reveal animation base state ===== */
[data-reveal] { opacity: 0; }

/* ===== Desktop: text lives in the black zone left of the photo panel ===== */
@media (min-width: 769px) {
  .hero { align-items: flex-start; text-align: left; padding-left: 10vw; }
  .hero-glow { left: 26%; }
  .hero-inner { max-width: 41vw; }
  .hero-title { font-size: clamp(2.5rem, 6.4vw, 6.25rem); }
  .hero-sub { max-width: none; margin: 0 0 1.75rem; }

  /* CSS-level fade on top of the baked photo feather — the baked blend is relative to the
     IMAGE, which shifts on-screen once background-size:cover crops it differently per viewport
     aspect ratio. This mask is relative to the actual viewport, so the fade is always smooth
     no matter how the photo itself gets cropped. */
  body::before {
    mask-image: linear-gradient(to right, transparent 0%, transparent 26%, black 66%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 26%, black 66%);
  }
}

/* ===== Mobile / short screens ===== */
@media (max-width: 768px) {
  .coin { width: 70px; height: 70px; }
  .site-header { padding: 0.75rem 5vw; }
  body::before {
    background-image: url("../assets/bg-photo.jpg");
    background-size: auto 160%;
    background-position: 50% 20%;
    filter: grayscale(0.55) sepia(0.35) brightness(0.42) contrast(1.12) saturate(1.15);
  }
}

@media (max-height: 700px) {
  .hero-title { font-size: clamp(2rem, 6vw, 3.25rem); margin-bottom: 0.75rem; }
  .hero-sub { margin-bottom: 1.1rem; }
  .eyebrow { margin-bottom: 0.9rem; }
}
