/* Fly Car site. Same language as the game's instrument view:
   black void, steel hardware, cyan fuel as the only colour until something goes wrong. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(../fonts/BarlowCondensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(../fonts/BarlowCondensed-700.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(../fonts/Barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(../fonts/Barlow-500.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(../fonts/JetBrainsMono-500.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(../fonts/JetBrainsMono-700.woff2) format("woff2"); }

:root {
  --void: #000; --panel: #0c1a1c; --line: #1b2a2e; --steel: #c9ced3; --dim: #8b969c; --white: #fff;
  --fuel: #39f0ea; --warn: #ff5a55; --good: #6dffa8;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --data: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --page: 1280px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--void); color: var(--steel); font: 400 clamp(17px, 1.05vw + 13px, 19px)/1.55 var(--body); overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--fuel); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fuel); color: #000; padding: 8px 14px; z-index: 10; font-weight: 500; }
.skip:focus { left: 8px; }

/* ---- header ---- */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font: 700 22px/1 var(--display); letter-spacing: .06em; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.top nav { display: flex; gap: clamp(14px, 3vw, 32px); font: 500 13px/1 var(--data); }
.top nav a { color: var(--dim); text-decoration: none; padding: 10px 0; white-space: nowrap; }
.top nav a:hover { color: var(--fuel); }
@media (max-width: 520px) { .top nav .opt { display: none; } }

/* ---- hero ---- */
.hero { position: relative; overflow: clip; }
.hero .wrap { display: grid; grid-template-areas: "title" "art" "copy"; grid-template-columns: minmax(0, 1fr); padding-block: clamp(28px, 6vw, 72px) clamp(40px, 6vw, 80px); }
.hero h1 { grid-area: title; position: relative; z-index: 1; font: 700 31vw/.82 var(--display); letter-spacing: .005em; color: var(--white); text-transform: uppercase; }
.art { grid-area: art; position: relative; margin: -10vw calc(-1 * var(--gutter)) 8px; pointer-events: none; }
.art img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to bottom, #000 88%, transparent); }
/* The jets in the key art are lit by two soft flickering pools sitting over the plumes. */
.art i { position: absolute; width: 19%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(57, 240, 234, .34), transparent); mix-blend-mode: screen; animation: flick .19s steps(3, jump-none) infinite alternate; }
.art i:nth-of-type(1) { left: 18%; top: 56%; }
.art i:nth-of-type(2) { left: 56%; top: 49%; animation-duration: .23s; }
.copy { grid-area: copy; position: relative; display: grid; gap: 24px; }
.tag { font: 600 clamp(28px, 3.3vw, 42px)/1.08 var(--display); color: var(--white); letter-spacing: .01em; }
.lede { max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; background: var(--fuel); color: #00201f; font: 700 21px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-radius: 3px; }
.btn:hover { background: #fff; }
.btn[hidden] { display: none; }
.badge { font: 500 13px/1.3 var(--data); color: var(--steel); border: 1px solid var(--line); background: var(--panel); padding: 11px 14px; border-radius: 3px; }

/* The same gauge the game draws, drains once on load. */
.hud { max-width: 460px; display: grid; gap: 10px; }
.gauge { height: 16px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); padding: 3px; }
.gauge b { display: block; height: 100%; border-radius: 6px; background: var(--fuel); box-shadow: 0 0 10px var(--fuel); transform-origin: left; }
.hero .gauge b { animation: drain 3.2s cubic-bezier(.4, 0, .5, 1) .5s both; }
.stats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.stats div { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.stats small { font: 600 15px/1 var(--display); letter-spacing: .06em; color: var(--dim); }
.stats strong { font: 700 17px/1 var(--data); color: var(--white); }

/* Tablets have the width to run the title on one line, which keeps the car on the first screen. */
@media (min-width: 560px) and (max-width: 899px) {
  .hero h1 { font-size: 19.5vw; }
  .hero h1 br { display: none; }
  .art { margin-top: -4vw; }
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; grid-template-areas: "title art" "copy art"; column-gap: clamp(0px, 2vw, 32px); align-items: start; }
  .hero h1 { font-size: clamp(112px, 13.2vw, 184px); margin-bottom: 32px; }
  .art { margin: -2vw calc(-1 * var(--gutter)) 0 0; }
  .art img { -webkit-mask-image: linear-gradient(to right, transparent, #000 13%), linear-gradient(to bottom, #000 88%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 13%), linear-gradient(to bottom, #000 88%, transparent); mask-composite: intersect; }
}
/* On very wide screens the art stops growing and the page stays anchored. */
@media (min-width: 1400px) { .art { margin-right: 0; } }

/* ---- sections ---- */
.band { border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 112px); }
.eyebrow { font: 500 13px/1.3 var(--data); color: var(--fuel); letter-spacing: .04em; margin-bottom: 14px; }
h2 { font: 700 clamp(44px, 6.6vw, 88px)/.95 var(--display); color: var(--white); text-transform: uppercase; }
.head { max-width: 760px; display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 64px); }
.head p:not(.eyebrow) { max-width: 36em; }

/* flight sequence */
.flight { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 40px) clamp(14px, 2vw, 28px); counter-reset: f; }
.flight li { counter-increment: f; display: grid; align-content: start; gap: 8px; }
.shot { width: 100%; height: auto; aspect-ratio: 1; background: #000; border: 1px solid var(--line); border-radius: 4px; }
.flight h3 { font: 700 clamp(25px, 2.5vw, 32px)/1 var(--display); color: var(--white); letter-spacing: .04em; text-transform: uppercase; margin-top: 8px; }
.flight h3::before { content: "0" counter(f); display: block; font: 500 12px/1.6 var(--data); color: var(--fuel); letter-spacing: .04em; }
.flight p { font-size: .95em; line-height: 1.45; }
@media (min-width: 1000px) { .flight { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* landing window */
.window { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: center; }
.chart { width: 100%; margin: 0; }
.chart text { font-family: var(--data); font-size: 13px; font-weight: 500; }
.chart figcaption { font-size: .85em; color: var(--dim); margin-top: 12px; }
.outcomes { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); }
.outcomes li { display: grid; gap: 2px; padding-block: 16px; border-top: 1px solid var(--line); }
.outcomes b { font: 700 clamp(25px, 2.4vw, 30px)/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.ok { color: var(--good); } .bad { color: var(--warn); } .tilt { color: #ffb42e; }
.outcomes span { font-size: .95em; }
.window .head, .window .outcomes { grid-column: 1 / -1; }
.window .head { margin-bottom: 0; }
@media (min-width: 700px) { .outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(14px, 2vw, 28px); } }
@media (min-width: 900px) { .window { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

/* bonus fuel */
.bonus { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.bonus .head { margin-bottom: 0; }
.tanks { display: grid; gap: 20px; }
.tank { display: grid; gap: 8px; }
.tank > span { display: flex; justify-content: space-between; gap: 12px; font: 500 13px/1.3 var(--data); color: var(--dim); }
.tank > span em { font-style: normal; color: var(--white); white-space: nowrap; }
.how { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.how li { padding-left: 16px; border-left: 2px solid var(--fuel); }
@media (min-width: 900px) { .bonus { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* closing */
.close { text-align: left; }
.close .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: end; justify-content: space-between; }
.close h2 { font-size: clamp(56px, 11vw, 148px); line-height: .86; }

/* ---- footer: policy links stay in plain view at every width ---- */
.foot { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .9em; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.foot .links a { display: inline-block; padding-block: 8px; color: var(--white); text-underline-offset: 4px; }
.foot .links a:hover { color: var(--fuel); }
.foot .legal-note { flex-basis: 100%; color: var(--dim); font-size: .9em; }

/* ---- motion ---- */
@keyframes drain { from { transform: scaleX(1); } 78% { transform: scaleX(.3); } to { transform: scaleX(.34); } }
@keyframes flick { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art i, .hero .gauge b { animation: none; }
}
