:root {
  --bg: #070503;
  --panel: rgba(21, 14, 8, .78);
  --panel-solid: #130d08;
  --text: #f3eadb;
  --muted: #b5a38b;
  --dim: #796b58;
  --gold: #f2ae47;
  --gold-2: #c47b2d;
  --red: #7b2418;
  --green: #a5d978;
  --line: rgba(242, 174, 71, .24);
  --shadow: 0 28px 90px rgba(0, 0, 0, .58);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 12%, rgba(123, 36, 24, .38), transparent 34rem),
    radial-gradient(circle at 14% 20%, rgba(196, 123, 45, .18), transparent 30rem),
    linear-gradient(180deg, #080604 0%, #060403 100%);
  font-family: var(--font);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 70%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.55) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(242,174,71,.35) 1px, transparent 1.6px);
  background-size: 170px 170px, 260px 260px;
  animation: drift 40s linear infinite;
  opacity: .25;
}

@keyframes drift { to { transform: translate3d(-170px, 170px, 0); } }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 86px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 92px);
  background: linear-gradient(180deg, rgba(7,5,3,.90), rgba(7,5,3,.62), transparent);
  backdrop-filter: blur(10px);
}

.brand img {
  width: clamp(86px, 10vw, 132px);
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); color: #c8b89f; }
.nav a { font-size: .95rem; opacity: .86; transition: color .18s ease, opacity .18s ease; }
.nav a:hover { color: var(--gold); opacity: 1; }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.15fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: 116px clamp(20px, 6vw, 96px) 58px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-copy { position: relative; z-index: 2; max-width: 660px; }
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  margin-bottom: clamp(22px, 3vw, 44px);
}
.status-line span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px rgba(165, 217, 120, .72);
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 28px;
  font-size: clamp(4rem, 9.5vw, 10.8rem);
  line-height: .78;
  letter-spacing: -.085em;
  font-weight: 900;
  max-width: 730px;
}
h1 span { display: block; }
h1 span + span { margin-top: clamp(22px, 3.1vw, 54px); }

.lead {
  max-width: 620px;
  font-size: clamp(1.08rem, 1.5vw, 1.45rem);
  line-height: 1.45;
  color: #f0e5d3;
  text-shadow: 0 2px 24px rgba(0,0,0,.58);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid var(--line);
  box-shadow: 0 15px 34px rgba(0,0,0,.28);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: #120a04; background: linear-gradient(135deg, #ffd174, #d96c24); border-color: rgba(255, 210, 116, .75); }
.button.ghost { background: rgba(7,5,3,.44); color: var(--text); }
.small-note { margin-top: 24px; color: var(--muted); font-family: var(--mono); font-size: .82rem; }

.video-deck {
  position: relative;
  z-index: 3;
  border: 1px solid var(--line);
  background: rgba(6, 4, 3, .64);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: min(66vh, 640px);
  align-self: stretch;
  max-height: 720px;
  margin-top: 18px;
}
.deck-top {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(41,25,12,.76), rgba(8,5,3,.62));
  color: var(--gold);
  font-family: var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .75rem;
}
.deck-top span { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--gold-2); }
.deck-top span:nth-child(2) { background: #e7bd52; }
.deck-top span:nth-child(3) { background: #92bf67; margin-right: 10px; }

.video-frame {
  position: relative;
  height: calc(100% - 50px);
  min-height: min(58vh, 590px);
  background:
    radial-gradient(circle at center, rgba(242,174,71,.16), transparent 30%),
    #040302;
  overflow: hidden;
}
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 48%, rgba(0,0,0,.46) 100%),
    linear-gradient(90deg, rgba(0,0,0,.28), transparent 22%, transparent 76%, rgba(0,0,0,.32));
  z-index: 8;
}
#heroVideo {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  filter: contrast(1.06) saturate(.95) brightness(.82);
  transition: opacity 1.4s ease, visibility 1.4s ease;
}
#heroVideo.video-ended { opacity: 0; visibility: hidden; }
.video-logo {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 9%;
  opacity: 0;
  transform: scale(.98);
  transition: opacity 1.4s ease, transform 1.4s ease;
}
.video-logo img { width: min(78%, 720px); filter: drop-shadow(0 24px 70px rgba(0,0,0,.72)); }
.video-frame.video-ended .video-logo { opacity: .92; transform: scale(1); }
.replay {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  border: 1px solid var(--line);
  background: rgba(10,7,4,.72);
  color: var(--gold);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  opacity: 0;
  transition: opacity .35s ease, transform .18s ease;
}
.video-frame.video-ended .replay { opacity: 1; }
.replay:hover { transform: translateY(-2px); }

.section { padding: clamp(70px, 9vw, 130px) clamp(20px, 6vw, 96px); position: relative; }
.section-kicker {
  font-family: var(--mono);
  color: var(--gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 18px;
}
.section h2 { font-size: clamp(2.4rem, 5.5vw, 6rem); line-height: .92; letter-spacing: -.06em; margin-bottom: 24px; }
.two-col { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.story p, .manifesto p, .moments-head p, .join p { color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.25rem); line-height: 1.7; }

.split-card, .join-panel {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(31,18,8,.82), rgba(8,5,3,.72));
  border-radius: 30px;
  padding: clamp(24px, 5vw, 72px);
  box-shadow: var(--shadow);
}
.split-card { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.signal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.signal-list li {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(242,174,71,.16);
  background: rgba(0,0,0,.22);
  border-radius: 18px;
}
.signal-list b { color: var(--text); }
.signal-list span { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.card {
  min-height: 260px;
  border: 1px solid rgba(242,174,71,.18);
  background: linear-gradient(180deg, rgba(24,15,8,.78), rgba(9,6,4,.72));
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(242,174,71,.42); }
.card-num { color: var(--gold); font-family: var(--mono); font-size: .78rem; }
.card h3 { font-size: 1.35rem; margin: 46px 0 14px; }
.card p { color: var(--muted); line-height: 1.6; }

.moments-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.moments-head h2 { margin: 0; }
.moments-head p { max-width: 540px; margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shot {
  position: relative;
  min-height: 260px;
  border: 1px solid rgba(242,174,71,.16);
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  background: #100b07;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 24px 50px rgba(0,0,0,.32);
}
.shot.wide { grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.05) brightness(.72); transition: transform .4s ease, filter .4s ease; }
.shot:hover img { transform: scale(1.045); filter: saturate(1) contrast(1.08) brightness(.86); }
.shot span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(5,3,2,.72);
  border: 1px solid rgba(242,174,71,.22);
  color: var(--gold);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
}

.join-panel { display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.join-actions { display: grid; justify-items: start; gap: 18px; min-width: 260px; }
.ingame { color: var(--muted); }
.ingame b { color: var(--text); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 42px clamp(20px, 6vw, 96px);
  border-top: 1px solid rgba(242,174,71,.14);
  color: var(--muted);
}
.footer strong { color: var(--text); }
.footer p { margin: 6px 0 0; }
.legal { max-width: 720px; font-size: .86rem; line-height: 1.55; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.88);
  display: none;
  place-items: center;
  padding: 28px;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 18px; box-shadow: var(--shadow); }
.lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  border: 1px solid var(--line);
  background: rgba(10,7,4,.82);
  color: var(--gold);
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
}

[data-watch] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
[data-watch].visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: 112px; }
  .hero-copy { max-width: 820px; }
  h1 { font-size: clamp(4.2rem, 14vw, 8rem); }
  .video-deck { min-height: 520px; }
  .two-col, .split-card { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .join-panel, .moments-head, .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .site-header { height: auto; align-items: flex-start; }
  .nav { display: none; }
  .hero { padding-top: 100px; }
  h1 { font-size: clamp(3.8rem, 20vw, 6rem); letter-spacing: -.075em; }
  .video-deck { min-height: 380px; border-radius: 20px; }
  .video-frame { min-height: 330px; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .shot.wide { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* v4 video panel fix */
.hero {
  grid-template-columns: minmax(320px, 0.88fr) minmax(620px, 1.22fr) !important;
  gap: clamp(28px, 4vw, 56px) !important;
  align-items: center !important;
}

.video-deck {
  width: 100% !important;
  max-width: 980px !important;
  justify-self: end !important;
  align-self: center !important;
  min-height: auto !important;
  max-height: none !important;
}

.deck-top {
  justify-content: flex-start !important;
  padding: 0 18px !important;
}

.video-frame {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  background:
    radial-gradient(circle at center, rgba(242,174,71,.10), transparent 32%),
    #050403 !important;
}

#heroVideo {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #050403 !important;
  filter: contrast(1.04) saturate(.96) brightness(.90) !important;
}

.video-logo img {
  width: min(62%, 520px) !important;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr !important;
  }

  .video-deck {
    max-width: 100% !important;
    justify-self: stretch !important;
  }

  .video-frame {
    aspect-ratio: 16 / 9 !important;
  }
}
