/* Defilade, the website.
   The battlefield is the page, and the game's own HUD sits on it: the dossier's smoked glass,
   Inter in tracked capitals and tabular figures, gold only for rank and what is earned, colour
   only where something needs you. Every number below that has a twin in the game says where
   it came from (scripts/ui/dossier.gd, menu_style.gd, rank_insignia.gd, speech_bubbles.gd). */

@font-face {
  font-family: "Inter Defilade";
  src: url("../fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* The ground under everything, and a step up from it. */
  --ground: #0a0c0f;
  --ground-up: #0f1216;
  --hair: rgba(255, 255, 255, 0.08);

  /* Dossier.GLASS and its light: lit along the top, denser at the foot. */
  --glass: rgba(4, 5, 6, 0.8);
  --glass-foot: rgba(0, 0, 0, 0.2);
  --sheen: rgba(255, 255, 255, 0.045);
  --tick: rgba(255, 255, 255, 0.3);

  /* The inks: read, said, can be ignored, barely there. Gold is rank. */
  --ink: #f3f4f3;
  --dim: #c4c9cf;
  --mute: #a1a8b3;
  --faint: #808791;
  --gold: #e8c785;
  --gold-hi: #ffedc2;
  --calm: #80cc94;
  --warn: #fab35c;
  --bad: #ff8070;

  /* The speech bubbles: paper, ink and the alarm's red. */
  --paper: rgba(251, 249, 237, 0.94);
  --paper-ink: #121014;
  --alarm: #9e0f0a;

  --face: "Inter Defilade", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* The cut top-right corner (Dossier.CUT) and the HUD's scale against the game's 1600 canvas. */
  --cut: 10px;
  --hud: 1.28;

  --gutter: clamp(20px, 4.2vw, 64px);
  --page: 1320px;
  --bar-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 12px);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--dim);
  font-family: var(--face);
  font-size: 17px;
  font-weight: 420;
  line-height: 1.62;
  font-optical-sizing: auto;
  font-feature-settings: "cv11" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
picture { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

p,
h1,
h2,
h3,
ol,
ul,
dl,
dd,
figure { margin: 0; padding: 0; }

ol,
ul { list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: rgba(232, 199, 133, 0.32); color: #fff; }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--glass);
  color: var(--ink);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ------------------------------------------------------------------ the one surface */

/* Smoked glass, lit at the top and dense at the foot, one champagne hairline along the top
   that is gone before the cut, two detached ticks standing clear of it. Dossier.glass. */
.glass {
  position: relative;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.22));
}

.glass::before,
.glass::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 0 solid var(--tick);
  pointer-events: none;
}

.glass::before { left: -3.5px; top: -3.5px; border-top-width: 1.2px; border-left-width: 1.2px; }
.glass::after { right: -3.5px; bottom: -3.5px; border-bottom-width: 1.2px; border-right-width: 1.2px; }

.face {
  position: relative;
  display: block;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  background:
    linear-gradient(180deg, var(--sheen) 0, rgba(255, 255, 255, 0) clamp(24px, 34%, 60px)),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, var(--glass-foot) 100%),
    var(--glass);
}

.face::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: calc(var(--cut) + 2px);
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 199, 133, 0.66), rgba(232, 199, 133, 0.36) 35%, rgba(232, 199, 133, 0));
  pointer-events: none;
  z-index: 2;
}

/* ------------------------------------------------------------------ words */

.kicker {
  font-size: 12px;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

/* A heading set the way a man's name is: the rest light, the word that matters heavy. */
.title {
  margin-top: 16px;
  font-size: clamp(38px, 5.4vw, 80px);
  font-weight: 330;
  line-height: 0.95;
  letter-spacing: -0.014em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
  max-width: 13em;
}

.title b { font-weight: 720; letter-spacing: -0.02em; }

.head { padding-bottom: clamp(36px, 4.6vw, 64px); }

.head--split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 5vw, 96px);
  align-items: end;
}

.head__aside { max-width: 30em; color: var(--dim); }
.head__aside p + p { margin-top: 1em; }

/* A label the way the game prints one: capitals, tracked. */
.feed__tag,
.feed__text {
  text-transform: uppercase;
  font-feature-settings: "case" 1;
}

.is-gold { color: var(--gold); }

/* The dot beside what a man is doing: a light, not a full stop (Dossier.dot). */
.dot {
  --c: var(--calm);
  position: relative;
  display: inline-block;
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2.7px color-mix(in srgb, var(--c) 15%, transparent);
}

.dot[data-tone="warn"] { --c: var(--warn); }
.dot[data-tone="bad"] { --c: var(--bad); }

/* ------------------------------------------------------------------ the bar */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.4s var(--ease);
}

.bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 199, 133, 0.5), rgba(232, 199, 133, 0.18) 35%, rgba(232, 199, 133, 0) 75%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.bar.is-solid { background-color: rgba(6, 7, 9, 0.9); -webkit-backdrop-filter: blur(14px) saturate(0.8); backdrop-filter: blur(14px) saturate(0.8); }
.bar.is-solid::after { opacity: 1; }

.bar__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--bar-h);
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.bar__mark {
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.bar.is-solid .bar__mark { opacity: 1; transform: none; }

.bar__nav { display: flex; gap: 30px; margin-left: auto; }

.bar__nav a {
  position: relative;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color 0.2s var(--ease);
}

.bar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}

.bar:not(.is-solid) .bar__nav a { color: var(--dim); }

.bar__nav a:hover,
.bar__nav a.is-here,
.bar:not(.is-solid) .bar__nav a:hover { color: var(--ink); }
.bar__nav a.is-here::after { transform: scaleX(1); }

.bar__menu {
  display: none;
  margin-left: auto;
  padding: 10px 2px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

/* The game's MOVE and DISBAND: a dark slab with its corner cut. */
.slab {
  --c: 8px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(10, 11, 13, 0.9);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.slab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: calc(var(--c) + 2px);
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 199, 133, 0.75), rgba(232, 199, 133, 0.3) 45%, rgba(232, 199, 133, 0));
}

.slab:hover { background: rgba(30, 32, 36, 0.96); color: #fff; }

.slab--bar { min-height: 36px; padding: 0 18px; }

/* The phone's menu: the game's own menu, over the dark. */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(5, 6, 8, 0.97);
  padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 24px);
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

.sheet__in {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-height: 100%;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}

.sheet__foot { display: flex; align-items: center; gap: 22px; margin-top: auto; }

.sheet__link {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ------------------------------------------------------------------ menus */

/* MenuStyle.item: a word, and a 2 px gold bar for the one in focus. Never a box. */
.menu { display: grid; gap: 2px; }

.menu__item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.menu__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: var(--gold);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.18s var(--ease), transform 0.25s var(--ease);
}

.menu__item.is-focus,
.menu__item:hover,
.menu__item:focus-visible {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03) 70%, rgba(255, 255, 255, 0));
  outline: none;
}

.menu__item.is-focus::before,
.menu__item:hover::before,
.menu__item:focus-visible::before { opacity: 1; transform: none; }

/* The bar follows the pointer: only one item is ever in focus. */
.menu:has(.menu__item:hover) .menu__item.is-focus:not(:hover) { color: var(--dim); background: none; }
.menu:has(.menu__item:hover) .menu__item.is-focus:not(:hover)::before { opacity: 0; }

/* Label left, value right (MenuStyle.option_row), never "LABEL: VALUE". */
.rows {
  display: grid;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 420px;
}

.rows__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 6px 18px;
}

.rows dt { font-size: 13px; letter-spacing: 0.07em; color: var(--mute); }

.rows dd {
  font-size: 12px;
  font-weight: 640;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ------------------------------------------------------------------ the feed */

/* The lower thirds over the card: a tag in its colour, the words in white, a bar down the left. */
.feed { display: grid; gap: 6px; justify-items: start; }

.feed__line {
  --tone: var(--faint);
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  padding: 0 64px 0 15px;
  background: linear-gradient(90deg, rgba(8, 9, 11, 0.9) 0, rgba(8, 9, 11, 0.74) 55%, rgba(8, 9, 11, 0) 100%);
}

.feed__line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: var(--tone);
}

.feed__line > a { display: contents; }

.feed__line--gold { --tone: var(--gold); }
.feed__line--bad { --tone: var(--bad); }
.feed__line--calm { --tone: var(--calm); }

.feed__tag {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.13em;
  color: var(--tone);
}

.feed__line:not([class*="--"]) .feed__tag { color: var(--mute); }

.feed__text {
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: 0.11em;
  color: var(--ink);
  white-space: nowrap;
}

a.feed__line:hover .feed__text,
.feed__line > a:hover .feed__text { color: #fff; }

/* ------------------------------------------------------------------ the front end */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(680px, 100svh);
  padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 24px);
  padding-bottom: 44px;
  overflow: hidden;
  isolation: isolate;
}

.hero__pic,
.hero__pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__pic { z-index: -2; }

.hero__pic img {
  object-fit: cover;
  object-position: 58% 50%;
  transform-origin: 38% 62%;
  animation: settle 2.8s var(--ease) both;
}

/* The front end's two layers: the vignette, then the slab (MenuStyle.vignette, slab 760 of 1600 at 0.84). */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background:
    radial-gradient(ellipse 75% 85% at 60% 48%, rgba(3, 4, 5, 0.06) 0, rgba(3, 4, 5, 0.24) 62%, rgba(3, 4, 5, 0.58) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.78) 0, rgba(5, 6, 8, 0.42) 90px, rgba(5, 6, 8, 0) 220px);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(5, 8, 10, 0.9) 0, rgba(5, 8, 10, 0.82) max(26%, 380px), rgba(5, 8, 10, 0.4) max(42%, 560px), rgba(5, 8, 10, 0) max(60%, 760px)),
    linear-gradient(180deg, rgba(10, 12, 15, 0) 74%, var(--ground) 100%);
}

/* The menu's column, then the feed at the foot of the screen: in the flow, so they never meet. */
.hero__in { position: relative; margin-block: auto; padding-block: 20px 40px; }

.mark {
  font-size: clamp(64px, 9.6vw, 156px);
  font-weight: 760;
  line-height: 0.84;
  letter-spacing: -0.034em;
  text-transform: uppercase;
  color: var(--ink);
  margin-left: -0.04em;
  animation: arrive 0.9s 0.25s var(--ease) both;
}

.hero__kicker {
  position: relative;
  max-width: 520px;
  margin-top: 22px;
  padding-bottom: 20px;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  animation: arrive 0.7s 0.45s var(--ease) both;
}

.hero__kicker::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
}

.hero__pitch {
  max-width: 29em;
  margin: 20px 0 30px;
  color: var(--dim);
  animation: arrive 0.7s 0.55s var(--ease) both;
}

.menu--hero { max-width: 420px; margin-left: -18px; }
.menu--hero li { animation: arrive 0.5s var(--ease) both; }
.menu--hero li:nth-child(1) { animation-delay: 0.65s; }
.menu--hero li:nth-child(2) { animation-delay: 0.71s; }
.menu--hero li:nth-child(3) { animation-delay: 0.77s; }

.hero .rows { margin-left: -18px; animation: arrive 0.7s 0.85s var(--ease) both; }

.hero__feed {
  position: relative;
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* A line of the feed arrives over 0.22 s, rising 6 px (Dossier.ARRIVE, RISE), half a second apart. */
.hero__feed .feed__line { animation: arrive-line 0.22s var(--ease) both; }
.hero__feed .feed__line:nth-child(1) { animation-delay: 1.4s; }
.hero__feed .feed__line:nth-child(2) { animation-delay: 1.9s; }
.hero__feed .feed__line:nth-child(3) { animation-delay: 2.4s; }

@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes arrive-line { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ the note */

.note { padding-block: clamp(96px, 12vw, 176px) clamp(80px, 10vw, 150px); }

.note__in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px clamp(40px, 6vw, 110px);
  align-items: start;
}

.note__lead {
  font-size: clamp(25px, 2.75vw, 40px);
  font-weight: 330;
  line-height: 1.24;
  letter-spacing: -0.016em;
  color: var(--ink);
  text-wrap: pretty;
}

.note__body { display: grid; gap: 1.05em; padding-top: 0.5em; color: var(--dim); }

.sign {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}

.sign__name {
  font-size: 19px;
  font-weight: 360;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
}

.sign__name b { font-weight: 720; color: var(--ink); margin-right: 0.3em; }

/* ------------------------------------------------------------------ the soldiers */

.soldiers { padding-top: clamp(40px, 6vw, 80px); }

/* The plate: the battlefield, its edges fading into the page rather than cut off. */
.field {
  position: relative;
  min-height: clamp(620px, 58vw, 820px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.field__pic {
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%);
}

.field__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

.field__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 7, 9, 0.5) 0, rgba(6, 7, 9, 0.12) 46%, rgba(6, 7, 9, 0) 70%);
}

.field__hud {
  display: flex;
  align-items: flex-end;
  gap: calc(14px * var(--hud));
  padding-bottom: clamp(64px, 8vw, 120px);
}

/* The squad card (Dossier's roster of a held squad). */
.squad { width: calc(236px * var(--hud)); flex: none; }

.squad .face { padding: calc(12px * var(--hud)) 0 calc(8px * var(--hud)); }

.squad__head,
.squad__grade,
.squad__ammo,
.squad__team { padding-inline: calc(15px * var(--hud)); }

.squad__head {
  display: flex;
  align-items: center;
  gap: calc(8px * var(--hud));
  padding-bottom: calc(9px * var(--hud));
  border-bottom: 1px solid var(--hair);
  font-size: calc(10px * var(--hud));
  font-weight: 620;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.squad__name { color: var(--ink); font-size: calc(11px * var(--hud)); }
.squad__sep { width: 1px; height: 0.95em; background: rgba(255, 255, 255, 0.22); }
.squad__state { color: var(--mute); }
.squad__men { margin-left: auto; color: var(--mute); }

.squad__grade {
  display: flex;
  align-items: center;
  gap: calc(12px * var(--hud));
  padding-top: calc(9px * var(--hud));
  font-size: calc(10px * var(--hud));
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.squad__word { color: var(--gold); }

.squad__bar { display: flex; gap: calc(4px * var(--hud)); flex: 1; }

.squad__bar i {
  flex: 1;
  height: 2px;
  background: var(--gold);
  max-width: calc(26px * var(--hud));
}

.squad__bar i.part { background: linear-gradient(90deg, var(--gold) 0 22%, rgba(255, 255, 255, 0.14) 22%); }

.squad__ammo {
  display: flex;
  align-items: center;
  gap: calc(10px * var(--hud));
  padding-top: calc(8px * var(--hud));
  padding-bottom: calc(9px * var(--hud));
  border-bottom: 1px solid var(--hair);
  font-size: calc(10px * var(--hud));
  font-weight: 620;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.squad__low { color: var(--warn); margin-left: auto; }

.mags { display: flex; gap: calc(2.5px * var(--hud)); }

.mags i {
  width: calc(6px * var(--hud));
  height: calc(10px * var(--hud));
  background: rgba(243, 244, 243, 0.82);
}

.mags i.off { background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }

.squad__team {
  padding-top: calc(9px * var(--hud));
  padding-bottom: calc(3px * var(--hud));
  font-size: calc(9.5px * var(--hud));
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.squad__list .row:last-child { margin-bottom: 2px; }
.squad__list .squad__team:not(:first-child) { margin-top: calc(4px * var(--hud)); border-top: 1px solid var(--hair); }

/* One man's line (Dossier.draw_row): insignia, rank, the name he is called by, his load, his class. */
.row {
  position: relative;
  display: grid;
  grid-template-columns: calc(10px * var(--hud)) calc(17px * var(--hud)) calc(34px * var(--hud)) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0 calc(4px * var(--hud));
  width: 100%;
  height: calc(20px * var(--hud));
  padding: 0 calc(15px * var(--hud)) 0 calc(8px * var(--hud));
  text-align: left;
  transition: background-color 0.15s var(--ease);
}

.row::before {
  content: "";
  position: absolute;
  left: calc(5px * var(--hud));
  top: calc(4px * var(--hud));
  bottom: calc(4px * var(--hud));
  width: 2px;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}

.row:hover,
.row:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }

.row.is-held { background: rgba(255, 255, 255, 0.085); }

.row:hover::before,
.row:focus-visible::before,
.row.is-held::before { opacity: 0.9; }

.row__lead { width: 4px; height: 4px; justify-self: center; border-radius: 50%; }
.row[data-man="martin"] .row__lead { background: var(--gold); }

.row__ins { width: calc(13px * var(--hud)); height: calc(13px * var(--hud)); }

.row__rank {
  font-size: calc(9.5px * var(--hud));
  font-weight: 620;
  letter-spacing: 0.1em;
  color: var(--mute);
}

.row__rank.is-gold { color: var(--gold); }

.row__name {
  overflow: hidden;
  font-size: calc(11.5px * var(--hud));
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.row:hover .row__name,
.row.is-held .row__name { color: #fff; }

/* His load as one small magazine: quiet while he is fine, amber where it matters. */
.row__mag {
  --load: 1;
  width: calc(5px * var(--hud));
  height: calc(9px * var(--hud));
  margin-right: calc(6px * var(--hud));
  background: linear-gradient(0deg, rgba(196, 201, 207, 0.72) calc(var(--load) * 100%), rgba(255, 255, 255, 0.08) 0);
}

.row__mag.is-low { background: linear-gradient(0deg, var(--warn) calc(var(--load) * 100%), rgba(255, 255, 255, 0.08) 0); }

.row__glyph { width: calc(13px * var(--hud)); height: calc(13px * var(--hud)); }

.g { fill: none; stroke: rgba(161, 168, 179, 0.75); stroke-linecap: round; stroke-linejoin: round; }
.gf { fill: rgba(161, 168, 179, 0.75); }

/* The insignia's metal (RankInsignia): one champagne gold, lit at the top, a hairline dark edge. */
.i-sh { fill: none; stroke: rgba(0, 0, 0, 0.34); stroke-linecap: round; stroke-linejoin: round; }
.i-edge { fill: none; stroke: rgba(15, 11, 5, 0.82); stroke-linecap: round; stroke-linejoin: round; }
.i-metal { fill: none; stroke: url(#metal); stroke-linecap: round; stroke-linejoin: round; }
.i-brass { fill: none; stroke: url(#brass); }
.i-sheen { fill: none; stroke: rgba(255, 252, 240, 0.44); stroke-linecap: round; stroke-linejoin: round; }
.i-shf { fill: rgba(0, 0, 0, 0.34); }
.i-edgef { fill: rgba(15, 11, 5, 0.82); }
.i-cloth { fill: rgba(18, 20, 15, 0.7); }
.i-rim { fill: none; stroke: #e2bf80; stroke-width: 1; opacity: 0.9; }
.i-fill { fill: url(#metal); }
.i-brassf { fill: url(#brass); }
.i-hl { fill: rgba(237, 204, 148, 0.95); }

/* A man's card (Dossier._Card). */
.card { width: calc(300px * var(--hud)); flex: none; }

.card .face {
  padding: calc(14px * var(--hud)) calc(16px * var(--hud)) calc(12px * var(--hud));
  min-height: calc(214px * var(--hud));
}

/* His photograph: his class's card art drained toward champagne, faded out to the left and the foot. */
.card__photo {
  --zoom: 1.8;
  position: absolute;
  top: 1px;
  right: 1px;
  width: calc(160px * var(--hud));
  height: calc(104px * var(--hud));
  overflow: hidden;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60%), linear-gradient(180deg, #000 34%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 60%), linear-gradient(180deg, #000 34%, transparent 100%);
  mask-composite: intersect;
  transition: opacity 0.22s var(--ease);
  pointer-events: none;
}

/* Dossier.CROP: the part of the card art used, its head and shoulders. */
.card__photo img {
  position: absolute;
  width: calc(var(--zoom) * 100%);
  max-width: none;
  left: calc(var(--cx, 0.1) * var(--zoom) * -100%);
  top: calc(var(--cy, 0) * var(--zoom) * -127.4%);
}

.card__top {
  position: relative;
  display: grid;
  grid-template-columns: calc(24px * var(--hud)) minmax(0, 1fr);
  gap: calc(10px * var(--hud));
  align-items: center;
}

.card__ins { width: calc(22px * var(--hud)); height: calc(22px * var(--hud)); }

.card__kicker {
  display: flex;
  align-items: center;
  gap: calc(7px * var(--hud));
  font-size: calc(9px * var(--hud));
  font-weight: 620;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.bar-sep { width: 1px; height: 1em; background: rgba(255, 255, 255, 0.24); }

.card__name {
  margin-top: calc(1px * var(--hud));
  font-size: calc(17px * var(--hud));
  line-height: 1.12;
  font-weight: 360;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.card__name b { font-weight: 720; }

.card__rank {
  display: flex;
  align-items: baseline;
  gap: calc(9px * var(--hud));
  margin-top: calc(3px * var(--hud));
  font-size: calc(9.5px * var(--hud));
  font-weight: 640;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.card__rank .is-mute { color: var(--mute); }

.card__xp {
  font-size: calc(10px * var(--hud));
  font-weight: 520;
  letter-spacing: 0.02em;
  color: var(--dim);
}

/* The whole ladder: five marks on a hairline, gold up to where he stands (Dossier.draw_ladder). */
.ladder {
  --n: 5;
  --level: 0;
  position: relative;
  margin-top: calc(16px * var(--hud));
  padding-bottom: calc(15px * var(--hud));
}

.ladder__track { position: relative; height: calc(10px * var(--hud)); }

.ladder__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.13);
}

.ladder__gold {
  position: absolute;
  left: 0;
  top: calc(50% - 0.75px);
  height: 1.6px;
  width: calc(min(var(--level), var(--n) - 1) / (var(--n) - 1) * 100%);
  background: linear-gradient(90deg, rgba(232, 199, 133, 0.45), var(--gold));
  transition: width 0.6s var(--ease);
}

.ladder__tip {
  position: absolute;
  top: 50%;
  left: calc(min(var(--level), var(--n) - 1) / (var(--n) - 1) * 100%);
  width: 3.4px;
  height: 3.4px;
  margin: -1.7px 0 0 -1.7px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 0 2.4px rgba(232, 199, 133, 0.22);
  transition: left 0.6s var(--ease), opacity 0.3s;
}

.ladder.is-whole .ladder__tip { opacity: 0; }

.ladder__marks { position: absolute; inset: 0; }

.ladder__marks li {
  --i: 0;
  position: absolute;
  top: 0;
  left: calc(var(--i) / (var(--n) - 1) * 100%);
  height: 100%;
  font-size: calc(8.5px * var(--hud));
  font-weight: 640;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.4s var(--ease);
}

.ladder__marks li:nth-child(2) { --i: 1; }
.ladder__marks li:nth-child(3) { --i: 2; }
.ladder__marks li:nth-child(4) { --i: 3; }
.ladder__marks li:nth-child(5) { --i: 4; }

/* The mark: a diamond, dark and outlined ahead of him, gold behind him, lit where he stands. */
.ladder__marks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(5px * var(--hud));
  width: 4.7px;
  height: 4.7px;
  margin: -2.35px 0 0 -2.35px;
  transform: rotate(45deg);
  background: #08090a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.ladder__marks li.is-past::before { background: rgba(232, 199, 133, 0.85); box-shadow: none; }

.ladder__marks li.is-held::before {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--gold-hi);
  box-shadow: 0 0 0 5px rgba(255, 237, 194, 0.12);
}

.ladder.is-recruit .ladder__marks li.is-held::before { background: var(--ink); box-shadow: 0 0 0 5px rgba(243, 244, 243, 0.1); }

/* The names under the marks: the first and last kept inside the ladder's ends. */
.ladder__marks li {
  display: flex;
  justify-content: center;
  width: 0;
  padding-top: calc(15px * var(--hud));
  line-height: 1;
  white-space: nowrap;
}
.ladder__marks li:first-child { justify-content: flex-start; margin-left: -3px; }
.ladder__marks li:last-child { justify-content: flex-end; margin-left: 3px; }
.ladder__marks li:first-child::before { left: 3px; }
.ladder__marks li:last-child::before { left: -3px; }
.ladder__marks li.is-past { color: rgba(232, 199, 133, 0.55); }
.ladder__marks li.is-held { color: var(--gold); }
.ladder.is-recruit .ladder__marks li.is-held { color: var(--dim); }

.card__stats {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: calc(14px * var(--hud));
}

.stat { display: grid; gap: calc(1px * var(--hud)); }
.stat--r { text-align: right; }

.stat__n {
  font-size: calc(17px * var(--hud));
  font-weight: 560;
  line-height: 1;
  color: var(--ink);
}

.stat__v {
  font-size: calc(11px * var(--hud));
  font-weight: 650;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink);
}

.stat__w {
  font-size: calc(8.5px * var(--hud));
  font-weight: 640;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

/* His ammunition (AmmoReadout): spares lit, the one in the rifle draining, spent ones an outline. */
.card__ammo {
  display: flex;
  align-items: center;
  gap: calc(10px * var(--hud));
  height: calc(22px * var(--hud));
  margin-top: calc(8px * var(--hud));
  font-size: calc(10px * var(--hud));
  font-weight: 640;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cells { display: flex; gap: calc(2px * var(--hud)); }

.cells i {
  --fill: 0;
  width: calc(6.5px * var(--hud));
  height: calc(11px * var(--hud));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.cells i.on { background: rgba(243, 244, 243, 0.84); box-shadow: none; }
.cells i.drain { background: linear-gradient(0deg, rgba(243, 244, 243, 0.84) calc(var(--fill) * 100%), transparent 0); box-shadow: inset 0 0 0 1px rgba(243, 244, 243, 0.4); }

.card__band { color: var(--dim); }

.card__ammo[data-band="husband"] .card__band,
.card__ammo[data-band="critical"] .card__band { color: var(--warn); }
.card__ammo[data-band="husband"] .cells i.on,
.card__ammo[data-band="critical"] .cells i.on { background: var(--warn); }
.card__ammo[data-band="husband"] .cells i.drain,
.card__ammo[data-band="critical"] .cells i.drain { background: linear-gradient(0deg, var(--warn) calc(var(--fill) * 100%), transparent 0); box-shadow: inset 0 0 0 1px rgba(250, 179, 92, 0.5); }

.card__rounds { margin-left: auto; color: var(--mute); }
.card__rounds .num { color: var(--ink); font-size: calc(11px * var(--hud)); font-weight: 560; margin-right: 0.25em; letter-spacing: 0.02em; }

.card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: calc(9px * var(--hud));
  font-size: calc(10px * var(--hud));
  font-weight: 640;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.card__doing { display: flex; align-items: center; gap: calc(9px * var(--hud)); color: var(--dim); }
.card__doing .dot { margin-left: 2px; }
.card__note { color: var(--warn); }
.card__note:empty { display: none; }

.card__watch { display: flex; align-items: center; gap: calc(6px * var(--hud)); color: var(--mute); transition: color 0.2s; }
.card__watch svg { width: calc(13px * var(--hud)); height: calc(13px * var(--hud)); }
.card__watch:hover { color: var(--ink); }
.card__watch:hover .g { stroke: var(--ink); }
.card__watch:hover .gf { fill: var(--ink); }

/* A part rises into place when it changes (Dossier.ARRIVE 0.22 s, RISE 6 px). */
.card.is-changing .card__top,
.card.is-changing .card__stats,
.card.is-changing .card__ammo,
.card.is-changing .card__foot { animation: arrive-line 0.22s var(--ease) both; }
.card.is-changing .card__stats { animation-delay: 0.03s; }
.card.is-changing .card__ammo { animation-delay: 0.06s; }
.card.is-changing .card__foot { animation-delay: 0.09s; }
.card.is-changing .card__photo { animation: photo-in 0.4s var(--ease) both; }

@keyframes photo-in { from { opacity: 0; } to { opacity: 0.6; } }

/* What each man is doing, said in full under the plate. */
.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 64px) clamp(110px, 12vw, 180px);
}

.note-item {
  padding: 22px 0 30px;
  border-top: 1px solid var(--hair);
  transition: border-color 0.3s var(--ease);
}

.note-item__head {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 4px 0 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: left;
}

.note-item__who { margin-left: auto; color: var(--faint); font-weight: 620; transition: color 0.3s; }

.note-item p { color: var(--mute); transition: color 0.3s var(--ease); }

.note-item.is-held { border-top-color: rgba(232, 199, 133, 0.55); }
.note-item.is-held .note-item__head { color: var(--ink); }
.note-item.is-held .note-item__who { color: var(--gold); }
.note-item.is-held p { color: var(--dim); }
.note-item:hover p { color: var(--dim); }
.note-item__head:focus-visible { outline: none; color: var(--ink); }

/* ------------------------------------------------------------------ wounded and medics */

.wounded { padding-top: clamp(40px, 6vw, 80px); }

.story {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.story__frames {
  position: sticky;
  top: calc(50vh - min(58vw, 1320px * 0.636) * 9 / 32 + var(--bar-h) / 2);
}

.story__glass .face { padding: 0; aspect-ratio: 16 / 9; background: #0d0f12; }

.story__frame,
.story__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story__frame img { object-fit: cover; }
.story__frame { opacity: 0; transition: opacity 0.6s var(--ease); }
.story__frame.is-on { opacity: 1; }

.story__beats { display: grid; }

.beat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: 64vh;
  padding-block: 8vh;
  color: var(--mute);
  transition: color 0.4s var(--ease);
}

.beat:first-child { min-height: 58vh; }
.beat:last-child { min-height: 70vh; }
.beat.is-on { color: var(--dim); }
.beat .feed__line { opacity: 0.55; transition: opacity 0.4s var(--ease); }
.beat.is-on .feed__line { opacity: 1; }

.beat__pic { display: none; }

.after {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  padding-block: clamp(80px, 9vw, 140px) clamp(110px, 12vw, 180px);
}

.after__pic {
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
}

.after__pic img { width: 100%; }

.after__text { display: grid; gap: 1em; }

.after__lead {
  margin-top: 8px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 340;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }

.mini {
  position: relative;
  display: grid;
  align-content: end;
  gap: 4px;
  min-height: 150px;
  padding: 14px 14px 13px;
  overflow: hidden;
  background: var(--ground-up);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.mini img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
}

.mini__name,
.mini__note { position: relative; }

.mini__name {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.mini__note { font-size: 13.5px; line-height: 1.45; color: var(--dim); }

/* ------------------------------------------------------------------ prisoners */

.prisoners { padding-block: clamp(40px, 6vw, 80px) clamp(110px, 12vw, 180px); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: center;
}

.split__text { display: grid; gap: 1em; }
.split__text .title { margin-bottom: 0.4em; }

.talk { position: relative; isolation: isolate; min-width: 0; padding: clamp(28px, 4vw, 52px) clamp(14px, 3vw, 44px) 56px; }

.talk__pic {
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 70% 66% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 66% at 50% 50%, #000 55%, transparent 100%);
}

.talk__pic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.62); }

.talk__lines { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

/* Speech bubbles as the game draws them: paper, a 1.6 px outline, ink, a tail; the shout in red. */
.bubble {
  position: relative;
  width: fit-content;
  max-width: min(82%, 360px);
  padding: 7px 12px 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper-ink);
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 0 0 1.6px rgba(18, 16, 20, 0.92), 0 4px 12px rgba(0, 0, 0, 0.32);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.bubble::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 12px;
  height: 9px;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 18% 100%);
  filter: drop-shadow(0 1.6px 0 rgba(18, 16, 20, 0.92));
}

.bubble--l { justify-self: start; }
.bubble--l::after { left: 16px; }
.bubble--r { justify-self: end; }
.bubble--r::after { right: 16px; clip-path: polygon(0 0, 100% 0, 82% 100%); }

.bubble--shout { color: var(--alarm); }

/* The shout's scalloped edge is drawn by site.js; until it is, the shout is a plain bubble. */
.bubble.has-burst { background: none; box-shadow: none; }
.bubble.has-burst::after { display: none; }

.bubble__burst {
  position: absolute;
  left: -8px;
  top: -8px;
  z-index: -1;
  overflow: visible;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.talk .bubble.is-saying { animation: say 0.42s var(--ease) both; }

@keyframes say {
  0% { transform: translateY(5px) scale(0.97); opacity: 0.35; }
  100% { transform: none; opacity: 1; }
}

.talk__cap {
  position: absolute;
  left: clamp(20px, 3vw, 44px);
  bottom: 14px;
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ------------------------------------------------------------------ the small details */

.details { padding-top: clamp(40px, 6vw, 80px); }

.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 96px);
}

.ledger__row {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--hair);
}

.ledger dt {
  padding-top: 0.28em;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
}

.ledger dd { color: var(--dim); }

.band {
  display: block;
  margin-top: clamp(60px, 7vw, 110px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 80%, transparent 100%);
}

.band img { width: 100%; height: clamp(300px, 36vw, 620px); object-fit: cover; object-position: 50% 45%; }

/* ------------------------------------------------------------------ bases and supply */

.bases { padding-top: clamp(60px, 8vw, 120px); }

.supply {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
}

.supply__map {
  position: relative;
  aspect-ratio: 1000 / 560;
  overflow: hidden;
  isolation: isolate;
  background: #0b0d10;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.supply__ground {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
  filter: grayscale(0.55) brightness(0.62);
}

.supply__map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 90% at 50% 50%, rgba(8, 10, 12, 0.4) 0, rgba(8, 10, 12, 0.84) 100%),
    rgba(8, 10, 12, 0.3);
}

.supply__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.road__hit { fill: none; stroke: transparent; stroke-width: 34; cursor: pointer; pointer-events: stroke; }

.road__line {
  fill: none;
  stroke: rgba(236, 232, 220, 0.66);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-dasharray: 0.1 7;
  transition: stroke 0.35s var(--ease);
  pointer-events: none;
}

.road:hover .road__line,
.road:focus-visible .road__line { stroke: rgba(255, 252, 240, 0.9); }
.road:focus-visible { outline: none; }

.road.is-cut .road__line { stroke: rgba(255, 128, 112, 0.85); stroke-dasharray: 3 7; }
.road.is-dead .road__line { stroke: rgba(250, 179, 92, 0.5); }

.truck { fill: var(--ink); }
.truck-halo { fill: rgba(255, 252, 240, 0.16); }

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
}

.pin__mark {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: rgba(10, 11, 13, 0.92);
  box-shadow: inset 0 0 0 1.4px var(--dim), 0 0 0 4px rgba(10, 11, 13, 0.35);
  transition: box-shadow 0.35s var(--ease);
}

.pin--depot .pin__mark { background: var(--dim); }

.pin.is-dry .pin__mark { box-shadow: inset 0 0 0 1.4px var(--warn), 0 0 0 4px rgba(250, 179, 92, 0.16); }

.tag {
  position: absolute;
  left: 14px;
  bottom: 10px;
  white-space: nowrap;
  --cut: 7px;
}

.pin[data-fob="1"] .tag,
.pin[data-fob="3"] .tag { left: auto; right: 14px; }
.pin[data-fob="2"] .tag { bottom: auto; top: 10px; }

.tag .face {
  display: grid;
  gap: 3px;
  padding: 7px 11px 7px 10px;
  font-size: 10px;
  font-weight: 640;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag__name { color: var(--ink); }

.tag__row { display: flex; gap: 14px; justify-content: space-between; color: var(--mute); }
.tag__v { display: inline-flex; align-items: center; gap: 7px; color: var(--dim); }
.pin.is-dry .tag__v { color: var(--warn); }

.ambush {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  transform: translate(-50%, -150%);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bad);
  background: rgba(8, 9, 11, 0.86);
  white-space: nowrap;
  pointer-events: none;
}

.supply__text { display: grid; gap: 1em; padding-bottom: 6px; }

.supply__state {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.supply__state.is-cut { color: var(--warn); }

/* ------------------------------------------------------------------ the cards in a row */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(232px, 19.5vw, 272px);
  gap: 18px;
  margin-top: clamp(64px, 7vw, 100px);
  padding: 6px 6px 20px;
  margin-inline: -6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 64px), transparent 100%);
}

.rail.is-end { -webkit-mask-image: none; mask-image: none; }

.rail::-webkit-scrollbar { height: 3px; }
.rail::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); }
.rail::-webkit-scrollbar-track { background: transparent; }

.unit { scroll-snap-align: start; }
.unit .glass { height: 100%; }

.unit .face {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 0 16px;
}

.unit__pic {
  width: 100%;
  aspect-ratio: 512 / 360;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
  transition: opacity 0.45s var(--ease);
}

.unit__pic--c {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.unit:hover .unit__pic--c,
.unit:focus-within .unit__pic--c { opacity: 0.86; }

.unit__kicker,
.unit__name,
.unit__note,
.unit__arms { position: relative; padding-inline: 16px; }

.unit__kicker {
  margin-top: -14px;
  font-size: 10.5px;
  font-weight: 640;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mute);
}

.unit__name {
  margin-top: 4px;
  font-size: 19px;
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.unit__note { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--dim); }

.unit__arms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 10px;
  font-weight: 640;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

.unit__arms span { display: inline-flex; align-items: center; gap: 7px; }
.unit__arms span::before { content: ""; width: 14px; height: 1.6px; background: rgba(243, 244, 243, 0.55); }

.closing-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 96px);
  padding-block: clamp(48px, 5vw, 72px) clamp(110px, 12vw, 180px);
  color: var(--dim);
}

/* ------------------------------------------------------------------ the sides */

.sides { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(110px, 12vw, 180px); }

/* The tabs: the MEN tab's glass, its corner cut, denser when lit (Dossier.tab_glass). */
.tabs { display: flex; gap: 6px; justify-self: end; }

.tab {
  --c: 7px;
  min-width: 104px;
  min-height: 40px;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  background: rgba(255, 255, 255, 0.035);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

.tab[aria-selected="true"] {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(232, 199, 133, 0.7), rgba(232, 199, 133, 0.25) 50%, rgba(232, 199, 133, 0)) top / 100% 1px no-repeat,
    rgba(255, 255, 255, 0.09);
}

.tab:focus-visible { outline: none; color: var(--ink); background-color: rgba(255, 255, 255, 0.1); }

.side__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px clamp(32px, 5vw, 96px);
  align-items: center;
}

.side__note { max-width: 34em; color: var(--dim); }

/* The side's ladder of ranks, its own metal: chevrons, shoulder boards or beads. */
.ranks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.ranks li {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  font-size: 10.5px;
  font-weight: 640;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--mute);
}

.ranks li:not(:first-child) { color: var(--gold); border-top-color: rgba(232, 199, 133, 0.32); }

.ranks svg,
.ranks__ins { width: 36px; height: 36px; }

.ranks__ins { position: relative; }
.ranks__ins::after { content: ""; position: absolute; left: 4px; right: 12px; top: 50%; height: 1px; background: rgba(255, 255, 255, 0.18); }

.side[hidden] { display: none; }
.side:not([hidden]) .rail { animation: arrive 0.45s var(--ease) both; }

/* ------------------------------------------------------------------ what's coming */

.coming { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(110px, 12vw, 180px); }

.road-ahead {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 24px clamp(32px, 5vw, 96px);
  align-items: end;
  padding: 10px 0 clamp(48px, 6vw, 80px);
}

.ladder--wide {
  --n: 4;
  --hud: 2.2;
  margin: 0 22px 0 6px;
}

.ladder--wide .ladder__marks li {
  font-size: 12px;
  letter-spacing: 0.15em;
  padding-top: 30px;
}

.ladder--wide .ladder__marks li::before { top: 11px; width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.ladder--wide .ladder__marks li.is-held::before { width: 10px; height: 10px; margin: -5px 0 0 -5px; box-shadow: 0 0 0 8px rgba(243, 244, 243, 0.09); }
.ladder--wide .ladder__track { height: 22px; }
.ladder--wide .ladder__gold { height: 2px; top: calc(50% - 1px); transition: width 1.6s var(--ease); }
.ladder--wide .ladder__tip { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; box-shadow: 0 0 0 4px rgba(232, 199, 133, 0.22); transition: left 1.6s var(--ease); }
.ladder--wide { padding-bottom: 42px; }

.road-ahead__note { color: var(--mute); padding-bottom: 36px; }

.coming__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: clamp(28px, 4vw, 64px);
}

.plan { display: grid; align-content: start; gap: 0.9em; padding-top: 22px; border-top: 1px solid var(--hair); }

.plan__h {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}

.plan--wide p:first-of-type {
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 340;
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ------------------------------------------------------------------ media */

.media { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(90px, 10vw, 150px); }

.trailer {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: #0b0d10;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.trailer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: brightness(0.86);
  transform: scale(1.01);
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}

.trailer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 7, 9, 0.62) 0, rgba(6, 7, 9, 0.12) 46%, rgba(6, 7, 9, 0) 70%);
}

.trailer:hover img { transform: scale(1.035); filter: brightness(0.95); }

.trailer__play {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  bottom: clamp(20px, 4vw, 56px);
  z-index: 2;
}

.trailer__play .face { display: flex; align-items: center; gap: 18px; padding: 16px 26px 16px 18px; }

.trailer__tri {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, 0.4);
  transition: box-shadow 0.3s var(--ease);
}

.trailer__tri::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  border-left: 13px solid var(--ink);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.trailer:hover .trailer__tri { box-shadow: inset 0 0 0 1.2px var(--gold); }

.trailer__words { display: grid; gap: 2px; }

.trailer__k {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
}

.trailer__t {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(64px, 7.8vw, 112px);
  gap: 14px;
  margin-top: 14px;
}

.gallery__item { position: relative; overflow: hidden; background: #0b0d10; }

.gallery__item a { display: block; height: 100%; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.5s var(--ease);
  filter: brightness(0.92);
}

.gallery__item a:hover img { transform: scale(1.03); filter: brightness(1); }

.gallery__cap {
  position: absolute;
  left: 0;
  bottom: 14px;
  display: flex;
  align-items: center;
  min-height: 26px;
  padding: 0 44px 0 13px;
  font-size: 11px;
  font-weight: 640;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(8, 9, 11, 0.88), rgba(8, 9, 11, 0.6) 60%, rgba(8, 9, 11, 0));
  border-left: 2.5px solid var(--faint);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.gallery__item a:hover .gallery__cap,
.gallery__item a:focus-visible .gallery__cap { opacity: 1; transform: none; }

/* Rows of one height, so every edge lines up: 4 + 3 + 5 of them. */
.g-a { grid-column: 1 / 9; grid-row: 1 / span 4; }
.g-b { grid-column: 9 / 13; grid-row: 1 / span 2; }
.g-c { grid-column: 9 / 13; grid-row: 3 / span 2; }
.g-d { grid-column: 1 / 13; grid-row: 5 / span 3; }
.g-e { grid-column: 1 / 5; grid-row: 8 / span 5; }
.g-f { grid-column: 5 / 13; grid-row: 8 / span 3; }
.g-g { grid-column: 5 / 8; grid-row: 11 / span 2; }
.g-h { grid-column: 8 / 13; grid-row: 11 / span 2; }
.g-d img { object-position: 50% 40%; }
.g-e img { object-position: 50% 30%; }
.g-g img { object-position: 54% 50%; }

/* ------------------------------------------------------------------ the last screen */

.last { position: relative; padding-bottom: clamp(110px, 12vw, 180px); }

.last__pic {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 74%, transparent 100%);
}

.last__pic img { width: 100%; height: clamp(320px, 42vw, 820px); object-fit: cover; object-position: 50% 58%; }

.last__in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 5vw, 96px);
  align-items: start;
  margin-top: clamp(-90px, -6vw, -40px);
  position: relative;
}

.last__in .title { grid-column: 1; margin-top: 0; }

.last__p { grid-column: 1; max-width: 30em; color: var(--dim); }

.menu--last { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-left: -18px; }

/* ------------------------------------------------------------------ the foot */

.foot { border-top: 1px solid var(--hair); }

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  padding-block: 30px calc(30px + env(safe-area-inset-bottom, 0px));
}

.foot__mark {
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.foot__by { font-size: 13px; color: var(--faint); }

.foot__links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-left: auto; }

.foot__links a {
  font-size: 11.5px;
  font-weight: 640;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color 0.2s;
}

.foot__links a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ the viewer */

.box {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.box[hidden] { display: none; }

.box__shade { position: absolute; inset: 0; background: rgba(4, 5, 6, 0.94); animation: fade 0.25s var(--ease) both; }

.box__frame {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 1600px);
  animation: arrive 0.3s var(--ease) both;
}

.box__media { display: grid; place-items: center; }

.box__media img { max-height: calc(100svh - 120px); width: auto; max-width: 100%; }

.box__media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }

.box__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.box__cap {
  font-size: 11.5px;
  font-weight: 640;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.box__ctl { display: flex; gap: 22px; }

.box__btn {
  padding: 8px 0;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color 0.2s;
}

.box__btn:hover,
.box__btn:focus-visible { color: var(--ink); outline: none; }
.box.is-video #box-prev,
.box.is-video #box-next { display: none; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------------ the press kit */

/* The top: the logo the units spell out, fading into the page, the kit's menu and factsheet over its foot. */
.kit-top { position: relative; isolation: isolate; }

.kit-top::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 220px;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.78) 0, rgba(5, 6, 8, 0.42) 90px, rgba(5, 6, 8, 0) 220px);
  pointer-events: none;
}

.kit-top__pic {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 44%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 44%, transparent 100%);
}

.kit-top__pic img {
  width: 100%;
  height: clamp(340px, 44vw, 680px);
  object-fit: cover;
  object-position: 50% 60%;
  filter: brightness(0.84);
}

.kit-top__in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px clamp(32px, 5vw, 96px);
  align-items: start;
  margin-top: clamp(-190px, -11vw, -60px);
}

.kit-top .title { margin-top: 14px; }

.kit-top__p { max-width: 30em; margin: 24px 0 30px; color: var(--dim); }

.menu--kit { max-width: 440px; margin-left: -18px; }

/* A count or a size at the far end of a menu line, set the way the rows set a value. */
.menu__meta {
  margin-left: auto;
  padding-left: 24px;
  font-size: 11.5px;
  font-weight: 640;
  letter-spacing: 0.13em;
  color: var(--mute);
}

.menu__item.is-focus .menu__meta,
.menu__item:hover .menu__meta { color: var(--dim); }

/* The factsheet: the dossier's glass, the menu's label-and-value rows. */
.facts .face { padding: 18px 0 14px; }

.facts__head {
  padding: 0 18px 14px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
}

.rows--facts { max-width: none; margin-top: 0; padding-top: 8px; border-top-color: var(--hair); }

.rows--facts .rows__row { padding-block: 7px; }

.rows--facts a { border-bottom: 1px solid rgba(255, 255, 255, 0.24); transition: border-color 0.2s var(--ease); }
.rows--facts a:hover { border-bottom-color: var(--gold); }

.kit-sec { padding-top: clamp(80px, 9vw, 140px); }

.kit-end { padding-bottom: clamp(110px, 12vw, 180px); }

/* His words, set the way the note on the front page is. */
.kit-words {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px clamp(40px, 6vw, 110px);
  align-items: start;
}

.kit-lead {
  margin-top: 20px;
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 330;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: pretty;
}

.kit-words__body { display: grid; gap: 1em; color: var(--dim); }
.kit-words__body .plan__h { margin-top: 1.2em; }
.kit-words__body .plan__h:first-child { margin-top: 0.35em; }

/* The small details: a short rule before each, the way a unit's weapons are listed. */
.kit-ticks { display: grid; gap: 0.45em; }

.kit-ticks li { display: flex; align-items: baseline; gap: 12px; }

.kit-ticks li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1.6px;
  background: rgba(243, 244, 243, 0.55);
  transform: translateY(-0.32em);
}

/* Two columns of plain facts. */
.kit-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px clamp(40px, 6vw, 110px);
  align-items: start;
}

.kit-h {
  padding-bottom: 18px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}

.kit-h .num { margin-left: 8px; color: var(--faint); }

/* The dates, the way the small details list their names. Gold for what was earned. */
.kit-log__row {
  display: grid;
  grid-template-columns: 8.6em minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0 17px;
  border-top: 1px solid var(--hair);
}

.kit-log dt {
  padding-top: 0.22em;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.kit-log dd { color: var(--dim); }
.kit-log__row.is-gold dt { color: var(--gold); }
.kit-log__row.is-gold dd { color: var(--ink); }

.kit-list li { padding: 15px 0 17px; border-top: 1px solid var(--hair); color: var(--dim); }

.kit-vids a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0 17px;
  border-top: 1px solid var(--hair);
}

.kit-vids__t { color: var(--dim); transition: color 0.2s var(--ease); }
.kit-vids__n { flex: none; font-size: 13px; color: var(--mute); }
.kit-vids a:hover .kit-vids__t,
.kit-vids a:focus-visible .kit-vids__t { color: var(--ink); }

.kit-contact p { max-width: 30em; color: var(--dim); }

.menu--contact { max-width: 420px; margin: 26px 0 0 -18px; }

/* The files: a picture, its name and its size, the full-size file behind it. */
.kit-files__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  padding-bottom: 26px;
}

.kit-files__head .kit-h { padding-bottom: 0; }

.kit-files__note { max-width: 38em; font-size: 15px; color: var(--mute); }

.kit-group + .kit-group { margin-top: 52px; }

.kit-sub {
  padding-bottom: 16px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
}

.kit-sub .num { margin-left: 6px; color: var(--faint); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 18px; }
.tiles--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tile a { display: grid; align-content: start; gap: 11px; height: 100%; }

.tile__pic {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0d10;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.tile__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: transform 1.1s var(--ease), filter 0.5s var(--ease);
}

.tile a:hover .tile__pic img { transform: scale(1.03); filter: brightness(1); }

/* The logo and art in the logo's own shape; the two a crop would spoil are shown whole,
   the clear one on paper so the clear shows. */
.tiles--three .tile__pic { aspect-ratio: 12 / 5; }
.tile__pic--fit { background: #121519; }
.tile__pic--fit img { object-fit: contain; padding: 5%; }
.tile a:hover .tile__pic--fit img { transform: none; }
.tile__pic--paper { background: #d8d3c5; }

/* The GIF itself, over its still, while the pointer is on it (site.js). */
.tile__gif { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.tile__cap {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-left: 12px;
}

.tile__cap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: var(--faint);
  transition: background-color 0.2s var(--ease);
}

.tile__name {
  font-size: 11.5px;
  font-weight: 640;
  line-height: 1.35;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.2s var(--ease);
}

.tile__size { flex: none; font-size: 11px; font-weight: 560; letter-spacing: 0.06em; color: var(--faint); }

.tile__text { padding-left: 12px; font-size: 13.5px; line-height: 1.5; color: var(--mute); }

.tile a:hover .tile__name,
.tile a:focus-visible .tile__name { color: var(--ink); }

.tile a:hover .tile__cap::before,
.tile a:focus-visible .tile__cap::before { background: var(--gold); }

.head__aside a { color: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, 0.24); transition: border-color 0.2s var(--ease); }
.head__aside a:hover { border-bottom-color: var(--gold); }

/* ------------------------------------------------------------------ narrower screens */

@media (max-width: 1180px) {
  :root { --hud: 1.12; }
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { gap: 10px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .bar__nav,
  .slab--bar { display: none; }
  .bar__menu { display: block; }

  .head--split,
  .note__in,
  .split,
  .after,
  .supply,
  .side__head,
  .road-ahead,
  .last__in,
  .closing-note,
  .kit-top__in,
  .kit-words,
  .kit-two { grid-template-columns: minmax(0, 1fr); }

  .facts { max-width: 520px; }
  .tiles,
  .tiles--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tabs { justify-self: start; }

  .story { grid-template-columns: minmax(0, 1fr); }
  .story__frames { display: none; }
  .beat,
  .beat:first-child,
  .beat:last-child { min-height: 0; padding-block: 0 48px; justify-content: flex-start; color: var(--dim); }
  .beat .feed__line { opacity: 1; }
  .beat__pic { display: block; order: -1; width: 100%; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }

  .after__pic { order: -1; }

  .coming__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plan--wide { grid-column: 1 / -1; }

  .menu--last { grid-column: 1; grid-row: auto; }
  .last__in { margin-top: -24px; }

  .gallery { grid-auto-rows: auto; gap: 10px; }
  .gallery__item.g-a,
  .gallery__item.g-d,
  .gallery__item.g-f { grid-column: 1 / 13; grid-row: auto; aspect-ratio: 16 / 9; }
  .gallery__item.g-b,
  .gallery__item.g-c,
  .gallery__item.g-g,
  .gallery__item.g-h { grid-column: span 6; grid-row: auto; aspect-ratio: 16 / 10; }
  .gallery__item.g-e { grid-column: 1 / 13; grid-row: auto; aspect-ratio: 4 / 5; }
}

@media (max-width: 760px) {
  :root { --hud: 1.12; --gutter: 18px; }

  body { font-size: 16px; }

  .field { display: block; min-height: 0; }

  .field__pic {
    position: relative;
    height: 74vw;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 64%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 64%, transparent 100%);
  }

  .field__pic::after { display: none; }

  .field__hud {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: -26vw;
    padding-bottom: 8px;
  }

  .card { order: -1; width: 100%; max-width: 420px; }
  .squad { width: 100%; max-width: 420px; }

  .notes { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }

  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }

  .ranks { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .ranks li { font-size: 9px; letter-spacing: 0.08em; }
  .ranks svg,
  .ranks__ins { width: 24px; height: 24px; }

  .rail { grid-auto-columns: 76vw; }

  /* A small map names only what needs you: the bases out of supply. */
  .supply__map .pin[data-fob]:not(.is-dry) .tag { display: none; }
  .supply__map .tag .face { padding: 5px 8px; font-size: 8.5px; }
  .supply__map .tag__row { display: none; }
  .pin.is-dry .tag__name { color: var(--warn); }

  .tabs { width: 100%; }
  .tab { flex: 1; min-width: 0; padding: 0 10px; }

  .ladder--wide { --hud: 1.6; margin-inline: 4px 14px; padding-bottom: 54px; }
  .ladder--wide .ladder__marks li { font-size: 10px; letter-spacing: 0.1em; }
  .ladder--wide .ladder__marks li span { width: 5.6em; white-space: normal; text-align: center; line-height: 1.35; }
  .ladder--wide .ladder__marks li:first-child span { text-align: left; }
  .ladder--wide .ladder__marks li:last-child span { text-align: right; }
  .road-ahead__note { padding-bottom: 0; }

  .coming__grid { grid-template-columns: minmax(0, 1fr); }

  .trailer { aspect-ratio: 4 / 3; }
  .trailer__play .face { padding: 12px 18px 12px 14px; gap: 14px; }
  .trailer__t { font-size: 14px; }

  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery__item.g-a,
  .gallery__item.g-b,
  .gallery__item.g-c,
  .gallery__item.g-d,
  .gallery__item.g-f,
  .gallery__item.g-g,
  .gallery__item.g-h { grid-column: 1; aspect-ratio: 16 / 10; }
  .gallery__item.g-e { grid-column: 1; aspect-ratio: 3 / 4; }
  .gallery__cap { opacity: 1; transform: none; }

  .foot__links { margin-left: 0; width: 100%; }

  /* The whole word on a phone: the picture at its own shape. */
  .kit-top__pic img { height: auto; aspect-ratio: 16 / 9; object-position: 50% 50%; }
  .kit-top__in { margin-top: -9vw; }
  .kit-log__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tiles { gap: 26px 12px; }
}

@media (max-width: 560px) {
  .menu--kit .menu__item { font-size: 16.5px; }
  .menu__meta { padding-left: 14px; white-space: nowrap; }
  .tile__cap { flex-direction: column; gap: 2px; }
  .tile__text { display: none; }
}

@media (max-width: 640px) and (orientation: portrait) {
  .hero { padding-bottom: 28px; }
  .hero__in { margin-bottom: 0; padding-bottom: 28px; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(5, 8, 10, 0.2) 0, rgba(5, 8, 10, 0.2) 30%, rgba(5, 8, 10, 0.8) 62%, rgba(5, 8, 10, 0.9) 84%, var(--ground) 100%);
  }
  .hero__pic img { object-position: 50% 30%; }
  .hero__pitch { font-size: 15.5px; margin: 16px 0 22px; }
  .menu__item { font-size: 18px; min-height: 42px; }
  .hero .rows { display: none; }
  .hero__feed .feed__line:nth-child(n + 3) { display: none; }
  .mark { font-size: clamp(56px, 17.5vw, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
