/* Riot Control website. Colours are RIOT-64 swatches (src/art/palette.ts). Mobile first. */

@font-face {
  font-family: 'Dossier Display';
  src: url('../assets/fonts/dossier-display.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Dossier Small';
  src: url('../assets/fonts/dossier-small.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../assets/fonts/lato-regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../assets/fonts/lato-bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #1a1424;
  --gray1: #2b2538;
  --gray2: #3d364b;
  --gray3: #524b60;
  --gray4: #6a6476;
  --gray5: #857f8e;
  --gray6: #a39ea8;
  --gray7: #c4bfc0;
  --white: #f7f1e6;
  --zinc0: #26304a;
  --stone0: #4c3c4b;
  --stone2: #988676;
  --stone3: #bea990;
  --stone4: #ddcdab;
  --stone5: #f3e8c8;
  --earth0: #2d1a24;
  --earth1: #4b2a2e;
  --earth2: #6c3e36;
  --ochre1: #b98132;
  --ochre2: #dca848;
  --ochre3: #f3d46e;
  --rust0: #561e32;
  --rust1: #873036;
  --rust2: #b4483b;
  --crim1: #a1203c;
  --crim2: #e03c44;
  --plum0: #3a1d4a;
  --navy0: #151b38;
  --navy1: #212d5c;
  --navy2: #2f4488;
  --blue2: #5c9ce2;
  --green2: #2e6438;
  --green3: #4a8a3a;
  --hivis1: #c8d63a;
  --hivis2: #f0f56c;

  --bar: 56px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pop: cubic-bezier(0.3, 1.6, 0.5, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + var(--safe-t));
  background: var(--navy0);
}
html.is-locked {
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--navy0);
  color: var(--stone5);
  font:
    400 17px/1.55 Lato,
    system-ui,
    sans-serif;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img,
video,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: var(--hivis2);
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--hivis2);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--hivis2);
  color: var(--ink);
}
.skip:focus {
  top: 8px;
}
.pix,
.spr,
.street canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
html.touch .only-mouse,
html.mouse .only-touch {
  display: none;
}

/* ------------------------------------------------------------------ type */
/* Dossier Display: one font pixel = 1/16 em, so sizes are multiples of 16px. */
.h-pixel {
  --fp: 0.0625em;
  font:
    400 32px/1.15 'Dossier Display',
    Lato,
    sans-serif;
  letter-spacing: 0;
  color: var(--stone5);
  text-transform: uppercase;
  text-shadow:
    0 var(--fp) 0 var(--ink),
    var(--fp) 0 0 var(--ink),
    calc(var(--fp) * -1) 0 0 var(--ink),
    0 calc(var(--fp) * -1) 0 var(--ink),
    0 calc(var(--fp) * 2) 0 var(--rust1),
    var(--fp) calc(var(--fp) * 2) 0 var(--rust1),
    calc(var(--fp) * -1) calc(var(--fp) * 2) 0 var(--rust1),
    0 calc(var(--fp) * 3) 0 var(--ink);
  text-wrap: balance;
}
.h-pixel--ink {
  color: var(--ink);
  text-shadow: 0 0.125em 0 var(--stone3);
}
.h-small {
  font:
    400 20px/1.2 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  color: var(--hivis2);
  letter-spacing: 0.1em; /* one font pixel */
}
.lede {
  margin-top: 12px;
  max-width: 40em;
  color: var(--gray7);
  font-size: 18px;
}
.kicker {
  font:
    400 20px/1 'Dossier Small',
    Lato,
    sans-serif;
  color: var(--hivis2);
  text-transform: uppercase;
  letter-spacing: 0.1em; /* one font pixel */
}
@media (min-width: 700px) {
  .h-pixel {
    font-size: 48px;
  }
}
@media (min-width: 1100px) {
  .h-pixel {
    font-size: 64px;
  }
}

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: var(--hivis2);
  --fg: var(--ink);
  --edge: var(--hivis1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    400 20px/1 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.1em; /* one font pixel */
  clip-path: polygon(
    0 4px,
    4px 4px,
    4px 0,
    calc(100% - 4px) 0,
    calc(100% - 4px) 4px,
    100% 4px,
    100% calc(100% - 4px),
    calc(100% - 4px) calc(100% - 4px),
    calc(100% - 4px) 100%,
    4px 100%,
    4px calc(100% - 4px),
    0 calc(100% - 4px)
  );
  box-shadow:
    inset 0 -4px 0 var(--edge),
    inset 0 4px 0 rgba(255, 255, 255, 0.35);
  transition:
    transform 0.12s var(--ease),
    filter 0.2s;
  touch-action: manipulation;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 -2px 0 var(--edge);
}
.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.btn--small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 10px;
}
.btn--ghost {
  --bg: rgba(21, 27, 56, 0.55);
  --fg: var(--stone5);
  --edge: var(--gray3);
  box-shadow:
    inset 0 0 0 2px var(--stone5),
    inset 0 -4px 0 var(--gray3);
  backdrop-filter: blur(6px);
}
.btn--ink {
  --fg: var(--ink);
  --bg: transparent;
  box-shadow:
    inset 0 0 0 2px var(--ink),
    inset 0 -4px 0 var(--stone3);
  backdrop-filter: none;
}
.btn--play {
  --bg: var(--crim2);
  --fg: var(--white);
  --edge: var(--crim1);
}
.iconbtn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--stone5);
}
.iconbtn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  shape-rendering: crispEdges;
}

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  height: calc(var(--bar) + var(--safe-t));
  padding: var(--safe-t) max(var(--gutter), env(safe-area-inset-right)) 0
    max(var(--gutter), env(safe-area-inset-left));
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.topbar.is-solid {
  background: rgba(21, 27, 56, 0.86);
  backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 2px 0 var(--ink);
}
.topbar__logo {
  margin-right: auto;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.topbar.is-solid .topbar__logo {
  opacity: 1;
  transform: none;
}
.topbar__logo {
  text-decoration: none;
}
/* A logo-coloured wordmark: the logo PNG can't shrink below 1× on 1× screens. */
.wordmark {
  display: flex;
  align-items: center;
  gap: 6px;
  font:
    400 16px/1 'Dossier Display',
    Lato,
    sans-serif;
  text-transform: uppercase;
  color: var(--hivis2);
  text-shadow:
    1px 0 0 var(--ink),
    -1px 0 0 var(--ink),
    0 1px 0 var(--ink),
    0 2px 0 var(--ink);
}
.wordmark b {
  font-weight: 400;
  padding: 3px 6px 2px;
  background: var(--hivis2);
  color: var(--ink);
  text-shadow: none;
  box-shadow: 0 2px 0 var(--hivis1);
}
@media (min-width: 820px) {
  .wordmark {
    font-size: 32px;
  }
  .wordmark b {
    padding: 4px 8px 2px;
  }
}
.topbar__nav {
  display: none;
}
.topbar__nav a {
  padding: 8px 10px;
  color: var(--stone5);
  text-decoration: none;
  font:
    400 10px/1 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em; /* one font pixel */
}
.topbar__nav a:hover {
  color: var(--hivis2);
}
.topbar .btn--small {
  display: none;
}
@media (min-width: 820px) {
  .topbar__nav {
    display: flex;
    gap: 4px;
  }
  .topbar__nav a {
    font-size: 20px;
  }
  .topbar .btn--small {
    display: inline-flex;
  }
}

/* ------------------------------------------------------------------ hero */
.hero {
  --p: 0;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--bar) + var(--safe-t) + 24px) var(--gutter) 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero__art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  transform: translateY(calc(var(--p) * 22%)) scale(calc(1.06 + var(--p) * 0.12));
  filter: brightness(calc(0.72 - var(--p) * 0.35)) saturate(1.1);
  will-change: transform;
}
html.js .hero__art img {
  animation: kenburns 2.8s var(--ease) both;
}
@keyframes kenburns {
  from {
    scale: 1.18;
    opacity: 0;
  }
  to {
    scale: 1;
    opacity: 1;
  }
}
.hero__gas {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 30% at 20% 80%, rgba(196, 191, 192, 0.18), transparent 70%),
    radial-gradient(35% 25% at 75% 70%, rgba(200, 144, 234, 0.12), transparent 70%),
    radial-gradient(30% 22% at 50% 95%, rgba(247, 241, 230, 0.16), transparent 70%);
  animation: gas 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes gas {
  to {
    transform: translate3d(6%, -4%, 0) scale(1.1);
  }
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 30%, rgba(21, 27, 56, 0.85) 100%),
    linear-gradient(
      to bottom,
      rgba(21, 27, 56, 0.55),
      transparent 30%,
      transparent 60%,
      var(--navy0) 98%
    );
}
.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 980px;
  transform: translateY(calc(var(--p) * -18%));
  opacity: calc(1 - var(--p) * 1.4);
}
.hero__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 14px;
}
.hero__logo .pix {
  filter: drop-shadow(0 6px 0 rgba(26, 20, 36, 0.7)) drop-shadow(0 0 40px rgba(240, 245, 108, 0.25));
}
.hero__edition {
  margin-top: 8px;
  padding: 6px 18px 4px;
  background: var(--crim2);
  color: var(--white);
  font:
    400 32px/1 'Dossier Display',
    Lato,
    sans-serif;
  text-transform: uppercase;
  box-shadow:
    0 4px 0 var(--crim1),
    0 8px 0 var(--ink);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%);
  padding-inline: 28px;
}
.hero__sub {
  margin-top: 22px;
  font:
    400 20px/1.2 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em; /* one font pixel */
  color: var(--hivis2);
}
.hero__tag {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 0 var(--ink);
}
.disclaimer {
  margin-top: 18px;
  font-size: 13px;
  color: var(--gray6);
}

/* Coming soon stamp */
.stamp {
  margin: 22px 0 6px;
  padding: 8px 18px 6px;
  border: 4px solid var(--crim2);
  outline: 2px solid var(--crim2);
  outline-offset: 3px;
  color: var(--crim2);
  font:
    400 32px/1 'Dossier Display',
    Lato,
    sans-serif;
  text-transform: uppercase;
  transform: rotate(-6deg);
  background: rgba(26, 20, 36, 0.45);
  mix-blend-mode: normal;
  text-shadow: 0 2px 0 var(--ink);
}
html.js .stamp--hero {
  animation: slam 0.5s 1.1s var(--pop) both;
}
@keyframes slam {
  0% {
    opacity: 0;
    transform: rotate(-14deg) scale(2.6);
  }
  70% {
    opacity: 1;
    transform: rotate(-5deg) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: rotate(-6deg) scale(1);
  }
}
html.js .hero__content {
  animation: shake 0.28s 1.45s steps(4) both;
}
@keyframes shake {
  25% {
    translate: 3px 2px;
  }
  50% {
    translate: -3px -1px;
  }
  75% {
    translate: 2px -2px;
  }
  100% {
    translate: 0 0;
  }
}

/* Platforms */
.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 640px;
  margin-top: 18px;
}
.platforms li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px 9px;
  background: rgba(21, 27, 56, 0.72);
  box-shadow:
    inset 0 0 0 2px var(--gray3),
    0 4px 0 var(--ink);
  backdrop-filter: blur(6px);
}
.platforms__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}
.platforms__state {
  font:
    400 10px/1.2 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em; /* one font pixel */
  color: var(--gray6);
}
.platforms__state::after {
  content: ' · soon';
  color: var(--hivis2);
}
.platforms li.is-you {
  box-shadow:
    inset 0 0 0 2px var(--hivis2),
    0 4px 0 var(--ink),
    0 0 24px rgba(240, 245, 108, 0.25);
}
.platforms li.is-you::before {
  content: 'You';
  position: absolute;
  top: -9px;
  right: 8px;
  padding: 3px 6px 2px;
  background: var(--hivis2);
  color: var(--ink);
  font:
    400 10px/1 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
}
.platforms__hint {
  margin-top: 10px;
  font-size: 14px;
  color: var(--gray7);
}
@media (min-width: 640px) {
  .platforms {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.scrollcue {
  position: absolute;
  left: 50%;
  bottom: calc(18px + var(--safe-b));
  width: 44px;
  height: 44px;
  translate: -50% 0;
  display: grid;
  place-items: center;
  opacity: calc(1 - var(--p) * 4);
}
.scrollcue span {
  width: 16px;
  height: 16px;
  background: var(--hivis2);
  clip-path: polygon(
    0 25%,
    25% 25%,
    25% 50%,
    37.5% 50%,
    37.5% 62.5%,
    62.5% 62.5%,
    62.5% 50%,
    75% 50%,
    75% 25%,
    100% 25%,
    100% 50%,
    87.5% 50%,
    87.5% 62.5%,
    75% 62.5%,
    75% 75%,
    62.5% 75%,
    62.5% 87.5%,
    37.5% 87.5%,
    37.5% 75%,
    25% 75%,
    25% 62.5%,
    12.5% 62.5%,
    12.5% 50%,
    0 50%
  );
  animation: bob 1.2s steps(3) infinite alternate;
}
@keyframes bob {
  to {
    transform: translateY(6px);
  }
}

/* ------------------------------------------------------------------ ticker */
.ticker {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--ink);
  border-block: 6px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--hivis2) 0 8px, var(--ink) 8px 16px) 6;
  overflow: hidden;
}
.ticker__label {
  flex: none;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 0 12px;
  background: var(--crim2);
  color: var(--white);
  font:
    400 10px/1 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em; /* one font pixel */
  box-shadow: 6px 0 0 var(--ink);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: crawl 70s linear infinite;
}
.ticker__row {
  display: flex;
  padding: 12px 0;
  white-space: nowrap;
  font:
    400 20px/1 'Dossier Small',
    Lato,
    sans-serif;
  color: var(--stone4);
}
.ticker__row span {
  padding: 0 28px;
}
.ticker__row span::after {
  content: '★';
  margin-left: 56px;
  color: var(--hivis2);
}
@keyframes crawl {
  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------------ street toy */
.street {
  padding: 72px 0 0;
  background: linear-gradient(var(--navy0), var(--zinc0));
}
.street__stage {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  background: var(--gray4);
}
.street canvas {
  cursor: crosshair;
}
.street__hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding: 10px var(--gutter) 8px;
  background: var(--earth1);
  box-shadow:
    inset 0 2px 0 var(--earth2),
    inset 0 -3px 0 var(--earth0);
  font:
    400 20px/1 'Dossier Small',
    Lato,
    sans-serif;
  color: var(--stone4);
  text-transform: uppercase;
}
.hud__item b {
  font-weight: 400;
  color: var(--white);
}
.hud__hate {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -1px;
  background: var(--crim2);
  box-shadow: inset -2px -2px 0 var(--crim1);
  clip-path: polygon(15% 0, 85% 0, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0 85%, 0 15%);
}
.hud__integrity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.hud__bar {
  display: block;
  width: 96px;
  height: 12px;
  background: var(--ink);
  box-shadow: inset 0 0 0 2px var(--earth0);
  padding: 2px;
}
.hud__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--stone5);
  transition: width 0.25s steps(5);
}
.street__toast {
  position: absolute;
  left: 50%;
  top: 58%;
  translate: -50% -50%;
  padding: 10px 14px 8px;
  background: var(--ink);
  color: var(--hivis2);
  font:
    400 20px/1.1 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 0 0 2px var(--hivis2);
  pointer-events: none;
}
@media (max-width: 520px) {
  .street__toast {
    font-size: 10px;
  }
  .street__hud {
    font-size: 10px;
    gap: 6px 12px;
  }
  .hud__bar {
    width: 64px;
  }
}

/* ------------------------------------------------------------------ story */
.story {
  padding: 88px 0 40px;
  background: var(--zinc0);
}
.story__grid {
  position: relative;
  max-width: 1160px;
  margin: 28px auto 0;
  padding: 0 var(--gutter);
}
.story__screen {
  position: sticky;
  top: calc(var(--bar) + var(--safe-t) + 8px);
  z-index: 2;
}
.screen {
  position: relative;
  aspect-ratio: 1280 / 590;
  background: var(--ink);
  box-shadow:
    0 0 0 4px var(--ink),
    0 0 0 6px var(--gray3),
    0 0 0 10px var(--ink),
    0 18px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.screen__vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.screen__vid.is-on {
  opacity: 1;
}
.screen__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(26, 20, 36, 0.12) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
}
.screen__rec {
  position: absolute;
  left: 10px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 3px;
  background: rgba(26, 20, 36, 0.75);
  font:
    400 10px/1 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  color: var(--white);
}
.screen__rec i {
  width: 6px;
  height: 6px;
  background: var(--crim2);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.story__steps {
  position: relative;
  padding: 8px 0 24vh;
}
.step {
  min-height: 62vh;
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 24px 18px;
  border-left: 4px solid var(--gray2);
  opacity: 0.38;
  transition:
    opacity 0.4s,
    border-color 0.4s;
}
.step.is-on {
  opacity: 1;
  border-color: var(--hivis2);
}
.step__num {
  font:
    400 20px/1 'Dossier Small',
    Lato,
    sans-serif;
  color: var(--hivis2);
}
.step__title {
  margin: 8px 0 10px;
  font:
    400 32px/1.1 'Dossier Display',
    Lato,
    sans-serif;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 0 var(--ink);
}
.step p {
  max-width: 34em;
  color: var(--gray7);
}
.meters {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.meter {
  flex: 1;
  max-width: 200px;
  padding: 10px 12px 8px;
  background: var(--ink);
  box-shadow: inset 0 0 0 2px var(--gray3);
}
.meter span {
  display: block;
  font:
    400 10px/1 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  color: var(--gray6);
}
.meter b {
  display: block;
  margin-top: 6px;
  font:
    400 32px/1 'Dossier Display',
    Lato,
    sans-serif;
  color: var(--hivis2);
  font-variant-numeric: tabular-nums;
}
.meter:first-child b {
  color: var(--crim2);
}
@media (min-width: 960px) {
  .story__grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 56px;
  }
  .story__screen {
    order: 2;
    top: calc(50vh - 15vw + var(--bar) / 2);
    align-self: start;
  }
  .story__steps {
    padding: 10vh 0 20vh;
  }
  .step {
    min-height: 80vh;
  }
}

/* ------------------------------------------------------------------ carousels */
.carousel {
  position: relative;
  margin-top: 28px;
}
.carousel__track {
  --card: min(80vw, 330px);
  display: flex;
  gap: 18px;
  padding: 24px calc(50% - var(--card) / 2) 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline-offset: -4px;
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
.carousel__track > li {
  flex: none;
  width: var(--card);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition:
    transform 0.45s var(--ease),
    opacity 0.45s;
}
html.js .carousel__track > li:not(.is-active) {
  transform: scale(0.92);
  opacity: 0.55;
}
.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.carousel__dots {
  display: flex;
  gap: 6px;
}
.carousel__dots i {
  width: 8px;
  height: 8px;
  background: var(--gray3);
  transition:
    background 0.2s,
    width 0.2s;
}
.carousel__dots i.is-on {
  width: 20px;
  background: var(--hivis2);
}

/* ------------------------------------------------------------------ units */
.units {
  padding: 96px 0 72px;
  background:
    radial-gradient(60% 50% at 50% 60%, rgba(47, 68, 136, 0.35), transparent 70%), var(--navy0);
}
.dossier {
  position: relative;
  padding: 18px 16px 18px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 27px, rgba(152, 134, 118, 0.25) 27px 28px),
    var(--stone5);
  color: var(--ink);
  box-shadow:
    0 0 0 3px var(--ink),
    6px 8px 0 3px rgba(26, 20, 36, 0.5);
  cursor: pointer;
}
.dossier__tab {
  position: absolute;
  top: -20px;
  left: 12px;
  padding: 6px 12px 4px;
  background: var(--stone4);
  box-shadow: 0 0 0 3px var(--ink);
  clip-path: inset(-3px -3px 0 -3px);
  font:
    400 10px/1 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.1em; /* one font pixel */
}
.dossier__art {
  position: relative;
  display: grid;
  place-items: end center;
  height: 190px;
  padding-bottom: 18px;
  background:
    linear-gradient(to bottom, transparent 70%, rgba(26, 20, 36, 0.25) 70%),
    linear-gradient(var(--zinc0), var(--navy1));
  box-shadow: inset 0 0 0 3px var(--ink);
  overflow: hidden;
}
.dossier__art::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 90px;
  height: 10px;
  translate: -50% 0;
  background: rgba(26, 20, 36, 0.45);
  clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
}
.dossier__art .spr {
  position: relative;
  z-index: 1;
}
.dossier.is-poked .dossier__art .spr {
  animation-name: sprite, hop;
  animation-duration: var(--dur), 0.3s;
  animation-timing-function: steps(var(--n)), steps(3);
  animation-iteration-count: infinite, 1;
}
@keyframes hop {
  50% {
    translate: 0 -8px;
  }
}
.dossier__name {
  margin-top: 14px;
  font:
    400 32px/1 'Dossier Display',
    Lato,
    sans-serif;
  text-transform: uppercase;
}
.dossier__role {
  margin-top: 8px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
}
.dossier__quip {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--stone0);
}
.dossier__foot {
  margin-top: 10px;
  font:
    400 10px/1.2 'Dossier Small',
    Lato,
    sans-serif;
  color: var(--crim1);
}
.seal {
  position: absolute;
  top: 34px;
  right: 22px;
  z-index: 2;
  padding: 6px 10px 4px;
  border: 3px solid var(--green3);
  outline: 2px solid var(--green3);
  outline-offset: 2px;
  color: var(--green3);
  background: rgba(243, 232, 200, 0.85);
  font:
    400 20px/1 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  transform: rotate(-12deg);
  pointer-events: none;
}
html.js .seal {
  opacity: 0;
}
html.js .is-stamped .seal {
  animation: seal 0.42s 0.25s var(--pop) both;
}
@keyframes seal {
  from {
    opacity: 0;
    transform: rotate(-24deg) scale(2.4);
  }
  to {
    opacity: 1;
    transform: rotate(-12deg) scale(1);
  }
}

/* ------------------------------------------------------------------ sprites */
.spr {
  --s: 3;
  --n: 1;
  --w: 16;
  --h: 16;
  --dur: 0.8s;
  display: inline-block;
  width: calc(var(--w) * var(--s) * 1px);
  height: calc(var(--h) * var(--s) * 1px);
  background-repeat: no-repeat;
  background-size: calc(var(--w) * var(--n) * var(--s) * 1px) calc(var(--h) * var(--s) * 1px);
  animation: sprite var(--dur) steps(var(--n)) infinite;
}
@keyframes sprite {
  from {
    background-position: 0 0;
  }
  to {
    background-position: calc(var(--w) * var(--n) * var(--s) * -1px) 0;
  }
}

/* ------------------------------------------------------------------ lineup */
.lineup {
  padding: 88px 0 80px;
  background: var(--navy0);
}
.lineup__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  max-width: 1160px;
  margin: 32px auto 0;
  padding: 0 var(--gutter);
}
.suspect {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px 14px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 23px, rgba(26, 20, 36, 0.45) 23px 25px),
    var(--gray3);
  text-align: center;
  overflow: hidden;
}
.suspect .spr {
  height: calc(var(--h) * var(--s) * 1px);
  margin-top: auto;
}
.suspect b {
  display: block;
  margin-top: 10px;
  padding: 5px 8px 3px;
  background: var(--ink);
  color: var(--white);
  font:
    400 10px/1.2 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em; /* one font pixel */
}
.suspect span {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--stone4);
}
.suspect--wanted {
  background:
    repeating-linear-gradient(to bottom, transparent 0 23px, rgba(26, 20, 36, 0.45) 23px 25px),
    var(--rust1);
}
.suspect--wanted b {
  background: var(--crim2);
}
@media (max-width: 639px) {
  .suspect:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}
@media (min-width: 640px) {
  .lineup__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .suspect b {
    font-size: 20px;
  }
}
@media (min-width: 1000px) {
  .lineup__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------ cities */
.cities {
  padding: 96px 0 80px;
  background: linear-gradient(to bottom, var(--navy0), var(--plum0) 55%, var(--navy0));
}
.cities__track {
  --card: min(86vw, 560px);
}
.postcard {
  background: var(--stone5);
  color: var(--ink);
  box-shadow:
    0 0 0 3px var(--ink),
    8px 10px 0 3px rgba(26, 20, 36, 0.45);
}
.postcard:nth-child(even) {
  rotate: 0.8deg;
}
.postcard:nth-child(odd) {
  rotate: -0.8deg;
}
.postcard__scene {
  --o: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  border: 8px solid var(--stone5);
  border-bottom: 0;
}
.postcard__bg {
  position: absolute;
  inset: 0 -8%;
  width: 116%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform: translateX(calc(var(--o) * -6%));
}
.postcard__minister {
  position: absolute;
  max-width: none;
  height: auto;
  transform: translateX(calc(var(--o) * 22%)) scale(0.96);
  transform-origin: 50% 100%;
  transition: scale 0.5s var(--pop);
  filter: drop-shadow(0 6px 10px rgba(26, 20, 36, 0.45));
}
.postcard.is-active .postcard__minister {
  scale: 1.04;
}
.postcard__stamp {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 8px 4px;
  background: var(--stone5);
  color: var(--crim1);
  font:
    400 10px/1 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  outline: 2px dashed var(--crim1);
  outline-offset: -5px;
  padding-inline: 10px;
}
.postcard__body {
  padding: 14px 16px 16px;
}
.postcard__city {
  font:
    400 32px/1 'Dossier Display',
    Lato,
    sans-serif;
  text-transform: uppercase;
}
.postcard__tag {
  margin-top: 6px;
  font-weight: 700;
  font-size: 16px;
}
.postcard__line {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--stone0);
}
.postcard__line span {
  font:
    400 10px/1 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  color: var(--crim1);
}
.mercs {
  margin-top: 56px;
  text-align: center;
}
.mercs__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 24px 32px;
  margin-top: 20px;
}
.mercs__row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mercs__row b {
  font:
    400 10px/1.2 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  color: var(--stone4);
}

/* ------------------------------------------------------------------ screenshots */
.shots {
  padding: 88px 0 72px;
  background: var(--navy0);
}
.shots__grid {
  display: grid;
  gap: 12px;
  max-width: 1160px;
  margin: 28px auto 0;
  padding: 0 var(--gutter);
}
.shot a {
  display: block;
  overflow: hidden;
  background: var(--ink);
  box-shadow:
    0 0 0 3px var(--ink),
    0 0 0 5px var(--gray2);
  transition:
    box-shadow 0.2s,
    transform 0.3s var(--ease);
}
.shot a:hover,
.shot a:focus-visible {
  box-shadow:
    0 0 0 3px var(--ink),
    0 0 0 5px var(--hivis2);
  transform: translateY(-3px);
}
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@supports (animation-timeline: view()) {
  .shot img {
    animation: settle linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }
  @keyframes settle {
    from {
      transform: scale(1.18);
      filter: brightness(0.6);
    }
    to {
      transform: scale(1);
      filter: brightness(1);
    }
  }
}
@media (min-width: 700px) {
  .shots__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .shot--wide {
    grid-column: span 2;
  }
}

/* ------------------------------------------------------------------ trailer */
.trailer {
  padding: 72px 0 88px;
  background: linear-gradient(var(--navy0), var(--rust0));
}
.trailer__poster {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: var(--ink);
  box-shadow:
    0 0 0 4px var(--ink),
    0 0 0 6px var(--hivis2),
    0 24px 60px rgba(0, 0, 0, 0.5);
}
.trailer__poster img {
  width: 100%;
  height: auto;
  filter: brightness(0.8);
  transition: filter 0.3s;
}
.trailer__poster:hover img {
  filter: brightness(1);
}
.trailer__play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  background: var(--crim2);
  box-shadow:
    inset 0 -6px 0 var(--crim1),
    0 0 0 4px var(--ink);
  animation: pulse 1.6s ease-in-out infinite;
}
.trailer__play svg {
  width: 40px;
  height: 40px;
  fill: var(--white);
}
@keyframes pulse {
  50% {
    box-shadow:
      inset 0 -6px 0 var(--crim1),
      0 0 0 4px var(--ink),
      0 0 0 14px rgba(224, 60, 68, 0.3);
  }
}
.trailer__len {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 6px 3px;
  background: var(--ink);
  font:
    400 10px/1 'Dossier Small',
    Lato,
    sans-serif;
  color: var(--white);
}

/* ------------------------------------------------------------------ notify */
.notify {
  padding: 72px 0 96px;
  background:
    repeating-linear-gradient(90deg, rgba(26, 20, 36, 0.12) 0 2px, transparent 2px 18px),
    var(--rust0);
}
.notify__inner {
  display: grid;
  justify-items: center;
}
.notify__minister {
  width: min(70vw, 340px);
  height: auto;
  margin-bottom: -24px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 0 rgba(26, 20, 36, 0.4));
}
.notify__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  padding: 28px 20px 24px;
  background: var(--stone5);
  color: var(--ink);
  box-shadow:
    0 0 0 3px var(--ink),
    8px 10px 0 3px rgba(26, 20, 36, 0.45);
}
.notify__card .dossier__tab {
  background: var(--crim2);
  color: var(--white);
}
.notify__card p {
  margin-top: 10px;
}
.notify__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.notify__form input {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font:
    400 17px Lato,
    sans-serif;
  box-shadow: inset 0 0 0 3px var(--ink);
  border-radius: 0;
}
.notify__form input:focus {
  outline: 3px solid var(--crim2);
  outline-offset: 0;
}
.notify__form .btn {
  flex: 1 1 auto;
}
.notify__status {
  min-height: 1.5em;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--crim1);
}
.notify__share {
  margin-top: 8px;
}
@media (min-width: 900px) {
  .notify__inner {
    grid-template-columns: 5fr 7fr;
    align-items: end;
    gap: 0;
  }
  .notify__minister {
    width: 100%;
    max-width: 420px;
    margin: 0 -40px 0 0;
  }
  .notify__card {
    padding: 36px 32px 28px;
  }
}

/* ------------------------------------------------------------------ footer */
.footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px var(--gutter) calc(110px + var(--safe-b));
  background: var(--ink);
  text-align: center;
  color: var(--gray6);
  font-size: 14px;
}
.footer__small {
  font-size: 12px;
  color: var(--gray4);
}
@media (min-width: 820px) {
  .footer {
    padding-bottom: 48px;
  }
}

/* ------------------------------------------------------------------ mobile dock */
.dock {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + var(--safe-b));
  z-index: 45;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(26, 20, 36, 0.92);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 2px var(--gray3),
    0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(calc(100% + 30px));
  transition: transform 0.45s var(--pop);
}
.dock.is-on {
  transform: none;
}
.dock button,
.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  border: 0;
  padding: 0 12px;
  font:
    400 10px/1 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  text-decoration: none;
}
.dock svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.dock__trailer {
  background: var(--crim2);
  color: var(--white);
}
.dock__main {
  flex: 1;
  flex-direction: column;
  gap: 4px !important;
  background: var(--hivis2);
  color: var(--ink);
}
.dock__main span {
  font-size: 10px;
}
.dock__main small {
  font-size: 10px;
  opacity: 0.7;
}
.dock__share {
  background: var(--gray2);
  color: var(--white);
  width: 48px;
}
@media (min-width: 820px) {
  .dock {
    display: none;
  }
}

/* ------------------------------------------------------------------ dialogs */
.modal,
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(26, 20, 36, 0.94);
  color: var(--white);
}
.modal::backdrop,
.lightbox::backdrop {
  background: rgba(26, 20, 36, 0.6);
  backdrop-filter: blur(4px);
}
.modal[open] {
  display: grid;
  place-items: center;
  animation: fade 0.25s ease;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.modal video {
  width: min(94vw, calc(88dvh * 16 / 9));
  max-height: 88dvh;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--hivis2);
}
.modal.is-vertical video {
  width: auto;
  height: min(84dvh, calc(94vw * 16 / 9));
}
.modal__close {
  position: absolute;
  top: calc(10px + var(--safe-t));
  right: 10px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--hivis2);
  color: var(--ink);
  font:
    400 32px/1 'Dossier Display',
    Lato,
    sans-serif;
}
.lightbox[open] {
  display: flex;
  flex-direction: column;
  animation: fade 0.25s ease;
}
.lightbox__track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.lightbox__track::-webkit-scrollbar {
  display: none;
}
.lightbox__track figure {
  flex: none;
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 64px 12px 12px;
  scroll-snap-align: center;
}
.lightbox__track img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 0 0 3px var(--ink);
}
.lightbox__caption {
  padding: 12px 16px calc(18px + var(--safe-b));
  text-align: center;
  font:
    400 10px/1.4 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  color: var(--stone4);
}
@media (min-width: 700px) {
  .lightbox__caption {
    font-size: 20px;
  }
}

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-b));
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 10px 14px 8px;
  background: var(--hivis2);
  color: var(--ink);
  font:
    400 10px/1.3 'Dossier Small',
    Lato,
    sans-serif;
  text-transform: uppercase;
  box-shadow: 0 0 0 3px var(--ink);
  translate: -50% 20px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    translate 0.25s var(--pop);
}
.toast.is-on {
  opacity: 1;
  translate: -50% 0;
}

/* ------------------------------------------------------------------ reveals (JS only) */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease) calc(var(--i, 0) * 70ms),
    transform 0.7s var(--ease) calc(var(--i, 0) * 70ms);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}
html.js .h-pixel.reveal {
  transform: translateY(26px) scale(0.96);
  transition-timing-function: steps(6), var(--ease);
}
html.js .h-pixel.reveal.in {
  transform: none;
}
html.js .hero .reveal {
  transition-delay: calc(0.35s + var(--i, 0) * 110ms);
}
/* The wipe clips the link, not the observed item: a zero-area target never intersects. */
html.js .shot.reveal {
  transform: none;
  transition: opacity 0.4s;
}
html.js .shot.reveal > a {
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 0.9s var(--ease) calc(var(--i, 0) * 60ms),
    box-shadow 0.2s,
    transform 0.3s var(--ease);
}
html.js .shot.reveal.in > a {
  clip-path: inset(-10px);
}

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .ticker__track {
    animation: none;
  }
  .spr {
    animation: none;
  }
  html.js .reveal {
    transform: none;
  }
  .hero__art img,
  .hero__content {
    transform: none;
    opacity: 1;
  }
}
