:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: #111319;
  --text: #f4f6fb;
  --muted: #9ca3b4;
  --line: rgba(255, 255, 255, 0.11);
  --red: #ff3b47;
  --blue: #52b9ff;
  --max: 1240px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: white;
  color: black;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 38rem;
  height: 38rem;
  border-radius: 999px;
  opacity: 0.13;
  filter: blur(130px);
  pointer-events: none;
}

.ambient-one {
  top: 20%;
  right: -22rem;
  background: var(--red);
}

.ambient-two {
  bottom: 8%;
  left: -24rem;
  background: var(--blue);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 64px);
  transition: background 220ms ease, border-color 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.logo-dot,
.section-title span {
  color: var(--red);
}

nav {
  display: flex;
  gap: clamp(20px, 3vw, 42px);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 650;
}

nav a,
.text-link {
  transition: color 180ms ease;
}

nav a:hover,
.text-link:hover {
  color: white;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  transition: background 180ms ease, color 180ms ease;
}

.header-cta:hover {
  background: white;
  color: #090a0e;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(920px, 100svh);
  align-items: center;
  overflow: hidden;
  padding: 140px clamp(22px, 7vw, 120px) 90px;
}

.hero-photo,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(7, 8, 12, 0.97) 0%, rgba(7, 8, 12, 0.76) 34%, rgba(7, 8, 12, 0.06) 68%),
    linear-gradient(0deg, var(--bg) 0%, transparent 24%);
}

.hero-grid {
  opacity: 0.2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(90deg, black, transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(680px, 57vw);
}

.eyebrow,
.section-kicker {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--red);
}

h1,
.section-title,
.game-copy h3 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  font-size: clamp(4.2rem, 9vw, 9rem);
}

h1 em,
.game-copy h3 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.72);
}

.hero-lead {
  max-width: 590px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.72;
}

.hero-lead strong {
  color: white;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red);
  box-shadow: 0 14px 44px rgba(255, 59, 71, 0.28);
}

.button-primary:hover {
  background: #ff5963;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(8, 9, 13, 0.26);
  backdrop-filter: blur(12px);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost svg {
  width: 20px;
  fill: currentColor;
}

.scroll-cue {
  position: absolute;
  right: clamp(22px, 4vw, 64px);
  bottom: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--red), transparent);
}

.section {
  width: min(calc(100% - 44px), var(--max));
  margin-inline: auto;
  padding-block: clamp(90px, 12vw, 170px);
}

.section-kicker {
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(3.1rem, 7vw, 7.2rem);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(50px, 9vw, 140px);
  align-items: end;
}

.about-copy {
  padding-bottom: 7px;
}

.about-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.about-copy strong {
  color: white;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c9ced9;
  font-size: 0.72rem;
  font-weight: 700;
}

.videos {
  width: min(calc(100% - 28px), 1380px);
  padding-inline: clamp(8px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 55px;
}

.section-heading .section-kicker {
  margin-bottom: 20px;
}

.text-link {
  flex: 0 0 auto;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #cbd0da;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(4, 5, 8, 0.54);
  transition: transform 220ms ease, border-color 220ms ease;
}

.video-card:hover {
  border-color: rgba(82, 185, 255, 0.48);
  transform: translateY(-6px);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050609;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta {
  display: grid;
  min-height: 105px;
  grid-template-columns: auto 1fr;
  gap: 15px;
  align-items: start;
  padding: 20px;
}

.video-meta span {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
}

.video-meta h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.38;
}

.projects {
  padding-bottom: clamp(100px, 12vw, 180px);
}

.projects > .section-title {
  margin-bottom: 50px;
}

.game-card {
  position: relative;
  min-height: clamp(530px, 61vw, 760px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: #101218;
}

.game-card > img,
.game-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.game-card > img {
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-card:hover > img {
  transform: scale(1.035);
}

.game-overlay {
  background: linear-gradient(90deg, rgba(3, 5, 10, 0.95) 0%, rgba(3, 5, 10, 0.78) 34%, rgba(3, 5, 10, 0.1) 72%),
    linear-gradient(0deg, rgba(3, 5, 10, 0.8), transparent 45%);
}

.game-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.game-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54e488;
  box-shadow: 0 0 14px #54e488;
}

.game-copy {
  position: absolute;
  bottom: clamp(35px, 7vw, 80px);
  left: clamp(26px, 6vw, 80px);
  z-index: 2;
  width: min(650px, 62%);
}

.game-copy > p:first-child {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.game-copy h3 {
  font-size: clamp(3.6rem, 7.7vw, 7.7rem);
}

.game-description {
  max-width: 520px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.button-game {
  background: white;
  color: #090a0e;
}

.button-game:hover {
  background: var(--blue);
}

footer {
  display: flex;
  width: min(calc(100% - 44px), var(--max));
  min-height: 140px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero {
    min-height: 820px;
    align-items: end;
  }

  .hero-photo {
    object-position: 61% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(7, 8, 12, 0.98) 4%, rgba(7, 8, 12, 0.66) 47%, rgba(7, 8, 12, 0.05) 82%);
  }

  .hero-copy {
    width: min(680px, 100%);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-meta {
    min-height: auto;
  }

  .game-copy {
    width: calc(100% - 52px);
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 16px 18px;
  }

  .header-cta {
    padding: 9px 12px;
  }

  .header-cta span {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding: 110px 22px 70px;
  }

  .hero-photo {
    height: 61%;
    object-position: 63% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, var(--bg) 34%, rgba(7, 8, 12, 0.62) 68%, transparent 100%);
  }

  .hero-grid,
  .scroll-cue {
    display: none;
  }

  h1 {
    font-size: clamp(3.8rem, 18vw, 5.4rem);
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 0.98rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    width: min(calc(100% - 32px), var(--max));
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .section-title {
    font-size: clamp(2.8rem, 14vw, 4.3rem);
  }

  .videos {
    width: calc(100% - 16px);
    padding-inline: 8px;
    border-radius: 18px;
  }

  .game-card {
    min-height: 650px;
  }

  .game-card > img {
    object-position: 61% center;
  }

  .game-overlay {
    background: linear-gradient(0deg, rgba(3, 5, 10, 0.98) 2%, rgba(3, 5, 10, 0.78) 52%, rgba(3, 5, 10, 0.05) 100%);
  }

  .game-copy {
    bottom: 28px;
    left: 22px;
    width: calc(100% - 44px);
  }

  .game-copy h3 {
    font-size: clamp(3.2rem, 15vw, 4.9rem);
  }

  .game-badge {
    top: 16px;
    right: 16px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 35px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
