:root {
  --navy: #020c27;
  --navy-soft: #07173a;
  --cyan: #08c7f7;
  --orange: #ffad1f;
  --white: #f6f5ef;
  --muted: #96a4c2;
  --line: rgba(112, 150, 208, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(8, 199, 247, 0.7);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: -0.04em;
  box-shadow: 0 0 25px rgba(8, 199, 247, 0.14);
}

nav {
  display: flex;
  gap: 34px;
  color: #c3ccdf;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  transition: color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--cyan);
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 48px;
  overflow: hidden;
  padding: 145px max(24px, calc((100vw - 1180px) / 2)) 90px;
  background:
    linear-gradient(rgba(5, 20, 52, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 20, 52, 0.25) 1px, transparent 1px),
    radial-gradient(circle at 75% 45%, #082556 0, #031334 30%, var(--navy) 62%);
  background-size: 44px 44px, 44px 44px, auto;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--navy));
  content: "";
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 21%;
  right: 10%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(8, 199, 247, 0.09);
  filter: blur(50px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(56px, 6.2vw, 92px);
  line-height: 0.93;
  letter-spacing: -0.065em;
}

h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--cyan);
}

.intro {
  max-width: 570px;
  margin-bottom: 36px;
  color: #acb9d1;
  font-size: 18px;
  line-height: 1.75;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 16px 22px;
  border: 1px solid rgba(8, 199, 247, 0.65);
  background: rgba(8, 199, 247, 0.08);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.primary-button span {
  color: var(--orange);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(8, 199, 247, 0.16);
}

.logo-stage {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 500px;
  align-items: center;
  justify-content: center;
}

.logo-stage img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 610px);
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 0 34px rgba(8, 199, 247, 0.16));
}

.logo-stage p {
  position: absolute;
  right: 4%;
  bottom: 4%;
  z-index: 3;
  color: #8090af;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(8, 199, 247, 0.16);
  border-radius: 50%;
}

.orbit-one {
  width: 505px;
  height: 505px;
}

.orbit-two {
  width: 590px;
  height: 590px;
  border-style: dashed;
  animation: rotate 50s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.projects-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0 125px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading h2,
.about h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-heading > p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.featured-project {
  overflow: hidden;
  margin-bottom: 110px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(9, 29, 69, 0.9), rgba(3, 15, 42, 0.98));
}

.featured-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: #010711;
}

.featured-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(2, 12, 39, 0.72));
  content: "";
  pointer-events: none;
}

.featured-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-label {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 173, 31, 0.5);
  background: rgba(2, 12, 39, 0.82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.cover-label .status-dot {
  background: var(--orange);
  box-shadow: 0 0 15px var(--orange);
}

.featured-story {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  padding: 58px;
  border-bottom: 1px solid var(--line);
}

.story-title h3 {
  margin-bottom: 8px;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.subtitle {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
}

.story-copy p {
  color: #aab7cf;
  font-size: 16px;
  line-height: 1.8;
}

.story-copy strong {
  color: var(--white);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-tags li {
  padding: 8px 11px;
  border: 1px solid rgba(255, 173, 31, 0.25);
  color: #d9c397;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gameplay-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.gameplay-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #020815;
}

.gameplay-gallery img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 500ms ease;
}

.gameplay-gallery figure:hover img {
  transform: scale(1.025);
}

.gameplay-gallery figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 10px 12px;
  background: rgba(2, 8, 21, 0.78);
  color: #d6ddeb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.sprite-showcase {
  min-height: 420px;
  padding: 46px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(rgba(8, 199, 247, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 199, 247, 0.035) 1px, transparent 1px),
    #030d27;
  background-size: 24px 24px;
}

.sprite-copy {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.sprite-copy h4 {
  margin: 0 0 16px;
  font-size: 31px;
  letter-spacing: -0.035em;
}

.sprite-copy > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.sprite-groups {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 18px;
}

.sprite-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(112, 150, 208, 0.22);
  background: rgba(1, 8, 25, 0.72);
}

.sprite-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(112, 150, 208, 0.18);
}

.sprite-card figcaption span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sprite-card figcaption strong {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.guards-card figcaption span {
  color: var(--orange);
}

.sprite-frame {
  display: grid;
  min-height: 230px;
  place-items: center;
  padding: 20px;
}

.sprite-frame img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.42));
}

.rico-card .sprite-frame img {
  max-width: 500px;
}

.guards-card .sprite-frame img {
  max-width: 700px;
}

.more-projects-heading {
  margin-bottom: 38px;
}

.more-projects-heading h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -0.045em;
}

.project-card {
  position: relative;
  min-height: 405px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(9, 29, 69, 0.95), rgba(3, 15, 42, 0.95));
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.project-card::after {
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border: 20px solid rgba(8, 199, 247, 0.035);
  border-radius: 50%;
  content: "";
}

.project-card.orange::after {
  border-color: rgba(255, 173, 31, 0.045);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 199, 247, 0.55);
}

.project-card.orange:hover {
  border-color: rgba(255, 173, 31, 0.55);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 66px;
}

.project-number {
  color: #70809f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
}

.orange .status-dot {
  background: var(--orange);
  box-shadow: 0 0 15px var(--orange);
}

.project-type {
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.orange .project-type {
  color: var(--orange);
}

.project-card h3 {
  margin-bottom: 16px;
  font-size: 29px;
  letter-spacing: -0.035em;
}

.project-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.project-card ul {
  position: absolute;
  bottom: 26px;
  left: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-card li {
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: #9cabca;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 110px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #04102e;
}

.about-code {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid rgba(8, 199, 247, 0.18);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(8, 199, 247, 0.13) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(8, 199, 247, 0.13) 50%, transparent 50.2%);
}

.about-code img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  border-radius: 18%;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.38));
}

.about h2 {
  max-width: 660px;
  margin-bottom: 26px;
}

.about > div:last-child > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

footer {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  margin: 0 auto;
  padding: 40px 0;
  color: #7787a6;
  font-size: 12px;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 145px;
  }

  .logo-stage {
    min-height: 380px;
  }

  .logo-stage img {
    width: min(92vw, 500px);
  }

  .orbit-two {
    width: 490px;
    height: 490px;
  }

  .orbit-one {
    width: 420px;
    height: 420px;
  }

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

  .featured-story,
  .sprite-copy {
    grid-template-columns: 1fr;
  }

  .featured-story {
    gap: 28px;
    padding: 38px;
  }

  .sprite-showcase {
    padding: 38px;
  }

  .sprite-copy {
    gap: 8px;
  }

  .project-card {
    min-height: 330px;
  }

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

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 32px);
  }

  nav {
    gap: 14px;
    font-size: 10px;
  }

  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  h1 {
    font-size: 50px;
  }

  .intro {
    font-size: 16px;
  }

  .logo-stage {
    min-height: 300px;
  }

  .orbit-one {
    width: 290px;
    height: 290px;
  }

  .orbit-two {
    width: 340px;
    height: 340px;
  }

  .logo-stage p {
    display: none;
  }

  .projects-section {
    width: calc(100% - 36px);
    padding: 80px 0;
  }

  .featured-project {
    margin-bottom: 78px;
  }

  .featured-cover {
    aspect-ratio: 4 / 3;
  }

  .featured-cover img {
    object-position: center;
  }

  .featured-story,
  .sprite-showcase {
    padding: 26px 20px;
  }

  .gameplay-gallery {
    grid-template-columns: 1fr;
  }

  .sprite-groups {
    grid-template-columns: 1fr;
  }

  .sprite-frame {
    min-height: 180px;
    padding: 14px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about {
    gap: 42px;
    padding: 80px 18px;
  }

  footer {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

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

  .orbit-two {
    animation: none;
  }
}
