/* Partner directory layout; modal styles live in partner-modal.css. */
:root {
  --black: #080b13;
  --navy: #101a39;
  --red: #d70d2f;
  --fluo: #dfff00;
  --white: #f5f6f8;
  --body: Inter,Arial,sans-serif;
  --display: Barlow,Arial,sans-serif;
  --line: #ffffff26;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background: #050506;
  color: var(--white);
  font: 400 15px/1.7 var(--body);
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg,#050506dd,#0505068a),url('assets/webp/pdf--racing-background.webp') center/cover no-repeat;
}

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

button {
  font: inherit;
  cursor: pointer;
}

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

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--fluo);
  outline-offset: 6px;
}

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

svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.wrap {
  width: min(1280px,calc(100% - 96px));
  margin: auto;
}

.back {
  width: fit-content;
  margin-bottom: 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.back svg {
  width: 18px;
}

.hero {
  position: relative;
  isolation: isolate;
  padding-bottom: 95px;
  background: transparent;
  overflow: hidden;
}

.hero:after {
  content: '85';
  position: absolute;
  z-index: -1;
  right: 1%;
  top: 90px;
  font: italic 900 clamp(240px,35vw,550px)/1 var(--display);
  -webkit-text-stroke: 1px #ffffff1b;
  color: transparent;
  transform: rotate(-5deg);
}

.hero-copy {
  padding-top: 66px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: 55px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 24px;
}

.kicker:before {
  content: '';
  width: 30px;
  height: 3px;
  background: var(--red);
  flex: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font: italic 900 clamp(45px,5.7vw,82px)/.98 var(--display);
  letter-spacing: -.045em;
  margin-bottom: 0;
  text-transform: uppercase;
}

h1 em {
  font-style: inherit;
  color: var(--red);
}

.intro {
  color: #bdc2cd;
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 4px;
  max-width: 450px;
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  color: var(--white);
  font: italic 800 14px var(--display);
  text-transform: uppercase;
}

.scroll-link svg {
  color: var(--fluo);
  transform: rotate(45deg);
}

.racing-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(105deg,var(--red) 0 63%,var(--fluo) 63% 70%,transparent 70%);
  clip-path: polygon(0 75%,100% 0,100% 18%,0 100%);
}

.directory {
  padding: 50px 0 85px;
  background: transparent;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 0 25px;
}

.section-title h2 {
  font: italic 900 28px/1.1 var(--display);
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin: 0;
}

.section-title>span {
  font-size: 10px;
  color: #929baa;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.featured {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px;
  margin-bottom: 65px;
}

.partner {
  min-width: 0;
  background: linear-gradient(145deg,#190609eb,#070708ed);
  border: 1px solid #ffffff13;
  position: relative;
  transition: border-color .25s,transform .25s;
}

.partner:hover,
.partner:focus-within {
  border-color: #ffffff50;
  transform: translateY(-5px);
}

.partner-link {
  display: block;
  height: 100%;
  cursor: pointer;
}

.logo-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 170px;
  background: #fff;
  border: 0;
  position: relative;
  overflow: hidden;
  padding: 35px;
  isolation: isolate;
}

.logo-button img {
  max-height: 88px;
  max-width: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .4s,opacity .4s;
}

.logo-button:after {
  content: '';
  position: absolute;
  inset: 0;
  border-bottom: 3px solid var(--red);
  opacity: 0;
  background: #080b1317;
  transition: opacity .25s;
}

.partner-link:hover .logo-button:after,
.partner-link:focus-visible .logo-button:after {
  opacity: 1;
}

.partner-link:hover .logo-button img {
  transform: scale(1.05);
}

.logo-button .open-icon {
  position: absolute;
  right: 13px;
  bottom: 13px;
  background: var(--black);
  color: var(--white);
  padding: 7px;
  display: flex;
  z-index: 2;
  transition: background .25s;
}

.partner-link:hover .open-icon,
.partner-link:focus-visible .open-icon {
  background: var(--red);
}

.open-icon svg {
  width: 17px;
  height: 17px;
}

.partner-copy {
  padding: 22px 23px 26px;
}

.category {
  font-size: 9px;
  letter-spacing: .14em;
  font-weight: 600;
  text-transform: uppercase;
  color: #a2acbb;
  margin-bottom: 10px;
}

.partner h3 {
  font: 700 21px/1.15 var(--display);
  letter-spacing: -.02em;
  margin-bottom: 11px;
}

.partner p {
  font-size: 12px;
  color: #aeb7c6;
  line-height: 1.7;
  margin-bottom: 0;
}

.featured .logo-button {
  height: 230px;
  padding: 48px;
}

.featured .logo-button img {
  max-height: 110px;
  max-width: 70%;
}

.featured .partner-copy {
  padding: 28px 32px 30px;
}

.featured h3 {
  font: normal 900 35px var(--display);
  margin-bottom: 8px;
}

.featured p {
  max-width: 420px;
  font-size: 14px;
}

.featured .category {
  color: var(--fluo);
}

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

.card-animation-layer {
  min-width: 0;
  --side: 1;
  --amp: 1;
}

.card-animation-layer:nth-child(4n+1) {
  --side: -1;
  --amp: 1.5;
  transform-origin: 50vw 100%;
}

.card-animation-layer:nth-child(4n+2) {
  --side: -1;
  transform-origin: 25vw 100%;
}

.card-animation-layer:nth-child(4n+3) {
  transform-origin: -25vw 100%;
}

.card-animation-layer:nth-child(4n) {
  --amp: 1.5;
  transform-origin: -50vw 100%;
}

.card-animation-layer>.partner {
  height: 100%;
}

.join {
  margin-top: 65px;
  border-top: 1px solid var(--line);
  padding-top: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.join h2 {
  font: italic 900 34px/1.05 var(--display);
  margin: 0 0 12px;
}

.join p {
  color: #aeb7c6;
  font-size: 14px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--red);
  border: 0;
  padding: 18px 28px;
  color: white;
  font: italic 900 14px var(--display);
  text-transform: uppercase;
  clip-path: polygon(10px 0,100% 0,calc(100% - 10px) 100%,0 100%);
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.15);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  color: #8590a1;
  font-size: 10px;
}

.footer span:nth-child(2) {
  letter-spacing: .15em;
  text-transform: uppercase;
}

@keyframes card-in {

from{opacity:.25;scale:.88;rotate:calc(var(--side)*var(--amp)*4deg);translate:0 35px}to{opacity:1;scale:1;rotate:0deg;translate:0 0}

}

@media(prefers-reduced-motion:no-preference) {
  @supports(animation-timeline:view()) {
    .grid .card-animation-layer {
      animation: card-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
  }
}

@media(prefers-reduced-motion:no-preference) {
  .fallback-reveal {
    animation: card-in .65s cubic-bezier(.2,.7,.2,1) both;
  }
}

@media(min-width:1500px) {
  .grid {
    grid-template-columns: repeat(5,minmax(0,1fr));
  }
}

@media(min-width:1500px) {
  .wrap {
    width: min(1440px,calc(100% - 120px));
  }
}

@media(max-width:1050px) {
  .grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media(max-width:1050px) {
  .hero-copy {
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
  }
}

@media(max-width:1050px) {
  .wrap {
    width: calc(100% - 64px);
  }
}

@media(max-width:1050px) {
  h1 {
    font-size: 60px;
  }
}

@media(max-width:1050px) {
  .top-right {
    gap: 20px;
  }
}

@media(max-width:760px) {
  .wrap {
    width: calc(100% - 40px);
  }
}




@media(max-width:760px) {
  .back span {
    display: inline;
  }
}

@media(max-width:760px) {
  .hero-copy {
    padding-top: 45px;
    display: block;
  }
}

@media(max-width:760px) {
  h1 {
    font-size: clamp(42px,9vw,65px);
  }
}

@media(max-width:760px) {
  .intro {
    font-size: 14px;
    margin-top: 25px;
    max-width: 480px;
  }
}

@media(max-width:760px) {
  .hero {
    padding-bottom: 65px;
  }
}

@media(max-width:760px) {
  .hero:after {
    top: 160px;
    right: -20px;
    font-size: 320px;
  }
}

@media(max-width:760px) {
  .kicker {
    font-size: 10px;
    letter-spacing: .12em;
  }
}

@media(max-width:760px) {
  .directory {
    padding-top: 34px;
  }
}

@media(max-width:760px) {
  .featured {
    gap: 16px;
    margin-bottom: 45px;
  }
}

@media(max-width:760px) {
  .featured .logo-button {
    height: 180px;
    padding: 25px;
  }
}

@media(max-width:760px) {
  .featured .logo-button img {
    max-width: 90%;
    max-height: 90px;
  }
}

@media(max-width:760px) {
  .featured .partner-copy {
    padding: 21px;
  }
}

@media(max-width:760px) {
  .featured h3 {
    font-size: 28px;
  }
}

@media(max-width:760px) {
  .featured p {
    font-size: 12px;
  }
}

@media(max-width:760px) {
  .grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
  }
}

@media(max-width:760px) {
  .logo-button {
    height: 145px;
    padding: 25px;
  }
}

@media(max-width:760px) {
  .logo-button img {
    max-height: 77px;
    max-width: 95%;
  }
}

@media(max-width:760px) {
  .partner-copy {
    padding: 18px;
  }
}

@media(max-width:760px) {
  .partner h3 {
    font-size: 20px;
  }
}

@media(max-width:760px) {
  .partner p {
    font-size: 12px;
  }
}

@media(max-width:760px) {
  .category {
    font-size: 8px;
  }
}

@media(max-width:760px) {
  .section-title h2 {
    font-size: 24px;
  }
}

@media(max-width:760px) {
  .section-title>span {
    font-size: 8px;
  }
}

@media(max-width:760px) {
  .join {
    display: block;
    text-align: center;
  }
}

@media(max-width:760px) {
  .join h2 {
    font-size: 29px;
  }
}

@media(max-width:760px) {
  .join .btn {
    margin: 26px auto 0;
  }
}

@media(max-width:760px) {
  .footer .wrap {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media(max-width:400px) {
  .featured {
    grid-template-columns: 1fr;
  }
}

@media(max-width:400px) {
  .featured .logo-button {
    height: 170px;
  }
}

@media(max-width:400px) {
  .featured .partner-copy {
    padding: 23px;
  }
}

@media(max-width:400px) {
  .grid {
    gap: 12px;
  }
}

@media(max-width:400px) {
  .logo-button {
    height: 125px;
    padding: 18px;
  }
}

@media(max-width:400px) {
  .partner-copy {
    padding: 14px;
  }
}

@media(max-width:400px) {
  .partner h3 {
    font-size: 18px;
  }
}

@media(max-width:400px) {
  .partner p {
    font-size: 11px;
  }
}

@media(max-width:400px) {
  .category {
    letter-spacing: .07em;
  }
}

@media(max-width:400px) {
  .top-right {
    gap: 10px;
  }
}

@media(max-width:400px) {
  .brand {
    width: 125px;
  }
}

@media(max-width:400px) {
  .section-title>span {
    display: none;
  }
}

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

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

.featured .partner {
  height: 100%;
}

@media(min-width:1051px) {
  .featured {
    width: 66.6667%;
    max-width: 960px;
    margin-inline: auto;
  }
}

@media(min-width:1051px) {
  .featured .logo-button {
    height: 155px;
    padding: 28px;
  }
}

@media(min-width:1051px) {
  .featured .logo-button img {
    max-height: 80px;
    max-width: 85%;
  }
}

@media(min-width:1051px) {
  .featured .partner-copy {
    padding: 22px 24px 24px;
  }
}

@media(min-width:1051px) {
  .featured h3 {
    font-size: 28px;
    line-height: 1.12;
  }
}

@media(min-width:1051px) {
  .featured p {
    font-size: 13px;
  }
}

.partner-profiles {
  margin-top: 50px;
}

.partner-profile {
  scroll-margin-top: 24px;
  margin-block: 25px;
  padding: 25px;
  border: 1px solid var(--line);
  background: #080607e8;
}

.partner-profile img {
  max-width: 200px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 15px;
  background: white;
  margin-bottom: 20px;
}

.partner-profile h3 {
  font: 700 25px/1.2 var(--display);
}

.partner-profile p {
  max-width: 760px;
}

.has-partner-modal .partner-profiles {
  display: none;
}

.partner-profile .profile-photo img {
  max-width: min(100%,360px);
  max-height: none;
  padding: 0;
  background: transparent;
}

.partner-profile .profile-photo {
  margin: 24px 0 0;
}

.partner-profile .profile-photo figcaption {
  color: #a2acbb;
  font-size: 10px;
}

/* The directory uses the same navigation layout as the home page. */
.site-header {
  position: relative;
  z-index: 10;
  width: min(calc(100% - 112px),1280px);
  margin-inline: auto;
  height: 106px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #fff2;
}
.site-header .brand { display: block; flex: none; width: 194px; }
.site-header .brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 22px; flex: 1; }
.site-nav a { font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .035em; white-space: nowrap; transition: color .2s; }
.site-nav a:hover { color: var(--fluo); }
.site-header .btn--small {
  font-size: 12px;
  line-height: 1;
  min-height: 42px;
  padding: 12px 20px;
  gap: 18px;
  transition: filter .2s,translate .2s;
}
.site-header .btn--small:hover { translate: 0 -2px; }
.site-header .menu-toggle { display: none; }
@media(min-width:801px) and (max-height:790px) {
  .site-header { height: 84px; }
  .site-header .brand { width: 165px; }
}
@media(max-width:1150px) {
  .site-header { width: calc(100% - 64px); gap: 20px; }
  .site-header>.btn { display: none; }
  .site-nav { justify-content: flex-end; gap: 18px; }
  .site-nav a { font-size: 10px; }
}
@media(min-width:801px) {
  .site-nav { gap: clamp(10px,1.4vw,22px); }
}
@media(max-width:800px) {
  .site-header { width: calc(100% - 48px); height: 86px; justify-content: space-between; }
  .site-header .brand { width: 161px; }
  .site-header .menu-toggle {
    display: flex; width: 44px; height: 44px; flex-direction: column;
    justify-content: center; align-items: center; gap: 6px;
    background: #05080c88; border: 1px solid #fff4; color: white;
  }
  .menu-toggle span { width: 22px; height: 2px; background: currentColor; }
  .site-nav {
    display: none; position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #080b13f7;
    border-top: 2px solid var(--red); padding: 18px 22px; gap: 0;
    box-shadow: 0 20px 35px #0008;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 13px; padding-block: 12px; }
}
@media(prefers-reduced-motion:reduce) {
  .site-header .btn, .site-nav a { transition: none; }
}

.footer .wrap { flex-wrap: wrap; }
.footer a { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: var(--white); }
