/* Pulser Systems */
:root {
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --dim: #6a6a6a;
  --wood: #c4a06a;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
}
html::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari, Edge */
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.scrolled {
  border-bottom-color: rgba(255,255,255,0.08);
  background: rgba(10, 10, 10, 0.92);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.nav-brand img { width: 28px; height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a !important;
  font-weight: 600;
  font-size: 13px;
}
.nav-cta:hover { opacity: 0.9; }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: #0a0a0a;
    padding: 20px 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 16px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.primary { background: #fff; color: #0a0a0a; }
.primary:hover { background: #e8e8e8; }
.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
}
.ghost:hover { background: rgba(255,255,255,0.05); }

/* ===== Stage: sticky viewport, scroll changes content in place ===== */
.stage {
  height: 450vh;
  background: #0a0a0a;
}

.stage-view {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #0a0a0a;
}

.panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.panel-inner {
  width: 100%;
  max-width: 900px;
  padding: 0 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Wider for team / about so they use the screen */
.panel[data-i="2"] .panel-inner,
.panel[data-i="3"] .panel-inner {
  max-width: 1100px;
}

/* Logo — hard size limit so it never grows */
.logo {
  width: 96px;
  height: auto;
  max-width: 96px;
  max-height: 96px;
  margin-bottom: 8px;
}

.panel-inner h1 {
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.motto {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
}

.panel-inner h2 {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}

.sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 8px;
}

.games-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 20px;
  flex-wrap: wrap;
}
.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.game-card:hover {
  transform: translateY(-4px);
}
.game-card img {
  width: 260px;
  height: 346px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  filter: drop-shadow(0 14px 32px rgba(0,0,0,0.45));
  flex-shrink: 0;
}
.delve-icon {
  width: 260px;
  height: 346px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
}
.lock-icon {
  background: #161616;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
}
.game-card-soon {
  cursor: default;
}
.game-card-soon:hover {
  transform: none;
}
.game-card em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Team */
.team-card {
  display: flex;
  gap: 32px;
  align-items: center;
  text-align: left;
  background: linear-gradient(160deg, #1a1a1a 0%, #0e0e0e 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 40px;
  margin-top: 24px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--wood), transparent);
}
.avatar {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: #fff;
  color: #0a0a0a;
  font-weight: 800;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.team-card h3 {
  font-size: 24px;
  font-weight: 750;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.role {
  font-size: 14px;
  font-weight: 600;
  color: var(--wood);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.bio {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 420px;
}

/* About */
.motto-lg {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
}
.about {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 8px 0 12px;
  max-width: 560px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 12px;
}

/* Hint */
.hint {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  pointer-events: none;
  transition: opacity 0.4s;
}
.hint.gone { opacity: 0; }

/* ===== Game page (Hexstead) ===== */
.page {
  padding-top: 80px;
  min-height: 100vh;
}

.game-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px 64px;
  gap: 10px;
}

.game-hero-icon {
  width: min(260px, 65vw);
  height: auto;
  max-height: 340px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 20px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
}

.game-hero h1 {
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.tagline {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  max-width: 420px;
}

.release {
  font-size: 14px;
  color: var(--dim);
  margin: 6px 0 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.tags span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 7px 14px;
  border-radius: 999px;
}

.page-section {
  padding: 72px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.page-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.page-section h2 {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 0 32px;
}
.section-lead {
  color: var(--muted);
  margin-bottom: 24px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.feature-row div {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 22px 20px;
}
.feature-row h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 8px;
}
.feature-row p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.media-grid figure {
  margin: 0;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s, border-color 0.2s;
}
.media-grid figure:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.16);
}
.media-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.media-grid figcaption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
}

.updates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.updates article {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 22px;
  transition: border-color 0.2s;
}
.updates article:hover {
  border-color: rgba(255,255,255,0.16);
}
.updates h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}
.updates .date {
  font-size: 13px;
  color: var(--dim);
  margin: 0 0 12px;
}
.updates ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.updates li { margin-bottom: 6px; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 8px;
}

.page-section.cta {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02));
}
.page-section.cta .page-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.page-section.cta p {
  margin: 0;
  color: var(--muted);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: #161616;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}
.modal-card h3 {
  font-size: 20px;
  margin: 0 0 12px;
}
.modal-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 24px;
  background: #0a0a0a;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}
.footer-brand img { width: 22px; height: auto; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  width: 100%;
  font-size: 12px;
  color: var(--dim);
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .stage { height: auto; }
  .stage-view { position: relative; height: auto; }
  .panel {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    height: auto;
    min-height: 80vh;
    padding: 100px 0;
  }
  .hint { display: none; }
}

.roadmap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  width: 100%;
  max-width: 560px;
  text-align: left;
}
.rm-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 18px;
}
.rm-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 5px;
  background: var(--dim);
}
.rm-item.done .rm-dot { background: #6dbf7a; }
.rm-item.now .rm-dot { background: #e0a050; }
.rm-item.later .rm-dot { background: #5a5a5a; }
.rm-item h3 {
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 4px;
}
.rm-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  width: 100%;
  max-width: 700px;
  text-align: left;
}
.faq div {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px 16px;
}
.faq h3 {
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 6px;
}
.faq p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
@media (max-width: 600px) {
  .faq { grid-template-columns: 1fr; }
}
.media-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
  width: 100%;
  max-width: 1200px;
}
.media-grid-compact figure {
  margin: 0;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.media-grid-compact img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.media-grid-compact figcaption {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--muted);
}

.updates-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.updates-compact {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 12px 28px 16px 8px;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 92%, transparent 100%);
}
.updates-compact::-webkit-scrollbar {
  display: none;
}
.updates-compact article {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 22px;
  text-align: left;
}
.updates-arrow {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform 0.2s, background 0.2s;
  margin-left: 4px;
}
.updates-arrow:hover {
  transform: scale(1.08);
  background: #f0f0f0;
}
.updates-arrow:active {
  transform: scale(0.96);
}
.updates-compact h3 {
  font-size: 17px;
  margin: 0 0 4px;
}
.updates-compact .date {
  font-size: 13px;
  color: var(--dim);
  margin: 0 0 10px;
}
.updates-compact ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
}
.updates-compact li { margin-bottom: 6px; }

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
  width: 100%;
  max-width: 1000px;
}
.feature-row div {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px 22px;
  text-align: left;
}
.feature-row h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 8px;
}
.feature-row p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.hero-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  width: 100%;
  max-width: 1200px;
  padding: 0 40px;
  text-align: left;
}
.hero-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hero-info h1 {
  font-size: clamp(52px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}
.hero-info .tagline {
  font-size: 22px;
  text-align: left;
  max-width: 420px;
}
.hero-info .release {
  font-size: 16px;
}
.hero-info .tags {
  justify-content: flex-start;
  margin-top: 8px;
}
.game-hero-icon {
  width: min(380px, 42vw);
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 24px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .hero-split {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .hero-info {
    align-items: center;
  }
  .hero-info .tagline,
  .hero-info .tags {
    text-align: center;
    justify-content: center;
  }
}

.panel-inner .lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 640px;
  margin: 0;
}

@media (max-width: 700px) {
  .media-grid-compact,
  .updates-compact,
  .feature-row {
    grid-template-columns: 1fr;
  }
}
