/* BP Studios — anchored on Linear's dark-mode-native canvas with electric purple swapped for indigo.
   Type system: Inter Variable, 510 signature weight, tight letter-spacing at display sizes. */

:root {
  /* Background luminance steps */
  --bg-0: #08080c;        /* page canvas (deepest) */
  --bg-1: #0e0e14;        /* slight elevation */
  --bg-2: #16161d;        /* card surfaces */
  --bg-3: #1d1d26;        /* hover surfaces */

  /* Text — never pure white */
  --ink-0: #f7f8f8;
  --ink-1: #d0d6e0;
  --ink-2: #8a8f98;
  --ink-3: #62666d;

  /* Brand accent — electric purple (matches BP ring) */
  --p-500: #b266ff;       /* primary brand purple */
  --p-400: #c98aff;       /* hover/light variant */
  --p-600: #8b3ee6;       /* deeper variant */
  --p-glow: rgba(178, 102, 255, 0.42);

  /* Semi-transparent borders */
  --bd-subtle: rgba(255, 255, 255, 0.05);
  --bd-standard: rgba(255, 255, 255, 0.08);
  --bd-strong: rgba(255, 255, 255, 0.12);

  /* Translucent surfaces */
  --sf-2: rgba(255, 255, 255, 0.02);
  --sf-4: rgba(255, 255, 255, 0.04);
  --sf-6: rgba(255, 255, 255, 0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg-0);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv01', 'ss03';
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-1);
  background: var(--bg-0);
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: var(--ink-0); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--p-400); }

::selection { background: var(--p-500); color: #fff; }

/* ---------- NAV ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(8, 8, 12, 0.75);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--bd-subtle);
}

.nav__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav__mark img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.nav__wordmark {
  font-weight: 590;
  font-size: 15px;
  letter-spacing: -0.182px;
  color: var(--ink-0);
}

.nav__links {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 510;
  color: var(--ink-1);
  letter-spacing: -0.13px;
}
.nav__links a:hover { color: var(--ink-0); }

@media (max-width: 540px) {
  .nav__wordmark { display: none; }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 13px; }
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 11vw, 120px) var(--gutter) clamp(80px, 12vw, 140px);
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -40% -20% 0 -20%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 1100px;
  max-width: 140vw;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, var(--p-glow), transparent 70%);
  filter: blur(20px);
  opacity: 0.6;
}

.hero__mark {
  position: relative;
  width: clamp(220px, 28vw, 320px);
  aspect-ratio: 1;
  margin: 0 auto 40px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--bd-standard),
    0 30px 80px -20px rgba(178, 102, 255, 0.35),
    0 10px 40px -10px rgba(0, 0, 0, 0.6);
}
.hero__ident {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.hero__mark-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero__title {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 510;
  line-height: 1.0;
  letter-spacing: -0.044em;
  color: var(--ink-0);
  margin: 0 auto 24px;
  max-width: 14ch;
}

.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: -0.165px;
  margin: 0 auto 40px;
  max-width: 50ch;
}

.hero__cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 510;
  letter-spacing: -0.165px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--p-500);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(178, 102, 255, 0.6);
}
.btn--primary:hover {
  background: var(--p-400);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--sf-2);
  color: var(--ink-0);
  border-color: var(--bd-standard);
}
.btn--ghost:hover {
  background: var(--sf-4);
  border-color: var(--bd-strong);
  color: var(--ink-0);
}

/* ---------- SECTION HEAD ---------- */

.section__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 590;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p-400);
}

.section__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 510;
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink-0);
  margin: 0;
  max-width: 22ch;
}

/* ---------- GAMES ---------- */

.games {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
}

.game {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 6fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 3vw, 40px);
  background: var(--sf-2);
  border: 1px solid var(--bd-standard);
  border-radius: var(--radius-xl);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.game::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(600px circle at 0% 0%, rgba(178, 102, 255, 0.10), transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}

.game__art {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--bd-standard),
    0 24px 60px -16px rgba(0, 0, 0, 0.7);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), box-shadow 320ms ease;
  aspect-ratio: 7 / 10;
  background: #000;
}
.game__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.game__art:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px var(--bd-strong),
    0 30px 80px -20px rgba(178, 102, 255, 0.45),
    0 24px 60px -16px rgba(0, 0, 0, 0.7);
}
.game__art:hover img {
  transform: scale(1.03);
}

.game__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.game__status {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 590;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--p-400);
}

.game__title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 590;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink-0);
  margin: 0;
}
.game__title--quiet { color: var(--ink-1); }

.game__pitch {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--ink-1);
  letter-spacing: -0.165px;
  margin: 0;
  max-width: 48ch;
}

.game__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 0;
  margin: 4px 0 0;
}
.game__meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  font-weight: 510;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.game__meta strong {
  font-size: 20px;
  font-weight: 590;
  letter-spacing: -0.24px;
  color: var(--ink-0);
  text-transform: none;
}

.game__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.game__note {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: -0.13px;
}

@media (max-width: 800px) {
  .game {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .game__art { max-width: 360px; margin: 0 auto; }
  .game__title { font-size: 40px; }
}

/* Upcoming card (quieter) */
.game--upcoming {
  grid-template-columns: 1fr;
}
.game--upcoming .game__placeholder {
  padding: 24px 8px;
}
.game--upcoming .game__placeholder .eyebrow { margin-bottom: 14px; }
.game--upcoming .game__title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }

/* ---------- STUDIO ---------- */

.studio {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  border-top: 1px solid var(--bd-subtle);
}

.studio__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 64ch;
}
.studio__body p {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.62;
  letter-spacing: -0.165px;
  color: var(--ink-1);
  margin: 0;
}
.studio__quiet { color: var(--ink-2); }

/* ---------- CONTACT ---------- */

.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(80px, 10vw, 120px);
  border-top: 1px solid var(--bd-subtle);
}

.contact__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-2);
  margin: 0;
  letter-spacing: -0.165px;
}
.contact__email {
  display: inline-flex;
  align-self: flex-start;
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 510;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink-0);
  border-bottom: 1px solid var(--bd-strong);
  padding-bottom: 6px;
  transition: color 160ms ease, border-color 160ms ease;
}
.contact__email:hover {
  color: var(--p-400);
  border-color: var(--p-500);
}

/* ---------- FOOTER ---------- */

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--bd-subtle);
}
.foot__row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.foot__mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  opacity: 0.85;
}
.foot__copy,
.foot__legal {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: -0.13px;
  margin: 0;
}

/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero__ident { display: none; }
}
