@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/Teko-400.ttf") format("truetype");
}

@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/Teko-500.ttf") format("truetype");
}

@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/Teko-600.ttf") format("truetype");
}

@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/Teko-700.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --bg: #050606;
  --panel: rgba(5, 7, 7, 0.72);
  --text: #f2eee7;
  --muted: #b9b3aa;
  --dim: #7c766e;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --accent: #ff5a12;
  --max: 1452px;
  --header-h: 132px;
  font-family: "Courier New", Consolas, ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #050606;
  color: var(--text);
}

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: start;
  padding: 50px 42px 0;
  background: linear-gradient(180deg, rgba(5, 6, 6, 0.86), rgba(5, 6, 6, 0.20) 72%, transparent);
  transition: background 160ms ease, height 160ms ease, padding 160ms ease, box-shadow 160ms ease;
}

.site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(5, 6, 6, 0.86), rgba(5, 6, 6, 0.20) 72%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
}

.brand-logo {
  display: block;
  width: 176px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: flex-start;
  gap: 58px;
  color: rgba(242, 238, 231, 0.82);
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: flex-start;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--accent);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 10px;
  background: transparent;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--accent);
  transform-origin: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 390px;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 6, 0.90) 0%, rgba(5, 6, 6, 0.70) 34%, rgba(5, 6, 6, 0.20) 72%, rgba(5, 6, 6, 0.44) 100%),
    linear-gradient(180deg, rgba(5, 6, 6, 0.10) 0%, rgba(5, 6, 6, 0.04) 66%, #050606 100%),
    url("assets/BG.webp") center top / 100% auto no-repeat;
}

.hero-shell,
.content-grid,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 82px));
  margin-inline: auto;
}

.hero-shell {
  position: relative;
  z-index: 1;
}

.hero-copy {
  width: min(455px, 100%);
  padding-top: 54px;
  padding-bottom: 46px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 16px;
  line-height: 1;
  letter-spacing: 7px;
  text-transform: uppercase;
  font-weight: 700;
}

h1 span {
  color: var(--accent);
  margin-inline: 12px;
}

.hero-lede {
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.primary-action,
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 38px;
  color: var(--accent);
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
}

.primary-action {
  margin-top: 36px;
}

.primary-action:hover,
.text-action:hover,
.primary-action:focus-visible,
.text-action:focus-visible {
  color: #ff8b45;
}

.work-section {
  padding: 0 0 20px;
  background: #050606;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature-panel {
  min-height: 338px;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--panel);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.game-panel,
.software-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-panel {
  background-image:
    linear-gradient(90deg, rgba(5, 6, 6, 0.52), rgba(5, 6, 6, 0.12)),
    url("assets/triplex-panel.webp");
}

.software-panel {
  background-image:
    linear-gradient(90deg, rgba(5, 6, 6, 0.82) 0%, rgba(5, 6, 6, 0.66) 39%, rgba(5, 6, 6, 0.22) 62%, rgba(5, 6, 6, 0.06) 100%),
    url("assets/software-panel.webp");
  background-position: right center;
  background-size: 68% auto;
  background-repeat: no-repeat;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-copy {
  min-width: 0;
  padding: 45px 31px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(5, 6, 6, 0.62);
  backdrop-filter: blur(2px);
}

.software-panel .panel-copy {
  background: rgba(5, 6, 6, 0.62);
  backdrop-filter: blur(2px);
}

.panel-kicker,
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
}

.panel-copy h2 {
  margin-top: 32px;
  color: var(--text);
  display: inline-block;
  font-family: "Teko", "Arial Narrow", "Franklin Gothic Medium", Arial, sans-serif;
  font-size: 34px;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
  transform: scaleX(0.84);
  transform-origin: left center;
}

.about-section h2,
.studio-section h2,
.studio-strip strong {
  font-family: "Teko", "Arial Narrow", "Franklin Gothic Medium", Arial, sans-serif;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.panel-copy p:not(.panel-kicker) {
  margin-top: 27px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.panel-copy .text-action {
  margin-top: auto;
}

.mobile-label {
  display: none;
}

.panel-media {
  min-width: 0;
  min-height: 336px;
  position: relative;
  overflow: hidden;
  order: 2;
}

.triplex-media {
  background: transparent;
}

.software-media {
  display: block;
  background: transparent;
}

.lane,
.ship-core,
.shot,
.enemy-dot,
.tool-window,
.tool-chart {
  display: none;
}

.studio-section {
  padding: 20px 0 40px;
  background: #050606;
}

.studio-section .section-inner {
  min-height: 120px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: rgba(5, 7, 7, 0.65);
}

.studio-section h2 {
  position: relative;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 500;
}

.studio-section h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 18px;
  background: var(--accent);
}

.studio-lede {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.studio-action {
  justify-self: end;
}

.about-section,
.capabilities-section {
  padding: 78px 0;
  background: #050606;
  border-top: 1px solid var(--line-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 54px;
}

.about-section h2 {
  margin-top: 20px;
  font-size: 38px;
  line-height: 1.12;
  text-transform: uppercase;
}

.about-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.about-copy p + p {
  margin-top: 18px;
}

.about-butterfly {
  display: block;
  width: min(117px, 24vw);
  height: auto;
  margin: 82px 0 0 48%;
  transform: rotate(45deg);
  transform-origin: center;
  filter: brightness(0.72) contrast(1.06);
}

.studio-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--line-soft);
}

.studio-strip div {
  min-height: 150px;
  padding: 28px;
  background: rgba(9, 11, 11, 0.88);
}

.studio-strip strong,
.studio-strip span {
  display: block;
}

.studio-strip strong {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
}

.studio-strip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer {
  padding: 0 0 46px;
  background: #050606;
}

.footer-inner {
  display: grid;
  grid-template-columns: 250px 1fr 210px;
  gap: 70px;
  align-items: start;
  color: var(--muted);
}

.footer-brand .brand-logo {
  width: 86px;
  opacity: 0.78;
}

.footer-inner nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 54px;
}

.footer-inner nav div {
  display: grid;
  gap: 12px;
}

.footer-inner nav strong,
.footer-inner nav a {
  display: block;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
}

.footer-inner nav strong {
  color: var(--text);
  margin-bottom: 8px;
}

.footer-inner nav a {
  color: var(--dim);
}

.footer-contact {
  justify-self: end;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav {
    gap: 28px;
  }

  .content-grid,
  .game-panel,
  .software-panel,
  .studio-section .section-inner,
  .about-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .feature-panel {
    min-height: 0;
  }

  .panel-media {
    order: 0;
  }

  .studio-action,
  .footer-contact {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 88px;
  }

  .site-header {
    height: var(--header-h);
    padding: 24px 20px 0;
    align-items: start;
  }

  .brand-logo {
    width: 142px;
  }

  .menu-button {
    display: inline-block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px 20px 20px;
    background: rgba(5, 6, 6, 0.96);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    min-height: 48px;
    align-items: center;
    border-top: 1px solid var(--line-soft);
  }

  .site-nav a.is-active::after {
    display: none;
  }

  .hero-shell,
  .content-grid,
  .section-inner,
  .footer-inner {
    width: min(100% - 32px, var(--max));
  }

  .hero {
    min-height: 520px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 6, 6, 0.55), rgba(5, 6, 6, 0.72), #050606),
      url("assets/BG.webp") center top / cover no-repeat;
  }

  .hero-copy {
    padding-top: 72px;
  }

  h1 {
    font-size: 15px;
    letter-spacing: 5px;
  }

  .hero-lede {
    font-size: 15px;
  }

  .work-section,
  .studio-section,
  .about-section,
  .capabilities-section {
    padding-block: 28px;
  }

  .panel-media {
    min-height: 230px;
  }

  .panel-copy {
    padding: 28px 24px;
  }

  .panel-copy h2 {
    margin-top: 24px;
    font-size: 30px;
  }

  .studio-section .section-inner {
    padding: 24px;
  }

  .footer-inner nav,
  .studio-strip {
    grid-template-columns: 1fr;
  }
}
