:root {
  --void: #07031A;
  --obsidian: #0E072E;
  --indigo-card: #150B42;
  --gold: #FFD60A;
  --cyan: #00E5FF;
  --mint: #00F5A0;
  --coral: #FF4D6D;
  --magenta: #E040FB;
  --ink: #07031A;
  --white: #FFFFFF;
  --lavender: #D9D4F5;
  --hairline: rgba(217, 212, 245, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--obsidian);
  color: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', 'Outfit', sans-serif;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: min(1160px, calc(100% - 3rem));
  margin-inline: auto;
}

/* Solid Crisp Header — Zero Backdrop-Filter Jitter */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--void);
  border-bottom: 2px solid var(--cyan);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  height: 50px;
  width: auto;
}

.links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.link {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lavender);
  padding: 0.35rem 0;
  border-bottom: 2.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.link:hover,
.link.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.42rem 0.85rem;
  border-radius: 6px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.drawer {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.5rem 1.25rem;
  background: var(--void);
  border-top: 1px solid var(--hairline);
}

.drawer[hidden] {
  display: none;
}

.drawer-item {
  font-family: 'Space Mono', monospace;
  font-size: 0.88rem;
  text-transform: uppercase;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--hairline);
}

/* Tactile Arcade Buttons */
.arcade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.88rem 1.65rem;
  border-radius: 8px;
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.arcade-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.arcade-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.arcade-btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.arcade-btn-mint {
  background: #2CE59B;
  color: var(--ink);
}

.arcade-btn-magenta {
  background: #8E24AA;
  color: var(--white);
}

.arcade-btn-cyan {
  background: #38D9F5;
  color: var(--ink);
}

.arcade-btn-coral {
  background: #D93052;
  color: var(--white);
}

.arcade-btn-outline {
  background: var(--void);
  color: var(--white);
  border-color: var(--cyan);
  box-shadow: 5px 5px 0 var(--cyan);
}

.arcade-btn-outline:hover {
  box-shadow: 7px 7px 0 var(--cyan);
}

/* 1. Hero Stage — Directional Scrim overlay for crisp zero-shadow legibility */
.hero-stage {
  scroll-margin-top: 76px;
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 84vh, 800px);
  display: flex;
  align-items: flex-end;
  padding: 5rem 0 4.75rem;
  background-image: url('assets/hero-elephanttale.png');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--obsidian);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    98deg,
    rgba(7, 3, 26, var(--hero-tint, 0.85)) 0%,
    rgba(14, 7, 46, calc(var(--hero-tint, 0.85) * 0.86)) 40%,
    rgba(14, 7, 46, calc(var(--hero-tint, 0.85) * 0.42)) 66%,
    rgba(14, 7, 46, calc(var(--hero-tint, 0.85) * 0.08)) 100%
  );
}

.hero-stage.hero-tint-uniform::before {
  background: rgba(7, 3, 26, var(--hero-tint, 0.85));
}

.sparkle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-grid {
  position: relative;
  z-index: 3;
}

.spark-star {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.35);
  clip-path: polygon(50% 0%, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0% 50%, 36% 36%);
  background: var(--gold);
  filter: drop-shadow(0 0 6px rgba(255, 214, 10, 0.8));
  animation: starSparkle 0.72s ease-out forwards;
}

.spark-star.is-cyan {
  background: var(--cyan);
  filter: drop-shadow(0 0 7px rgba(0, 229, 255, 0.85));
}

.spark-star.is-white {
  background: var(--white);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}

@keyframes starSparkle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  28% {
    opacity: 1;
    transform: translate(-50%, -65%) scale(1.18) rotate(25deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -28px))) scale(0.2) rotate(75deg);
  }
}

.hero-copy-block {
  max-width: 650px;
}

.arcade-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.35rem 0.75rem;
  background: var(--void);
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  border-radius: 5px;
  margin-bottom: 1.25rem;
}

.hero-stage h1 {
  font-size: clamp(3.2rem, 6.8vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.text-pop {
  color: var(--gold);
}

.hero-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  max-width: 44ch;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Kinetic Arcade Ticker (Seamless Infinite Loop) */
.ticker-bar {
  background: var(--gold);
  color: var(--ink);
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  overflow: hidden;
  padding: 0.68rem 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tickerSlide 28s linear infinite;
}

.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  padding-right: 1.65rem;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: 'Space Mono', monospace;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ticker-star {
  color: #B81D3A;
}

@keyframes tickerSlide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* 2. Balanced Light-Mist Games Showcase (Crisp Card Contrast) */
.games-stage {
  scroll-margin-top: 76px;
  background:
    radial-gradient(circle at 10% 14%, rgba(74, 51, 181, 0.08) 0%, transparent 38%),
    radial-gradient(circle at 90% 80%, rgba(0, 149, 186, 0.08) 0%, transparent 40%),
    #F4F2FA;
  color: #130D3A;
  padding: 5rem 0 5.5rem;
}

.stage-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  margin-bottom: 3rem;
  border-bottom: 1.5px solid rgba(19, 13, 58, 0.14);
}

.stage-kicker {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 0.55rem;
}

.games-stage .stage-kicker {
  color: #4A33B5;
}

.stage-header h2 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  color: #130D3A;
}

.stage-count {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4A33B5;
  background: #EAE5FA;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
}

.showcase-stack {
  display: grid;
  gap: 2.5rem;
}

/* Balanced Elevated White Cards with Accessible Jewel Accents */
.spotlight-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: var(--white);
  color: #130D3A;
  border: 2px solid #D9D4EE;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(19, 13, 58, 0.08), 8px 8px 0 var(--accent-shadow, #E2B800);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.16s ease-out;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: radial-gradient(
    circle 260px at var(--mx, 50%) var(--my, 50%),
    rgba(74, 51, 181, 0.08),
    transparent 70%
  );
}

.spotlight-card:hover::after {
  opacity: 1;
}

.theme-gold {
  --accent: #FFD60A;
  --accent-ink: #946800;
  --accent-badge-text: #120D31;
  --accent-shadow: #E0B200;
  border-color: #E0B200;
}

.theme-mint {
  --accent: #2CE59B;
  --accent-ink: #0B7A53;
  --accent-badge-text: #0C231B;
  --accent-shadow: #17B87B;
  border-color: #17B87B;
}

.theme-magenta {
  --accent: #8E24AA;
  --accent-ink: #7B1FA2;
  --accent-badge-text: #FFFFFF;
  --accent-shadow: #8E24AA;
  border-color: #8E24AA;
}

.theme-cyan {
  --accent: #38D9F5;
  --accent-ink: #00738F;
  --accent-badge-text: #091826;
  --accent-shadow: #00A5C4;
  border-color: #00A5C4;
}

.theme-coral {
  --accent: #D93052;
  --accent-ink: #B51D3D;
  --accent-badge-text: #FFFFFF;
  --accent-shadow: #D93052;
  border-color: #D93052;
}

.spotlight-reverse .artwork-trigger {
  order: 2;
}

.artwork-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #ECE9F7;
  cursor: zoom-in;
  overflow: hidden;
}

.artwork-trigger img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.artwork-trigger:hover img {
  transform: scale(1.035);
}

.zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  background: rgba(19, 13, 58, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.spotlight-info {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.num-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.22rem 0.58rem;
  border-radius: 5px;
  background: var(--accent, var(--gold));
  color: var(--accent-badge-text, var(--ink));
}

.status-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-ink, #4A33B5);
}

.spotlight-info h3 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #130D3A;
  margin-bottom: 0.8rem;
}

.spotlight-info p {
  color: #3D3663;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.tag-strip span {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  background: #F1EFF9;
  border: 1px solid #DCD6F2;
  color: #261E4F;
}

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.05rem;
  border-radius: 8px;
  background: #F1EFF9;
  border: 2px dashed var(--accent-ink, #4A33B5);
  color: var(--accent-ink, #4A33B5);
}

/* 3. Contact Stage with Multi-Color Spectrum Line */
.contact-stage {
  scroll-margin-top: 76px;
  background: var(--void);
}

.spectrum-line {
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--coral) 33%, var(--mint) 66%, var(--cyan) 100%);
}

.contact-wrap {
  padding: 2.6rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem;
}

.email-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.email-hero {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--white);
  border-bottom: 2.5px solid var(--gold);
  padding-bottom: 2px;
}

.copy-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.36rem 0.75rem;
  border-radius: 6px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.copy-pill:hover {
  background: var(--gold);
  color: var(--ink);
}

.copy-toast {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--mint);
}

.social-bar {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.social-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.48rem 0.82rem;
  border-radius: 7px;
  border: 1.5px solid var(--hairline);
  color: var(--white);
  transition: transform 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.social-bar a:hover {
  transform: translateY(-2px);
}

.social-bar svg {
  flex-shrink: 0;
}

.soc-gold:hover    { border-color: var(--gold); color: var(--gold); }
.soc-cyan:hover    { border-color: var(--cyan); color: var(--cyan); }
.soc-coral:hover   { border-color: var(--coral); color: var(--coral); }
.soc-mint:hover    { border-color: var(--mint); color: var(--mint); }
.soc-magenta:hover { border-color: var(--magenta); color: var(--magenta); }

/* Footer */
.studio-footer {
  background: #040110;
  border-top: 1px solid var(--hairline);
  padding: 1.2rem 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: rgba(217, 212, 245, 0.76);
}

.legal-row {
  display: flex;
  gap: 1.4rem;
}

.legal-row a:hover {
  color: var(--gold);
}

/* Artwork Lightbox Modal */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 1, 16, 0.88);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal-mask[hidden] {
  display: none;
}

.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1.5px solid var(--hairline);
  background: var(--void);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.lightbox-panel {
  position: relative;
  width: min(920px, 100%);
  background: var(--void);
  border: 2.5px solid var(--cyan);
  box-shadow: 8px 8px 0 var(--cyan);
  border-radius: 14px;
  padding: 0.9rem;
}

.lightbox-panel img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
  margin-top: 0.7rem;
  padding: 0 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }

  .spotlight-card {
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .spotlight-reverse .artwork-trigger {
    order: 0;
  }

  .artwork-trigger img {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1160px, calc(100% - 2rem));
  }

  .nav-inner {
    height: 62px;
  }

  .brand-logo {
    height: 38px;
  }

  .links {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero-stage {
    scroll-margin-top: 62px;
    min-height: calc(100vh - 102px);
    min-height: calc(100svh - 102px);
    align-items: center;
    padding: 2rem 0 2.25rem;
    background-position: 70% center;
  }

  .arcade-tag {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 0.28rem 0.6rem;
    margin-bottom: 0.85rem;
  }

  .hero-stage h1 {
    font-size: clamp(2.85rem, 11.2vw, 3.6rem);
    line-height: 1.02;
    margin-bottom: 0.9rem;
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.48;
    margin-bottom: 1.3rem;
  }

  .hero-cta-group {
    gap: 0.7rem;
  }

  .hero-cta-group .arcade-btn {
    padding: 0.74rem 1.15rem;
    font-size: 0.92rem;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .hero-cta-group .arcade-btn-outline {
    box-shadow: 4px 4px 0 var(--cyan);
  }

  .ticker-bar {
    padding: 0.56rem 0;
  }

  .ticker-group {
    font-size: 0.76rem;
  }

  .hero-stage::before {
    background: linear-gradient(
      180deg,
      rgba(7, 3, 26, calc(var(--hero-tint, 0.85) * 0.52)) 0%,
      rgba(7, 3, 26, calc(var(--hero-tint, 0.85) * 0.96)) 55%,
      rgba(7, 3, 26, calc(var(--hero-tint, 0.85) * 1.08)) 100%
    );
  }

  .hero-stage.hero-tint-uniform::before {
    background: rgba(7, 3, 26, var(--hero-tint, 0.85));
  }

  .stage-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    padding-bottom: 1.1rem;
  }

  .games-stage {
    padding: 3.25rem 0 3.75rem;
  }

  .showcase-stack {
    gap: 1.65rem;
  }

  .spotlight-card {
    box-shadow: 0 10px 22px rgba(19, 13, 58, 0.08), 5px 5px 0 var(--accent-shadow, #E2B800);
  }

  .spotlight-info {
    padding: 1.2rem 1.15rem 1.35rem;
  }

  .spotlight-meta {
    margin-bottom: 0.55rem;
    gap: 0.55rem;
  }

  .spotlight-info h3 {
    font-size: 1.65rem;
    margin-bottom: 0.45rem;
  }

  .spotlight-info p {
    font-size: 0.92rem;
    line-height: 1.48;
    margin-bottom: 0.85rem;
  }

  .tag-strip {
    gap: 0.35rem;
    margin-bottom: 1rem;
  }

  .tag-strip span {
    font-size: 0.68rem;
    padding: 0.22rem 0.5rem;
  }

  .spotlight-actions .arcade-btn {
    width: 100%;
    padding: 0.72rem 1.1rem;
    font-size: 0.9rem;
  }
}
