:root {
  --midnight: #06111f;
  --deep-water: #0b1f35;
  --rain-blue: #6da8d7;
  --mist: #d7e6ee;
  --stone: #8f9ca2;
  --moss: #7aa06b;
  --fern: #9fbd77;
  --violet: #9a7bd8;
  --lantern: #ffc857;
  --ember: #f08d45;
  --auburn: #b85f36;
  --ink: #02070d;
  --panel: rgba(8, 20, 33, 0.82);
  --line: rgba(215, 230, 238, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mist);
  background:
    radial-gradient(circle at 12% 22%, rgba(184, 95, 54, 0.14), transparent 28%),
    radial-gradient(circle at 86% 62%, rgba(122, 160, 107, 0.13), transparent 30%),
    linear-gradient(180deg, #02070d 0%, var(--midnight) 36%, #091827 68%, #070b12 100%);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 200, 87, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(109, 168, 215, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 82%, transparent);
}

a {
  color: inherit;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 26px;
  color: #f7fbff;
  background: rgba(2, 7, 13, 0.5);
  border-bottom: 1px solid rgba(215, 230, 238, 0.14);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #f7fbff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 200, 87, 0.38);
  image-rendering: auto;
  object-fit: cover;
}

.brand-mark span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

nav a {
  position: relative;
  color: rgba(247, 251, 255, 0.78);
  text-decoration: none;
  text-shadow: 0 0 0 rgba(255, 200, 87, 0);
  transition:
    color 160ms ease,
    text-shadow 160ms ease;
}

nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--lantern), transparent);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 200, 87, 0.7);
  opacity: 0;
  transform: scaleX(0.42);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

nav a:hover,
nav a:focus-visible,
nav a.is-active,
nav a[aria-current="location"] {
  color: var(--lantern);
  text-shadow:
    0 0 10px rgba(255, 200, 87, 0.5),
    0 0 22px rgba(240, 141, 69, 0.34);
}

nav a.is-active::after,
nav a[aria-current="location"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  min-height: 75vh;
  overflow: hidden;
  padding: 104px 24px 64px;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.72);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 48% 47%, rgba(255, 200, 87, 0.16), transparent 18%),
    radial-gradient(circle at 74% 42%, rgba(184, 95, 54, 0.2), transparent 26%),
    linear-gradient(90deg, rgba(2, 7, 13, 0.88), rgba(2, 7, 13, 0.34) 46%, rgba(2, 7, 13, 0.74)),
    linear-gradient(180deg, rgba(2, 7, 13, 0.16), rgba(2, 7, 13, 0.92));
}

.hero-content {
  align-self: end;
  width: min(760px, 100%);
  margin: 0 auto 0 max(24px, calc((100vw - 1180px) / 2));
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.88);
}

.hero-logo {
  width: 158px;
  height: 158px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 200, 87, 0.32);
  box-shadow: 0 0 36px rgba(255, 200, 87, 0.18);
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lantern);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: #f8fbff;
  line-height: 1.04;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.3rem, 7vw, 6.9rem);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4.1rem);
}

h3 {
  font-size: 1.38rem;
}

.hero-copy {
  max-width: 670px;
  margin: 22px 0 0;
  color: rgba(247, 251, 255, 0.9);
  font-size: 1.18rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: #f7fbff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(247, 251, 255, 0.28);
  border-radius: 4px;
}

.button-primary {
  color: #1c1203;
  background: linear-gradient(180deg, #ffe18a, var(--lantern) 54%, #d8792e);
  border-color: rgba(255, 225, 138, 0.8);
  text-shadow: none;
  box-shadow: 0 10px 34px rgba(240, 141, 69, 0.28);
}

.button-ghost {
  background: rgba(6, 17, 31, 0.54);
}

.button:hover,
.button:focus-visible,
.game-copy a:hover,
.game-copy a:focus-visible {
  transform: translateY(-1px);
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(184, 95, 54, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(122, 160, 107, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(11, 31, 53, 0.9), rgba(7, 15, 25, 0.92));
}

.intro {
  padding: 46px 0;
}

.intro-grid,
.studio-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1.3fr);
  gap: 38px;
  align-items: center;
}

.intro p:last-child,
.studio p {
  margin: 0;
  color: rgba(215, 230, 238, 0.88);
  font-size: 1.06rem;
}

.games-section,
.studio {
  padding: 78px 0;
}

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

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  overflow: hidden;
  color: var(--mist);
  background: var(--panel);
  border: 1px solid rgba(215, 230, 238, 0.18);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.game-art {
  position: relative;
  height: 206px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #0c2542, #07101d);
  border-bottom: 1px solid rgba(215, 230, 238, 0.16);
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-art::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.14;
  pointer-events: none;
}

.game-copy {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.game-copy p {
  margin: 0;
  color: rgba(215, 230, 238, 0.84);
}

.game-copy .status {
  color: var(--lantern);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.game-copy a,
.quiet-link {
  justify-self: start;
  color: #f7fbff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 2px solid var(--lantern);
}

.quiet-link {
  color: rgba(247, 251, 255, 0.6);
  border-bottom-color: rgba(247, 251, 255, 0.22);
}

.craft {
  padding: 76px 0;
}

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

.craft-note {
  border-top: 2px solid rgba(255, 200, 87, 0.42);
  padding-top: 20px;
}

.craft-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  object-fit: cover;
  border: 1px solid rgba(215, 230, 238, 0.18);
  border-radius: 6px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.craft-note p {
  margin: 12px 0 0;
  color: rgba(215, 230, 238, 0.84);
}

.studio {
  position: relative;
  overflow: hidden;
}

.studio::before {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  content: "";
  background:
    linear-gradient(180deg, transparent, rgba(122, 160, 107, 0.1)),
    repeating-linear-gradient(90deg, rgba(122, 160, 107, 0.22) 0 2px, transparent 2px 46px);
  opacity: 0.48;
  pointer-events: none;
}

.studio-grid {
  position: relative;
  z-index: 1;
}

.studio-portrait-wrap {
  position: relative;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 200, 87, 0.1), rgba(184, 95, 54, 0.1)),
    rgba(2, 7, 13, 0.46);
  border: 1px solid rgba(215, 230, 238, 0.18);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.studio-portrait-wrap::before {
  position: absolute;
  inset: 10px;
  content: "";
  border: 1px solid rgba(255, 200, 87, 0.22);
  pointer-events: none;
}

.studio-portrait-wrap img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.promise-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.promise-list li {
  padding: 12px 14px;
  color: rgba(247, 251, 255, 0.88);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(8, 20, 33, 0.72);
  border: 1px solid rgba(215, 230, 238, 0.14);
  border-radius: 4px;
}

.contact-section {
  position: relative;
  min-height: 80vh;
  padding: 96px 0;
  overflow: hidden;
  background: #02070d;
  border-top: 1px solid var(--line);
  isolation: isolate;
}

.contact-section::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.contact-section::after {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.08), rgba(2, 7, 13, 0.42) 50%, rgba(2, 7, 13, 0.84)),
    linear-gradient(180deg, rgba(2, 7, 13, 0.18), rgba(2, 7, 13, 0.82));
}

.contact-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.58fr);
  gap: 18px;
  align-items: end;
}

.contact-panel,
.contact-note {
  background: rgba(5, 14, 24, 0.78);
  border: 1px solid rgba(215, 230, 238, 0.18);
  border-radius: 6px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.contact-panel {
  grid-column: 2;
  padding: 30px;
}

.contact-panel h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.7rem);
}

.contact-panel p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(247, 251, 255, 0.88);
  font-size: 1.05rem;
}

.contact-email {
  display: block;
  margin: 24px 0 18px;
  color: var(--lantern);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: #ffe18a;
}

.contact-card-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.contact-note {
  padding: 14px 16px;
}

.contact-note p {
  margin: 0;
}

.contact-note .status {
  margin-bottom: 5px;
  color: var(--lantern);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-note p:last-child {
  color: rgba(215, 230, 238, 0.82);
}

.site-footer {
  padding: 28px 0;
  color: rgba(215, 230, 238, 0.72);
  background: #02070d;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 1050px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .studio-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .studio-portrait-wrap {
    max-width: 440px;
  }

  .contact-panel,
  .contact-card-grid {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 16px;
  }

  .brand-mark span {
    display: none;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
  }

  .hero {
    min-height: 75vh;
    padding: 92px 20px 42px;
  }

  .hero-content {
    margin-left: 0;
  }

  .hero-logo {
    width: 122px;
    height: 122px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .hero-copy {
    font-size: 1.03rem;
  }

  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .section-heading {
    display: block;
  }

  .games-section,
  .craft,
  .studio,
  .contact-section {
    padding: 58px 0;
  }

  .games-grid,
  .craft-grid,
  .promise-list {
    grid-template-columns: 1fr;
  }

  .game-art {
    height: 188px;
  }

  .contact-section {
    min-height: 80vh;
  }

  .contact-video {
    object-position: 42% center;
  }

  .contact-panel {
    padding: 22px;
  }

  .footer-inner {
    display: grid;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
