:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-soft: #09090b;
  --panel: #0d0d10;
  --panel-2: #141418;
  --panel-3: #1a1a1f;
  --line: #2c2c32;
  --line-soft: #202025;
  --text: #f5f5f7;
  --muted: #a4a4ad;
  --dim: #6f6f79;
  --red: #e21920;
  --red-hot: #ff2b30;
  --green: #66dc91;
  --amber: #e8b94c;
  --blue: #6eb7e8;
  --max: 1380px;
  --head-font: "Arial Narrow", "Roboto Condensed", Impact, Haettenschweiler, sans-serif;
  --body-font: Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--body-font);
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

img,
svg {
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 200;
  padding: 11px 16px;
  background: #fff;
  color: #000;
}

.skip-link:focus {
  top: 18px;
}

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

/* Header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 76px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 6, 0.94);
  backdrop-filter: blur(18px);
}

.site-head__inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  width: 178px;
  height: 66px;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.65));
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  height: 76px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 150ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-upload {
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--red);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.nav-upload:hover {
  background: var(--red-hot);
  transform: translateY(-1px);
}

.nav-upload svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: none;
  place-items: center;
  background: var(--panel);
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 1.5px;
  display: block;
  margin: 3px auto;
  background: #fff;
}

/* Shared controls */

.btn {
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  font-family: var(--head-font);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--red {
  border-color: var(--red);
  background: var(--red);
}

.btn--red:hover {
  border-color: var(--red-hot);
  background: var(--red-hot);
}

.btn--line {
  border-color: #4c4c54;
  background: rgba(5, 5, 6, 0.45);
}

.btn--line:hover {
  border-color: #8c8c96;
  background: rgba(255, 255, 255, 0.06);
}

.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
}

.text-button {
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.text-button span {
  color: var(--red);
  font-size: 18px;
}

.text-button:hover {
  color: #fff;
}

.section-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-head {
  max-width: 790px;
  margin-bottom: 28px;
}

.section-head--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-head h2,
.about-grid h2 {
  margin: 0;
  font-family: var(--head-font);
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.section-head h2 span,
.about-grid h2 span {
  color: var(--red);
}

.section-head p {
  margin: 12px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 14px;
}

/* Hero */

.hero {
  position: relative;
  min-height: 670px;
  height: calc(100svh - 110px);
  max-height: 790px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/images/tag-hero-track.jpg");
  background-size: cover;
  background-position: center center;
  transform: scale(1.01);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 3, 4, 0.98) 0%, rgba(3, 3, 4, 0.9) 26%, rgba(3, 3, 4, 0.42) 58%, rgba(3, 3, 4, 0.04) 82%),
    linear-gradient(0deg, rgba(3, 3, 4, 0.8) 0%, rgba(3, 3, 4, 0) 38%);
}

.hero__content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 14px;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8d8dc;
}

.hero .eyebrow span {
  width: 34px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  width: min(760px, 64%);
  margin: 0;
  font-family: var(--head-font);
  font-size: 76px;
  line-height: 0.94;
  font-weight: 700;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero h1 strong {
  display: block;
  color: var(--red);
  font-weight: inherit;
}

.hero__copy {
  width: min(580px, 54%);
  margin: 24px 0 0;
  color: #d1d1d5;
  font-size: 16px;
  line-height: 1.58;
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__proof {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__proof span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: rotate(45deg);
}

.hero__scroll {
  position: absolute;
  right: 28px;
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d7d7dc;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll span {
  width: 1px;
  height: 40px;
  background: var(--red);
}

/* Process */

.process-band {
  border-bottom: 1px solid var(--line);
  background: #09090b;
}

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

.process-item {
  position: relative;
  min-height: 154px;
  padding: 32px 26px;
  border-left: 1px solid var(--line);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
}

.process-item:last-child {
  border-right: 1px solid var(--line);
}

.process-item__number {
  position: absolute;
  right: 16px;
  top: 12px;
  color: #28282d;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
}

.process-item__icon {
  width: 46px;
  height: 46px;
  color: var(--red);
}

.process-item__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-item h2 {
  margin: 0 0 6px;
  font-family: var(--head-font);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Leaderboard */

.board-band {
  padding: 82px 0 88px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
}

.board {
  border: 1px solid #34343a;
  border-radius: 6px;
  background: rgba(12, 12, 15, 0.97);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.board__trackbar {
  min-height: 112px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: #101013;
}

.track-mark {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border: 1px solid #3b3b42;
  display: grid;
  place-items: center;
  background: #08080a;
  color: #fff;
}

.track-mark svg {
  width: 50px;
  height: 50px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.board__trackcopy {
  min-width: 0;
  flex: 1;
}

.board__titleline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.board__titleline h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--head-font);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.flag {
  width: 30px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.flag--track {
  flex: 0 0 auto;
}

.board__meta {
  min-height: 20px;
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.board__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.board__meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

.board__tabs {
  height: 52px;
  padding: 0 22px;
  display: flex;
  align-items: stretch;
  gap: 26px;
  border-bottom: 1px solid var(--line);
}

.board__tabs button {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-family: var(--head-font);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.board__tabs button.is-active {
  color: #fff;
}

.board__tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--red);
}

.board__filters {
  min-height: 76px;
  padding: 14px 22px;
  display: flex;
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #0a0a0c;
}

.control {
  min-width: 210px;
  display: grid;
  gap: 5px;
}

.control > span {
  color: var(--dim);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.control select,
.search-control {
  height: 40px;
  border: 1px solid #35353c;
  border-radius: 3px;
  background: #121216;
}

.control select {
  width: 100%;
  padding: 0 34px 0 12px;
  color: #eeeef1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.class-tabs {
  height: 40px;
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #35353c;
  border-radius: 3px;
  overflow: hidden;
}

.class-tabs button {
  min-width: 60px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid #35353c;
  background: #121216;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.class-tabs button:last-child {
  border-right: 0;
}

.class-tabs button:hover,
.class-tabs button.is-active {
  background: var(--red);
  color: #fff;
}

.search-control {
  min-width: 190px;
  max-width: 300px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
}

.search-control svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.search-control input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
}

.search-control input::placeholder {
  color: var(--dim);
}

.board__count {
  min-width: 76px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.board__stale {
  padding: 12px 22px;
  border-bottom: 1px solid #563432;
  background: #211313;
  color: #f0b4b0;
  font-size: 12px;
}

.board__loading,
.board__empty,
.board__err {
  min-height: 180px;
  padding: 50px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.board__loading span,
.frame-loader span {
  width: 19px;
  height: 19px;
  border: 2px solid #404047;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.board__err {
  color: #ff9898;
}

.board__scroll {
  overflow-x: auto;
}

.grid-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.grid-table th {
  height: 42px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 9px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.grid-table td {
  height: 62px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line-soft);
  color: #dedee2;
  font-size: 13px;
  white-space: nowrap;
}

.grid-table tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}

.grid-table tbody tr:hover,
.grid-table tbody tr:focus-visible {
  background: #17171b;
  outline: none;
}

.grid-table tbody tr:last-child td {
  border-bottom: 0;
}

.grid-table .c-pos {
  width: 66px;
  color: var(--dim);
  font-family: var(--mono);
  font-weight: 800;
}

.grid-table tr.is-p1 .c-pos,
.grid-table tr.is-p1 .c-time {
  color: var(--red-hot);
}

.c-driver {
  font-weight: 800;
  text-transform: uppercase;
}

.driver-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.driver-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7a7a83;
}

tr.is-p1 .driver-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(226, 25, 32, 0.12);
}

.c-car,
.c-date {
  color: var(--muted) !important;
}

.c-time,
.c-gap {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.c-time {
  font-size: 14px !important;
  font-weight: 800;
}

.c-gap {
  color: var(--dim) !important;
}

.badge {
  min-width: 38px;
  padding: 4px 8px;
  border: 1px solid #393940;
  border-radius: 2px;
  display: inline-flex;
  justify-content: center;
  background: #17171b;
  color: #dfdfe4;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.badge--gt1 {
  border-color: #8d3838;
  color: #ff8585;
}

.badge--gt2 {
  border-color: #765528;
  color: var(--amber);
}

.badge--gt3 {
  border-color: #2d5874;
  color: var(--blue);
}

.badge--gt4 {
  border-color: #326044;
  color: var(--green);
}

.quality {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.quality::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.c-open {
  width: 54px;
  text-align: right !important;
}

.row-arrow {
  color: var(--dim);
  font-size: 18px;
}

.board__foot {
  min-height: 56px;
  padding: 0 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--dim);
  font-size: 11px;
}

/* Tracks */

.tracks-band {
  padding: 82px 0 88px;
  border-top: 1px solid var(--line);
  background: #09090b;
}

.track-catalog-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.track-catalog-search input {
  width: 210px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #34343a;
  border-radius: 4px;
  background: #111114;
  color: #fff;
  font: 700 12px var(--body-font);
  outline: 0;
}

.track-catalog-search input:focus {
  border-color: var(--red);
}

.track-catalog-tabs {
  height: 42px;
  padding: 3px;
  border: 1px solid #34343a;
  border-radius: 4px;
  display: flex;
  background: #111114;
}

.track-catalog-tabs button {
  min-width: 74px;
  padding: 0 12px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--dim);
  font: 800 10px var(--body-font);
  text-transform: uppercase;
  cursor: pointer;
}

.track-catalog-tabs button.is-active {
  background: var(--red);
  color: #fff;
}

.track-catalog-summary {
  min-height: 18px;
  margin: -24px 0 20px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
}

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

.tcard {
  position: relative;
  min-height: 255px;
  padding: 0;
  border: 1px solid #303036;
  border-radius: 5px;
  overflow: hidden;
  background: #111114;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.tcard:hover {
  border-color: #6d2b2e;
  transform: translateY(-3px);
}

.tcard__visual {
  height: 142px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.tcard__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(7, 7, 9, 0.58), transparent 64%);
  pointer-events: none;
}

.tcard.has-emblem .tcard__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
  transition: background 220ms ease;
}

.tcard.has-emblem:hover .tcard__visual::before {
  background: rgba(0, 0, 0, 0);
}

.tcard__track-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 8px 18px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1) contrast(1.2);
  transition: transform 220ms ease, filter 220ms ease;
}

.tcard:hover .tcard__track-image {
  transform: scale(1.025);
  filter: grayscale(1) contrast(1.35);
}

.tcard__route {
  width: 98px;
  height: 98px;
  z-index: 1;
  fill: none;
  stroke: #dcdce0;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 10px #000);
}

.tcard__flag {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 4;
}

.tcard__body {
  min-height: 112px;
  padding: 15px 16px;
  display: grid;
}

.tcard h3 {
  min-height: 38px;
  margin: 0;
  font-family: var(--head-font);
  font-size: 19px;
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
}

.tcard__row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.tcard__laps {
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.tcard__best {
  text-align: right;
}

.tcard__best b {
  display: block;
  color: #fff;
  font-family: var(--mono);
  font-size: 15px;
}

.tcard__best span {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Numbers and about */

.numbers-band {
  padding: 74px 0 82px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.stats {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  min-height: 124px;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  font-family: var(--head-font);
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.about-band {
  padding: 82px 0;
  border-top: 1px solid var(--line);
  background: #101013;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}

.about-copy {
  max-width: 690px;
}

.about-copy p {
  margin: 0 0 18px;
  color: #c0c0c6;
  font-size: 15px;
  line-height: 1.7;
}

.about-copy .btn {
  margin-top: 8px;
}

/* Footer */

.site-foot {
  padding: 56px 0 24px;
  border-top: 1px solid var(--line);
  background: #050506;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 0.8fr;
  gap: 60px;
}

.foot-brand img {
  width: 210px;
  height: auto;
}

.foot-brand p {
  max-width: 390px;
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.6;
}

.foot-grid h2 {
  margin: 8px 0 16px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.foot-grid a,
.footer-link {
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  display: block;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.foot-grid a:hover,
.footer-link:hover {
  color: #fff;
}

.foot-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #5f5f67;
  font-size: 10px;
  text-transform: uppercase;
}

/* Modals */

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  padding: 20px;
  display: grid;
  place-items: center;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #414148;
  border-radius: 3px;
  display: grid;
  place-items: center;
  background: #111114;
  color: #fff;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--red);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.upload-shell {
  position: relative;
  z-index: 1;
  width: min(1500px, 100%);
  height: calc(100svh - 40px);
  border: 1px solid #414148;
  border-radius: 6px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: #08080a;
  box-shadow: 0 30px 100px #000;
  overflow: hidden;
}

.upload-shell__head {
  min-height: 88px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.upload-shell__head h2,
.lap-dialog__head h2 {
  margin: 0;
  font-family: var(--head-font);
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.upload-shell__head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.upload-shell__notice {
  padding: 10px 20px;
  border-bottom: 1px solid #4d3b1f;
  background: #20180c;
  color: #d7bc86;
  font-size: 11px;
  text-align: center;
}

.upload-shell__frame {
  position: relative;
  min-height: 0;
  background: #020711;
}

.upload-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #020711;
}

.frame-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #08080a;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.frame-loader.is-done {
  display: none;
}

.lap-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100svh - 40px);
  padding: 22px;
  border: 1px solid #414148;
  border-radius: 6px;
  background: #0d0d10;
  box-shadow: 0 30px 100px #000;
  overflow-y: auto;
}

.lap-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lap-dialog__hero {
  min-height: 132px;
  margin: 22px -22px 0;
  padding: 24px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  background: #09090b;
}

.lap-dialog__hero .flag {
  width: 45px;
  height: 30px;
}

.lap-dialog__hero span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lap-dialog__hero strong {
  display: block;
  margin-top: 6px;
  color: var(--red-hot);
  font-family: var(--mono);
  font-size: 34px;
}

.lap-details {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.lap-details div {
  min-height: 86px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.lap-details div:nth-child(odd) {
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.lap-details div:nth-child(even) {
  padding-left: 20px;
}

.lap-details dt {
  color: var(--dim);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.lap-details dd {
  margin: 7px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.lap-dialog__note {
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */

@media (max-width: 1120px) {
  .site-nav {
    gap: 20px;
  }

  .hero h1 {
    width: 68%;
    font-size: 64px;
  }

  .hero__copy {
    width: 60%;
  }

  .process-item {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 28px 18px;
  }

  .process-item__icon {
    width: 40px;
    height: 40px;
  }

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

  .board__filters {
    flex-wrap: wrap;
    align-items: center;
  }

  .control {
    flex: 1 1 260px;
  }

  .search-control {
    margin-left: 0;
    flex: 1 1 220px;
  }
}

@media (max-width: 880px) {
  .wrap {
    width: min(100% - 32px, var(--max));
  }

  .tracks-band .section-head--row {
    align-items: flex-start;
    flex-direction: column;
  }

  .track-catalog-summary {
    margin-top: 0;
  }

  .site-head,
  .site-head__inner {
    height: 68px;
  }

  .brand {
    width: 150px;
    height: 58px;
  }

  .brand img {
    height: 56px;
  }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 68px;
    margin: 0;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: #08080a;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    height: 46px;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav a::after {
    display: none;
  }

  .nav-upload {
    margin-left: auto;
  }

  .menu-button {
    display: grid;
  }

  .hero {
    height: auto;
    min-height: 640px;
    max-height: none;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(3, 3, 4, 0.95), rgba(3, 3, 4, 0.55)),
      linear-gradient(0deg, rgba(3, 3, 4, 0.82), rgba(3, 3, 4, 0.05));
  }

  .hero__media {
    background-position: 62% center;
  }

  .hero h1 {
    width: 78%;
    font-size: 58px;
  }

  .hero__copy {
    width: 70%;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-item:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .process-item:nth-child(4) {
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .foot-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 24px, var(--max));
  }

  .brand {
    width: 138px;
  }

  .nav-upload {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .nav-upload svg {
    width: 19px;
    height: 19px;
  }

  .hero {
    min-height: 650px;
  }

  .hero__content {
    justify-content: flex-end;
    padding-bottom: 58px;
  }

  .hero__media {
    background-position: 68% center;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(3, 3, 4, 0.98) 10%, rgba(3, 3, 4, 0.62) 62%, rgba(3, 3, 4, 0.18)),
      linear-gradient(90deg, rgba(3, 3, 4, 0.6), rgba(3, 3, 4, 0.05));
  }

  .hero h1 {
    width: 100%;
    font-size: 44px;
  }

  .hero__copy {
    width: 100%;
    margin-top: 18px;
    font-size: 14px;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 150px;
  }

  .hero__proof {
    margin-top: 24px;
    gap: 10px 16px;
  }

  .hero__scroll {
    display: none;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-item {
    min-height: 124px;
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .process-item:first-child {
    border-top: 0;
  }

  .board-band,
  .tracks-band,
  .numbers-band,
  .about-band {
    padding: 58px 0;
  }

  .section-head h2,
  .about-grid h2 {
    font-size: 31px;
  }

  .section-head--row {
    align-items: flex-start;
    flex-direction: column;
  }

  .board__trackbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .track-mark {
    width: 56px;
    height: 56px;
  }

  .track-mark svg {
    width: 40px;
    height: 40px;
  }

  .board__titleline h3 {
    font-size: 23px;
  }

  .board__trackbar .btn {
    width: 100%;
  }

  .board__tabs {
    padding: 0 16px;
  }

  .board__filters {
    padding: 14px 16px;
    align-items: stretch;
    flex-direction: column;
  }

  .control,
  .search-control {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
  }

  .class-tabs {
    width: 100%;
  }

  .class-tabs button {
    min-width: 0;
    flex: 1;
    padding: 0 4px;
  }

  .board__count {
    width: 100%;
    justify-content: flex-start;
  }

  .board__foot {
    min-height: 74px;
    padding: 12px 16px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .tracks {
    grid-template-columns: 1fr;
  }

  .track-catalog-controls,
  .track-catalog-search,
  .track-catalog-search input {
    width: 100%;
  }

  .track-catalog-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .track-catalog-tabs button {
    flex: 1;
  }

  .tcard {
    min-height: 230px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .foot-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal {
    padding: 0;
  }

  .upload-shell {
    width: 100%;
    height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .upload-shell__head {
    min-height: 80px;
  }

  .upload-shell__head p {
    display: none;
  }

  .upload-shell__notice {
    text-align: left;
  }

  .lap-dialog {
    width: 100%;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .lap-details {
    grid-template-columns: 1fr;
  }

  .lap-details div:nth-child(odd),
  .lap-details div:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
