/* MMU Frontier's front page for the Steam alpha. The colours are his Steam menu's: deep navy decks, amber for what you press, cyan
   for the tracks, one colour bar per game mode. Type: his Barlow Condensed for everything the game would say, Manrope for the rest. */
:root {
  --void: #04070b;
  --deck: #0b141b;
  --deck-2: #101c26;
  --line: #1c2f3c;
  --line-2: #2a4658;
  --ink: #eef2f3;
  --mute: #9db0b9;
  --dim: #6f848f;
  --amber: #f5a742;
  --amber-2: #ffc366;
  --cyan: #4fdbe9;
  --red: #ec5b4f;
  --gold: #f3c84b;
  --green: #45cf8e;
  --violet: #a385ff;
  --blue: #5aa9ff;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1280px;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --text: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--void); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .9; letter-spacing: .005em; }
p { margin: 0; }

.skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 14px; border-radius: 6px; background: var(--amber); color: #150d04; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* the bar: clear over the planet, a deck once the page moves */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px var(--gutter); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.bar.is-solid { background: rgba(5, 9, 13, .88); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.brand { display: flex; flex: none; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand-name { font: 700 23px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--amber); }
.brand-tag { padding: 4px 8px 3px; border: 1px solid rgba(245, 167, 66, .55); border-radius: 999px; background: rgba(245, 167, 66, .08); color: var(--amber-2); font: 700 10.5px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.bar-nav { display: flex; gap: 26px; margin-left: auto; }
.bar-nav a { padding: 8px 0; color: var(--mute); font: 600 14px/1 var(--text); text-decoration: none; }
.bar-nav a:hover { color: var(--ink); }
.bar-dl { flex: none; padding: 11px 16px 10px; border-radius: 6px; background: var(--amber); color: #150d04; font: 700 16px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background .2s; }
.bar-dl:hover { background: var(--amber-2); }

/* what you press, the way the game draws it: an amber key in a dark pill */
.prompt { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border: 1px solid rgba(245, 167, 66, .55); border-radius: 999px; background: rgba(6, 10, 14, .88); color: var(--ink); font: 700 15px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.prompt kbd { padding: 6px 8px; border-radius: 6px; background: var(--amber); color: #150d04; font: 800 12px/1 var(--text); letter-spacing: 0; text-transform: none; }

.btn-dl { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; padding: 15px 26px 14px; border-radius: 8px; background: var(--amber); color: #150d04; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 214, 150, .7), 0 14px 44px rgba(245, 167, 66, .28); transition: background .2s, box-shadow .2s; }
.btn-dl:hover { background: var(--amber-2); box-shadow: inset 0 0 0 1px rgba(255, 228, 180, .9), 0 18px 54px rgba(245, 167, 66, .42); }
.btn-dl-main { font: 700 25px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.btn-dl-sub { font: 600 12.5px/1.2 var(--text); opacity: .78; }
.btn-web { min-height: 60px; padding: 0 22px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(8, 13, 18, .6); color: var(--ink); font: 700 19px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s; }
.btn-web:hover { border-color: var(--amber); background: rgba(245, 167, 66, .08); }

/* THE HERO: Mars from orbit, in the game */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scaleX(-1); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 7, 11, .82) 0%, rgba(4, 7, 11, .42) 42%, rgba(4, 7, 11, 0) 68%), linear-gradient(0deg, rgba(4, 7, 11, .88) 0%, rgba(4, 7, 11, 0) 26%); }
.hero-in { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: var(--max); margin: 0 auto; padding: 118px var(--gutter) 24px; }
.hero-kick { margin-bottom: 20px; color: var(--amber-2); font: 600 16px/1.4 var(--text); }
.hero-title { margin: 0 0 28px; font-size: clamp(84px, 13.5vw, 212px); line-height: .8; letter-spacing: -.004em; }
.hero-lede { max-width: 34em; margin-bottom: 32px; color: #d9e2e6; font-size: clamp(16px, 1.35vw, 19px); }
.hero-go { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; }
.hero-note { margin-top: 16px; color: var(--mute); font-size: 14px; }
.hero-note a, .perks a, .web-link { color: var(--ink); text-decoration-color: var(--amber); text-underline-offset: 4px; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter) 28px; }
.build { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(4, 7, 11, .66); color: var(--mute); font-size: 14px; }
.build b { color: var(--ink); font-weight: 700; }
.build-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(69, 207, 142, .18); }
.build-pace { color: var(--cyan); }
.build-pace:empty { display: none; }
.prompt-jump { padding: 6px 18px 6px 6px; font-size: 18px; }
.prompt-jump kbd { padding: 7px 10px; font-size: 13px; }
.prompt-jump:hover { border-color: var(--amber-2); }

/* THE DROP: one jump, frame by frame. Without the page's script the frames simply stand one under another. */
.drop-stage { max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter) 40px; }
.drop-title { margin-bottom: 36px; color: var(--amber-2); font-size: clamp(30px, 3.6vw, 54px); line-height: .92; }
.drop-step + .drop-step { margin-top: 52px; }
.drop-img { width: 100%; border-radius: 10px; }
.drop-cap { margin-top: 18px; }
.drop-cap h3 { margin-bottom: 12px; font-size: clamp(40px, 5.2vw, 78px); line-height: .88; }
.drop-cap p { max-width: 32em; color: #dfe7ea; font-size: clamp(16px, 1.3vw, 19px); }
.drop-cap .keys { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: none; margin-top: 18px; }
.drop-go { color: var(--amber-2); font: 700 20px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 5px; }
.drop-rail { display: none; }

html.js .drop { height: calc(var(--steps) * 85vh + 15vh); }
@supports (height: 1svh) { html.js .drop { height: calc(var(--steps) * 85svh + 15svh); } }
html.js .drop-stage { position: sticky; top: 0; max-width: none; height: 100vh; height: 100svh; margin: 0; padding: 0; overflow: hidden; }
html.js .drop-title { position: absolute; top: calc(78px + 3vh); left: var(--gutter); z-index: 3; max-width: 11em; margin: 0; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); transition: opacity .5s ease; }
html.js .drop[data-at]:not([data-at="0"]) .drop-title { opacity: 0; }
html.js .drop-step { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
html.js .drop-step.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
html.js .drop-step::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(4, 7, 11, .95) 0%, rgba(4, 7, 11, .55) 30%, rgba(4, 7, 11, 0) 55%), linear-gradient(90deg, rgba(4, 7, 11, .8) 0%, rgba(4, 7, 11, .45) 28%, rgba(4, 7, 11, 0) 52%), linear-gradient(180deg, rgba(4, 7, 11, .7) 0%, rgba(4, 7, 11, 0) 22%); }
html.js .drop-img { position: absolute; inset: 0; height: 100%; border-radius: 0; object-fit: cover; transform: scale(calc(1.02 + var(--t, 0) * .08)); transform-origin: 50% 58%; will-change: transform; }
html.js .drop-cap { position: absolute; left: var(--gutter); bottom: clamp(28px, 7vh, 72px); z-index: 2; max-width: min(600px, calc(100% - 2 * var(--gutter) - 70px)); margin: 0; }
html.js .drop-rail { position: absolute; top: 50%; right: var(--gutter); z-index: 3; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; transform: translateY(-50%); }
.drop-rail button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 7px 0; border: 0; background: none; color: rgba(238, 242, 243, .5); font: 700 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.drop-rail button::after { content: ''; width: 22px; height: 2px; background: currentColor; transition: width .3s; }
.drop-rail button:hover { color: var(--ink); }
.drop-rail button[aria-current="step"] { color: var(--amber-2); }
.drop-rail button[aria-current="step"]::after { width: 46px; }

/* section heads */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 22px 64px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sec-head h2 { font-size: clamp(48px, 6.6vw, 104px); line-height: .86; }
.sec-head p { max-width: 36em; padding-bottom: 6px; color: var(--mute); font-size: clamp(16px, 1.25vw, 18px); }

/* THE MODES: his host menu, one bar of colour a mode */
.modes { padding: clamp(84px, 12vw, 150px) 0 clamp(70px, 10vw, 120px); background: radial-gradient(1100px 560px at 88% 0%, rgba(79, 219, 233, .06), transparent 62%), var(--void); }
.menu { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); align-items: start; gap: 22px; max-width: var(--max); margin: clamp(36px, 5vw, 56px) auto 0; padding: 0 var(--gutter); }
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.mode { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 14px 13px 16px; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 8px; background: var(--deck); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.mode:hover { border-color: var(--line-2); border-left-color: var(--c); }
.mode[aria-selected="true"] { border-color: var(--c); background: linear-gradient(90deg, rgba(245, 167, 66, .22), rgba(245, 167, 66, .03) 72%), var(--deck); }
@supports (background: color-mix(in srgb, red 50%, transparent)) {
  .mode[aria-selected="true"] { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 32%, transparent), color-mix(in srgb, var(--c) 5%, transparent) 72%), var(--deck); }
}
.mode-name { font: 600 22px/1.05 var(--display); letter-spacing: .01em; }
.mode-tag { color: var(--dim); font: 700 10.5px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.mode[aria-selected="true"] .mode-tag { color: var(--ink); }
.menu-panels { min-width: 0; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--deck); }
.panel[hidden] { display: none; }
.panel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0a1016; }
.panel-copy { padding: 22px 26px 26px; }
.panel-copy h3 { margin-bottom: 10px; font-size: clamp(32px, 3vw, 44px); }
.panel-copy p { max-width: 46em; color: #d5dee2; }
.panel-copy .panel-fine { margin-top: 12px; color: var(--mute); font-size: 15px; }
.tracks { width: 100%; margin-top: 4px; border-collapse: collapse; font-size: 15px; }
.tracks caption { padding: 4px 0 10px; color: var(--dim); font: 700 11.5px/1 var(--text); letter-spacing: .14em; text-align: left; text-transform: uppercase; }
.tracks th, .tracks td { padding: 9px 12px 9px 0; border-top: 1px solid var(--line); font-weight: 500; text-align: left; }
.tracks thead th { border-top: 0; color: var(--dim); font: 700 11px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; }
.tracks tbody th { color: var(--ink); font: 600 19px/1.1 var(--display); letter-spacing: .01em; }
.tracks td { color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* THE HEROES: his Genesis creator, step by step */
.heroes { padding: clamp(84px, 11vw, 140px) 0; background: linear-gradient(180deg, var(--void), #07101a 45%, var(--void)); }
.creator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.37fr); gap: clamp(14px, 2vw, 24px); max-width: var(--max); margin: clamp(36px, 5vw, 56px) auto 0; padding: 0 var(--gutter); list-style: none; }
.creator figure { margin: 0; }
.creator img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; }
.creator li + li img { aspect-ratio: 16 / 9; }
.creator figcaption { margin-top: 12px; color: var(--mute); font-size: 15px; }
.creator .step { display: block; margin-bottom: 6px; color: var(--amber-2); font: 700 20px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }

/* THE ALPHA */
.alpha { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: start; gap: clamp(32px, 6vw, 90px); max-width: var(--max); margin: 0 auto; padding: clamp(84px, 11vw, 140px) var(--gutter); }
.alpha h2 { margin-bottom: clamp(28px, 4vw, 44px); font-size: clamp(48px, 6.6vw, 104px); line-height: .86; }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; margin: 0; padding: 0; list-style: none; }
.perks li { padding-top: 16px; border-top: 2px solid var(--line-2); }
.perks h3 { margin-bottom: 8px; font-size: 27px; line-height: 1; }
.perks p { color: var(--mute); font-size: 16px; }
.alpha-card { position: sticky; top: 96px; padding: 26px 26px 24px; border: 1px solid rgba(245, 167, 66, .45); border-radius: 14px; background: linear-gradient(180deg, rgba(245, 167, 66, .09), rgba(245, 167, 66, 0) 42%), var(--deck); }
.alpha-label { color: var(--amber-2); font: 700 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.alpha-v { margin: 14px 0 6px; font: 700 clamp(84px, 9vw, 128px)/.85 var(--display); letter-spacing: -.01em; }
.alpha-date { margin-bottom: 22px; color: var(--mute); }
.alpha-card .btn-dl { display: flex; width: 100%; }
.alpha-card .btn-dl-main { font-size: 22px; }
.specs { margin: 22px 0 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--dim); }
.specs dd { margin: 0; color: var(--ink); text-align: right; }
.smart { margin-top: 16px; color: var(--mute); font-size: 13.5px; line-height: 1.55; }
.smart b { color: var(--ink); }

/* THE BROWSER EDITION */
.web { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: clamp(72px, 10vw, 120px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(900px 520px at 80% 50%, rgba(245, 167, 66, .1), transparent 65%), #070b10; }
.web h2 { margin-bottom: 22px; font-size: clamp(44px, 5.6vw, 88px); line-height: .88; }
.web-copy p { max-width: 36em; color: #cfd9dd; }
.web-copy p + p { margin-top: 12px; color: var(--mute); }
.web-copy .web-go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.btn-web-strong { border-color: var(--amber); }
.web-link { font-weight: 600; }
.web-copy .web-live { margin-top: 18px; color: var(--green); font-size: 14px; }
.web-cards { display: flex; align-items: center; justify-content: center; padding: 26px 0; }
.web-cards img { width: 21%; max-width: 200px; margin: 0 -2.2%; border-radius: 10px; box-shadow: 0 20px 44px rgba(0, 0, 0, .6); }
.web-cards img:nth-child(1) { transform: rotate(-11deg) translateY(22px); }
.web-cards img:nth-child(2) { transform: rotate(-5.5deg) translateY(6px); }
.web-cards img:nth-child(3) { position: relative; z-index: 2; transform: translateY(-4px) scale(1.07); }
.web-cards img:nth-child(4) { transform: rotate(5.5deg) translateY(6px); }
.web-cards img:nth-child(5) { transform: rotate(11deg) translateY(22px); }

/* READY TO DROP? (his creator's last words) */
.ready { position: relative; isolation: isolate; overflow: hidden; padding: clamp(90px, 12vw, 160px) 0; }
.ready-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ready::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 7, 11, .86), rgba(4, 7, 11, .3) 60%, rgba(4, 7, 11, .7)); }
.ready-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ready-copy { max-width: 640px; }
.ready h2 { margin-bottom: 20px; font-size: clamp(60px, 9vw, 150px); line-height: .82; }
.ready-copy p { margin-bottom: 28px; color: #d8e1e5; font-size: clamp(17px, 1.4vw, 20px); }

.foot { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px 40px; max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 56px; }
.foot-name { display: flex; align-items: center; gap: 10px; color: var(--amber); font: 700 20px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 26px; }
.foot-links a { color: var(--mute); font-size: 15px; font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-fine { grid-column: 1 / -1; color: var(--dim); font-size: 13px; }

@media (max-width: 980px) {
  .bar-nav { display: none; }
  .bar-dl { margin-left: auto; }
}
@media (max-width: 900px) {
  .menu { grid-template-columns: 1fr; }
  .menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode { flex-direction: column; align-items: flex-start; gap: 6px; }
  .alpha { grid-template-columns: 1fr; }
  .alpha-card { position: static; }
  .web { grid-template-columns: 1fr; }
  .web-cards { order: -1; padding: 10px 0 0; }
  .sec-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-go { flex-direction: column; }
  .hero-go .btn-dl, .hero-go .btn-web { width: 100%; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .perks { grid-template-columns: 1fr; }
  .creator { grid-template-columns: 1fr; }
  .mode-name { font-size: 19px; }
  .tracks th, .tracks td { padding-right: 8px; }
  .tracks tbody th { font-size: 17px; }
  html.js .drop-rail { top: 84px; transform: none; }
  .drop-rail button { gap: 0; font-size: 0; padding: 6px 0; }
  .drop-rail button::after { width: 14px; }
  .drop-rail button[aria-current="step"]::after { width: 30px; }
  html.js .drop-cap { max-width: calc(100% - 2 * var(--gutter)); }
  .foot { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .brand-tag { display: none; }
  .bar-dl { padding: 10px 12px 9px; font-size: 14px; }
}
@media (hover: none) {
  .prompt-jump { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .prompt-jump { animation: nudge 2.6s ease-in-out infinite; }
  @keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js .drop-img { transform: none; }
}
