:root {
  --race-red: #e32027;
  --race-red-dark: #a70f16;
  --race-gold: #e0aa42;
  --race-ink: #07090b;
  --race-panel: #0d1014;
  --race-panel-2: #12161c;
  --race-line: rgba(255, 255, 255, .16);
  --race-muted: #b6bbc3;
}

body {
  background: var(--race-ink);
}

.race-home {
  min-height: 100vh;
  overflow: clip;
  background:
    radial-gradient(circle at 74% 44%, rgba(42, 52, 63, .2), transparent 34%),
    var(--race-ink);
  color: #fff;
}

.race-home .container {
  width: min(100% - 56px, 1340px);
  margin-inline: auto;
}

.race-home > .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 60;
  background: linear-gradient(to bottom, rgba(4, 6, 8, .92), rgba(4, 6, 8, .38) 62%, transparent);
}

.race-home .header-inner {
  min-height: 92px;
}

.race-home .brand-mark {
  text-shadow: 0 2px 20px rgba(0, 0, 0, .7);
}

.race-home .main-nav a {
  font-size: 13px;
  letter-spacing: 1.2px;
}

.race-home .main-nav a.active {
  color: #fff;
}

.race-home .main-nav a.active::after {
  background: var(--race-red);
}

/* Hero */
.race-hero {
  position: relative;
  isolation: isolate;
  min-height: min(930px, 100svh);
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--race-line);
  background: #050709;
}

.race-hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  overflow: hidden;
  background: #050709;
}

.race-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  filter: saturate(.94) contrast(1.04);
}

.race-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 6, 8, .99) 0%, rgba(4, 6, 8, .94) 23%, rgba(4, 6, 8, .55) 42%, rgba(4, 6, 8, .04) 68%),
    linear-gradient(0deg, rgba(4, 6, 8, .98) 0%, rgba(4, 6, 8, .55) 18%, transparent 48%);
}

.race-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(90deg, #000, transparent 50%);
}

.race-hero-content {
  position: relative;
  z-index: 2;
  padding: 150px 0 42px;
}

.race-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--race-red);
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.race-kicker::before {
  width: 34px;
  height: 2px;
  background: var(--race-red);
}

.race-title {
  width: min(610px, 50vw);
  max-width: none;
  margin: 0;
  font-size: clamp(64px, 7.1vw, 108px);
  line-height: .91;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.race-title span {
  color: var(--race-red);
}

.race-lead {
  max-width: 530px;
  margin: 22px 0 0;
  color: #e3e6ea;
  font-size: 17px;
  line-height: 1.62;
}

.race-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.race-home .btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 1.4px;
  box-shadow: none;
}

.race-home .btn::after {
  content: "›";
  margin-left: 14px;
  color: currentColor;
  font-size: 22px;
  line-height: 1;
}

.race-home .btn-primary {
  background: linear-gradient(135deg, var(--race-red), #c9141b);
}

.race-home .btn-primary:hover {
  background: #f02a31;
  transform: translateY(-2px);
}

.race-home .btn-outline {
  border-color: rgba(255, 255, 255, .62);
}

.race-brief {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 58px;
  border: 1px solid rgba(255, 255, 255, .23);
  background: rgba(5, 7, 9, .78);
  backdrop-filter: blur(14px);
}

.race-brief-item {
  min-height: 116px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-content: center;
  align-items: center;
  column-gap: 15px;
}

.race-brief-item + .race-brief-item {
  border-left: 1px solid var(--race-line);
}

.race-brief-icon {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--race-red);
}

.race-brief-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.race-brief-label {
  margin: 0 0 5px;
  color: #9299a3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.35px;
}

.race-brief-value {
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.04;
}

.race-brief-value strong {
  color: var(--race-gold);
}

.race-brief-note {
  display: block;
  margin-top: 5px;
  color: #d8dce1;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .4px;
}

/* Mission */
.race-section {
  padding: clamp(72px, 7vw, 108px) 0;
}

.mission-section {
  background:
    radial-gradient(circle at 22% 44%, rgba(93, 116, 137, .13), transparent 36%),
    linear-gradient(115deg, #0b0e12, #07090b 64%);
  border-bottom: 1px solid var(--race-line);
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(380px, 1.02fr);
  gap: clamp(48px, 7vw, 108px);
  margin: 0;
  align-items: center;
}

.mission-story {
  min-width: 0;
}

.mission-story .race-section-title {
  max-width: 560px;
  margin: 0;
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: .94;
}

.mission-story .race-section-title span {
  color: var(--race-red);
}

.mission-story .race-section-copy {
  max-width: 520px;
  margin-top: 22px;
  color: var(--race-muted);
  font-size: 16px;
  line-height: 1.72;
}

.mission-image {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  margin: 36px 0 0;
  border-top: 2px solid var(--race-red);
  background: #050608;
}

.mission-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mission-image-caption {
  padding: 22px 24px;
  color: #d7dbe0;
  background: linear-gradient(transparent, rgba(4, 6, 8, .94));
}

.mission-points {
  border: 0;
  display: grid;
  align-content: center;
}

.mission-point {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--race-line);
}

.mission-point:first-child {
  border-top: 1px solid var(--race-line);
}

.mission-code {
  color: var(--race-red);
  display: grid;
  place-items: center;
}

.mission-code svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mission-point h3 {
  margin: 0 0 7px;
  font-size: 23px;
  text-transform: none;
}

.mission-point p {
  max-width: 460px;
  color: var(--race-muted);
  font-size: 14px;
  line-height: 1.58;
}

/* Team */
.team-flightline {
  background:
    radial-gradient(circle at 22% 30%, rgba(74, 91, 108, .18), transparent 30%),
    radial-gradient(circle at 78% 56%, rgba(55, 66, 76, .16), transparent 32%),
    #0a0d10;
  border-bottom: 1px solid var(--race-line);
}

.flightline-head {
  display: grid;
  grid-template-columns: .8fr 1.2fr auto;
  align-items: end;
  gap: 38px;
  margin-bottom: 36px;
}

.flightline-heading {
  position: relative;
  padding-top: 25px;
}

.flightline-heading::before {
  content: "THE TEAM";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--race-red);
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
}

.flightline-head h2 {
  max-width: 420px;
  font-size: clamp(44px, 4.8vw, 68px);
  line-height: .94;
}

.flightline-head > p {
  max-width: 430px;
  color: var(--race-muted);
  font-size: 15px;
  line-height: 1.65;
}

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

.race-member,
.race-member + .race-member {
  min-width: 0;
  padding: 9px 9px 20px;
  border: 1px solid var(--race-line);
  background: linear-gradient(180deg, rgba(14, 17, 21, .58), rgba(7, 9, 11, .94));
}

.race-member-photo {
  width: 100%;
  aspect-ratio: 292 / 398;
  margin: 0 0 18px;
  background: #030405;
}

.race-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.93) contrast(1.03);
}

.race-member-photo::after {
  height: 25%;
  background: linear-gradient(transparent, rgba(4, 6, 8, .65));
}

.race-member-role {
  margin: 0 6px 8px;
  color: var(--race-red);
  font-size: 11px;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}

.race-member h3 {
  margin-inline: 6px;
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.04;
}

.race-member > p:last-child {
  margin: 8px 6px 0;
  color: #9da4ad;
  font-size: 12px;
  line-height: 1.45;
}

.team-section-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* Date panel */
.event-section {
  background: #07090b;
  padding-top: 22px;
}

.race-calendar {
  display: grid;
  grid-template-columns: 1.28fr .72fr;
  min-height: 380px;
  border: 1px solid var(--race-line);
  border-top: 2px solid var(--race-red);
  background: linear-gradient(135deg, #11151a, #090b0e);
}

.calendar-copy {
  display: grid;
  align-content: center;
  padding: clamp(40px, 5vw, 70px);
}

.calendar-copy h2 {
  max-width: 650px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: .95;
}

.calendar-copy p {
  max-width: 620px;
  margin-top: 22px;
  color: var(--race-muted);
  font-size: 15px;
  line-height: 1.7;
}

.calendar-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 26px;
  color: #e8eaed;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: .45px;
  text-transform: uppercase;
}

.calendar-fact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.calendar-fact svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--race-red);
  stroke-width: 1.8;
}

.calendar-date {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%, 0 15%);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .05), transparent 45%),
    linear-gradient(135deg, #eb252c, #b90c14);
  color: #fff;
}

.calendar-date::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, .15) 25%, transparent 25%);
  background-size: 40px 40px;
  mask-image: linear-gradient(135deg, transparent 45%, #000);
}

.calendar-date div {
  position: relative;
  z-index: 1;
}

.calendar-date div::before {
  content: "RACE WEEK";
  display: block;
  margin-bottom: 10px;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.3px;
}

.calendar-date strong {
  display: block;
  font-size: clamp(76px, 9vw, 130px);
  line-height: .84;
}

.calendar-date span {
  display: block;
  margin-top: 18px;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.08;
}

.updates-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: 0;
  padding: 30px 16px 30px;
  border-bottom: 1px solid var(--race-line);
}

.updates-strip h2 {
  font-size: clamp(28px, 3.4vw, 48px);
}

.updates-strip p {
  margin-top: 4px;
  color: var(--race-muted);
}

/* Footer */
.race-footer {
  padding: 0;
  background: #050608;
  border-top: 0;
}

.race-footer-inner {
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.race-footer-copy {
  color: #8e959e;
  font-size: 12px;
  line-height: 1.65;
}

.race-footer-copy strong {
  display: block;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.race-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  color: #c7cbd1;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: .7px;
}

.race-footer-links a:hover {
  color: var(--race-red);
}

@media (max-width: 1040px) {
  .race-home .container {
    width: min(100% - 44px, 900px);
  }

  .race-home .main-nav a {
    font-size: 18px;
  }

  .race-home .main-nav {
    width: 0;
    padding: 100px 0;
    overflow: hidden;
    visibility: hidden;
    transform: none;
    transition: width .3s ease, padding .3s ease, visibility 0s linear .3s;
  }

  .race-home .main-nav.open {
    width: min(78vw, 320px);
    padding-inline: 30px;
    visibility: visible;
    transition: width .3s ease, padding .3s ease;
  }

  .race-hero {
    min-height: auto;
    display: block;
  }

  .race-hero-media {
    position: absolute;
    inset: 0 0 auto;
    z-index: -3;
    width: 100%;
    height: auto;
  }

  .race-hero-media img {
    width: 100%;
    height: auto;
  }

  .race-hero-scrim {
    height: 56.3vw;
  }

  .race-hero-content {
    padding-top: clamp(118px, 17vw, 170px);
    padding-bottom: 38px;
  }

  .race-title {
    width: min(600px, 82vw);
    font-size: clamp(62px, 9vw, 88px);
  }

  .race-brief {
    grid-template-columns: repeat(2, 1fr);
    margin-top: clamp(60px, 10vw, 100px);
  }

  .race-brief-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--race-line);
  }

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

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .mission-story .race-section-title {
    max-width: 700px;
  }

  .mission-story .race-section-copy {
    max-width: 700px;
  }

  .mission-image {
    max-width: 760px;
  }

  .flightline-head {
    grid-template-columns: 1fr 1fr;
  }

  .flightline-head .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .race-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .race-member:nth-child(3),
  .race-member:nth-child(4) {
    border: 1px solid var(--race-line);
  }

  .race-calendar {
    grid-template-columns: 1fr .72fr;
  }
}

@media (max-width: 760px) {
  .race-home .container {
    width: min(100% - 32px, 620px);
  }

  .race-home .header-inner {
    min-height: 82px;
  }

  .race-hero {
    background: #050709;
  }

  .race-hero-media {
    position: absolute;
    inset: 0 0 auto;
    height: auto;
  }

  .race-hero-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
    transform: translateY(-18vw);
  }

  .race-hero-scrim {
    height: 124.95vw;
    max-height: none;
    background:
      linear-gradient(90deg, rgba(4, 6, 8, .92) 0%, rgba(4, 6, 8, .62) 42%, rgba(4, 6, 8, .12) 70%, transparent 100%),
      linear-gradient(0deg, rgba(4, 6, 8, 1) 0%, rgba(4, 6, 8, .56) 28%, rgba(4, 6, 8, .05) 72%);
  }

  .race-hero-content {
    padding-top: 104px;
    padding-bottom: 28px;
  }

  .race-kicker {
    margin-bottom: 16px;
    font-size: 12px;
    letter-spacing: 2px;
  }

  .race-title {
    width: min(100%, 500px);
    font-size: clamp(48px, 13.5vw, 66px);
    line-height: .92;
  }

  .race-lead {
    max-width: 340px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.55;
  }

  .race-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .race-home .btn {
    min-height: 50px;
    padding-inline: 20px;
    font-size: 11px;
  }

  .race-actions .btn {
    width: auto;
    flex: 1 1 150px;
  }

  .race-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(76px, 26vw, 125px);
  }

  .race-brief-item {
    min-height: 102px;
    padding: 16px 14px;
    grid-template-columns: 27px 1fr;
    column-gap: 10px;
  }

  .race-brief-item:nth-child(3) {
    border-left: 0;
  }

  .race-brief-icon svg {
    width: 25px;
    height: 25px;
  }

  .race-brief-label {
    font-size: 8.5px;
    letter-spacing: .9px;
  }

  .race-brief-value {
    font-size: clamp(15px, 4.6vw, 19px);
  }

  .race-brief-note {
    font-size: 9px;
  }

  .race-section {
    padding: 58px 0;
  }

  .mission-story .race-section-title {
    font-size: clamp(42px, 12vw, 58px);
  }

  .mission-story .race-section-copy {
    margin-top: 17px;
    font-size: 14px;
  }

  .mission-image {
    margin-top: 26px;
  }

  .mission-image-caption {
    padding: 18px;
    font-size: 10px;
  }

  .mission-point {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 20px 0;
  }

  .mission-code svg {
    width: 34px;
    height: 34px;
  }

  .mission-point h3 {
    font-size: 20px;
  }

  .mission-point p {
    font-size: 12.5px;
  }

  .flightline-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 26px;
  }

  .flightline-head h2 {
    font-size: clamp(40px, 11.5vw, 56px);
  }

  .flightline-head > p {
    font-size: 13px;
  }

  .flightline-head .btn {
    grid-column: auto;
  }

  .race-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .race-member,
  .race-member + .race-member,
  .race-member:nth-child(3),
  .race-member:nth-child(4) {
    padding: 6px 6px 14px;
    border: 1px solid var(--race-line);
  }

  .race-member-photo {
    margin-bottom: 12px;
  }

  .race-member-role {
    margin-inline: 3px;
    font-size: 8px;
    letter-spacing: .65px;
  }

  .race-member h3 {
    margin-inline: 3px;
    font-size: clamp(15px, 4.5vw, 20px);
  }

  .race-member > p:last-child {
    margin-inline: 3px;
    font-size: 9.5px;
  }

  .event-section {
    padding-top: 12px;
  }

  .race-calendar {
    grid-template-columns: 1fr;
  }

  .calendar-copy {
    padding: 34px 26px;
  }

  .calendar-copy h2 {
    font-size: clamp(38px, 10.5vw, 52px);
  }

  .calendar-copy p {
    font-size: 13px;
  }

  .calendar-facts {
    display: grid;
    font-size: 11px;
  }

  .calendar-date {
    min-height: 300px;
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%, 0 12%);
  }

  .calendar-date strong {
    font-size: clamp(72px, 22vw, 100px);
    white-space: nowrap;
  }

  .updates-strip {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 0;
  }

  .updates-strip .btn {
    width: 100%;
  }

  .race-footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0;
  }

  .race-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 360px) {
  .race-home .container {
    width: min(100% - 26px, 620px);
  }

  .race-title {
    font-size: 45px;
  }

  .race-home .btn {
    padding-inline: 14px;
  }

  .race-brief-item {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .race-home *,
  .race-home *::before,
  .race-home *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
