:root {
  /* Taken from the logo: black stage, white wordmark, one spectrum */
  --black: #000;
  --panel: #0B0A17;
  --well: #17142E;
  --line: #2B2752;
  --white: #fff;
  --text: #D9D6EE;
  --cyan: #19D3FF;
  --azure: #2F8CFF;
  --blue: #1A5CF0;
  --indigo: #5B4BFF;
  --violet: #7A2CFF;
  --purple: #9A2BFF;
  --magenta: #E01CFF;
  --spectrum: linear-gradient(225deg, var(--cyan), var(--blue) 38%, var(--violet) 70%, var(--magenta));

  /* one family: heavy and tightly set for display, regular for reading */
  --display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", system-ui, sans-serif;
  --r-lg: 24px;
  --r-md: 16px;
  --slant: -12deg;
}

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

html { scroll-behavior: smooth; background: var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); color: var(--white); margin: 0; }
h1 { font-weight: 900; font-size: clamp(2.9rem, 8vw, 6rem); line-height: 0.95; letter-spacing: -0.045em; text-wrap: balance; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.05; letter-spacing: -0.035em; }
h3 { font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.2; letter-spacing: -0.025em; }
p { margin: 0; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }

.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.block { padding-block: clamp(2.5rem, 7vw, 5rem); }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--white); color: var(--black); padding: 0.5rem 1rem; border-radius: 10px; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; flex-wrap: wrap; }
.wordmark { display: flex; align-items: center; gap: 0.7rem; font: 800 1.2rem/1 var(--display); letter-spacing: -0.03em; color: var(--white); text-decoration: none; }
.wordmark img { width: auto; height: 2.5rem; display: block; }
.top nav { display: flex; gap: 1.75rem; }
.top nav a { font-weight: 500; text-decoration: none; }
.top nav a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 0.4em; text-decoration-thickness: 2px; }

/* Buttons lean at the same angle as the strokes of the E */
.btn {
  position: relative;
  z-index: 0;
  display: inline-block;
  font: 600 1.05rem/1.2 var(--body);
  text-decoration: none;
  color: var(--white);
  padding: 0.95rem 1.7rem;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 10px;
  transform: skewX(var(--slant));
}
.btn-main::before { background: linear-gradient(90deg, var(--blue), var(--violet)); }
.btn-line::before { border: 2px solid currentColor; }
.btn-main:hover::before { filter: brightness(1.18); }
.btn-line:hover::before { background: rgba(255, 255, 255, 0.12); }
.btn:active { transform: translateY(2px); }

/* Hero */
main { overflow-x: clip; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 6vw, 5rem) clamp(2.5rem, 7vw, 5rem);
}
.lede { margin-top: 1.75rem; max-width: 33rem; font-size: 1.2rem; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2.25rem; padding-inline: 0.4rem; }

.hero-helix {
  /* drawn in main.js: loose particles at the bottom settle into a double helix */
  display: block;
  width: 150%;
  margin: -12% -25%;
  aspect-ratio: 4 / 5;
}

/* Teaser: the one white surface, same white as the wordmark */
.teaser {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--white);
  color: #1B1830;
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 5vw, 3.5rem);
}
.teaser h2 { color: var(--black); }
.teaser-egg { width: clamp(6rem, 16vw, 11rem); }
.teaser p { margin-block: 1rem 1.75rem; max-width: 36rem; }
.teaser .btn { margin-left: 0.4rem; }

/* Range ladder: walks down the logo's gradient, cyan at the top, black at the bottom */
.section-lede { margin-top: 0.75rem; }
.ladder { list-style: none; margin: 2rem 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.rung {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 0.35rem 2rem;
  align-items: baseline;
  padding: 1.35rem clamp(1.25rem, 4vw, 2.5rem);
  color: var(--black);
}
.rung h3 { color: inherit; }
.rung-casual { background: var(--cyan); }
.rung-merge { background: var(--azure); }
.rung-arcade { background: var(--indigo); color: var(--white); }
.rung-3d { background: var(--purple); color: var(--white); }
.rung-horror { background: var(--black); color: var(--white); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.studio-photo { grid-column: 1 / -1; margin: 0 0 clamp(0.5rem, 2vw, 1.5rem); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.studio-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; object-position: 60% 30%; }
.about-text p { margin-top: 1.25rem; max-width: 36rem; }
.credit { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.credit-art { width: 100%; max-width: 11rem; display: block; margin-bottom: 1.25rem; }
.credit p { margin-block: 0.5rem 1.5rem; }
.credit .btn { margin-left: 0.4rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: clamp(2rem, 6vw, 4rem); padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; flex-wrap: wrap; }
.foot p { margin-top: 0.75rem; }
.foot-mail { display: inline-block; margin-top: 0.4rem; font: 800 clamp(1.25rem, 4.4vw, 2.5rem)/1.2 var(--display); letter-spacing: -0.04em; color: var(--white); text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 0.3em; overflow-wrap: anywhere; }
.foot-side { text-align: right; }
.foot-logo { display: block; width: min(15rem, 60vw); height: auto; margin: 0 -1rem 0.75rem auto; }
.socials { list-style: none; display: flex; gap: 1.25rem; justify-content: flex-end; flex-wrap: wrap; margin: 0; padding: 0; font-weight: 500; }
.socials:empty { display: none; }
.small { font-size: 0.95rem; }

/* Privacy page */
.doc { max-width: 42rem; padding-block: clamp(2rem, 6vw, 4rem); }
.doc h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
.doc h2 { font-size: 1.35rem; letter-spacing: -0.025em; margin-top: 2.5rem; }
.doc p, .doc ul { margin-top: 1rem; }
.doc ul { padding-left: 1.25rem; }
.doc a { color: var(--white); text-decoration-color: var(--cyan); text-underline-offset: 0.3em; }

@media (max-width: 800px) {
  .hero, .about { grid-template-columns: 1fr; }
  .hero-helix { width: min(100%, 26rem); margin: 0 auto; }
  .rung { grid-template-columns: 1fr; }
  .foot-side { text-align: left; }
  .foot-logo { margin: 0 0 0.75rem -1rem; }
  .socials { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .teaser { grid-template-columns: 1fr; }
  .top nav { gap: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
