/* Dead Drift theme, used by its product page and its homepage section.
   Palette and type follow the game's ui/ui_style.gd: burnt-asphalt black, gunmetal,
   bone white, ember red, hazard orange; Barlow Condensed italic; skewed panels.
   Motion is CSS only and starts after the content is already readable. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-display: swap;
  font-weight: 800;
  src: url(/fonts/barlow-condensed-latin-ext-800-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-display: swap;
  font-weight: 800;
  src: url(/fonts/barlow-condensed-latin-800-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/barlow-condensed-latin-ext-700-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/barlow-condensed-latin-700-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/barlow-condensed-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/barlow-condensed-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.dd-hero,
.dd-section,
.dd-band {
  --dd-bg: #0e0f11;
  --dd-panel: #15161a;
  --dd-gun: #1c2026;
  --dd-line: rgba(255, 255, 255, 0.1);
  --dd-text: #ede6d6;
  --dd-soft: #c9c2b3;
  --dd-muted: #8e8a82;
  --dd-red: #e8352b;
  --dd-orange: #ff7a1a;
  --dd-hazard: #ffc21a;
  --dd-acid: #a6f23a;
  --dd-cyan: #33f2ff;
  --dd-yellow: #ffd11a;
  --dd-pink: #ff4df2;
  --dd-violet: #b873ff;
  --dd-on-red: #fff4ea;
  --dd-font: "Barlow Condensed", "Archivo", "Arial Narrow", sans-serif;
  /* The game's skew (0.24) as a parallelogram cut. */
  --dd-cut: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  --dd-chamfer: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  background: var(--dd-bg);
  color: var(--dd-text);
  font-family: var(--dd-font);
  font-weight: 500;
}

body.theme-dead-drift {
  background: #0e0f11;
}

.dd-wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.dd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Shared parts */
.dd-tagline {
  margin-top: 18px;
  max-width: 18ch;
  font-size: clamp(30px, 3.6vw, 54px);
  font-style: italic;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.dd-lead {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--dd-soft);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
}

.dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  clip-path: var(--dd-cut);
  background: var(--dd-gun);
  color: var(--dd-text);
  font-size: 21px;
  font-style: italic;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.15s ease;
}

.dd-btn svg {
  width: 18px;
  height: 18px;
}

.dd-btn:hover,
.dd-btn:focus-visible {
  background: var(--dd-red);
  color: var(--dd-on-red);
  transform: translateX(4px);
  outline: none;
}

/* "Coming soon" in the shape of the game's START button, but not a link. */
.dd-actions .soon-store,
.dd-home .soon-store {
  min-height: 52px;
  padding: 7px 34px 8px 26px;
  border: 0;
  clip-path: var(--dd-cut);
  background: var(--dd-red);
  color: var(--dd-on-red);
}

.dd-actions .soon-store .label,
.dd-home .soon-store .label {
  color: var(--dd-on-red);
  font-family: var(--dd-font);
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.dd-actions .soon-store strong,
.dd-home .soon-store strong {
  font-size: 23px;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}

.dd-actions,
.dd-home .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

/* Hero */
.dd-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: space-between;
  min-height: min(94vh, 920px);
  overflow: hidden;
  padding-top: 28px;
}

.dd-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 55%;
}

.dd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(14, 15, 17, 0.97) 0%, rgba(14, 15, 17, 0.88) 30%, rgba(14, 15, 17, 0.25) 64%, rgba(14, 15, 17, 0.45) 100%),
    linear-gradient(0deg, #0e0f11 0%, rgba(14, 15, 17, 0) 42%);
}

.dd-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--dd-muted);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dd-crumbs a {
  color: var(--dd-text);
}

.dd-crumbs a:hover {
  color: var(--dd-orange);
}

.dd-kicker {
  display: inline-block;
  margin-top: clamp(28px, 5vw, 64px);
  padding: 3px 20px 4px 16px;
  clip-path: var(--dd-cut);
  background: var(--dd-orange);
  color: var(--dd-bg);
  font-size: 16px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dd-logo {
  margin-top: 16px;
}

.dd-logo img {
  width: clamp(280px, 42vw, 640px);
  height: auto;
}

.dd-hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 24px 40px;
  align-items: end;
  margin-top: 48px;
  padding-bottom: 40px;
}

.dd-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dd-stats div {
  display: flex;
  flex-direction: column-reverse;
  padding: 12px 16px 14px;
  clip-path: var(--dd-chamfer);
  background: rgba(21, 22, 26, 0.88);
  border-top: 3px solid var(--dd-red);
}

.dd-stats dd {
  font-size: clamp(34px, 3.4vw, 52px);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.dd-stats dt {
  margin-top: 4px;
  color: var(--dd-muted);
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dd-charge {
  display: grid;
  gap: 8px;
}

.dd-charge-label {
  color: var(--dd-muted);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dd-charge-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.dd-charge-bar i {
  position: relative;
  height: 14px;
  overflow: hidden;
  clip-path: var(--dd-cut);
  background: rgba(255, 255, 255, 0.1);
}

.dd-charge-bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tier, var(--dd-cyan));
  transform-origin: left;
}

.dd-charge-bar i:nth-child(1) { --tier: var(--dd-cyan); }
.dd-charge-bar i:nth-child(2) { --tier: var(--dd-yellow); }
.dd-charge-bar i:nth-child(3) { --tier: var(--dd-pink); }

.dd-charge-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  font-size: 15px;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}

.dd-charge-tiers b:nth-child(1) { color: var(--dd-cyan); }
.dd-charge-tiers b:nth-child(2) { color: var(--dd-yellow); }
.dd-charge-tiers b:nth-child(3) { color: var(--dd-pink); }

/* Red underglow trails, like the car's light in the game. */
.dd-skid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 120px;
  z-index: -1;
  width: 100%;
  height: 160px;
  pointer-events: none;
}

.dd-skid path {
  fill: none;
  stroke: var(--dd-red);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  opacity: 0.35;
  filter: drop-shadow(0 0 6px rgba(232, 53, 43, 0.8));
}

/* Sections */
.dd-section {
  position: relative;
  isolation: isolate;
  /* Cars and cards slide in from outside the page; never let that widen it. */
  overflow-x: clip;
  padding: clamp(64px, 9vw, 128px) 0;
}

.dd-section + .dd-section {
  padding-top: 0;
}

.dd-head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: 20px;
}

.dd-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: repeating-linear-gradient(-60deg, var(--dd-hazard) 0 12px, transparent 12px 24px);
  transform-origin: left;
}

.dd-num {
  padding: 2px 16px 3px 12px;
  clip-path: var(--dd-cut);
  background: var(--dd-red);
  color: var(--dd-on-red);
  font-size: 20px;
  font-style: italic;
  font-weight: 800;
}

.dd-head h2 {
  font-size: clamp(40px, 6vw, 92px);
  font-style: italic;
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

.dd-note {
  grid-column: 1 / -1;
  max-width: 62ch;
  color: var(--dd-soft);
  font-size: clamp(18px, 1.4vw, 20px);
}

/* Feature cards: the level-up screen's card colours. */
.dd-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  counter-reset: none;
  border: 0;
}

.dd-cards li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 0 24px 28px;
  clip-path: var(--dd-chamfer);
  background: var(--dd-panel);
  border-top: 4px solid var(--tone);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.dd-cards li::before {
  content: none;
}

.dd-cards li:hover {
  transform: translateY(-6px);
  background: #1b1c21;
}

.dd-card--new { --tone: var(--dd-red); }
.dd-card--weapon { --tone: var(--dd-orange); }
.dd-card--module { --tone: #4dccff; }

.dd-card-tag {
  justify-self: start;
  padding: 3px 14px 4px;
  background: var(--tone);
  color: var(--dd-bg);
  font-size: 15px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dd-cards img {
  width: 96px;
  height: 96px;
  margin-top: 8px;
}

/* Garage */
.dd-garage {
  padding-top: clamp(64px, 9vw, 128px) !important;
}

.dd-garage-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.dd-garage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0e0f11 0%, rgba(14, 15, 17, 0.55) 30%, rgba(14, 15, 17, 0.7) 70%, #0e0f11 100%);
}

.dd-cars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.dd-cars li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 0 18px 16px;
  clip-path: var(--dd-chamfer);
  background: rgba(21, 22, 26, 0.86);
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dd-cars img {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  margin: 4px 0 2px;
  transition: transform 0.25s ease;
}

.dd-car-num {
  grid-row: span 2;
  align-self: start;
  padding: 1px 10px 2px 8px;
  clip-path: var(--dd-cut);
  background: var(--dd-gun);
  color: var(--dd-muted);
  font-size: 15px;
  font-style: italic;
  font-weight: 800;
}

.dd-cars strong {
  font-size: 21px;
  font-style: italic;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.dd-car-role {
  color: var(--dd-orange);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dd-cars li:hover {
  border-color: var(--dd-red);
  background: rgba(32, 22, 22, 0.92);
}

.dd-cars li:hover img {
  transform: translateX(10px) rotate(-2deg);
}

.dd-cars li:hover .dd-car-num {
  background: var(--dd-red);
  color: var(--dd-on-red);
}

/* Arsenal */
.dd-arsenal {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.dd-arsenal li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 16px 8px 14px;
  clip-path: var(--dd-chamfer);
  background: var(--dd-panel);
  border-bottom: 3px solid var(--dd-orange);
  text-align: center;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.dd-arsenal li.is-spell {
  border-bottom-color: var(--dd-violet);
}

.dd-arsenal img {
  width: min(84px, 100%);
  height: auto;
}

.dd-arsenal span {
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.dd-arsenal em {
  position: absolute;
  top: 6px;
  right: 8px;
  color: var(--dd-violet);
  font-size: 12px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dd-arsenal li:hover {
  background: #22171a;
  transform: translateY(-4px);
}

/* Map select */
.dd-maps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 22px);
}

.dd-map {
  --tone: var(--dd-orange);
  position: relative;
  display: grid;
  align-content: end;
  min-height: clamp(300px, 34vw, 480px);
  padding: 20px 26px 24px;
  overflow: hidden;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  isolation: isolate;
}

.dd-map--city { --tone: var(--dd-orange); }
.dd-map--cyber { --tone: var(--dd-cyan); }
.dd-map--arcade { --tone: var(--dd-pink); }
.dd-map--space { --tone: #a98cff; }

.dd-map img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dd-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(8, 8, 10, 0.96) 0%, rgba(8, 8, 10, 0.4) 45%, rgba(8, 8, 10, 0) 70%);
}

.dd-map::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  box-shadow: inset 0 0 0 0 var(--tone);
  transition: box-shadow 0.15s ease;
}

.dd-map strong {
  font-size: clamp(24px, 2.4vw, 34px);
  font-style: italic;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.dd-map span {
  margin-top: 6px;
  color: var(--tone);
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dd-map:hover img {
  transform: scale(1.06);
}

.dd-map:hover::after {
  box-shadow: inset 0 0 0 4px var(--tone);
}

/* Screens */
.dd-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.dd-shots a {
  display: block;
  padding: 6px;
  clip-path: var(--dd-chamfer);
  background: var(--dd-gun);
  transition: background-color 0.15s ease;
}

.dd-shots a:hover {
  background: var(--dd-red);
}

.dd-shots img {
  width: 100%;
  clip-path: var(--dd-chamfer);
}

.dd-shots figcaption {
  margin-top: 10px;
  color: var(--dd-muted);
  font-size: 16px;
}

/* Support and related rows on dark */
.dd-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(28px, 5vw, 80px);
  align-items: start;
}

.dd-split .dd-head {
  margin-bottom: 0;
}

.dd-section .link-list {
  border-top: 1px solid var(--dd-line);
}

.dd-section .link-list a {
  border-bottom: 1px solid var(--dd-line);
}

.dd-section .link-list strong {
  font-family: var(--dd-font);
  font-size: 24px;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}

.dd-section .link-list span {
  color: var(--dd-muted);
}

.dd-section .link-list a:hover {
  background: var(--dd-red);
  color: var(--dd-on-red);
}

.dd-more .rows {
  border-top-color: var(--dd-line);
  font-family: var(--font);
}

.dd-more .row {
  border-bottom-color: var(--dd-line);
}

.dd-more .row:hover,
.dd-more .row:focus-visible {
  background: var(--dd-red);
  color: var(--dd-on-red);
}

.dd-more .row-meta em {
  background: var(--dd-text);
  color: var(--dd-bg);
}

/* Homepage section */
.dd-band {
  position: relative;
  isolation: isolate;
  margin-top: clamp(72px, 10vw, 140px);
  padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 88px);
  overflow: hidden;
}

.dd-band .bar {
  font-family: var(--font);
}

.dd-band .bar .label,
.dd-band .text-link {
  color: var(--dd-text);
}

.dd-band .text-link:hover {
  color: var(--dd-orange);
}

.dd-home {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(28px, 4vw, 48px);
}

.dd-home-art {
  position: relative;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}

.dd-home-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dd-home-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: var(--dd-red);
  box-shadow: 0 0 24px 4px rgba(232, 53, 43, 0.7);
}

.dd-home-logo img {
  width: clamp(240px, 30vw, 460px);
  height: auto;
}

.dd-home .dd-tagline {
  font-size: clamp(26px, 2.6vw, 40px);
}

.dd-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.dd-facts li {
  padding: 4px 18px 5px 14px;
  clip-path: var(--dd-cut);
  background: var(--dd-gun);
  font-size: 17px;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
}

.dd-small {
  display: inline-block;
  margin-top: 20px;
  color: var(--dd-soft);
  font-size: 17px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dd-small:hover {
  color: var(--dd-orange);
}

.dd-home-cars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--dd-line);
}

.dd-home-cars img {
  width: 100%;
  height: auto;
}

/* Motion: page load */
@media (prefers-reduced-motion: no-preference) {
  .dd-hero-bg {
    animation: dd-camera 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .dd-kicker {
    animation: dd-in-left 0.5s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .dd-logo img {
    animation: dd-slam 0.7s 0.3s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  }

  .dd-hero .dd-tagline,
  .dd-hero .dd-lead,
  .dd-hero .dd-actions {
    animation: dd-in-left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .dd-hero .dd-tagline { animation-delay: 0.55s; }
  .dd-hero .dd-lead { animation-delay: 0.65s; }
  .dd-hero .dd-actions { animation-delay: 0.75s; }

  .dd-stats div {
    animation: dd-in-up 0.5s calc(0.9s + var(--i) * 0.08s) cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .dd-charge-bar i::after {
    animation: dd-fill 0.55s ease-in both;
  }

  .dd-charge-bar i:nth-child(1)::after { animation-delay: 1.1s; }
  .dd-charge-bar i:nth-child(2)::after { animation-delay: 1.65s; }
  .dd-charge-bar i:nth-child(3)::after { animation-delay: 2.2s; }

  .dd-charge-tiers b {
    animation: dd-tier 0.4s ease-out both;
  }

  .dd-charge-tiers b:nth-child(1) { animation-delay: 1.6s; }
  .dd-charge-tiers b:nth-child(2) { animation-delay: 2.15s; }
  .dd-charge-tiers b:nth-child(3) { animation: dd-tier 0.4s 2.7s ease-out both, dd-pulse 1.2s 3.1s ease-in-out infinite; }

  .dd-skid path {
    animation: dd-draw 1.4s 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  .dd-skid path + path {
    animation-delay: 0.5s;
  }
}

@keyframes dd-camera {
  from { transform: translateX(-8%) scale(1.12); filter: blur(6px) brightness(0.4); }
  to { transform: none; filter: none; }
}

@keyframes dd-slam {
  0% { transform: scale(1.6) skewX(-12deg); opacity: 0; filter: blur(8px); }
  60% { transform: scale(0.96) skewX(0); opacity: 1; filter: none; }
  75% { transform: translateX(-6px); }
  90% { transform: translateX(4px); }
  100% { transform: none; }
}

@keyframes dd-in-left {
  from { transform: translateX(-60px) skewX(-8deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes dd-in-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes dd-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes dd-tier {
  from { opacity: 0.2; }
  to { opacity: 1; }
}

@keyframes dd-pulse {
  50% { text-shadow: 0 0 14px var(--dd-pink); }
}

@keyframes dd-draw {
  from { stroke-dashoffset: 2000; }
  to { stroke-dashoffset: 0; }
}

@keyframes dd-drive-in {
  from { transform: translateX(110%) skewX(-10deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes dd-pop {
  from { transform: scale(0.6) rotate(-6deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes dd-wipe {
  from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
}

@keyframes dd-stripe {
  from { transform: scaleX(0); }
}

@keyframes dd-ignite {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Motion: scrolling. Browsers without scroll timelines show everything in place. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .dd-head::after {
      animation: dd-stripe linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 100%;
    }

    .dd-head h2,
    .dd-num {
      animation: dd-in-left linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    .dd-cards li,
    .dd-shots figure {
      animation: dd-in-up linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--i) * 10%) entry 100%;
    }

    .dd-cars li {
      animation: dd-drive-in linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--i) * 4%) entry 100%;
    }

    .dd-arsenal li {
      animation: dd-pop linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--i) * 2%) entry 100%;
    }

    .dd-map {
      animation: dd-in-up linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--i) * 8%) entry 100%;
    }

    /* Homepage: the band lights up, the art wipes in and the garage drives past. */
    .dd-band::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: var(--dd-red);
      box-shadow: 0 0 22px 3px rgba(232, 53, 43, 0.75);
      transform-origin: left;
      animation: dd-ignite linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 20%;
    }

    .dd-home-art {
      animation: dd-wipe linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 100%;
    }

    .dd-home-copy > * {
      animation: dd-in-left linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 100%;
    }

    .dd-home-cars li {
      animation: dd-drive-in linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--i) * 6%) entry 100%;
    }
  }
}

/* Layout */
@media (max-width: 1024px) {
  .dd-hud,
  .dd-home,
  .dd-split {
    grid-template-columns: 1fr;
  }

  .dd-arsenal {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dd-maps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dd-home-cars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dd-home-cars li:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 720px) {
  .dd-hero {
    min-height: 0;
  }

  .dd-hero::before {
    background: linear-gradient(0deg, #0e0f11 0%, rgba(14, 15, 17, 0.9) 45%, rgba(14, 15, 17, 0.55) 100%);
  }

  .dd-hero-bg {
    object-position: 60% 50%;
  }

  .dd-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dd-cards,
  .dd-shots {
    grid-template-columns: 1fr;
  }

  .dd-arsenal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dd-cars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dd-maps {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .dd-map {
    min-height: 260px;
    padding: 14px 18px 16px;
  }

  .dd-skid {
    bottom: 260px;
  }
}
