:root {
  color-scheme: dark;
  --background: #151b1d;
  --panel: #222a2c;
  --border: #414c4e;
  --text: #f5f1e9;
  --muted: #c0c8c6;
  --amber: #f6af54;
  --cyan: #7bd0d6;
  --green: #c3dc8e;
  --gutter: clamp(1.25rem, 5.4vw, 5rem);
  --display: "Avenir Next Condensed", "Arial Narrow", "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.5rem; }
body { margin: 0; background: var(--background); color: var(--text); font: 1rem/1.7 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
button { color: inherit; font: inherit; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 5px; }
::selection { background: var(--amber); color: #151b1d; }
.wrap { width: min(100% - 2 * var(--gutter), 80rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: 1rem; left: var(--gutter); padding: .6rem 1rem; translate: 0 -200%; background: var(--amber); color: #151b1d; }
.skip:focus { translate: 0; }
.section { padding-block: clamp(4rem, 7.5vw, 7rem); }
.section-label, .announcement, .game-status, .game-art figcaption, .release span, .equipment-grid p {
  font-family: var(--mono);
  letter-spacing: .075em;
}
.section-label { margin: 0 0 1rem; color: var(--amber); font-size: .875rem; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font: 800 1rem/1.02 var(--display); text-wrap: balance; }
h2 { font-size: clamp(2.6rem, 5.6vw, 5rem); letter-spacing: -.035em; text-transform: uppercase; }
h2 span { color: var(--amber); }
p { color: var(--muted); }

.header { position: relative; z-index: 3; background: #151b1df5; border-bottom: 1px solid var(--border); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.5rem; }
.brand { display: inline-flex; flex: none; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 3rem; height: auto; }
.brand span { font: 650 .75rem/1.05 var(--display); letter-spacing: .3em; text-transform: uppercase; }
.brand strong { font-size: 1.4rem; font-weight: 800; letter-spacing: .045em; }
.navigation { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.8rem); }
.navigation a { color: #d6dbd8; text-decoration: none; font-size: .95rem; font-weight: 700; }
.navigation a:hover { color: var(--amber); }
.navigation .nav-contact { padding: .55rem 1rem; border: 1px solid #967043; color: var(--amber); }
.navigation .nav-contact:hover { background: #f6af5410; border-color: var(--amber); }
.menu-toggle { display: inline-flex; align-items: center; gap: .65rem; padding: .5rem .75rem; border: 1px solid #6b7371; background: var(--panel); color: var(--text); cursor: pointer; }
.menu-toggle i { width: 1rem; height: .625rem; border-block: 1px solid currentColor; }

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 20%, #36474777, transparent 60%), #151b1d;
}
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #5b6a6226; transform: skewX(-16deg); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 2.8rem; padding-block: clamp(3rem, 6vw, 6rem); }
.hero-content { position: relative; z-index: 1; animation: entrance .6s ease-out both; }
@keyframes entrance { from { opacity: 0; transform: translateY(10px); } }
.hero h1 { font-size: clamp(3rem, 5.75vw, 6rem); line-height: .98; letter-spacing: -.04em; text-transform: uppercase; }
.hero h1 span { display: inline-block; margin-top: .12em; color: var(--amber); }
.hero p { max-width: 31rem; margin: 1.5rem 0 1.8rem; color: #d1d9d4; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.2rem; padding: .65rem 1.2rem; border: 1px solid transparent; border-radius: 2px; font-weight: 750; text-align: center; text-decoration: none; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.button-primary { background: var(--amber); color: #1c2221; box-shadow: inset 0 -3px #00000025; }
.button-primary:hover { background: #ffc77d; }
.button-secondary { border-color: #778481; background: #263032; color: var(--text); }
.button-secondary:hover { background: #354345; border-color: #a7b9b1; }
.hero-visual { display: grid; gap: 1.2rem; padding-block: .5rem; }
.hero-world { position: relative; display: block; overflow: hidden; min-width: 0; border: 1px solid #6c7770; background: var(--panel); box-shadow: 0 16px 32px #080e1040; text-decoration: none; }
.hero-world::after { content: ""; position: absolute; inset: 35% 0 0; pointer-events: none; background: linear-gradient(transparent, #11191be6); }
.hero-world img { width: 100%; height: auto; aspect-ratio: 2.12; object-fit: cover; transition: transform .4s; }
.hero-world:hover img { transform: scale(1.025); }
.hero-world span { position: absolute; z-index: 1; left: 1.2rem; bottom: .65rem; color: #fff6eb; text-shadow: 0 2px 6px #000; font: 800 clamp(1.8rem, 3vw, 3rem)/1 var(--display); letter-spacing: -.015em; text-transform: uppercase; }
.hero-world-solvefire { margin-right: 2rem; border-bottom: 3px solid var(--cyan); }
.hero-world-drogue { margin-left: 2rem; border-bottom: 3px solid var(--green); }
.hero-world-drogue img { object-position: center 47%; }
.announcement { background: #2c3835; border-block: 1px solid #536354; font-size: .875rem; }
.announcement p { display: flex; align-items: center; gap: .85rem; min-height: 3.8rem; padding-block: .8rem; margin-block: 0; color: #e0e5d8; }
.announcement p span { width: .4rem; height: 1rem; flex: none; background: var(--amber); transform: skewX(-15deg); }

.studio { background: #1b2325; }
.studio-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 8vw, 8rem); align-items: center; }
.studio h2 { max-width: 15ch; margin-bottom: 1.5rem; }
.studio-layout > div > p:not(.section-label) { max-width: 40rem; }
.themes { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; margin: 1.6rem 0 0; padding-top: 1.2rem; border-top: 1px solid #4d5a58; }
.themes li { display: flex; align-items: center; gap: .55rem; color: #e4e9df; font-size: .94rem; font-weight: 650; }
.themes li::before { content: ""; width: .3rem; height: .75rem; background: var(--cyan); transform: skewX(-15deg); }
.studio-mark { position: relative; display: grid; place-items: center; justify-self: end; width: min(100%, 26rem); aspect-ratio: 1.12; isolation: isolate; border: 1px solid #546260; background: linear-gradient(145deg, #41504c, #253134 60%, #1a2527); box-shadow: inset 0 0 0 1rem #1a252744, 0 22px 40px #0a10102b; }
.studio-mark::before { content: ""; position: absolute; inset: 12%; border: 1px solid #82948477; transform: rotate(-6deg); z-index: -1; }
.studio-mark::after { content: ""; position: absolute; inset: 8%; border: 1px solid #9a855366; transform: rotate(6deg); z-index: -1; }
.studio-mark img { width: 40%; height: auto; filter: drop-shadow(0 10px 6px #0c1216aa); }

.games { border-block: 1px solid #46534d; background: linear-gradient(160deg, #202927, #131b1d 50%); }
.games h2 { margin-bottom: clamp(1.7rem, 4vw, 3rem); }
.game-grid { display: grid; gap: clamp(2.8rem, 5vw, 5rem); }
.game { --accent: var(--cyan); overflow: hidden; border: 1px solid #59645e; border-radius: 3px; background: #222b2d; box-shadow: 0 20px 50px #09111355; scroll-margin-top: 1rem; }
.game-drogue-flight { --accent: var(--green); }
.game-art { position: relative; margin: 0; border-bottom: 3px solid var(--accent); overflow: hidden; }
.game-art img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; }
.game-art figcaption { position: absolute; bottom: 1rem; left: 1rem; padding: .3rem .65rem; background: #172022e8; color: #f2f6ed; border: 1px solid #81927a66; font-size: .75rem; text-transform: uppercase; }
.game-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(1.3rem, 3.5vw, 3rem); }
.game-body p { margin: 0 0 1rem; }
.game-body .game-status { color: var(--accent); font-size: .875rem; }
.game-body h3 { font-size: clamp(2.8rem, 5.7vw, 5rem); line-height: 1; letter-spacing: -.025em; text-transform: uppercase; text-wrap: wrap; }
.game-body .game-tagline { margin: .7rem 0 1.8rem; color: var(--text); font-size: 1.15rem; font-weight: 700; }
.game-body .release { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; padding-top: 1rem; margin: 0; border-top: 1px solid #5b6a64; }
.release span { font-size: .875rem; text-transform: uppercase; }
.release time { color: var(--accent); font-size: 1.25rem; font-weight: 800; }
.features { display: flex; flex-wrap: wrap; gap: .4rem .7rem; margin: 1.3rem 0 0; padding-top: 1rem; border-top: 1px solid #445553; }
.features li { padding: .15rem 0; color: #dbe4d9; font-size: .875rem; }
.features li:not(:last-child)::after { content: "/"; margin-left: .7rem; color: #8a9c91; }

.equipment { background: #1a2224; }
.equipment-intro { max-width: 39rem; margin: 1rem 0 2rem; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 0; }
.equipment-grid li { display: flex; align-items: center; gap: clamp(.8rem, 1.8vw, 1.3rem); min-height: 7rem; padding: clamp(1rem, 1.8vw, 1.6rem); border: 1px solid #475652; border-radius: 2px; background: linear-gradient(135deg, #2d3838, #222d2e); box-shadow: inset 0 2px #6b7b6d26; }
.equipment-grid svg { width: 2.8rem; height: 2.8rem; color: var(--amber); flex: none; }
.equipment-grid h3 { margin-bottom: .5rem; font-family: var(--body); font-size: 1rem; line-height: 1.3; text-wrap: wrap; }
.equipment-grid p { margin: 0; font-size: .875rem; color: var(--green); }

.contact { padding-block: clamp(3rem, 6vw, 5.5rem); border-top: 1px solid #e4b15d; background: #edac58; }
.contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.contact h2 { max-width: 15ch; color: #202827; font-size: clamp(2.7rem, 4.5vw, 4.25rem); }
.contact p { max-width: 40rem; margin: 1rem 0 0; color: #293736; }
.contact .button { flex: none; background: #202b2e; color: #fff4e0; border-color: #202b2e; box-shadow: 0 4px 0 #9a622333; overflow-wrap: anywhere; }
.contact .button:hover { background: #34464a; }
.contact .button:focus-visible { outline-color: #172c31; }
.footer { border-top: 1px solid #384640; background: #12191b; }
.footer-inner { padding-block: 1.5rem; }
.footer p { margin: 0; font-size: .875rem; }

@media (max-width: 1000px) {
  .hero-inner { gap: 1.5rem; }
  .hero-world-solvefire { margin-right: .8rem; }
  .hero-world-drogue { margin-left: .8rem; }
  .studio-layout { gap: 2rem; }
  .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-inner { flex-direction: column; align-items: start; }
}
@media (max-width: 720px) {
  .header-inner { min-height: 4.5rem; padding-block: .65rem; flex-wrap: wrap; }
  .brand img { width: 2.6rem; }
  .brand strong { font-size: 1.25rem; }
  .navigation { width: 100%; flex-wrap: wrap; }
  .menu-toggle:not([hidden]) + .navigation { position: absolute; top: 100%; left: 0; padding: 1.1rem var(--gutter); background: #1b2527; border-bottom: 1px solid #657165; box-shadow: 0 10px 20px #0c14194d; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem 2rem; }
  .hero h1 { max-width: 13ch; font-size: clamp(3rem, 10.5vw, 5rem); }
  .hero p { margin-block: 1.2rem 1.5rem; }
  .hero-visual { gap: .8rem; }
  .hero-world img { aspect-ratio: 2.2; }
  .hero-world span { font-size: 2rem; }
  .studio-layout, .game-body { grid-template-columns: 1fr; }
  .studio-mark { justify-self: start; width: 100%; max-width: 32rem; aspect-ratio: 1.8; }
  .studio-mark img { width: 24%; }
  .studio-mark::before { inset: 16% 24%; }
  .studio-mark::after { inset: 13% 21%; }
  .game-body { gap: 1.5rem; }
  .game-body .game-tagline { margin-bottom: 1rem; }
  .game-art figcaption { bottom: .6rem; left: .6rem; padding: .2rem .5rem; }
  .footer-inner { flex-direction: column; align-items: start; }
}
@media (max-width: 500px) {
  .equipment-grid { grid-template-columns: 1fr; }
  .equipment-grid li { min-height: 6rem; }
  .hero-actions { gap: .65rem; }
  .button { padding-inline: 1rem; font-size: .94rem; }
  .hero-world span { left: .8rem; bottom: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
