:root {
  color-scheme: dark;
  --background: #080d10;
  --panel: #0d1519;
  --border: #25343a;
  --text: #f5faf9;
  --muted: #b5c2c7;
  --cyan: #72f2ee;
  --lime: #c9ff69;
  --gutter: clamp(1.25rem, 5.4vw, 5rem);
  --display: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --body: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--background); color: var(--text); font: 1rem/1.65 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
button { font: inherit; color: inherit; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
::selection { color: var(--background); background: var(--cyan); }

.wrap { width: min(100% - 2 * var(--gutter), 80rem); margin-inline: auto; }
.skip { position: absolute; z-index: 4; top: 1rem; left: var(--gutter); padding: .65rem 1rem; translate: 0 -200%; background: var(--lime); color: #080d10; }
.skip:focus { translate: 0; }
.section { padding-block: clamp(4rem, 8vw, 8rem); }
.section-label, .announcement, .game-status, .game-art figcaption, .release span, .equipment-grid p {
  font-family: var(--mono);
  letter-spacing: .085em;
}
.section-label { margin: 0 0 .9rem; color: var(--cyan); font-size: .875rem; text-transform: uppercase; }
h1, h2, h3 { font: 800 1rem/1.06 var(--display); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 5.5vw, 5rem); letter-spacing: -.065em; }
h2 span { color: var(--cyan); }
p { color: var(--muted); }

.header { position: relative; z-index: 3; background: #080d10; border-bottom: 1px solid #26383f; }
.header-inner, .footer-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; flex: none; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 3.625rem; height: auto; }
.brand span { font: 700 .7rem/1.14 var(--display); letter-spacing: .13em; text-transform: uppercase; }
.brand strong { font-size: 1.16rem; letter-spacing: .095em; }
.navigation { display: flex; align-items: center; gap: clamp(1rem, 3.1vw, 3rem); }
.navigation a { font-size: .91rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.navigation a:hover { color: var(--cyan); }
.navigation .nav-contact { padding: .48rem 1.1rem; color: var(--cyan); border: 1px solid #38605f; }
.navigation .nav-contact:hover { background: #183131; }
.menu-toggle { display: inline-flex; align-items: center; gap: .65rem; padding: .45rem .75rem; border: 1px solid var(--border); color: var(--cyan); background: var(--panel); cursor: pointer; }
.menu-toggle i { display: block; width: 1rem; height: .625rem; border-block: 1px solid currentColor; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #071316; }
.hero-art, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-art { object-fit: cover; object-position: center 39%; }
.hero-shade {
  background:
    linear-gradient(90deg, #061014 0%, #071115da 25%, #0711155e 55%, transparent 78%),
    linear-gradient(0deg, #080d10 0%, transparent 27%);
}
.hero-inner { min-height: clamp(36rem, 50vw, 49rem); display: flex; align-items: center; padding-block: 5rem; }
.hero-content { width: min(100%, 55rem); animation: hero-entrance .65s ease-out both; }
@keyframes hero-entrance { from { opacity: 0; transform: translateY(12px); } }
.hero h1 { font-size: clamp(3.1rem, 6.65vw, 7.25rem); line-height: .96; letter-spacing: -.08em; }
.hero h1 span { color: var(--cyan); }
.hero p { max-width: 31rem; margin: 1.65rem 0 1.85rem; font-size: clamp(1rem, 1.6vw, 1.18rem); color: #d3dfe0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.15rem; padding: .65rem 1.2rem; border: 1px solid transparent; font-weight: 750; text-align: center; text-decoration: none; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.button-primary { background: var(--cyan); color: #081416; }
.button-primary:hover { background: var(--lime); box-shadow: 0 0 1.25rem #c9ff6926; }
.button-secondary { border-color: #6c858b; background: #0c191cbb; color: var(--text); }
.button-secondary:hover { background: #193136; border-color: var(--cyan); }
.announcement { background: #0c191d; border-block: 1px solid #28454a; font-size: .875rem; }
.announcement p { display: flex; align-items: center; gap: .85rem; min-height: 3.75rem; padding-block: .65rem; margin-block: 0; color: #c8d8d9; }
.announcement p span { width: .45rem; aspect-ratio: 1; flex: none; rotate: 45deg; background: var(--lime); box-shadow: 0 0 .8rem #c9ff6980; }

.studio-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(2rem, 8vw, 8rem); align-items: center; }
.studio h2 { max-width: 13ch; margin-bottom: 1.45rem; text-wrap: wrap; }
.studio-layout > div > p:not(.section-label) { max-width: 40rem; }
.themes { display: flex; gap: .55rem .95rem; flex-wrap: wrap; padding-top: 1.15rem; margin: 1.4rem 0 0; border-top: 1px solid var(--border); }
.themes li { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .91rem; }
.themes li::before { content: ""; display: block; width: .37rem; height: .37rem; rotate: 45deg; background: var(--cyan); }
.studio-mark {
  width: min(100%, 26rem);
  aspect-ratio: 1.18;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  justify-self: end;
  overflow: hidden;
  border: 1px solid #21343a;
  background:
    radial-gradient(ellipse at center, #143238 0%, #0a1318 70%),
    #0a1318;
}
.studio-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#75f3ef16 1px, transparent 1px), linear-gradient(90deg, #75f3ef16 1px, transparent 1px);
  background-size: 1.7rem 1.7rem;
  mask-image: radial-gradient(ellipse at center, black, transparent 76%);
}
.studio-mark img { position: relative; width: 42%; height: auto; filter: drop-shadow(0 0 1.5rem #72f2ee66); }
.orbit { z-index: -1; position: absolute; border: 1px solid #415e63; width: 68%; aspect-ratio: 1; border-radius: 50%; }
.orbit-outer { border-style: dashed; opacity: .65; }
.orbit-inner { width: 57%; border-color: #528f94; box-shadow: 0 0 2rem #72f2ee1a, inset 0 0 2rem #72f2ee15; }

.games { border-block: 1px solid #26343b; background: linear-gradient(150deg, #0b1419, #090e12 56%); }
.games h2 { margin-bottom: clamp(1.6rem, 3.5vw, 3rem); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.3vw, 2rem); }
.game { --accent: var(--cyan); display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid #304248; }
.game-racing { --accent: var(--lime); }
.game-art { position: relative; margin: 0; overflow: hidden; border-bottom: 2px solid var(--accent); }
.game-art img { width: 100%; aspect-ratio: 1.79; height: auto; object-fit: cover; object-position: 50% 43%; transition: transform .45s ease; }
.game-racing .game-art img { object-position: 50% 50%; }
.game:hover .game-art img { transform: scale(1.025); }
.game-art figcaption { position: absolute; bottom: .85rem; left: .85rem; padding: .26rem .5rem; color: #eff8f8; background: #080d10db; font-size: .75rem; text-transform: uppercase; }
.game-body { flex: 1; display: flex; flex-direction: column; padding: clamp(1.1rem, 2.6vw, 2.1rem); }
.game-body p { margin: 0 0 .75rem; }
.game-body h3 { font-size: clamp(1.65rem, 3.1vw, 3rem); letter-spacing: -.045em; text-wrap: wrap; }
.game-body .game-status { color: var(--accent); font-size: .875rem; }
.game-body .game-tagline { color: var(--text); font-size: clamp(1.05rem, 1.7vw, 1.24rem); font-weight: 700; margin: .65rem 0; }
.features { display: flex; flex-wrap: wrap; align-content: start; gap: .45rem; margin: .55rem 0 1.35rem; }
.features li { padding: .2rem .56rem; border: 1px solid #395057; background: #172329; color: #d5e4e5; font-size: .875rem; }
.game-body .release { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem 1rem; margin: auto 0 0; padding-top: 1rem; border-top: 1px solid #35464d; }
.release span { font-size: .875rem; text-transform: uppercase; }
.release time { color: var(--accent); font-size: 1.25rem; font-weight: 800; }

.equipment-intro { max-width: 39rem; margin: 1rem 0 2rem; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0; }
.equipment-grid li { min-height: 6.5rem; display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.35rem); padding: clamp(.8rem, 1.7vw, 1.3rem); background: linear-gradient(145deg, #111c21, #0b1115); border: 1px solid var(--border); }
.equipment-grid svg { width: 2.75rem; height: 2.75rem; color: var(--cyan); flex: none; }
.equipment-grid h3 { margin-bottom: .3rem; font-size: 1.05rem; text-wrap: wrap; }
.equipment-grid p { margin: 0; font-size: .875rem; color: var(--lime); }

.contact { border-top: 1px solid #2d474b; background: radial-gradient(ellipse at 80% 0%, #143238, transparent 65%), #0d191d; padding-block: clamp(3rem, 6vw, 6rem); }
.contact-inner { display: flex; gap: 1.4rem 2rem; align-items: end; justify-content: space-between; }
.contact h2 { font-size: clamp(2.35rem, 4.5vw, 4.25rem); }
.contact p { max-width: 40rem; margin: 1rem 0 0; }
.contact a { flex: none; overflow-wrap: anywhere; }
.footer { border-top: 1px solid #283b42; }
.footer-inner { padding-block: 1.25rem; }
.footer p { margin: 0; font-size: .875rem; }

@media (max-width: 950px) {
  .studio-layout { gap: 2rem; }
  .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .header-inner { min-height: 4.15rem; flex-wrap: wrap; padding-block: .65rem; }
  .navigation { width: 100%; flex-wrap: wrap; }
  .menu-toggle:not([hidden]) + .navigation { position: absolute; top: 100%; left: 0; padding: 1rem var(--gutter); background: #0c1519; border-bottom: 1px solid var(--border); }
  .hero-inner { min-height: 37rem; align-items: end; padding-block: 12.5rem 2.8rem; }
  .hero-art { object-position: 68% 25%; }
  .hero-shade { background: linear-gradient(0deg, #080d10 0%, #080d10ef 20%, #080d10b0 42%, transparent 76%), linear-gradient(90deg, #07111572, transparent 78%); }
  .hero h1 { font-size: clamp(2.55rem, 9.6vw, 4.8rem); }
  .hero p { margin-block: 1rem 1.2rem; }
  .studio-layout, .game-grid { grid-template-columns: 1fr; }
  .studio-mark { width: min(100%, 32rem); justify-self: start; aspect-ratio: 1.65; }
  .orbit-outer { width: 47%; }
  .orbit-inner { width: 40%; }
  .studio-mark img { width: 28%; }
  .contact-inner { flex-direction: column; align-items: start; }
}
@media (max-width: 500px) {
  .equipment-grid { grid-template-columns: 1fr; }
  .equipment-grid li { min-height: 5.5rem; }
  .footer-inner { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
