/*
  Cat Boss: Claw City, game website.

  Direction: the owner asked for the MYKD esports template's look (dark page, cut-corner shapes, hexagon buttons,
  huge condensed headings). Its layout is followed section by section; its colours and type come from the game.
  Reading this as: a launch page for a mobile open-world heist game, for 16+ action players in the US and Europe,
  in MYKD's esports language re-keyed to Cat Boss's own UI. Dials: ENERGY 3 / RHYTHM 3 / MOTION 2.

  Why these choices:
  - Night is the default: the game's menus are dark slate panels with gold frames, and the key art is a city at dusk.
    The owner also asked for a day theme (2026-11-04): the header's sun/moon button switches, and the choice is kept.
  - Gold #e6c254 is the gold of the game's titles and frames; #f8d200 is the CAT BOSS lettering on the key art. In the
    day theme gold that has to be read turns bronze (#8a5a12), because yellow on paper cannot reach 4.5:1.
  - Green is the game's stat bars and PLAY button: bright #38e066 at night, the PLAY button's deep #12803a by day.
    It marks the main action and the stat bars only.
  - Roboto Condensed Bold is the game's own UI typeface (bundled, OFL), so headings read like the game's menus.
    Body text uses the phone's system font: nothing to download, and Roboto on Android.
  - Identity motif: the crown with gold rules over each title, as on the game's CHOOSE YOUR CAT screen, and the
    cut corners and hexagon buttons from MYKD.
  - The trailer band, the trailer player and the WANTED plate stay dark in both themes (.force-dark): they are a
    screen and a badge, not page surfaces.
  - Motion: one entrance in the hero, sections fading in once as they arrive, slider movement. No loops.
*/

@font-face {
  font-family: "CB Condensed";
  src: url("../fonts/roboto-condensed-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-ui: "CB Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;
  --cut: 22px;
  --hex: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
  --corner: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Night (default) */
:root,
.force-dark {
  color-scheme: dark;
  --bg: #0d1216;
  --bg-2: #10181d;
  --card: #161f26;
  --card-2: #1c2730;
  --card-edge: transparent;
  --line: #26333d;
  --text: #f3efe4;
  --body: #b3bac2;
  --muted: #8e99a3;
  --gold: #e6c254;
  --gold-text: #e6c254;
  --gold-hi: #f8d200;
  --gold-ink: #241a02;
  --outline-edge: #e6c254;
  --outline-hover: #221c0b;
  --green: #38e066;
  --green-hi: #5cf084;
  --green-ink: #062611;
  --bar: #38e066;
  --bar-track: #0b1013;
  --perk: #7df58a;
  --focus: #f8d200;
  --star-off: #3a4651;
  --panel: rgba(22, 31, 38, .9);
  --avatar-bg: #2a3440;
  --header-solid: rgba(13, 18, 22, .92);
  --hero-img: url("../img/hero-bg.webp");
  --hero-side: rgba(13, 18, 22, .92);
  --hero-mid: rgba(13, 18, 22, .6);
  --hero-end: rgba(13, 18, 22, .15);
  --hero-top: transparent;
  --title: #f8d200;
  --title-x1: #c39500;
  --title-x2: #7a5c00;
  --title-x3: #2e2300;
  --title-glow: rgba(0, 0, 0, .65);
  --ring-core: #4a3606;
  --ring-mid: #1d1608;
  --ring-glow: rgba(248, 210, 0, .22);
  --tag-bg: #2b2a1f;
  --facts: rgba(243, 239, 228, .74);
  --crew-disc: radial-gradient(circle at 50% 35%, #3b4a57, #1a232b);
  --shot-edge: #1c2730;
  --shot-edge-on: #2c3a46;
  --tab-dim: grayscale(.6) brightness(.75);
  --backdrop: .13;
  --chapter-pic: .32;
  --progress: #e6c254;
  --footer-bar: #0a0e11;
  --showroom: radial-gradient(ellipse 72% 58% at 50% 64%, #2d3b48 0%, #18222b 55%, #10171c 100%);
}

/* Day */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f2e9;
  --bg-2: #efe8da;
  --card: #ffffff;
  --card-2: #fffbf2;
  --card-edge: #ddd3bf;
  --line: #d9cfbb;
  --text: #141d24;
  --body: #3a444e;
  --muted: #5a646e;
  --gold: #e0b43c;
  --gold-text: #7f5410;
  --gold-hi: #9a6a00;
  --gold-ink: #241a02;
  --outline-edge: #7f5410;
  --outline-hover: #f3e7c8;
  --green: #12803a;
  --green-hi: #0e6a30;
  --green-ink: #ffffff;
  --bar: #12803a;
  --bar-track: #e5dece;
  --perk: #146c34;
  --focus: #14202a;
  --star-off: #d6cebe;
  --panel: rgba(255, 255, 255, .94);
  --avatar-bg: #dfe5ea;
  --header-solid: rgba(246, 242, 233, .94);
  --hero-img: url("../img/hero-bg-day.webp");
  --hero-side: rgba(246, 242, 233, .94);
  --hero-mid: rgba(246, 242, 233, .66);
  --hero-end: rgba(246, 242, 233, .1);
  --hero-top: rgba(246, 242, 233, .9);
  --title: #9c6b04;
  --title-x1: #7d5500;
  --title-x2: #4f3500;
  --title-x3: #2a1c00;
  --title-glow: rgba(60, 40, 0, .22);
  --ring-core: #ffe08a;
  --ring-mid: #f5c95a;
  --ring-glow: rgba(224, 180, 60, .4);
  --tag-bg: #eee4cd;
  --facts: #4a535c;
  --crew-disc: radial-gradient(circle at 50% 35%, #eef2f5, #c9d3dc);
  --shot-edge: #e1d8c5;
  --shot-edge-on: #cbbd9f;
  --tab-dim: grayscale(.5) opacity(.75);
  --backdrop: .07;
  --chapter-pic: .24;
  --progress: #7f5410;
  --footer-bar: #e9e2d2;
  --showroom: radial-gradient(ellipse 72% 58% at 50% 64%, #ffffff 0%, #f2ece0 58%, #e4dccb 100%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 1rem/1.7 var(--font-body);
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .01em;
}
h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.1rem); }
h2 span { color: var(--gold-text); }
p { margin: 0 0 1rem; }

a { color: var(--gold-text); text-underline-offset: .18em; }
a:hover { color: var(--gold-hi); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--gold-ink);
  font: 700 16px/1 var(--font-ui);
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip:focus { transform: none; color: var(--gold-ink); }

/* Buttons: MYKD's hexagon. The shape sits on ::before so the focus ring outside the button is not clipped. */
.btn {
  --btn-bg: var(--green);
  --btn-ink: var(--green-ink);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 52px;
  padding: 0 32px;
  border: 0;
  background: none;
  color: var(--btn-ink);
  font: 700 17px/1 var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease);
}
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: var(--hex);
  transition: background-color .2s;
}
.btn::before { inset: 0; background: var(--btn-bg); }
.btn:hover { color: var(--btn-ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--green:hover { --btn-bg: var(--green-hi); }
.btn--outline { --btn-bg: var(--outline-edge); --btn-ink: var(--text); }
.btn--outline::after { inset: 2px; background: var(--bg); }
.btn--outline:hover::after { background: var(--outline-hover); }
.btn--sm { min-height: 44px; padding: 0 24px; font-size: 15px; }
.btn--lg { min-height: 58px; padding: 0 38px; font-size: 18px; }

.icon-btn,
.arrow-btn {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.icon-btn:hover,
.arrow-btn:hover:not([aria-disabled="true"]) { border-color: var(--gold); color: var(--gold-text); }
.arrow-btn[aria-disabled="true"] { opacity: .35; cursor: default; }

/* Controls that need the script stay out of the way without it (the head script sets html.js). */
html:not(.js) .theme-btn,
html:not(.js) .menu-btn,
html:not(.js) .slider__nav,
html:not(.js) .cat-tabs { display: none; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-solid {
  background: var(--header-solid);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
  transition: height .3s;
}
.site-header.is-solid .site-header__bar { height: 70px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand__icon {
  width: 46px; height: 46px;
  border: 2px solid var(--gold);
  border-radius: 10px;
}
.brand__word {
  font: 700 29px/1 var(--font-ui);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.brand__word b { color: var(--gold-text); font-weight: 700; }

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  gap: clamp(18px, 2.4vw, 38px);
  margin: 0; padding: 0;
  list-style: none;
}
.nav a {
  position: relative;
  display: block;
  padding: 14px 0;
  color: var(--text);
  font: 700 16px/1 var(--font-ui);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 3px;
  width: 22px; height: 3px;
  background: var(--gold);
  transform: skewX(-30deg) scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover,
.nav a[aria-current="true"] { color: var(--gold-text); }
.nav a[aria-current="true"]::after { transform: skewX(-30deg) scaleX(1); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-btn { width: 44px; height: 44px; }
.theme-btn .icon { width: 22px; height: 22px; }
.theme-btn .i-moon,
:root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--text);
  font: 700 15px/1 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-btn__lines { display: grid; justify-items: end; gap: 6px; width: 32px; }
.menu-btn__lines i { display: block; height: 3px; border-radius: 2px; background: currentColor; transition: width .25s var(--ease); }
.menu-btn__lines i:nth-child(1) { width: 100%; }
.menu-btn__lines i:nth-child(2) { width: 70%; }
.menu-btn__lines i:nth-child(3) { width: 85%; }
.menu-btn:hover { color: var(--gold-text); }
.menu-btn:hover .menu-btn__lines i { width: 100%; }

/* Side menu: a modal dialog, so focus stays inside and Escape closes it. */
.offcanvas {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(400px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 24px 28px 32px;
  overflow-y: auto;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--body);
}
.offcanvas[open] { display: flex; flex-direction: column; gap: 28px; animation: slide-in .3s var(--ease); }
/* Safari before 15.4 has no <dialog>: keep closed dialogs hidden there too. */
.offcanvas:not([open]),
.video-modal:not([open]) { display: none; }
.offcanvas::backdrop { background: rgba(4, 7, 9, .72); }
:root[data-theme="light"] .offcanvas::backdrop { background: rgba(20, 29, 36, .45); }
.offcanvas__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.offcanvas__nav { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.offcanvas__nav a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font: 700 19px/1.2 var(--font-ui);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.offcanvas__nav a:hover { color: var(--gold-text); }
.offcanvas__status { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.offcanvas__status img { width: 64px; height: 64px; border: 2px solid var(--gold); border-radius: 50%; }
.offcanvas__status p { margin: 0; line-height: 1.45; }
.offcanvas__status b { display: block; color: var(--text); font: 700 18px/1.2 var(--font-ui); text-transform: uppercase; }
.offcanvas .btn { align-self: flex-start; }

@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }

/* Hero */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(28px, 6vw, 80px));
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--hero-img) center top / cover no-repeat;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* By day a light band under the header keeps its links readable over the sky. */
  background:
    linear-gradient(180deg, var(--hero-top) 0, transparent 150px),
    linear-gradient(90deg, var(--hero-side) 0%, var(--hero-mid) 48%, var(--hero-end) 100%),
    linear-gradient(180deg, transparent 40%, var(--bg) 96%);
}
.hero > .wrap,
.band { position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}

/* The label box is solid (gold mixed into the page colour), so its text keeps its contrast over any part of the
   picture behind it. */
.tag {
  display: inline-block;
  margin: 0;
  padding: 10px 22px 9px 18px;
  background: var(--tag-bg);
  color: var(--gold-text);
  font: 700 clamp(14px, 1.2vw, 17px)/1 var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.hero__title { margin: 22px 0 22px; line-height: .86; }
.hero__name {
  display: block;
  color: var(--title);
  font-size: clamp(4.4rem, 1.4rem + 9vw, 9.8rem);
  text-shadow: 0 3px 0 var(--title-x1), 0 6px 0 var(--title-x2), 0 10px 0 var(--title-x3), 0 20px 34px var(--title-glow);
}
.hero__city {
  display: block;
  margin-top: 18px;
  color: var(--text);
  font-size: clamp(1.3rem, .95rem + 1.4vw, 2.1rem);
  letter-spacing: .22em;
}
.hero__lead {
  max-width: 34ch;
  margin-bottom: 30px;
  color: var(--text);
  font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem);
  line-height: 1.55;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.hero__note {
  margin: 22px 0 0;
  color: var(--muted);
  font: 700 15px/1 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Don Whiskers in front of the gold ring, as MYKD's hero character. The cut-out's left edge (his hands) and the
   bottom of the suit fade out so no hard picture edge shows. */
.hero__art {
  position: relative;
  justify-self: end;
  width: min(540px, 100%);
  aspect-ratio: 4 / 5;
}
.hero__ring {
  position: absolute;
  left: 7%; right: 7%;
  bottom: 9%;
  aspect-ratio: 1;
  border: clamp(9px, 1.4vw, 15px) solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--ring-core) 0%, var(--ring-mid) 52%, var(--bg) 100%);
  box-shadow: 0 0 70px var(--ring-glow);
}
.hero__don {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%), linear-gradient(180deg, #000 78%, transparent 97%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 16%), linear-gradient(180deg, #000 78%, transparent 97%);
  mask-composite: intersect;
}
.hero__plate {
  position: absolute;
  left: 50%;
  bottom: 3%;
  z-index: 1;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0;
  padding: 12px 40px 13px;
  color: var(--gold-hi);
  font: 700 clamp(22px, 2.5vw, 34px)/1 var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}
.hero__plate::before,
.hero__plate::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: var(--hex);
}
.hero__plate::before { inset: 0; background: var(--gold); }
.hero__plate::after { inset: 3px; background: linear-gradient(180deg, #3a2b06, #110c01); }
.hero__plate span { display: flex; gap: 4px; }
.hero__plate svg { width: clamp(14px, 1.4vw, 19px); height: clamp(14px, 1.4vw, 19px); color: var(--gold-hi); }

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 30px;
  margin: clamp(40px, 6vw, 80px) 0 0;
  padding: 0 0 36px;
  list-style: none;
  color: var(--facts);
  font: 700 clamp(15px, 1.25vw, 19px)/1.2 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.facts li { display: flex; align-items: center; gap: 30px; }
.facts li + li::before { content: ""; width: 1px; height: 22px; background: var(--line); }

.band {
  height: 26px;
  background: var(--gold);
  clip-path: polygon(0 46%, 29% 46%, 32% 0, 68% 0, 71% 46%, 100% 46%, 100% 100%, 0 100%);
}

/* Title bar: the crown between two gold rules, as on the game's select screen. */
.title-bar {
  position: relative;
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 58px);
  text-align: center;
}
.title-bar::before,
.title-bar::after {
  content: "";
  position: absolute;
  top: 13px;
  width: min(90px, 18vw);
  height: 2px;
}
.title-bar::before { right: calc(50% + 34px); background: linear-gradient(90deg, transparent, var(--gold)); }
.title-bar::after { left: calc(50% + 34px); background: linear-gradient(90deg, var(--gold), transparent); }
.title-bar__crown { width: 40px; height: 28px; margin: 0 auto 16px; color: var(--gold); }
.title-bar p { max-width: 62ch; margin: 16px auto 0; }

/* Cards share the cut corner; in the day theme a hairline (an inset shadow, which the clip-path keeps) edges them. */
.job,
.cat__pic,
.stats,
.crew,
.chapter__card,
.gun { box-shadow: inset 0 0 0 1px var(--card-edge); }

/* Jobs */
.jobs { padding: clamp(56px, 7vw, 92px) 0 clamp(64px, 8vw, 110px); }
.jobs__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 48px;
  margin-bottom: 34px;
}
.jobs__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); }
.jobs__head p { max-width: 50ch; margin: 0; }
.jobs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.job {
  display: flex;
  flex-direction: column;
  background: var(--card);
  clip-path: var(--corner);
  transition: transform .3s var(--ease), background-color .3s;
}
.job:hover { transform: translateY(-4px); background: var(--card-2); }
.job__pic { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.job__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px 22px 24px; }
.job__chapter {
  margin: 0;
  color: var(--gold-text);
  font: 700 14px/1 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.job__name { font-size: 25px; }
.job__pitch { display: flex; gap: 12px; margin: 0; }
.job__pitch img { width: 40px; height: 40px; flex: none; border: 2px solid var(--gold); border-radius: 50%; background: var(--avatar-bg); }
.job__pitch p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.55; font-style: italic; }
.job__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.job__where { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--body); }
.job__where .icon { color: var(--gold-text); }
.heat { display: inline-flex; gap: 3px; }
.heat svg { width: 18px; height: 18px; color: var(--star-off); }
.heat svg.on { color: var(--gold-hi); }
.jobs__legend { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 14px; color: var(--muted); }

/* Air and armour: MYKD's big showcase, worked like the game's iPad shop: the list on one side, the chosen machine
   large on a showroom floor. The pictures are the game's own models (CatBossUnity_tools\website\render_vehicles.py). */
.hangar { position: relative; padding: clamp(72px, 9vw, 130px) 0; background: var(--bg-2); overflow: hidden; }
.hangar__bg {
  position: absolute;
  inset: 0;
  background: url("../img/bg/navalbase.webp") center / cover;
  opacity: var(--backdrop);
}
.hangar__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-2) 0%, transparent 30%, transparent 70%, var(--bg-2) 100%);
}
.hangar .wrap { position: relative; }
.hangar__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 350px);
  align-items: start;
  gap: clamp(18px, 2.6vw, 36px);
}
.hangar__tabs { grid-column: 2; grid-row: 1; display: grid; gap: 10px; }
.hangar__tab {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.hangar__tab img { width: 92px; aspect-ratio: 5 / 3; object-fit: contain; background: var(--showroom); }
.hangar__tab b { display: block; font: 700 17px/1.15 var(--font-ui); letter-spacing: .02em; text-transform: uppercase; }
.hangar__tab small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.3; }
.hangar__tab:hover { border-color: var(--gold); transform: translateX(-3px); }
.hangar__tab[aria-selected="true"] { border-color: var(--gold); background: var(--card-2); }
.hangar__tab[aria-selected="true"] b { color: var(--gold-text); }

.hangar__panel {
  grid-column: 1;
  grid-row: 1;
  background: var(--card);
  clip-path: var(--corner);
  box-shadow: inset 0 0 0 1px var(--card-edge);
}
.hangar__panel[hidden] { display: none; }
.hangar__panel:focus-visible { outline-offset: 6px; }
.hangar__stage { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: var(--showroom); }
.hangar__stage img { position: absolute; inset: 3% 5%; width: 90%; height: 94%; object-fit: contain; }
.hangar__panel.is-shown .hangar__stage img { animation: roll-in .6s var(--ease); }
@keyframes roll-in { from { opacity: 0; transform: translateX(46px); } }
.hangar__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  align-items: start;
  gap: 6px 32px;
  padding: 24px 28px 28px;
}
.hangar__kind {
  grid-column: 1;
  margin: 0;
  color: var(--gold-text);
  font: 700 15px/1.2 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hangar__info h3 { grid-column: 1; margin: 2px 0 8px; font-size: clamp(28px, 2.8vw, 40px); }
.hangar__info > p:not(.hangar__kind) { grid-column: 1; margin: 0; color: var(--text); }
.hangar__specs {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.hangar__specs div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hangar__specs dt { color: var(--muted); font-size: 14px; }
.hangar__specs dd { margin: 0; color: var(--text); font: 700 17px/1.25 var(--font-ui); text-align: right; }
.hangar__specs dd.price { color: var(--gold-hi); justify-content: flex-end; }

/* Cats */
.cats {
  position: relative;
  padding: clamp(72px, 9vw, 130px) 0;
  background: var(--bg-2);
  overflow: hidden;
}
.cats__bg,
.crews__bg,
.chapters__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: var(--backdrop);
}
.cats__bg { background-image: url("../img/bg/lounge.webp"); }
.cats__bg::after,
.crews__bg::after,
.chapters__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-2) 0%, transparent 30%, transparent 70%, var(--bg-2) 100%);
}
.cats .wrap,
.crews .wrap,
.chapters .wrap { position: relative; }

/* Nine round tabs: one row wherever they fit, five and four on phones, never one left alone on a row. */
.cat-tabs {
  --gap: clamp(8px, 1.4vw, 14px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin-bottom: clamp(32px, 5vw, 54px);
  padding: 22px 0;
  border-block: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--gold), transparent) 1;
}
.cat-tab {
  flex: 0 0 min(78px, calc((100% - 8 * var(--gap)) / 9));
  aspect-ratio: 1;
  padding: 4px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease);
}
.cat-tab img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: var(--tab-dim);
  transition: filter .2s;
}
.cat-tab:hover { transform: translateY(-3px); }
.cat-tab:hover img,
.cat-tab[aria-selected="true"] img { filter: none; }
.cat-tab[aria-selected="true"] { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(230, 194, 84, .28); }

.cat {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr) minmax(0, 330px);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.cat[hidden] { display: none; }
.cat:focus-visible { outline-offset: 8px; }
.cat.is-shown { animation: rise .45s var(--ease); }
.cat__pic { position: relative; margin: 0; clip-path: var(--corner); background: var(--card); }
.cat__pic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.cat__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  opacity: .8;
  pointer-events: none;
}
.cat__role {
  margin: 0;
  color: var(--gold-text);
  font: 700 16px/1 var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cat__name { margin: 10px 0 14px; font-size: clamp(2.5rem, 1.6rem + 3vw, 4.3rem); line-height: .95; }
.cat__price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--gold-hi);
  font: 700 21px/1 var(--font-ui);
  letter-spacing: .03em;
}
.cat__price img { width: 24px; height: 24px; }
.cat__price--free { color: var(--text); }
.cat__text { color: var(--text); font-size: 17px; }
.cat__perk { margin-bottom: .6rem; color: var(--perk); font-weight: 600; }
.cat__crew { margin: 0; color: var(--muted); }

.stats {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 28px 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: var(--corner);
}
.stats div { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 16px; }
.stats dt { color: var(--text); font: 700 16px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.stats dd { margin: 0; }
.bar { position: relative; display: block; height: 14px; overflow: hidden; border-radius: 3px; background: var(--bar-track); }
.bar::after {
  content: "";
  position: absolute;
  inset: 2px auto 2px 2px;
  width: calc(var(--v) * (100% - 4px));
  border-radius: 2px;
  background: var(--bar);
  transform-origin: left;
}
.cat.is-shown .bar::after { animation: fill .7s var(--ease) both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fill { from { transform: scaleX(0); } }

/* Gallery: centred slider with the neighbours peeking in, as MYKD's gallery. Native scroll-snap does the swiping. */
.gallery { padding: clamp(72px, 9vw, 120px) 0 clamp(64px, 8vw, 110px); }
.slider__track {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { outline-offset: -3px; }

.slider--center .slider__track {
  --slide: min(880px, 78vw);
  padding: 12px calc((100% - var(--slide)) / 2);
  scroll-padding-inline: calc((100% - var(--slide)) / 2);
}
/* position: relative keeps the hidden caption inside its slide; without it the caption of the current slide (no
   transform) is placed against the page and widens it. */
.shot {
  position: relative;
  flex: 0 0 var(--slide);
  margin: 0;
  scroll-snap-align: center;
  border: 4px solid var(--shot-edge);
  background: var(--card);
  opacity: .45;
  transform: scale(.9);
  transition: opacity .4s, transform .4s var(--ease), border-color .4s;
}
.shot.is-current { opacity: 1; transform: none; border-color: var(--shot-edge-on); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.slider__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  max-width: calc(880px + 2 * var(--gutter));
  margin-top: 26px;
}
.slider__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
}
.slider__caption b { color: var(--text); font: 700 clamp(20px, 1.6vw, 26px)/1.1 var(--font-ui); text-transform: uppercase; }
.slider__caption span { color: var(--muted); font: 700 16px/1 var(--font-ui); letter-spacing: .08em; }
.slider__nav { display: flex; gap: 12px; }
.progress { grid-column: 1 / -1; height: 3px; background: var(--line); }
.progress i { display: block; width: 12.5%; height: 100%; background: var(--progress); transition: width .35s var(--ease); }

/* Who runs Claw City: MYKD's team cards with the round portrait and the ribbon behind it. */
.crews { position: relative; padding: clamp(72px, 9vw, 130px) 0 clamp(64px, 8vw, 110px); background: var(--bg-2); overflow: hidden; }
.crews__bg { background-image: url("../img/bg/dogs.webp"); }
.crews__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.crew {
  position: relative;
  isolation: isolate;
  padding: 30px 20px 30px;
  background: var(--card);
  text-align: center;
  clip-path: var(--corner);
}
.crew::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 30px; left: 0; right: 0;
  height: 96px;
  background: linear-gradient(180deg, var(--gold), #b8901e);
  clip-path: polygon(0 0, 22% 0, 50% 44%, 78% 0, 100% 0, 100% 56%, 50% 100%, 0 56%);
  opacity: .9;
}
.crew__pic {
  width: min(168px, 80%);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  overflow: hidden;
  border: 4px solid var(--card);
  border-radius: 50%;
  background: var(--crew-disc);
  box-shadow: 0 0 0 2px var(--gold);
}
.crew__pic img { width: 100%; height: 100%; object-fit: cover; }
.crew h3 { font-size: 23px; }
.crew p { margin: 8px 0 0; color: var(--gold-text); font: 700 15px/1.3 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }

/* Trailer band (always dark: .force-dark in the page) */
.trailer {
  position: relative;
  display: grid;
  min-height: clamp(460px, 48vw, 600px);
  overflow: hidden;
  background: #05080a;
}
.trailer__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}
.trailer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(5, 8, 10, .35) 0%, rgba(5, 8, 10, .85) 75%);
}
.trailer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding-block: 70px;
  text-align: center;
}
.trailer h2 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.2rem); text-shadow: 0 4px 20px rgba(0, 0, 0, .6); }
.trailer p { max-width: 54ch; margin: 0 0 8px; color: var(--text); font-size: 17px; }
.play {
  display: grid;
  place-items: center;
  width: 104px; height: 104px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: var(--gold-ink);
  box-shadow: 0 0 0 10px rgba(248, 210, 0, .28);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.play svg { width: 42px; height: 42px; margin-left: 6px; color: #b88a00; }
.play:hover { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(248, 210, 0, .32); }

/* The player is as wide as the screen's height allows, so its close button and controls fit on a phone held
   sideways or a short laptop screen; the words list below it scrolls inside the dialog. */
.video-modal {
  width: min(1100px, 100% - 24px, (100vh - 104px) * 16 / 9);
  max-width: none;
  max-height: calc(100vh - 16px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
}
@supports (height: 100dvh) {
  .video-modal {
    width: min(1100px, 100% - 24px, (100dvh - 104px) * 16 / 9);
    max-height: calc(100dvh - 16px);
  }
}
.video-modal::backdrop { background: rgba(3, 5, 7, .9); }
.video-modal__box { position: relative; padding-top: 56px; }
.video-modal__close { position: absolute; top: 0; right: 0; background: rgba(13, 18, 22, .8); }
.video-modal video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border: 2px solid var(--gold); }
.video-modal__msg { margin: 14px 0 0; color: var(--text); }
.video-modal__msg:empty { display: none; }
.video-modal__words { margin-top: 12px; color: var(--body); font-size: 15px; }
.video-modal__words summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold-text);
  font: 700 16px/1.2 var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.video-modal__words p { margin: 4px 0 10px; }
.video-modal__words ol { columns: 2 260px; column-gap: 32px; margin: 0; padding: 0 0 8px; list-style: none; }
.video-modal__words li { break-inside: avoid; margin-bottom: 6px; color: var(--text); }
.video-modal__words time { display: inline-block; min-width: 3.2em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Chapters: MYKD's roadmap, the intro stays put while the chapter cards go by.
   overflow: clip, not hidden: hidden would make the section a scroll box and stop the sticky intro. */
.chapters { position: relative; padding: clamp(80px, 10vw, 150px) 0; overflow: clip; }
.chapters__bg { background-image: url("../img/bg/drill.webp"); opacity: calc(var(--backdrop) * .8); }
.chapters__bg::after { background: linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%); }
.chapters__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 6vw, 90px);
}
.chapters__intro { position: sticky; top: 110px; }
.chapters__intro h2 { margin-bottom: 22px; font-size: clamp(2.3rem, 1.4rem + 3vw, 3.7rem); }
.chapters__intro h2 span { display: block; }
.chapters__side {
  margin: 28px 0 0;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.chapters__side b {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-text);
  font: 700 16px/1.2 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0 0 0 42px;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.chapter { position: relative; }
/* MYKD's marker on the line, pointing at each card. */
.chapter::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 30px;
  border: 10px solid transparent;
  border-left-color: var(--gold);
}
.chapter__card {
  position: relative;
  isolation: isolate;
  padding: 28px 30px 26px;
  overflow: hidden;
  background: var(--card);
  clip-path: var(--corner);
}
.chapter__pic {
  position: absolute;
  z-index: -1;
  top: 0; right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  opacity: var(--chapter-pic);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.chapter__no {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0 0 6px;
  color: var(--gold-text);
  font: 700 15px/1.2 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.chapter__no span { color: var(--body); letter-spacing: .06em; }
.chapter h3 { margin-bottom: 16px; font-size: clamp(26px, 2.2vw, 32px); }
.chapter ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chapter li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.chapter li::before {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 194, 84, .2);
}

/* Arsenal: MYKD's trending cards, priced in fish instead of ETH. */
.arsenal { padding: clamp(72px, 9vw, 120px) 0 clamp(72px, 9vw, 110px); background: var(--bg-2); }
.arsenal__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
  margin-bottom: 34px;
}
.arsenal__head p { max-width: 58ch; margin: 14px 0 0; }
.slider--start .slider__track {
  gap: 24px;
  scroll-padding-inline: 0;
  padding: 4px 0 8px;
}
.gun {
  display: flex;
  flex: 0 0 calc((100% - 2 * 24px) / 3);
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--card);
  clip-path: var(--corner);
  scroll-snap-align: start;
}
.gun__head h3 { font-size: 22px; }
.gun__head p { margin: 4px 0 0; color: var(--muted); font: 700 14px/1.2 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.gun img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; background: #0b1013; }
.gun__text { margin: 0; color: var(--text); font-size: 15px; }
.gun__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.price-label { color: var(--muted); font-size: 14px; }
.price { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-hi); font: 700 20px/1 var(--font-ui); }
.price img { width: 22px; height: 22px; }
.price--free { color: var(--text); }

/* The garage: the dearest and fastest car leads at double size; the rest follow by price, each on a showroom floor,
   with its top speed as a bar against the fastest (Cars.cs, the game's km/h). */
.garage { padding: clamp(72px, 9vw, 120px) 0 clamp(80px, 10vw, 130px); }
.garage__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 48px;
  margin-bottom: 34px;
}
.garage__head p { max-width: 60ch; margin: 0; }
.garage__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.car {
  display: flex;
  flex-direction: column;
  background: var(--card);
  clip-path: var(--corner);
  box-shadow: inset 0 0 0 1px var(--card-edge);
  transition: transform .3s var(--ease), background-color .3s;
}
.car:hover { transform: translateY(-4px); background: var(--card-2); }
.car--top { grid-column: span 2; grid-row: span 2; }
.car__pic { aspect-ratio: 5 / 3; background: var(--showroom); }
.car--top .car__pic { flex: 1; aspect-ratio: auto; min-height: 260px; }
.car__pic img { width: 100%; height: 100%; object-fit: contain; }
.car__body { display: grid; gap: 8px; padding: 16px 18px 18px; }
.car h3 { font-size: 20px; }
.car--top h3 { font-size: clamp(28px, 2.8vw, 40px); }
.car__text { margin: 0; color: var(--body); font-size: 14px; line-height: 1.5; }
.car--top .car__text { color: var(--text); font-size: 16px; }
.car__speed { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 2px; }
.car__speed .bar { height: 10px; }
.car__speed b { color: var(--text); font: 700 16px/1 var(--font-ui); letter-spacing: .02em; }
.car__price { margin: 0; }
.js-ready .car[data-reveal] {
  transition: opacity .6s var(--ease), transform .3s var(--ease), background-color .3s;
  transition-delay: calc(var(--d, 0) * 90ms), 0s, 0s;
}

/* Footer: a brand column, the page's links and the facts from the store listing. */
.site-footer { padding-top: clamp(64px, 8vw, 100px); border-top: 1px solid var(--line); }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 70px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.site-footer__brand .brand { margin-bottom: 22px; }
.site-footer__brand p { max-width: 44ch; }
.site-footer__status {
  color: var(--gold-text);
  font: 700 16px/1.2 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-footer h2 { margin-bottom: 18px; font-size: 20px; letter-spacing: .06em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer__links a { display: inline-block; min-width: 44px; padding: 10px 0; color: var(--body); text-decoration: none; }
.site-footer__links a:hover { color: var(--gold-text); }
.site-footer__facts li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.site-footer__facts li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.site-footer__bottom { padding: 20px 0; border-top: 1px solid var(--line); background: var(--footer-bar); font-size: 14px; }
.site-footer__bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; }
.site-footer__bottom p { margin: 0; color: var(--muted); }
.site-footer__bottom a { color: var(--gold-text); }

.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--gold);
  color: var(--gold-ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s, background-color .2s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-hi); color: var(--gold-ink); }
:root[data-theme="light"] .to-top:hover { color: #fff; }
.to-top .icon { width: 22px; height: 22px; }

/* Entrance and reveals. The hero entrance needs the html.js class set in the head; the reveals wait for main.js
   (html.js-ready), so nothing stays hidden if the script does not run. */
.js .hero .tag,
.js .hero__title,
.js .hero__lead,
.js .hero__cta,
.js .hero__note { animation: rise .7s var(--ease) both; }
.js .hero__title { animation-delay: .08s; }
.js .hero__lead { animation-delay: .16s; }
.js .hero__cta { animation-delay: .24s; }
.js .hero__note { animation-delay: .3s; }
.js .hero__ring { animation: ring-in .9s var(--ease) both .1s; }
.js .hero__don { animation: don-in .9s var(--ease) both .25s; }
.js .hero__plate { animation: plate-in .6s var(--ease) both .6s; }
@keyframes ring-in { from { opacity: 0; transform: scale(.86); } }
@keyframes don-in { from { opacity: 0; transform: translateY(40px); } }
@keyframes plate-in { from { opacity: 0; transform: translate(-50%, 16px); } }

.js-ready [data-reveal] {
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(26px); }
/* The job cards keep their own hover lift and colour change next to the reveal. */
.js-ready .job[data-reveal] {
  transition: opacity .6s var(--ease), transform .3s var(--ease), background-color .3s;
  transition-delay: calc(var(--d, 0) * 90ms), 0s, 0s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js-ready [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}

/* Windows high contrast: keep the stat bars, the empty stars and the button outlines visible. */
@media (forced-colors: active) {
  .bar { border: 1px solid CanvasText; }
  .bar::after { forced-color-adjust: none; background: CanvasText; }
  .heat svg:not(.on) { opacity: .35; }
  .btn { border: 2px solid ButtonText; }
}

/* Laptop and below: the header's link row gives way to the menu. */
@media (max-width: 1100px) {
  .nav { display: none; }
  .site-header__actions { margin-left: auto; }
  .cat { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
  .cat .stats { grid-column: 1 / -1; }
  .crews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gun { flex-basis: calc((100% - 24px) / 2); }
  .garage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The five facts wrap here: no dividers, or one would start a line. */
  .facts { justify-content: center; gap: 10px 28px; }
  .facts li + li::before { display: none; }
  .car--top { grid-row: auto; }
  .car--top .car__pic { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .hangar__box { grid-template-columns: minmax(0, 1fr) minmax(0, 290px); }
  .hangar__info { grid-template-columns: minmax(0, 1fr); }
  .hangar__specs { grid-column: 1; grid-row: auto; margin-top: 14px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 1101px) {
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Tablet: the three job cards become wide rows, the chapters lose the sticky intro. */
@media (max-width: 1023px) {
  .jobs__grid { grid-template-columns: minmax(0, 1fr); }
  .job { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
  .job__pic { height: 100%; aspect-ratio: auto; }
  .chapters__grid { grid-template-columns: minmax(0, 1fr); }
  .chapters__intro { position: static; max-width: 640px; }
}

@media (max-width: 860px) {
  /* Centred text runs across the whole picture, so the veil darkens (or, by day, lightens) it top to bottom. */
  .hero__bg::after {
    background:
      linear-gradient(180deg, var(--hero-top) 0, transparent 120px),
      linear-gradient(180deg, var(--hero-mid) 0%, var(--hero-side) 30%, var(--bg) 92%);
  }
  .hero__note { color: var(--body); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__text { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { justify-self: center; width: min(420px, 92%); margin-top: 8px; }
  .facts { justify-content: center; }
  .cat { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .cat__pic { width: min(300px, 80%); }
  .cat__price { justify-content: center; }
  .cat .stats { width: 100%; max-width: 480px; text-align: left; }
  /* The hangar's list turns into a strip of tabs above the picture, swiped sideways. */
  .hangar__box { grid-template-columns: minmax(0, 1fr); }
  .hangar__tabs {
    grid-column: 1;
    display: flex;
    gap: 10px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .hangar__tabs::-webkit-scrollbar { display: none; }
  .hangar__tab { flex: 0 0 auto; width: 216px; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; scroll-snap-align: start; }
  .hangar__tab img { width: 72px; }
  .hangar__tab:hover { transform: none; }
  .hangar__panel { grid-row: 2; }
}

/* Phones */
@media (max-width: 640px) {
  :root { --header-h: 68px; --cut: 16px; }
  body { font-size: 15px; }
  .site-header__bar { gap: 12px; }
  .site-header__actions { gap: 8px; }
  .brand__icon { width: 40px; height: 40px; }
  .brand__word { font-size: 25px; }
  .site-header__trailer { display: none; }
  .site-header.is-solid .site-header__bar { height: 62px; }
  .hero__city { letter-spacing: .16em; }
  .hero__cta .btn { flex: 1 1 100%; }
  .facts { gap: 10px 22px; font-size: 14px; }
  .facts li + li::before { display: none; }
  .job { display: flex; }
  .job__pic { height: auto; aspect-ratio: 16 / 9; }
  /* At most five 64 px tabs fit in 400 px: rows of five and four at every phone width. */
  .cat-tabs { padding: 16px max(0px, (100% - 400px) / 2); }
  .cat-tab { flex-basis: min(64px, calc((100% - 4 * var(--gap)) / 5)); padding: 3px; }
  .stats { padding: 22px 18px; }
  .stats div { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
  .slider--center .slider__track { --slide: 86vw; }
  .slider__foot { grid-template-columns: minmax(0, 1fr); }
  .slider__nav { justify-content: center; }
  .crews__grid { gap: 12px; }
  .crew { padding: 22px 10px 22px; }
  .crew::before { top: 22px; height: 70px; }
  .crew__pic { width: min(116px, 84%); margin-bottom: 14px; border-width: 3px; }
  .crew h3 { font-size: 19px; }
  .crew p { font-size: 13px; }
  .play { width: 84px; height: 84px; }
  .play svg { width: 34px; height: 34px; }
  .timeline { padding-left: 26px; }
  .chapter::before { left: -22px; top: 24px; border-width: 8px; }
  .chapter__card { padding: 22px 20px; }
  .chapter__pic { width: 70%; opacity: calc(var(--chapter-pic) * .7); }
  .gun { flex-basis: 84%; }
  .hangar__info { padding: 18px 18px 22px; }
  .garage__grid { gap: 12px; }
  .car__body { gap: 6px; padding: 12px 12px 14px; }
  .car h3 { font-size: 17px; }
  .car__text { font-size: 13px; }
  .car--top h3 { font-size: 26px; }
  .car--top .car__text { font-size: 15px; }
  .car__speed { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .car__speed b { font-size: 14px; }
  .car .price { font-size: 17px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .to-top { right: 14px; bottom: 14px; }
}
