/* ══════════════════════════════════════════════════════════════════════════
   Rave Mountain — ravemountain.com
   Powered by Biz Dev App

   Dark by default. The whole page is built to sit under photography shot in
   near-black rooms, so the base is ink and every accent is emissive.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #07060d;
  --ink-2: #0d0a18;
  --ink-3: #150f25;
  --line: rgba(255, 255, 255, 0.12);

  --magenta: #ff2e88;
  --violet: #b14bff;
  --cyan: #00e5ff;
  --gold: #ffd166;

  --paper: #f4f1ff;
  --muted: rgba(244, 241, 255, 0.62);
  --muted-2: rgba(244, 241, 255, 0.42);

  --shell: min(1240px, 92vw);
  --radius: 18px;

  --display: "Anton", "Arial Narrow", "Haettenschweiler", Impact, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.shell { width: var(--shell); margin-inline: auto; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin: 0 0 14px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; line-height: 0.98; margin: 0; }
h2 { font-size: clamp(34px, 5.2vw, 68px); text-transform: uppercase; }
h3 { font-size: clamp(20px, 2.4vw, 27px); text-transform: uppercase; }
p { margin: 0 0 18px; }

.lede { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 62ch; }

.hot { color: var(--magenta); }
.cool { color: var(--cyan); }

/* ── skip link ─────────────────────────────────────────────────────────── */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--magenta); color: #fff; padding: 12px 20px; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

/* ── nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  width: var(--shell); margin-inline: auto;
  padding: 18px 0;
  transition: padding 0.3s ease;
}
.nav::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 82px;
  background: linear-gradient(180deg, rgba(7, 6, 13, 0.92) 0%, rgba(7, 6, 13, 0) 100%);
  pointer-events: none; z-index: -1;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 54px; height: 54px; }
.brand b {
  font-family: var(--display); font-weight: 400; font-size: 27px;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--paper); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 0;
  font-family: var(--body); font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: linear-gradient(96deg, var(--magenta), var(--violet) 55%, var(--cyan));
  color: #08060f;
  box-shadow: 0 12px 40px -14px rgba(255, 46, 136, 0.9);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 54px -16px rgba(255, 46, 136, 1); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--paper); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 12px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  color: var(--paper); width: 44px; height: 44px; cursor: pointer; font-size: 20px;
}

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 132px 0 72px;
  overflow: hidden;
  isolation: isolate;
  /* Poster frame. Painted before the WebGL module resolves and left in place
     if it never does, so first paint is branded rather than black. */
  background:
    radial-gradient(120% 80% at 50% 108%, rgba(255, 46, 136, 0.34) 0%, rgba(255, 46, 136, 0) 62%),
    radial-gradient(90% 70% at 18% 20%, rgba(0, 229, 255, 0.2) 0%, rgba(0, 229, 255, 0) 60%),
    radial-gradient(70% 60% at 82% 12%, rgba(177, 75, 255, 0.24) 0%, rgba(177, 75, 255, 0) 58%),
    linear-gradient(180deg, #07060d 0%, #100a1e 58%, #07060d 100%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(180deg, rgba(7, 6, 13, 0) 0%, rgba(7, 6, 13, 0.85) 72%, var(--ink) 100%);
  pointer-events: none; z-index: -1;
}

.hero-copy { max-width: 900px; }
.hero h1 {
  font-size: clamp(44px, 8.4vw, 116px);
  text-transform: uppercase;
  line-height: 0.86;
  margin: 0 0 22px;
  text-shadow: 0 0 60px rgba(255, 46, 136, 0.35);
}
.hero h1 span { display: block; }
.hero h1 .l3 { color: var(--paper); }
.hero h1 .l2 {
  background: linear-gradient(96deg, var(--magenta), var(--violet) 48%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(16px, 1.9vw, 21px); color: var(--muted); max-width: 56ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 34px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-stats div strong {
  display: block; font-family: var(--display); font-size: clamp(28px, 4vw, 44px);
  line-height: 1; color: var(--paper);
}
.hero-stats div span { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }

/* ── ticker ────────────────────────────────────────────────────────────── */
.ticker {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 46, 136, 0.1), rgba(0, 229, 255, 0.1));
  overflow: hidden; padding: 16px 0;
}
.ticker-track { display: flex; gap: 0; width: max-content; animation: slide 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span {
  font-family: var(--display); font-size: clamp(20px, 2.6vw, 32px);
  text-transform: uppercase; letter-spacing: 0.04em; padding-inline: 26px;
  white-space: nowrap; color: var(--paper);
}
.ticker span::after { content: "◆"; color: var(--magenta); margin-left: 26px; font-size: 0.5em; vertical-align: middle; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ── sections ──────────────────────────────────────────────────────────── */
section { padding: 108px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head h2 { margin-bottom: 18px; }

/* Reveal-on-scroll is opt-in: the .js class is set by an inline script in the
   head, so a crawler (or anyone with JS off, or a JS error before main.js runs)
   sees the whole page rather than a blank scroll. Hiding content by default and
   trusting an observer to un-hide it is how a page ends up invisible. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ── gallery ───────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.shot { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px;
  background: linear-gradient(180deg, rgba(7, 6, 13, 0) 0%, rgba(7, 6, 13, 0.9) 78%);
  font-family: var(--display); font-size: 19px; text-transform: uppercase; letter-spacing: 0.04em;
}
.shot-wide { grid-column: span 4; aspect-ratio: 16 / 9; }
.shot-tall { grid-column: span 2; aspect-ratio: 3 / 4; }
.shot-half { grid-column: span 3; aspect-ratio: 3 / 2; }
.shot-third { grid-column: span 2; aspect-ratio: 4 / 3; }

/* ── routing ───────────────────────────────────────────────────────────── */
.legs { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.leg {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  padding: 28px;
}
.leg h3 { margin-bottom: 6px; }
.leg .when { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.leg ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.leg li {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}

/* ── sponsorship ───────────────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tier {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  display: flex; flex-direction: column;
}
.tier.featured { border-color: rgba(255, 46, 136, 0.55); box-shadow: 0 24px 70px -34px rgba(255, 46, 136, 0.9); }
.tier .slots { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.tier.featured .slots { color: var(--magenta); }
.tier h3 { margin-bottom: 14px; }
.tier ul { list-style: none; margin: 0 0 24px; padding: 0; }
.tier li { padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 15px; color: var(--muted); }
.tier li::before { content: "▲"; position: absolute; left: 0; top: 10px; font-size: 10px; color: var(--magenta); }
.tier .ask { margin-top: auto; font-size: 13px; color: var(--muted-2); letter-spacing: 0.04em; }

/* ── partners ──────────────────────────────────────────────────────────── */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.partner {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  background: rgba(255, 255, 255, 0.03); text-align: center; text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.partner:hover { border-color: rgba(255, 46, 136, 0.5); transform: translateY(-3px); }
.partner img { height: 84px; width: auto; margin: 0 auto 18px; object-fit: contain; }
.partner strong { display: block; font-family: var(--display); font-size: 21px; text-transform: uppercase; margin-bottom: 8px; }
.partner span { font-size: 14px; color: var(--muted); }

/* ── split blocks ──────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.checks { list-style: none; margin: 22px 0 0; padding: 0; }
.checks li { padding: 10px 0 10px 30px; position: relative; color: var(--muted); }
.checks li::before { content: "▲"; position: absolute; left: 0; top: 12px; font-size: 11px; color: var(--cyan); }

/* ── contact ───────────────────────────────────────────────────────────── */
.contact {
  border: 1px solid var(--line); border-radius: 26px; padding: clamp(34px, 5vw, 68px);
  background:
    radial-gradient(90% 130% at 12% 0%, rgba(255, 46, 136, 0.22), rgba(255, 46, 136, 0) 60%),
    radial-gradient(80% 120% at 92% 100%, rgba(0, 229, 255, 0.2), rgba(0, 229, 255, 0) 58%),
    var(--ink-2);
  text-align: center;
}
.contact h2 { margin-bottom: 20px; }
.contact .lede { margin-inline: auto; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ── footer ────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 54px 0 40px; background: var(--ink-2); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--paper); }
.powered {
  margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}
.powered a { color: var(--gold); text-decoration: none; }

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot-wide, .shot-tall, .shot-half, .shot-third { grid-column: span 2; aspect-ratio: 16 / 10; }
}

@media (max-width: 940px) {
  .nav-links {
    position: fixed; inset: 84px 4vw auto 4vw; z-index: 70;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px;
    padding: 14px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; font-size: 15px; }
  .nav-toggle { display: block; }
}

@media (max-width: 767px) {
  section { padding: 76px 0; }
  .gallery { grid-template-columns: 1fr; }
  .shot-wide, .shot-tall, .shot-half, .shot-third { grid-column: span 1; aspect-ratio: 4 / 3; }
  .hero { padding: 108px 0 48px; }
  /* On a phone the ridge silhouette sits directly behind the paragraph, and
     mid-grey body copy over a magenta mountain face is unreadable. A local
     scrim behind the copy column fixes it without dimming the whole scene. */
  .hero-copy {
    background: linear-gradient(180deg, rgba(7, 6, 13, 0.72) 0%, rgba(7, 6, 13, 0.86) 46%, rgba(7, 6, 13, 0.72) 100%);
    padding: 26px 22px 28px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
  }
  .hero-sub { color: rgba(244, 241, 255, 0.78); }
  .hero-stats { gap: 20px 26px; margin-top: 30px; }
  .hero-stats div strong { font-size: 30px; }
}
