@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@1,800;1,900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --black: #101012;
  --white: #f7f4f5;
  --pink: #ff378e;
  --muted: #bcb7bf;
  --line: #39353c;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font: 16px/1.6 Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure, h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 5px; }
.skip { position: absolute; left: 16px; top: 12px; z-index: 10; background: #fff; color: #000; padding: 8px; transform: translateY(-180%); }
.skip:focus { transform: none; }
.wrap { width: min(1280px, 90%); margin-inline: auto; }
.header { position: absolute; z-index: 3; top: 0; left: 0; width: 100%; padding: 22px 5%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.brand img { width: 40px; height: 41px; object-fit: contain; }
.brand small { font-size: 9px; font-weight: 800; letter-spacing: .13em; line-height: 1.2; }
nav { display: flex; align-items: center; gap: clamp(13px, 2.1vw, 35px); font-size: 14px; font-weight: 700; }
nav > a[aria-current="page"], nav > a:not(.button):hover { color: var(--pink); }
.menu-button { display: none; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 19px; font-size: 13px; font-weight: 800; line-height: 1.2; letter-spacing: .015em; min-height: 48px; transition: background .2s, transform .2s; }
.button span { font-size: 17px; }
.pink { color: #100810; background: var(--pink); }
.pink:hover { background: #ff86ba; transform: translateY(-2px); }
.compact { min-height: 42px; padding: 10px 14px; }
.hero { position: relative; isolation: isolate; min-height: 720px; min-height: clamp(680px, 91svh, 1050px); display: grid; align-items: end; overflow: hidden; background: #151217; }
.hero-visual { position: absolute; inset: 0 0 0 12%; z-index: -2; background: url('assets/helmet-sun.jpg') center 31% / cover; mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / .24) 19%, rgb(0 0 0 / .84) 42%, #000 58%); animation: zoom-out 1.7s cubic-bezier(.2,.68,.32,1) both; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#151217 5%,#15121742 36%,transparent 66%), linear-gradient(180deg,#111018b5,transparent 28%,transparent 53%,#0e0d11c2); }
.hero-inner { width: 90%; margin: 0 auto; padding: 130px 0 clamp(75px, 12vh, 132px); }
.eyebrow, .micro { font-size: 11px; letter-spacing: .17em; text-transform: uppercase; font-weight: 800; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.marker { background: var(--pink); width: 20px; height: 6px; transform: skew(-26deg); display: inline-block; flex: none; }
h1, h2 { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: -.015em; }
h1 { margin: 15px 0 26px; font-size: clamp(110px, 16vw, 247px); line-height: .75; }
h1 > span { display: block; animation: title-in .85s cubic-bezier(.2,.7,.2,1) both; }
h1 > span + span { animation-delay: .1s; }
.period, h2 em { color: var(--pink); }
.hero-actions { display: flex; align-items: center; gap: 23px; animation: title-in .7s .22s both; }
.hero-link { font-size: 13px; font-weight: 750; }
.hero-link span { margin-left: 5px; color: var(--pink); }
@keyframes zoom-out { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes title-in { from { opacity: 0; transform: translate(-28px, 24px); } to { opacity: 1; transform: none; } }
.credential { color: #111; background: var(--pink); }
.credential-inner { min-height: 58px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-block: 12px; font-size: 13px; }
.credential strong { font-size: clamp(15px, 2vw, 22px); font-weight: 800; letter-spacing: -.025em; }
.credential-inner > span:last-child { margin-left: auto; font-weight: 650; }
.checkers { flex: none; width: 30px; height: 16px; transform: skew(-17deg); background: conic-gradient(#111 25%, transparent 0 50%, #111 0 75%, transparent 0) 0 0 / 16px 16px; }
.section { padding-block: clamp(72px, 9vw, 140px); }
.section-intro { display: grid; grid-template-columns: 1.18fr .82fr; align-items: end; gap: 28px; margin-bottom: 38px; }
.section-intro > p, .coaching-summary p, .about p:not(.eyebrow), .contact p:not(.eyebrow) { color: var(--muted); max-width: 43ch; }
.coaching-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.coaching-summary img { width: 106px; height: 106px; object-fit: contain; }
h2 { font-size: clamp(59px, 8vw, 123px); line-height: .85; margin-top: 14px; }
h2 em { font-style: inherit; }
h3 { line-height: 1.1; letter-spacing: -.04em; font-size: clamp(24px, 3vw, 40px); }
.coaching-grid, .about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 50px); }
.service { border: 1px solid var(--line); background: #19171b; position: relative; }
.service-media { position: relative; height: clamp(240px, 26vw, 375px); overflow: hidden; }
.service-media img { object-position: center 42%; transition: transform .45s; }
.service-media .track-coaching-photo { object-position: center 44%; }
.service:hover .track-coaching-photo { transform: scale(1.045); }
.tag { color: #151015; background: var(--white); position: absolute; top: 16px; left: 16px; padding: 6px 9px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.service-copy { padding: clamp(20px, 3vw, 38px); }
.service-copy p { margin: 14px 0 23px; color: var(--muted); max-width: 43ch; }
.sim-media { background: #171717; padding: 48px 12px 8px; }
.sim-media img { object-fit: contain; object-position: center; }
.text-link { display: inline-block; font-weight: 800; font-size: 13px; padding-bottom: 3px; border-bottom: 1px solid var(--pink); }
.text-link span { color: var(--pink); margin-left: 6px; }
.text-link:hover { color: var(--pink); }
.about { padding-block: clamp(55px, 8vw, 112px); background: #1a171b; border-block: 1px solid var(--line); }
.about-grid { align-items: center; gap: clamp(25px, 7vw, 110px); }
.about figure { height: clamp(360px, 40vw, 600px); position: relative; }
.about figure::after { position: absolute; content: ""; inset: auto 0 0; height: 6px; background: var(--pink); width: 28%; }
.about img { object-position: 62% center; }
.about p:not(.eyebrow) { margin-top: 21px; }
.about .text-link { margin-top: 24px; }
.racing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.race-tile { background: #19171b; }
.race-media { position: relative; aspect-ratio: 1.42; min-height: 180px; overflow: hidden; }
.race-ladder img { object-position: center 35%; }
.race-gt4 img { object-position: center 75%; }
.race-honors img { object-position: center 42%; }
.race-details { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: clamp(14px, 2vw, 26px); background: #100d13ed; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; font-size: 14px; }
.race-details strong { font-size: clamp(16px, 1.5vw, 22px); line-height: 1.25; color: var(--white); }
.race-tile:has(.race-toggle[aria-expanded="true"]) .race-details { opacity: 1; visibility: visible; }
@media (hover: hover) {
  .race-media:hover .race-details { opacity: 1; visibility: visible; }
}
.race-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--white); background: transparent; border: 0; font-weight: 800; text-align: left; }
.race-toggle:hover, .race-toggle[aria-expanded="true"] { color: var(--pink); }
.race-toggle span { color: var(--pink); font-size: 20px; line-height: 1; transition: transform .2s; }
.race-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.contact { background: radial-gradient(ellipse at right bottom,#301422,#171319 64%); border-top: 1px solid var(--line); }
.contact-grid { align-items: center; gap: clamp(25px, 7vw, 110px); }
.contact p:not(.eyebrow) { margin: 23px 0; }
.email-address { display: block; margin-top: 15px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.email-address:hover { color: var(--pink); }
.booking-card { padding: clamp(20px, 3vw, 34px); background: #1c191e; border: 1px solid #4a3745; }
.contact .booking-card p { margin: 14px 0 20px; }
footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner > small { color: var(--muted); }
@media (max-width: 690px) {
  .header { padding-block: 16px; }
  .menu-button { display: inline-flex; align-items: center; gap: 10px; color: white; background: #18131c; border: 1px solid #625460; min-height: 44px; padding: 6px 12px; font-size: 13px; }
  .menu-button span { color: var(--pink); }
  nav { display: none; position: absolute; inset: 67px 5% auto; flex-direction: column; align-items: stretch; gap: 0; background: #19151b; border: 1px solid var(--line); padding: 14px; }
  nav.open { display: flex; }
  nav > a { padding: 12px; }
  .hero { min-height: 645px; min-height: max(580px, 87svh); }
  .hero-visual { inset: 0; background-position: 44% 30%; mask-image: none; }
  .hero::after { background: linear-gradient(180deg,#131015ae,transparent 25%,#130d19a0 56%,#100d13f9); }
  h1 { font-size: clamp(90px, 22vw, 146px); }
  .hero-inner { padding-bottom: 72px; }
  .credential-inner { gap: 6px 11px; }
  .credential-inner > span:last-child { margin-left: 41px; width: 100%; font-size: 11px; }
  .coaching-grid, .about-grid, .contact-grid, .section-intro { grid-template-columns: 1fr; }
  .coaching-summary { flex-direction: row; align-items: center; }
  .coaching-summary img { width: 70px; height: 70px; flex: 0 0 70px; }
  .section-intro { gap: 17px; margin-bottom: 24px; }
  .about figure { height: 420px; }
  .racing-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.schedule-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(330px, 28vw, 425px);
  background: var(--black);
  border-bottom: 1px solid var(--line);
  padding: 100px 0 16px;
}
.schedule-title { font-size: clamp(53px, 9vw, 133px); line-height: .86; margin: 16px 0 0; }
.schedule-title em { color: var(--pink); font-style: inherit; }
.schedule-content { padding-block: clamp(27px, 5vw, 68px); }
.schedule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.schedule-card { background: #19171b; border: 1px solid var(--line); min-width: 0; }
.schedule-round { padding: clamp(16px, 2vw, 25px); }
.schedule-date { color: var(--pink); font-size: 13px; font-weight: 800; }
.schedule-round h2 { margin: 6px 0 0; font-size: clamp(38px, 4.5vw, 64px); }
.schedule-map { display: grid; position: relative; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; aspect-ratio: 1.5; padding: 20px 36px; background: #101012; border-top: 1px solid var(--line); }
.schedule-map img { object-fit: contain; min-height: 0; }
.schedule-map span { position: absolute; bottom: 9px; right: 9px; border: 1px solid var(--line); color: var(--muted); padding: 0 7px; }
.schedule-map:hover span, .schedule-map:focus-visible span { border-color: var(--pink); color: var(--pink); }
.schedule-credits { margin-top: 28px; color: var(--muted); font-size: 13px; }
.schedule-credits summary { cursor: pointer; }
.schedule-credits a { text-decoration: underline; }
@media (max-width: 940px) {
  .schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-title { font-size: clamp(42px, 10.4vw, 64px); }
}

.race-calendar > header { margin-bottom: 22px; }
.race-calendar header p { color: var(--muted); margin-bottom: 10px; }
.race-calendar-embed { display: block; width: 100%; height: clamp(480px, 60vw, 700px); border: 1px solid var(--line); background: #fff; }
.race-calendar-links { margin-top: 16px; }

.season-intro .schedule-title { font-size: clamp(50px, 5.1vw, 94px); }
.season-car { position: absolute; inset: 0 0 0 27%; z-index: -1; overflow: hidden; }
.season-car img { object-position: center 55%; }
.season-car::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--black), #101012ae 19%, transparent 55%),
    linear-gradient(180deg, #101012d9, transparent 31%, transparent 70%, var(--black));
}
.season-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.season-team { width: 155px; height: 62px; overflow: hidden; display: grid; place-content: center; mix-blend-mode: screen; }
.season-team img { width: 160px; height: 160px; max-width: none; }
.calendar-page { padding: clamp(108px, 13vw, 152px) 0 clamp(40px, 7vw, 85px); background: radial-gradient(ellipse at 85% 0, #3e1b32, var(--black) 54%); }
.calendar-page .schedule-title { margin: 0 0 18px; }
#schedule-calendar, #race-rounds { scroll-margin-top: 24px; }
@media (max-width: 760px) {
  .schedule-hero { display: block; min-height: auto; padding: 105px 0 16px; }
  .season-intro { position: relative; z-index: 1; }
  .season-intro .schedule-title { font-size: clamp(40px, 9.5vw, 74px); }
  .season-car { position: relative; inset: auto; aspect-ratio: 3; z-index: auto; }
  .season-car::after { background: linear-gradient(180deg, var(--black), transparent 24%, transparent 77%, var(--black)); }
  .season-footer { margin-top: -4px; }
  .season-team { width: 122px; height: 49px; }
  .season-team img { width: 131px; height: 131px; }
}
