@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/bebas-neue.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/oswald.woff2") format("woff2");
}
@font-face {
  font-family: "Share Tech Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/share-tech-mono.woff2") format("woff2");
}

:root {
  --black: #07080a;
  --charcoal: #121418;
  --ink: #1c1f25;
  --moon: #9aa3ad;
  --blue: #6d7f93;
  --paper: #ece7de;
  --dim: rgba(236, 231, 222, 0.55);
  --line: rgba(236, 231, 222, 0.14);
  --green: #00c805;
  --green-dim: #00c80522;
  --danger: #c45a4a;
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --ui: "Oswald", "Arial Narrow", sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
  --space: clamp(1.25rem, 4vw, 4.5rem);
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--ui);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
iframe { border: 0; width: 100%; height: 100%; }

body {
  overflow-x: hidden;
  min-height: 100%;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("img/grain.png");
  background-size: 220px;
  animation: grain 0.45s steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-12px, 8px); }
  50% { transform: translate(8px, -14px); }
  75% { transform: translate(14px, 6px); }
  100% { transform: translate(0, 0); }
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #000; padding: 0.5rem 1rem; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 8, 10, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  line-height: 1;
}
.brand-logo,
.hero-logo,
.footer-logo {
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: #f2f2f2;
  flex-shrink: 0;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
}
.hero-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
}
.footer-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.1rem;
  border: 1px solid var(--line);
}
.night-clock {
  display: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--moon);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--dim);
}
.nav-links a:hover { color: var(--paper); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--paper);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-links .btn-green { color: #041204; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.25rem;
  border: 1px solid var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--paper); color: var(--black); }
.btn-green {
  border-color: var(--green);
  background: var(--green);
  color: #041204;
}
.btn-green:hover { filter: brightness(1.08); color: #041204; background: var(--green); }
.btn-ghost { border-color: var(--line); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  overflow: hidden;
  color: var(--paper);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(0.72) contrast(1.08) brightness(0.72);
}
.hero-fg { display: none; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7,8,10,0.96) 0%, rgba(7,8,10,0.28) 46%, rgba(7,8,10,0.45) 100%),
    radial-gradient(120% 80% at 50% 20%, transparent 30%, rgba(7,8,10,0.55) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 2rem));
  padding: 0 0 4.5rem;
  text-align: center;
}
.kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--moon);
  margin-bottom: 0.8rem;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.6rem, 18vw, 13.5rem);
  line-height: 0.82;
  letter-spacing: 0.02em;
  font-weight: 400;
  text-shadow: 0 8px 40px rgba(0,0,0,0.55);
}
.tag {
  margin: 0.35rem 0 1.6rem;
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  letter-spacing: 0.42em;
  color: var(--paper);
}
.hero .btn-row { justify-content: center; }
.ca-pill {
  margin: 1.25rem auto 0;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 100%;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: none;
}
.ca-pill b {
  font-weight: 400;
  color: var(--moon);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.ca-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca-pill button {
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  text-transform: uppercase;
}
.ca-pill button:hover { border-color: var(--paper); }

/* ---------- TICKER ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0b0d10;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  padding: 0.85rem 0;
  animation: marquee 38s linear infinite;
}
.ticker-track span {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--moon);
}
.ticker-track span em {
  font-style: normal;
  color: var(--green);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- SECTIONS ---------- */
.section {
  position: relative;
  padding: calc(var(--space) * 1.35) var(--space);
}
.section-head {
  margin-bottom: clamp(1.5rem, 4vw, 2.8rem);
}
.section-head .kicker { margin-bottom: 0.4rem; }
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.lore {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
}
.lore-copy h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
  font-weight: 400;
}
.lore-copy p {
  margin: 0 0 1rem;
  max-width: 36em;
  font-size: 0.95rem;
  line-height: 1.65;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}
.lore-copy p strong { color: var(--paper); font-weight: 500; }
.lexicon {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.6rem;
}
.lex-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-align: left;
  width: 100%;
}
.lex-item:last-child { border-bottom: 1px solid var(--line); }
.lex-item:hover { color: var(--green); }
.lex-item span:last-child { color: var(--moon); }
.lore-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 520px;
  height: 100%;
  background: #000;
}
.lore-frame video,
.lore-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 520px;
  filter: saturate(0.8) contrast(1.05);
}
.lore-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.lore-frame figcaption b {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  font-weight: 400;
}
.lore-frame figcaption small {
  color: var(--moon);
  letter-spacing: 0.22em;
  font-size: 0.68rem;
}

/* ---------- SIGHTINGS ---------- */
.sightings { background: #090a0c; }
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
}
.sight {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  min-height: 280px;
  color: var(--paper);
  cursor: pointer;
}
.sight img,
.sight video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sight video { opacity: 1; }
.sight .cap {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0));
}
.sight .cap small {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  color: var(--moon);
  margin-bottom: 0.25rem;
}
.sight .cap b {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: 0.06em;
  font-weight: 400;
  line-height: 1;
}
.span-6 { grid-column: span 6; min-height: 420px; }
.span-4 { grid-column: span 4; min-height: 420px; }
.span-3 { grid-column: span 3; min-height: 300px; }
.span-8 { grid-column: span 8; min-height: 380px; }
.span-12 { grid-column: span 12; min-height: 460px; }

/* ---------- METER ---------- */
.meter-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: start;
}
.stamp {
  margin: 1.4rem 0 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--moon);
}
.meter-panel,
.pose-panel {
  border: 1px solid var(--line);
  background: var(--charcoal);
}
.meter-panel { padding: 1.6rem 1.5rem 1.5rem; }
.meter-panel h3 {
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  font-weight: 400;
}
.meter-bar {
  position: relative;
  height: 22px;
  border: 1px solid var(--green);
  background: #061106;
  overflow: hidden;
}
.meter-bar > i {
  display: block;
  height: 100%;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0 10px,
    transparent 10px 14px
  );
}
.meter-read {
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--green);
}
.meter-panel p {
  margin: 1.3rem 0 1.4rem;
  color: var(--dim);
  letter-spacing: 0.16em;
  line-height: 1.6;
  font-size: 0.85rem;
}
.pose-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #000;
}
.pose-panel img,
.pose-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
}
.pose-panel video { z-index: 1; opacity: 0; }
.pose-panel.is-live video { opacity: 1; }
[hidden] { display: none !important; }
.pose-panel .cap {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.pose-panel .cap b {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  font-weight: 400;
}
.pose-panel .cap small {
  color: var(--moon);
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

/* ---------- ENTER ---------- */
.enter { background: #0b0c0f; }
.steps {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.num {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--blue);
}
.step h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  font-weight: 500;
}
.step p {
  margin: 0;
  color: var(--dim);
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

/* ---------- CHART ---------- */
.chart-box {
  max-width: 1280px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #000;
  min-height: 520px;
  position: relative;
}
.chart-box iframe { min-height: 520px; }
.chart-empty {
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(109,127,147,0.16), transparent 42%),
    #000;
}
.moon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  background: radial-gradient(circle at 32% 30%, #e4e8ee, #8a95a2 46%, #2a3038 78%);
  box-shadow: 0 0 48px rgba(154,163,173,0.28);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}
.chart-empty p {
  margin: 0;
  letter-spacing: 0.22em;
  color: var(--moon);
  font-size: 0.85rem;
}

/* ---------- FOOTER ---------- */
.finale {
  position: relative;
  min-height: 88svh;
  display: grid;
  place-items: end center;
  overflow: hidden;
}
.finale-media {
  position: absolute;
  inset: 0;
}
.finale-media img,
.finale-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: saturate(0.55) brightness(0.42);
}
.finale-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,8,10,0.96) 0%, rgba(7,8,10,0.35) 55%, rgba(7,8,10,0.55) 100%);
}
.finale-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.25rem 3.5rem;
  width: min(900px, 100%);
}
.finale-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.9;
  font-weight: 400;
}
.finale-copy .mark {
  margin: 0.4rem 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.12em;
}
.legal {
  margin: 2.2rem auto 0;
  max-width: 52em;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  line-height: 1.7;
  color: rgba(236,231,222,0.38);
  text-transform: uppercase;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 90;
  padding: 0.7rem 1rem;
  border: 1px solid var(--green);
  background: #041204;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.toast.is-on {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .night-clock { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7,8,10,0.96);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 0 1rem;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 0.85rem 1.25rem; }
  .nav-links .btn { margin: 0.35rem 1.25rem 0.5rem; }
  .lore, .meter-wrap { grid-template-columns: 1fr; }
  .span-6, .span-8, .span-4, .span-3, .span-12 { grid-column: span 6; min-height: 360px; }
  .lore-frame, .lore-frame video, .lore-frame img { min-height: 420px; }
  .hero h1 { font-size: clamp(4.2rem, 22vw, 8rem); }
  .pose-panel { min-height: 420px; }
}

@media (min-width: 901px) {
  .night-clock { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
  .hero-bg {
    filter: saturate(0.5) contrast(1.05) brightness(0.32) blur(12px);
    transform: scale(1.12);
  }
  .hero-fg {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: auto;
    max-width: 52vw;
    transform: translateX(-50%);
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: 50% 40%;
    filter: saturate(0.8) contrast(1.08) brightness(0.78);
  }
}

@media (max-width: 620px) {
  .span-6, .span-8, .span-4, .span-3, .span-12 { grid-column: span 12; }
  .ca-pill { flex-wrap: wrap; justify-content: center; }
  .tag { letter-spacing: 0.22em; }
  .hero-copy { padding-bottom: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .ticker-track, .moon { animation: none; }
  html { scroll-behavior: auto; }
}
