/* Palette pulled from the Farplane artwork:
   night sky navy, ember orange, molten gold, marble ivory, lake teal. */
:root {
  --night: #0b1020;
  --night-2: #121a33;
  --night-3: #1b2547;
  --ember: #ff7a1a;
  --flame: #d9431e;
  --gold: #ffc56b;
  --ivory: #f6ead2;
  --teal: #7fd6d0;
  --text: #e9e1d2;
  --muted: #a9a3b4;
  --line: rgba(255, 197, 107, 0.18);

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--ivory); line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: .04em; }
p { margin: 0 0 1em; }

.eyebrow {
  font: 600 .78rem/1 var(--body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font: 600 .95rem/1 var(--body);
  letter-spacing: .04em;
  text-decoration: none;
  color: #1a0d04;
  background: linear-gradient(135deg, var(--gold), var(--ember) 60%, var(--flame));
  box-shadow: 0 0 0 1px rgba(255, 197, 107, .4), 0 8px 30px -6px rgba(255, 122, 26, .6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 197, 107, .7), 0 12px 40px -6px rgba(255, 122, 26, .85); }
.btn:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.btn--ghost {
  color: var(--ivory);
  background: rgba(11, 16, 32, .35);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(246, 234, 210, .45);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.btn--small { padding: .6rem 1.1rem; font-size: .85rem; }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem clamp(16px, 4vw, 40px);
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
  background: rgba(11, 16, 32, .82);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand {
  display: flex; align-items: center; gap: .6rem;
  font: 700 1.1rem/1 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
}
.nav__brand img { border-radius: 50%; }
.nav__links { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 2rem); }
.nav__links a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .06em;
}
.nav__links a:not(.btn):hover { color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  max-height: 1000px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg, .hero__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  z-index: -2;
}
.hero__bg img { animation: drift 30s ease-in-out infinite alternate; }
/* looping YouTube background; the hero image underneath shows while it loads */
.hero__video { position: absolute; inset: 0; overflow: hidden; z-index: -2; opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  border: 0; pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(11, 16, 32, .15), rgba(11, 16, 32, .55) 70%),
    linear-gradient(to bottom, rgba(11, 16, 32, .55), transparent 25%, transparent 70%, var(--night));
}
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__content { padding: 6rem 16px 4rem; }
.hero__title {
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(180deg, #fff8e8 0%, var(--ivory) 35%, var(--gold) 70%, #e9963f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 150, 50, .55)) drop-shadow(0 4px 2px rgba(0, 0, 0, .45));
}
.hero__sub {
  display: inline-flex; align-items: center; gap: 1rem;
  font: 500 clamp(.9rem, 2.2vw, 1.35rem)/1 var(--display);
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ivory);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
  margin: .4rem 0 1.4rem;
}
.hero__sub::before, .hero__sub::after {
  content: ""; width: clamp(24px, 6vw, 70px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero__sub::after { transform: scaleX(-1); }
.hero__sub .dot { color: var(--ember); font-size: .6em; letter-spacing: 0; }
.hero__tag {
  max-width: 34rem; margin: 0 auto 2rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--ivory);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero__scroll {
  position: absolute; bottom: 1.8rem; left: 50%; translate: -50% 0;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(246, 234, 210, .6); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; translate: -50% 0;
  width: 4px; height: 8px; border-radius: 2px; background: var(--gold);
  animation: scroll 1.8s ease-in-out infinite;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7.5rem) clamp(16px, 4vw, 40px);
}
.section__head { text-align: center; margin-bottom: 3rem; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__emblem img {
  height: auto;
  aspect-ratio: 1;
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), 0 0 80px -10px rgba(255, 122, 26, .55);
}
.about__text p:not(.eyebrow) { color: var(--text); max-width: 36rem; }

.adventures { position: relative; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--night-3), var(--night-2));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(255, 197, 107, .45), 0 20px 40px -20px rgba(255, 122, 26, .45);
}
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card__icon {
  width: 46px; height: 46px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, .25), transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 197, 107, .35);
}
.card__icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--gold); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.banner {
  position: relative;
  height: clamp(220px, 40vw, 460px);
  overflow: hidden;
}
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.banner__flow {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity .8s ease;
}
.banner__flow.is-ready { opacity: 1; }
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--night), transparent 30%, transparent 70%, var(--night));
}

.join {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.join__video {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(127, 214, 208, .35), 0 0 60px -20px rgba(255, 122, 26, .4);
}
.join__video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 2rem; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 1.1rem 3rem;
  color: var(--muted);
}
.steps li strong { color: var(--ivory); font-weight: 600; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -.1rem;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  font: 700 .9rem/1 var(--display);
  color: var(--gold);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 197, 107, .5);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(16px, 4vw, 40px);
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
}
.footer__brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 700 .95rem/1 var(--display);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 1rem;
}
.footer__brand img { border-radius: 50%; }
.footer__legal { max-width: 40rem; margin: 0 auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1%, -1%); } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 820px) {
  .about, .join { grid-template-columns: 1fr; }
  .about__emblem { max-width: 320px; margin: 0 auto; }
  .join__text { order: -1; }
}
@media (max-width: 520px) {
  .nav__links a:not(.btn) { display: none; }
  .hero__sub { letter-spacing: .22em; gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg img, .hero__scroll span { animation: none; }
  .hero__video { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
