/* ============================================================
   Indicator Studios site stylesheet
   Deep navy-black base, cyan to indigo accent, art-forward hero
   ============================================================ */

:root {
  --bg: #070810;
  --bg-2: #0a0c14;
  --panel: #0d0f1a;
  --panel-2: #11141f;
  --line: rgba(148, 163, 199, 0.13);
  --txt: #eef1f7;
  --dim: #97a0b5;
  --dim-2: #6b7488;
  --cyan: #38e1ff;
  --indigo: #5b7cfa;
  --grad: linear-gradient(100deg, var(--cyan), var(--indigo));
  --radius: 18px;
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Barlow Condensed", "Inter", "Segoe UI", system-ui, sans-serif;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--grad); color: #04060c; font-weight: 700;
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 200;
}
.skip:focus { left: 0; }

::selection { background: rgba(91, 124, 250, 0.45); }

h1, h2, h3 { line-height: 1.04; letter-spacing: 0; font-weight: 800; font-family: var(--font-display); }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 14px;
}
.section-sub { color: var(--dim); max-width: 560px; margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 28px; border-radius: 14px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
              border-color 0.18s ease, color 0.18s ease;
}
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-grad {
  background: var(--grad); color: #04060c;
  box-shadow: 0 8px 28px rgba(56, 225, 255, 0.2);
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(86, 140, 255, 0.34); }
.btn-dark {
  background: #10131f; color: var(--txt);
  border-color: rgba(148, 163, 199, 0.22);
}
.btn-dark:hover {
  transform: translateY(-2px);
  background: #161a2a; border-color: rgba(148, 163, 199, 0.4);
}
.btn-primary {
  background: var(--grad); color: #04060c;
  box-shadow: 0 8px 28px rgba(56, 225, 255, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(86, 140, 255, 0.34); }
.btn-ghost {
  border-color: var(--line); color: var(--txt); background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: rgba(148, 163, 199, 0.4); background: rgba(255, 255, 255, 0.05); }

/* ---------- nav (solid full-width bar) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(7, 8, 16, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}
.nav.scrolled { background: rgba(7, 8, 16, 0.97); }
/* nav spans the full viewport width: brand hard left, links + pill hard right */
.nav .container {
  width: auto; max-width: none; margin: 0;
  padding: 0 clamp(20px, 3vw, 40px);
}
.nav-inner { display: flex; align-items: center; gap: 30px; height: 80px; }

/* brand image label */
.brand-logo { display: block; height: 56px; width: auto; }

/* brand wordmark lockup (footer) */
.brand {
  display: inline-flex; align-items: center;
  margin-right: auto; padding: 4px 0; 
}
.brand-lockup { display: inline-flex; align-items: baseline; gap: 10px; }
.brand-line1 {
  font-size: 24px; font-weight: 800; letter-spacing: 0.03em;
  line-height: 1; white-space: nowrap;
}
.brand-line2 {
  font-size: 24px; font-weight: 800; letter-spacing: 0.03em;
  line-height: 1; white-space: nowrap;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* links with animated underline */
.nav-links { display: flex; gap: 40px; }
.nav-links a {
  position: relative;
  font-size: 14px; font-weight: 500; color: var(--txt);
  padding: 6px 2px;
  transition: color 0.18s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:hover { color: var(--txt); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  border-radius: 999px;
  padding: 12px 16px;
  line-height: 20px;
  font-weight: 500;
  height: 44px;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 6px; align-items: center;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--txt); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero (art backdrop + big type) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 118px 0 72px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-backdrop {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: brightness(0.34) saturate(0.88);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(7, 8, 16, 0.94) 0%,
    rgba(7, 8, 16, 0.72) 46%,
    rgba(7, 8, 16, 0.5) 100%);
}
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 180px;
  background: linear-gradient(transparent, var(--bg));
}

/* tilted art tiles removed: the backdrop alone carries the hero art */

.hero-inner {
  position: relative; max-width: 900px;
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.hero-title {
  font-size: clamp(30px, 4.6vw, 68px);
  letter-spacing: -0.01em; line-height: 1.06;
  margin-bottom: 18px;
}
.title-line1 { white-space: nowrap; }
.title-line2 { display: inline-block; font-size: 0.68em; white-space: nowrap; }
.lede {
  color: var(--dim); font-size: clamp(16px, 1.6vw, 18px);
  max-width: none; margin-bottom: 26px;
}
@media (min-width: 760px) {
  .lede { white-space: nowrap; }
}

.hero-stats {
  display: flex; gap: clamp(26px, 4vw, 56px); flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.hstat-num {
  display: block; font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 800;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.hstat-label {
  display: block; margin-top: 3px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--dim-2);
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-ctas .btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- sections ---------- */
.section { padding: 110px 0; scroll-margin-top: 70px; }
.section-tight { padding: 80px 0 110px; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 48px; }

/* ---------- experiences (portfolio-style grid) ---------- */
#games .section-head { text-align: center; }
#games .section-sub { margin-left: auto; margin-right: auto; }

.exp-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.exp-card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.exp-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 124, 250, 0.5);
  box-shadow: var(--shadow-lg);
}
/* game card: cinematic art with glass overlays */
.exp-art {
  position: relative; display: block;
  aspect-ratio: 21 / 9.5; overflow: hidden; background: #10131f;
}
.exp-art img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.exp-card:hover .exp-art img { transform: scale(1.04); }
.exp-art::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 16, 0.78));
}
.exp-chips {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(10, 13, 22, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13px; font-weight: 600; color: var(--txt);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chip .count { font-weight: 800; }
.chip svg { width: 13px; height: 13px; color: var(--dim); flex: none; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #31d158; flex: none;
  animation: livepulse 1.8s infinite;
}
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(49, 209, 88, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(49, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(49, 209, 88, 0); }
}
.exp-play {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(10, 13, 22, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}
.exp-play svg { width: 16px; height: 16px; color: var(--txt); transition: color 0.2s ease; }
.exp-card:hover .exp-play {
  background: var(--grad); transform: scale(1.06);
}
.exp-card:hover .exp-play svg { color: #04060c; }
.exp-body { padding: 18px 22px 20px; }
.exp-body h3 { font-size: clamp(22px, 2.2vw, 27px); }
/* acquisition slot */
.exp-cta {
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(91, 124, 250, 0.12), transparent 55%),
    radial-gradient(80% 120% at 0% 100%, rgba(56, 225, 255, 0.07), transparent 55%),
    var(--panel);
  border-color: rgba(91, 124, 250, 0.28);
}
.exp-cta-inner {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 4px; padding: 30px 34px;
}
.cta-badge {
  width: 56px; height: 56px; border-radius: 17px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--grad);
  box-shadow: 0 10px 30px rgba(86, 140, 255, 0.3);
}
.cta-badge svg { width: 26px; height: 26px; color: #04060c; }
.exp-cta-inner h3 { font-size: clamp(20px, 2vw, 24px); }
.exp-cta-inner p { color: var(--dim); font-size: 14.5px; margin: 6px 0 20px; max-width: 34ch; }

@media (max-width: 900px) {
  .exp-grid { grid-template-columns: 1fr; }
  .exp-art { aspect-ratio: 16 / 9; }
}

/* ---------- games (legacy card styles) ---------- */
.games-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.game-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 124, 250, 0.45);
  box-shadow: var(--shadow-lg);
}
.art {
  position: relative; aspect-ratio: 16 / 9.5; overflow: hidden;
}
.art::before {  /* pattern layer */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(500px) rotateX(38deg) scale(1.6) translateY(18%);
  transform-origin: center 20%;
}
.art::after {  /* horizon glow */
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(transparent, rgba(7, 8, 16, 0.9));
}
.art-index {
  position: absolute; right: 18px; bottom: 10px; z-index: 1;
  font-size: 64px; font-weight: 800; letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.16);
}
.game-card:hover .art-index { color: rgba(255, 255, 255, 0.28); }

.art-a { background: radial-gradient(120% 130% at 18% 12%, #123a5e 0%, #0a1440 45%, #060917 100%); }
.art-b { background: radial-gradient(120% 130% at 82% 10%, #46146e 0%, #250a4a 45%, #0a0716 100%); }
.art-c { background: radial-gradient(120% 130% at 50% 100%, #0c4a3a 0%, #07231f 50%, #061014 100%); }

.game-body { padding: 22px 24px 24px; }
.game-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(56, 225, 255, 0.25);
  padding: 4px 10px; border-radius: 999px;
}
.game-body p { color: var(--dim); font-size: 15px; margin-top: 10px; }
.game-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.pill {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px;
}
.pill-dev { color: #ffd166; background: rgba(255, 209, 102, 0.09); border: 1px solid rgba(255, 209, 102, 0.25); }
.pill-live { color: #31d158; background: rgba(49, 209, 88, 0.09); border: 1px solid rgba(49, 209, 88, 0.3); }
.pill-concept { color: var(--dim); background: rgba(148, 163, 199, 0.08); border: 1px solid var(--line); }
.game-link { font-size: 14px; font-weight: 700; color: var(--txt); }
.game-link span { transition: transform 0.18s ease; display: inline-block; }
.game-link:hover { color: var(--cyan); }
.game-link:hover span { transform: translate(2px, -2px); }

.games-note { text-align: center; color: var(--dim-2); margin-top: 40px; font-size: 15px; }
.games-note a { color: var(--dim); border-bottom: 1px solid var(--line); }
.games-note a:hover { color: var(--cyan); }

/* featured game card (real game art) */
.game-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}
.game-card.featured .art { aspect-ratio: auto; min-height: 320px; }
.art-game::before { content: none; }
.art-game::after { content: none; }
.art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-card.featured .game-body {
  padding: clamp(26px, 4vw, 44px);
  display: flex; flex-direction: column; justify-content: center;
}
.game-card.featured h3 { font-size: clamp(26px, 3.2vw, 36px); }
.game-card.featured .game-body > p { font-size: 16.5px; max-width: 48ch; }
.game-body b { color: var(--txt); }

@media (max-width: 820px) {
  .game-card.featured { grid-template-columns: 1fr; }
  .game-card.featured .art { aspect-ratio: 16 / 9.5; min-height: 0; }
}

/* ---------- communities (card style, sibling of experiences) ---------- */
#community .section-head { text-align: center; }
#community .section-sub { margin-left: auto; margin-right: auto; }

.comm-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 22px;
}
.comm-card {
  width: min(320px, 100%); aspect-ratio: 1 / 1;
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.comm-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 124, 250, 0.5);
  box-shadow: var(--shadow-lg);
}
.comm-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 26px;
}
.comm-emblem {
  width: 96px; height: 96px; flex: none;
  border-radius: 26px; border: 1px solid var(--line);
  background: #10131f;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.comm-identity { display: grid; gap: 10px; justify-items: center; }
.comm-identity h3 { font-size: clamp(19px, 2vw, 23px); white-space: nowrap; }
.comm-body .btn { flex: none; }

.comm-discord {
  border-style: dashed; border-color: rgba(148, 163, 199, 0.32);
  background: transparent;
}
.comm-discord:hover { border-color: rgba(91, 124, 250, 0.55); }
.comm-discord-inner {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 4px; padding: 30px 34px;
}
.discord-badge { background: #5865f2; box-shadow: 0 10px 30px rgba(88, 101, 242, 0.35); }
.comm-discord-inner h3 { font-size: clamp(20px, 2vw, 24px); }
.comm-discord-inner p { color: var(--dim); font-size: 14.5px; margin: 6px 0 20px; max-width: 34ch; }

@media (max-width: 900px) {
  .comm-card { width: min(300px, 100%); }
}

/* ---------- about ---------- */
#about .section-head { text-align: center; }
#about .section-sub { margin-left: auto; margin-right: auto; max-width: 62ch; }

.about-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px;
}
.about-card {
  width: min(340px, 100%);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 124, 250, 0.5);
  box-shadow: var(--shadow-lg);
}
.about-ic {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 225, 255, 0.13), rgba(91, 124, 250, 0.16));
  border: 1px solid rgba(56, 225, 255, 0.22);
  color: var(--cyan);
  margin-bottom: 14px;
}
.about-ic svg { width: 20px; height: 20px; }
.about-card h3 { font-size: 18px; }
.about-card p { color: var(--dim); font-size: 14.5px; margin-top: 6px; }

/* ---------- team ---------- */
/* centered section header above the cards */
#team .section-head { text-align: center; }
#team .section-sub { margin-left: auto; margin-right: auto; }
#team .eyebrow { font-size: 15px; letter-spacing: 0.3em; }
#team h2 { font-size: clamp(34px, 4.8vw, 52px); }
/* both rows centered, all cards one uniform size/format */
.team-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px; margin-bottom: 16px;
}
.member-card {
  width: 340px;
  display: block;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.member-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 124, 250, 0.45);
  box-shadow: var(--shadow-lg);
}
.member-art { aspect-ratio: 1 / 1; overflow: hidden; background: #10131f; }
.member-art img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.member-card:hover .member-art img { transform: scale(1.05); }
.member-body { padding: 16px 18px 18px; }
.member-body h3 { font-size: clamp(17px, 1.5vw, 20px); overflow-wrap: anywhere; }
.member-role { font-size: 13.5px; font-weight: 500; color: var(--cyan); margin-top: 2px; }
.member-socials { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.msoc {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--dim);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.msoc:hover { color: var(--txt); border-color: rgba(91, 124, 250, 0.5); }
.msoc svg { width: 14px; height: 14px; fill: currentColor; }
.member-handle { font-size: 14px; color: var(--dim); }
.member-hiring .member-handle { color: var(--dim-2); }

/* ---------- careers (postings board) ---------- */
#careers .section-head { text-align: center; }
#careers .section-sub { margin-left: auto; margin-right: auto; }

.jobs-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px;
  max-width: 1148px;
  margin: 0 auto;
}
.job-card {
  width: min(372px, 100%);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px 26px 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.job-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 124, 250, 0.5);
  box-shadow: var(--shadow-lg);
}
.job-top {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; margin-bottom: 6px; gap: 10px;
}
.job-pills { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill-spots {
  color: var(--cyan); background: rgba(56, 225, 255, 0.08);
  border: 1px solid rgba(56, 225, 255, 0.25);
}
.job-card h3 { font-size: 24px; }
.job-card > p { color: var(--dim); font-size: 15px; }
.job-card .btn { margin-top: 12px; }

/* ---------- legacy CTA card (unused) ---------- */
.cta-card {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 160% at 12% 0%, rgba(91, 124, 250, 0.16), transparent 55%),
    radial-gradient(70% 140% at 90% 110%, rgba(56, 225, 255, 0.1), transparent 55%),
    var(--panel);
  border: 1px solid rgba(91, 124, 250, 0.28);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
}
.cta-glow {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 124, 250, 0.22), transparent 65%);
  filter: blur(60px); top: -220px; right: -120px; pointer-events: none;
}
.cta-card h2 { margin-bottom: 14px; }
.cta-card p {
  color: var(--dim); max-width: 560px; margin: 0 auto 30px;
}

/* ---------- contact (Discord-first) ---------- */
#contact .section-head { text-align: center; }
#contact .section-sub { margin-left: auto; margin-right: auto; }

.contact-grid2 {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.discord-cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 4px; padding: 44px 38px;
  background:
    radial-gradient(110% 150% at 50% 0%, rgba(88, 101, 242, 0.2), transparent 62%),
    radial-gradient(90% 120% at 50% 120%, rgba(56, 225, 255, 0.06), transparent 60%),
    var(--panel);
  border: 1px solid rgba(88, 101, 242, 0.38);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.discord-cta .cta-badge {
  width: 68px; height: 68px; border-radius: 19px;
  margin-bottom: 16px;
  box-shadow: 0 14px 40px rgba(88, 101, 242, 0.45);
}
.discord-cta .cta-badge svg { width: 32px; height: 32px; color: #fff; }
.discord-cta h3 { font-size: clamp(22px, 2.4vw, 28px); }
.discord-cta p { color: var(--dim); font-size: 15px; max-width: 42ch; margin: 8px 0 24px; }
.btn-discord {
  background: #5865f2; color: #fff; white-space: nowrap;
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.4);
}
.btn-discord:hover {
  transform: translateY(-2px); background: #6873f5;
  box-shadow: 0 12px 38px rgba(88, 101, 242, 0.5);
}
.btn-discord svg { width: 18px; height: 18px; flex: none; }
.dc-invite { margin-top: 20px; display: grid; gap: 5px; justify-items: center; }
.dc-hint {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--dim-2);
}
.dc-code {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--txt);
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 9px; padding: 6px 14px;
}
.contact-side {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 30px 30px 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.contact-side h3 { font-size: 20px; }
.contact-side .socials { margin-top: 4px; }
.contact-line {
  display: grid; gap: 5px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-line .contact-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--dim-2);
}
.contact-line .contact-value { font-size: 17px; font-weight: 700; }
.contact-line .contact-value span { color: var(--cyan); }
.contact-line:hover .contact-value { color: var(--cyan); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .contact-grid2 { grid-template-columns: 1fr; }
}
.social {
  font-size: 14px; font-weight: 600; color: var(--dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.social:hover {
  color: var(--txt); border-color: rgba(91, 124, 250, 0.5);
  background: rgba(91, 124, 250, 0.08);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 0 44px;
  overflow: hidden;
}
.footer-word {
  font-size: clamp(44px, 8.6vw, 118px);
  font-family: var(--font-display); font-weight: 800; letter-spacing: 0.01em; line-height: 1;
  text-align: center; white-space: nowrap;
  color: rgba(238, 241, 247, 0.055);
  user-select: none; pointer-events: none;
  margin-bottom: 42px;
}
.footer-inner {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.brand-footer { margin-right: auto; }
.footer-links { display: flex; gap: 12px 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--dim); }
.footer-links a:hover { color: var(--txt); }
.footer-legal {
  width: 100%; margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--dim-2);
}

/* ---------- reveal animations ---------- */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  .brand-line1, .brand-line2 { font-size: 20px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-inner { height: 60px; }
  .brand-line1, .brand-line2 { font-size: 17px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: center; justify-content: center; gap: 30px;
    background: rgba(7, 8, 16, 0.97);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .nav-links a { font-size: 22px; }
  .nav.open .nav-links { opacity: 1; visibility: visible; }
  .hero { padding: 104px 0 72px; }
  .hero-stats { gap: 26px 40px; }
  .section { padding: 80px 0; }
  .member-card { width: 100%; }
  .footer-word { letter-spacing: -0.02em; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .game-card, .pillars li { transition: none; }
}

/* ---------- intro overlay ---------- */
.intro {
  position: fixed; inset: 0; z-index: 400;
  display: none; align-content: center; justify-items: center; gap: 28px;
  background: var(--bg);
  cursor: pointer;
}
.intro.on { display: grid; }
.intro-word { display: grid; place-items: center; }
.intro-logo {
  display: block; width: min(440px, 72vw); height: auto;
  opacity: 0; transform: scale(0.92) translateY(12px);
  animation: introLogoIn 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) 0.12s both;
}
@keyframes introLogoIn { to { opacity: 1; transform: none; } }
.intro-bar {
  width: 170px; height: 2px; border-radius: 2px;
  background: rgba(148, 163, 199, 0.15); overflow: hidden;
  opacity: 0; animation: introFade 0.4s ease 0.5s both;
}
.intro-bar i {
  display: block; height: 100%; width: 100%;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  animation: barFill 1s cubic-bezier(0.3, 0.6, 0.2, 1) 0.55s both;
}
.intro.done { animation: introOut 0.6s cubic-bezier(0.7, 0, 0.2, 1) 0.05s both; }
@keyframes letterIn { to { opacity: 1; transform: none; } }
@keyframes introFade { to { opacity: 1; } }
@keyframes barFill { to { transform: scaleX(1); } }
@keyframes introOut { to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) {
  /* static version: no motion, just a brief splash that fades out */
  .intro-logo, .intro-bar { animation: introFade 0.3s ease both; }
  .intro-bar i { animation: none; transform: scaleX(1); }
  .intro.done { animation: introFadeOut 0.4s ease both; }
}
@keyframes introFadeOut { to { opacity: 0; } }
