:root {
  color-scheme: dark;
  --accent: #e51b2b;
  --muted: #a5a5ac;
  --line: #ffffff24;
}

* {
  box-sizing: border-box;
}
html {
  background: #050505;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: #f4f4f4;
  font-family: "Barlow", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #69a9ff;
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.site {
  line-height: 1.5;
}
.site .section-inner {
  width: min(94vw, 1600px);
  margin-inline: auto;
}
.site main {
  min-height: calc(100dvh - 240px);
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 18px;
  background: #fff;
  color: #050505;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  position: relative;
  z-index: 20;
  background: #050505;
  border-bottom: 1px solid #ffffff0b;
}
.header-row {
  height: clamp(64px, 5.15vw, 86px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.site-brand {
  display: block;
  flex: 0 0 auto;
  width: clamp(188px, 22vw, 340px);
}
.site-brand img {
  width: 100%;
  height: clamp(52px, 4.65vw, 78px);
  object-fit: contain;
  object-position: left center;
}
.site-nav {
  display: flex;
  align-items: stretch;
  gap: clamp(22px, 3.2vw, 48px);
  height: 100%;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  font-size: clamp(15px, 1.25vw, 21px);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 19%;
  left: -8px;
  right: -8px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.instagram-link {
  width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
}
.instagram-link svg {
  width: 28px;
  height: 28px;
}
.instagram-link:hover {
  color: var(--accent);
}
.menu-toggle {
  display: none;
}
.artwork {
  width: 100%;
  height: auto;
  display: block;
}
.homepage-hero {
  border-bottom: 1px solid #424242;
}
.homepage-hero .artwork {
  aspect-ratio: 1024 / 376;
}
.next-race {
  position: relative;
  margin-top: 18px;
  border-block: 1px solid var(--line);
  background: radial-gradient(ellipse at 70% 90%, #4b2b15aa, #0d0e10 70%);
  overflow: hidden;
}
.race-row {
  min-height: clamp(215px, 17.8vw, 285px);
  position: relative;
  display: flex;
  align-items: center;
  padding: 24px 20px;
}
.race-copy {
  z-index: 2;
  position: relative;
  max-width: 68%;
  border-left: 2px solid #ffffff42;
  padding-left: 20px;
}
.race-eyebrow {
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  color: #ff172b;
  letter-spacing: 0.035em;
}
.race-copy h2,
.race-copy h3 {
  font-style: italic;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 3px 12px #000;
}
.race-copy h2 {
  font-size: clamp(30px, 3.15vw, 53px);
}
.race-copy h3 {
  font-size: clamp(20px, 2vw, 32px);
}
.race-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 19px;
  font-weight: 700;
  font-style: italic;
}
.race-meta time::before {
  content: "◷";
  color: #ff172b;
  margin-right: 10px;
  font-style: normal;
}
.race-meta span::before {
  content: "⌖";
  color: #ff172b;
  margin-right: 10px;
  font-style: normal;
}
.race-truck {
  position: absolute;
  width: 58%;
  height: 100%;
  right: 0;
  bottom: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.race-button {
  position: absolute;
  right: 20px;
  bottom: 25px;
  z-index: 3;
}
.site-footer {
  margin-top: 36px;
}
.site-footer nav a[aria-current="page"],
.site-footer nav a:hover {
  color: #ff293d;
}
.site-footer a:hover svg {
  color: var(--accent);
}
.content-page {
  background: radial-gradient(ellipse at 80% 0, #7c151f25, transparent 45%);
  padding-bottom: 25px;
}
.site .page-intro {
  padding-block: 60px 38px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #fa3244;
  margin-bottom: 15px;
}
.page-intro h1 {
  font-size: clamp(54px, 7.5vw, 118px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
}
.page-summary {
  font:
    400 clamp(17px, 1.4vw, 22px)/1.5 "Barlow",
    sans-serif;
  text-transform: none;
  color: #c5c5c9;
  margin-top: 22px;
  max-width: 820px;
}
.site .page-section {
  padding-block: 25px;
}
.page-section .hp-head {
  margin-bottom: 22px;
}
.site .page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 10px 25px;
}
.is-detailed {
  margin: 0 0 15px;
}
.is-detailed .race-row {
  min-height: 300px;
}
.series-caption {
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.page-section .hp-scard:has(.series-caption) {
  height: 340px;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.partner-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-bottom: 3px solid #a5121d;
  background: linear-gradient(135deg, #151517, #080809);
  padding: 35px;
  scroll-margin-top: 30px;
}
.partner-card img {
  width: 70%;
  height: 130px;
  object-fit: contain;
  margin: 0 auto 20px;
  mix-blend-mode: screen;
}
.partner-card h2 {
  font-size: 24px;
  text-align: center;
  font-style: italic;
  font-weight: 800;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.gallery-photo {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #111;
  border: 1px solid var(--line);
  text-align: left;
  scroll-margin-top: 30px;
}
.gallery-photo img {
  width: 100%;
  height: 265px;
  object-fit: cover;
  transition: transform 0.22s ease;
}
.gallery-photo:hover img {
  transform: scale(1.04);
}
.gallery-photo > span {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 700;
}
.gallery-photo > span > span {
  color: #fd2337;
}
.gallery-dialog {
  width: min(92vw, 780px);
  max-height: 90dvh;
  padding: 54px 25px 22px;
  background: #0b0b0d;
  color: white;
  border: 1px solid #ffffff55;
  box-shadow: 0 30px 80px #000;
}
.gallery-dialog::backdrop {
  background: #000c;
  backdrop-filter: blur(5px);
}
.gallery-dialog img {
  max-width: 100%;
  width: 100%;
  max-height: 60dvh;
  object-fit: contain;
}
.gallery-dialog p {
  margin-top: 16px;
  font-size: 20px;
}
.gallery-close {
  position: absolute;
  right: 10px;
  top: 5px;
  width: 44px;
  height: 44px;
  font-size: 35px;
  background: transparent;
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.gallery-controls button {
  background: #252529;
  padding: 10px 16px;
}
.gallery-controls button:hover,
.gallery-close:hover {
  color: #ff3043;
}
.driver-artwork {
  background: #06080a;
}
.site .profile-summary {
  padding-block: 25px;
  border-bottom: 1px solid var(--line);
}
.profile-summary summary {
  cursor: pointer;
  color: #eee;
  font-size: 24px;
  font-style: italic;
  font-weight: 800;
}
.profile-summary p {
  padding-top: 16px;
  max-width: 900px;
  color: #c5c5c9;
  font:
    400 18px/1.65 "Barlow",
    sans-serif;
  text-transform: none;
}
.next-generation-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
}
.next-generation-profile > img {
  width: 100%;
  height: min(55vw, 570px);
  object-fit: cover;
  object-position: top;
}
.next-generation-profile h2 {
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  margin-bottom: 20px;
}
.next-generation-profile p:not(.eyebrow) {
  font:
    400 18px/1.5 "Barlow",
    sans-serif;
  color: #b5b5bb;
  text-transform: none;
  margin-bottom: 22px;
}
.related-heading {
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 900;
  font-style: italic;
  margin-bottom: 20px;
}
.related-drivers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.related-drivers a {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  background: #111113;
}
.related-drivers img {
  width: 85px;
  height: 95px;
  object-fit: cover;
  object-position: top;
}
.related-drivers span {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  flex: 1;
}
.related-drivers small {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #bbb;
  margin-top: 6px;
}
.related-drivers svg {
  margin-right: 16px;
  flex: none;
}
.related-drivers a:hover {
  border-color: #e51b2b;
}
.text-link {
  display: inline-block;
  color: #ff3446;
  font-size: 18px;
  font-weight: 700;
  margin-top: 22px;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 22px;
  }
  .site-brand {
    width: 205px;
  }
  .header-row {
    gap: 18px;
  }
  .hp-media .hp-head {
    row-gap: 12px;
  }
  .hp-dinfo h3 {
    font-size: 30px;
  }
  .related-drivers {
    grid-template-columns: 1fr;
  }
  .gallery-photo img {
    height: 220px;
  }
  .race-meta {
    font-size: 16px;
  }
  .race-button {
    height: 42px;
    font-size: 14px;
    padding-inline: 18px;
  }
}

@media (max-width: 760px) {
  .site .section-inner {
    width: 92vw;
  }
  .header-row {
    height: 70px;
    gap: 12px;
  }
  .site-brand {
    width: 175px;
  }
  .site-brand img {
    height: 50px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 4px;
    margin-left: auto;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
  }
  .menu-lines {
    width: 21px;
    height: 17px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }
  .menu-lines i {
    width: 100%;
    height: 2px;
    display: block;
    background: #fff;
    transform-origin: center;
    transition: transform 0.15s;
  }
  .menu-lines.is-open i:first-child {
    transform: translateY(7.5px) rotate(45deg);
  }
  .menu-lines.is-open i:nth-child(2) {
    opacity: 0;
  }
  .menu-lines.is-open i:last-child {
    transform: translateY(-7.5px) rotate(-45deg);
  }
  .instagram-link {
    width: 30px;
  }
  .instagram-link svg {
    width: 24px;
    height: 24px;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    height: auto;
    background: #09090bf5;
    border-bottom: 2px solid #e51b2b;
    padding: 10px 4vw 18px;
    box-shadow: 0 20px 30px #0008;
  }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .site-nav a {
    padding: 14px 18px;
    min-height: 50px;
    font-size: 20px;
    border-bottom: 1px solid #ffffff12;
  }
  .site-nav a::after {
    display: none;
  }
  .site-nav a[aria-current="page"] {
    color: #ff3043;
    border-left: 3px solid #e51b2b;
  }
  .next-race {
    margin-top: 12px;
  }
  .race-row {
    min-height: 270px;
    padding: 22px 0 72px;
  }
  .race-copy {
    max-width: 100%;
    padding-left: 12px;
  }
  .race-eyebrow {
    font-size: 19px;
  }
  .race-copy h2 {
    font-size: clamp(28px, 7.4vw, 42px);
  }
  .race-copy h3 {
    font-size: 20px;
  }
  .race-meta {
    font-size: 15px;
    gap: 5px 15px;
    margin-top: 15px;
  }
  .race-truck {
    width: 100%;
    opacity: 0.25;
    mask-image: linear-gradient(90deg, transparent, #000 40%);
  }
  .race-button {
    right: auto;
    left: 14px;
    bottom: 20px;
  }
  .hp-dinfo h3 {
    font-size: 25px;
  }
  .hp-head {
    gap: 10px;
  }
  .hp-series {
    padding-top: 22px;
  }
  .site-footer .hp-frow {
    gap: 20px;
  }
  .site-footer .hp-flogo {
    width: 170px;
  }
  .site-footer .hp-flogo img {
    height: 55px;
  }
  .site-footer .hp-fright {
    width: auto;
    margin-left: auto;
  }
  .site-footer .hp-copy {
    margin-top: 20px !important;
  }
  .site-footer nav a {
    padding-block: 9px;
    font-size: 15px;
  }
  .site .page-intro {
    padding-block: 36px 20px;
  }
  .page-intro h1 {
    font-size: clamp(46px, 11.7vw, 80px);
  }
  .page-summary {
    margin-top: 15px;
  }
  .site .page-section {
    padding-block: 20px;
  }
  .partner-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .partner-card {
    min-height: 180px;
    padding: 20px 12px;
  }
  .partner-card img {
    width: 100%;
    height: 100px;
    margin-bottom: 8px;
  }
  .partner-card h2 {
    font-size: 20px;
  }
  .gallery-photo img {
    height: 145px;
  }
  .gallery-photo > span {
    padding: 10px;
    font-size: 14px;
    min-height: 62px;
  }
  .gallery-dialog {
    padding-inline: 15px;
  }
  .gallery-controls button {
    padding-inline: 10px;
  }
  .next-generation-profile {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .next-generation-profile > img {
    height: 420px;
  }
  .next-generation-profile h2 {
    font-size: 40px;
  }
  .profile-summary summary {
    font-size: 21px;
  }
  .profile-summary p {
    font-size: 16px;
  }
  .related-drivers span {
    font-size: 21px;
  }
  .is-detailed .race-row {
    min-height: 250px;
    padding-bottom: 24px;
  }
}

@media (max-width: 360px) {
  .site-brand {
    width: 150px;
  }
  .menu-toggle {
    font-size: 14px;
    gap: 8px;
  }
  .header-row {
    gap: 8px;
  }
  .site-footer .hp-flogo {
    width: 145px;
  }
  .site-footer .hp-fright {
    gap: 10px;
  }
  .hp-media .hp-btn {
    padding-inline: 14px;
    font-size: 14px;
  }
  .race-meta {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
