/* ═══════════════════════════════════════════════════
   WDP GRAND PRIX 2027 — shared styles
   Built on the WDP goes Paris codebase (same section-overlap,
   scroll-reveal, nav, FAQ and HubSpot patterns).
   Design reference: Figma "Grand Prix Landing Page" (Desktop 1440 / Mobile 390)
   ═══════════════════════════════════════════════════ */

/* Self-hosted fonts (Fontsource, SIL OFL / Apache 2.0) */
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/red-hat-display-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/red-hat-display-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/red-hat-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Display'; font-style: italic; font-weight: 700; font-display: swap; src: url('fonts/red-hat-display-latin-700-italic.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/red-hat-display-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/red-hat-display-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/roboto-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/roboto-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/roboto-latin-700-normal.woff2') format('woff2'); }

:root {
  --petrol: #0e2a3b;        /* Figma: Petrol blue */
  --orange: #ff7000;        /* headings, buttons */
  --orange-brand: #ee730a;  /* Figma: Bright orange */
  --orange-dark: #db6200;
  --light: #e9f0f0;         /* Figma: Light blue */
  --white: #fff;
  --ink: var(--petrol);
  --line-dark: rgba(233,240,240,.35);
  --font-display: 'Red Hat Display', 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --radius-section: 60px;
  --wrap: 1300px;
  --wrap-pad-l: 86px;
  --wrap-pad-r: 0px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); background: var(--white); color: var(--ink); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
section[id] { scroll-margin-top: 110px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Scroll reveal: only hidden when scripts run (.js), so the page never stays blank without JS */
.js .sr { opacity: 0; transform: translateY(28px); transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1); }
.js .sr.sr-visible { opacity: 1; transform: none; }
.gsap .sr { transition: none; }
.sr-d1 { transition-delay: .08s; } .sr-d2 { transition-delay: .16s; } .sr-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .sr, .js .sr { opacity: 1; transform: none; transition: none; }
  .rotating-text { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Each section sits on top of the next one with rounded bottom corners */
.section-overlap { position: relative; border-bottom-left-radius: var(--radius-section); border-bottom-right-radius: var(--radius-section); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--wrap-pad-l); padding-right: var(--wrap-pad-r); position: relative; }

.h-display { font-family: var(--font-display); font-weight: 900; font-size: 42px; line-height: 1; color: var(--orange); }
.body-lg { font-family: var(--font-display); font-size: 20px; line-height: 1.32; }

/* Pill buttons with arrow circle (Figma "Button") */
.pill { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 39px; border-radius: 19.5px; padding: 0 46px; font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.pill:hover { transform: translateY(-2px); }
.pill .arrow { position: absolute; right: 6px; top: 50%; width: 27px; height: 27px; margin-top: -13.5px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--petrol); transition: transform .25s; }
.pill:hover .arrow { transform: translateX(2px); }
.pill .arrow svg { width: 15px; height: 15px; }
.pill-light { background: var(--light); color: var(--petrol); }
.pill-light .arrow { background: var(--orange-brand); }
.pill-outline { border: 1px solid var(--light); color: #fff; }
.pill-outline:hover { background: rgba(233,240,240,.12); }
.pill-orange { background: var(--orange); color: #fff; }
.pill-orange:hover { background: var(--orange-dark); }

/* ══════════════ NAV ══════════════ */
.nav-wrapper { position: fixed; top: 0; left: 0; width: 100%; z-index: 999; padding-top: 48px; pointer-events: none; transition: padding .4s ease; }
.nav-wrapper.is-scrolled { padding-top: 14px; }
.nav { pointer-events: auto; width: calc(100% - 48px); max-width: 1285px; height: 73px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 51px; border-radius: 52px; background: rgba(233,240,240,.1); transition: background .35s, box-shadow .35s; }
.nav-wrapper.is-scrolled .nav { background: rgba(14,42,59,.92); box-shadow: 0 10px 40px rgba(2,7,10,.3); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-logo img { width: 67px; height: auto; }
.nav-menu { display: flex; align-items: center; gap: 65px; }
.nav-links { display: flex; align-items: center; gap: 65px; }
.nav-links a { position: relative; font-family: var(--font-body); font-weight: 700; font-size: 15px; color: #fff; text-transform: uppercase; white-space: nowrap; transition: color .25s; }
.nav-links a::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 23px; height: 2px; margin-left: -11.5px; background: var(--orange); border-radius: 2px; transform: scaleX(0); transition: transform .3s; }
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { font-family: var(--font-display); font-weight: 800; color: var(--orange); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 30px; border: 1px solid rgba(233,240,240,.3); }
.lang-switch a { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,.75); padding: 6px 9px; border-radius: 20px; transition: all .25s; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.is-active { background: var(--light); color: var(--petrol); }
.nav-cta { position: relative; display: inline-flex; align-items: center; min-width: 145px; height: 39px; padding-left: 20px; padding-right: 42px; border-radius: 19.5px; background: var(--light); color: var(--petrol); font-family: var(--font-body); font-weight: 700; font-size: 15px; text-transform: uppercase; white-space: nowrap; transition: transform .2s; }
.nav-cta:hover { transform: scale(1.04); }
.nav-cta .arrow { position: absolute; right: 5px; top: 6px; width: 27px; height: 27px; border-radius: 50%; background: var(--orange-brand); display: flex; align-items: center; justify-content: center; }
.nav-cta .arrow svg { width: 15px; height: 15px; }
.hamburger { display: none; width: 32px; height: 30px; }
.hamburger img { width: 32px; height: 30px; }

.mob-menu { display: flex; position: fixed; inset: 0; z-index: 1000; background: rgba(14,42,59,.98); flex-direction: column; align-items: center; justify-content: center; gap: 28px; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.mob-menu.open { opacity: 1; pointer-events: auto; }
.mob-menu > a { color: #fff; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.mob-menu > a:hover { color: var(--orange); }
.mob-menu .nav-cta { margin-top: 8px; font-family: var(--font-body); font-size: 15px; letter-spacing: 0; color: var(--petrol); }
.mob-close { position: absolute; top: 28px; right: 28px; padding: 12px; color: #fff; opacity: .8; }

/* ══════════════ 1. HERO + INTRO + REGISTRATION ══════════════ */
.hero { background: var(--petrol); z-index: 10; padding-bottom: 126px; }
.hero-media { position: absolute; top: 0; left: 0; width: 100%; height: 983px; background: url('img/hero-track.webp') center top / 100% 100% no-repeat; border-top-left-radius: 0; pointer-events: none; }
.hero-top { position: relative; height: 732px; padding-top: 236px; }
.hero-head { display: flex; align-items: flex-start; }
.hero-logo { width: 272px; height: auto; margin-left: 40px; flex-shrink: 0; }
.hero-copy { margin-left: 239px; margin-top: 85px; max-width: 505px; }
.hero-tagline { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1.1; color: #fff; }
.hero-tagline em { font-weight: 700; font-style: italic; }
.hero-tagline b { font-weight: 700; }

/* Rotating "Register now" badge */
@keyframes badge-spin { 100% { transform: rotate(360deg); } }
.badge { position: relative; display: block; width: 146px; height: 146px; border-radius: 50%; transition: transform .3s; }
.badge:hover { transform: scale(1.05); }
.badge .rotating-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: badge-spin 18s linear infinite; }
.badge-center { position: absolute; top: 50%; left: 50%; width: 47.3%; height: 47.3%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--petrol); display: flex; align-items: center; justify-content: center; transition: background .25s; }
.badge:hover .badge-center { background: var(--orange-brand); }
.badge-center svg { width: 46%; height: 46%; }
.hero .badge { position: absolute; right: calc((100% - min(100%, var(--wrap))) / 2 + 44px); top: 601px; z-index: 6; }

.hero-body { display: grid; grid-template-columns: 381px 726px; justify-content: space-between; align-items: start; }
.intro { margin-top: 305px; display: flex; flex-direction: column; gap: 30px; }
.intro .body-lg { color: var(--light); }

.reg-block { position: relative; }
.reg-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; }
.reg-tab { position: relative; width: 382px; height: 149px; padding: 38px 59px 0; background: var(--light); border-radius: 17px 17px 0 0; }
.reg-tab::after { content: ''; position: absolute; left: 100%; bottom: 0; width: 31px; height: 31px; background: radial-gradient(circle at 100% 0, transparent 30.5px, var(--light) 31px); }
.reg-title { font-size: 42px; }
.reg-when { padding: 0 0 22px; width: 311px; font-family: var(--font-display); }
.reg-time { font-weight: 500; font-size: 24px; color: var(--light); line-height: 28px; }
.reg-date { font-weight: 900; font-size: 42px; color: var(--orange-brand); line-height: 1.33; }
.reg-card { background: var(--light); border-radius: 0 16px 16px 16px; padding: 86px 78px 56px 59px; }

/* Static registration form (Figma layout). Replaced by the HubSpot form when a form ID is set. */
.gp-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 37px; row-gap: 32px; }
.gp-field { display: flex; flex-direction: column; gap: 2px; }
.gp-field.full { grid-column: 1 / -1; }
.gp-field label { font-size: 14px; line-height: 16px; color: var(--petrol); }
.gp-field input { height: 48px; width: 100%; padding: 0 10px; border: 1px solid rgba(14,42,59,.3); border-radius: 4px; background: rgba(233,240,240,.2); font-family: var(--font-body); font-size: 14px; color: var(--petrol); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.gp-field input::placeholder { color: rgba(14,42,59,.5); }
.gp-field input:focus { border-color: var(--petrol); background: #fff; box-shadow: 0 0 0 3px rgba(14,42,59,.12); }
.gp-required { grid-column: 1 / -1; margin-top: -27px; padding-left: 11px; font-size: 12px; color: var(--petrol); }
.gp-consent { grid-column: 1 / -1; display: flex; gap: 15px; align-items: flex-start; margin-top: -19px; font-size: 12px; line-height: 1.3; color: var(--petrol); cursor: pointer; }
.gp-consent input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 16px; height: 16px; margin: 0; border: 1px solid var(--orange); border-radius: 2px; background: transparent; cursor: pointer; display: grid; place-content: center; }
.gp-consent input:checked { background: var(--orange); }
.gp-consent input:checked::after { content: ''; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.gp-consent a { text-decoration: underline; }
.gp-submit { grid-column: 1 / -1; justify-self: center; width: 508px; max-width: 100%; margin-top: 31px; font-size: 15px; text-transform: uppercase; }
.form-msg { grid-column: 1 / -1; font-size: 14px; color: var(--petrol); text-align: center; }
.form-msg:empty { display: none; }
.form-loading { color: var(--petrol); font-size: 14px; padding: 24px 0; }

/* HubSpot (when the embed renders inline rather than in its iframe) */
#hs-form-target .hs-form { font-family: var(--font-body); }
#hs-form-target .hs-form fieldset { max-width: 100% !important; border: none; display: flex; gap: 37px; width: 100%; }
#hs-form-target .hs-form fieldset .hs-form-field { flex: 1; width: auto !important; float: none !important; }
#hs-form-target .hs-form fieldset .input { margin-right: 0 !important; }
#hs-form-target .hs-form-field { margin-bottom: 24px; }
#hs-form-target .hs-form label { font-size: 14px; color: var(--petrol) !important; display: block; margin-bottom: 2px; }
#hs-form-target .hs-input:not([type=checkbox]):not([type=radio]) { height: 48px; width: 100% !important; padding: 0 10px; border: 1px solid rgba(14,42,59,.3); border-radius: 4px; background: rgba(233,240,240,.2); font: 14px var(--font-body); color: var(--petrol); }
#hs-form-target .hs-input[type=checkbox] { accent-color: var(--orange); width: 16px; height: 16px; }
#hs-form-target .hs-richtext, #hs-form-target .legal-consent-container { font-size: 12px; color: var(--petrol); line-height: 1.4; }
#hs-form-target ul.inputs-list { list-style: none; }
#hs-form-target .hs-error-msgs { list-style: none; font-size: 12px; color: #c0392b; margin-top: 4px; }
#hs-form-target .hs-button { display: block; width: 508px; max-width: 100%; height: 39px; margin: 24px auto 0; border: 0; border-radius: 19.5px; background: var(--orange) url('img/arrow-circle-petrol.svg') right 6px center / 27px no-repeat; color: #fff; font: 700 15px var(--font-display); text-transform: uppercase; cursor: pointer; }

/* ══════════════ 2. PROGRAMME ══════════════ */
.programme { background: var(--light); z-index: 9; margin-top: -53px; padding: 160px 0 163px; }
.programme .wrap { display: grid; grid-template-columns: 352px 697px; justify-content: space-between; align-items: start; }
.prog-left .body-lg { margin-top: 20px; max-width: 332px; color: var(--petrol); }
.prog-left .badge { margin: 112px 0 0 49px; transform: rotate(-90deg); }
.prog-left .badge:hover { transform: rotate(-90deg) scale(1.05); }
.schedule { display: flex; flex-direction: column; gap: 24px; list-style: none; }
.schedule-card { display: flex; gap: 16px; align-items: flex-start; min-height: 89px; padding: 20px 52px 17px; border: 1px solid var(--petrol); border-radius: 12px; font-family: var(--font-display); font-size: 20px; line-height: 1.32; color: var(--petrol); transition: transform .3s; }
.schedule-card:hover { transform: translateX(-4px); }
.schedule-card.is-alt { background: rgba(14,42,59,.1); }
.schedule-time { flex: 0 0 92px; font-weight: 700; }

/* ══════════════ 3. HOW TO REACH ══════════════ */
.reach { background: var(--orange); z-index: 8; margin-top: -131px; min-height: 728px; padding: 265px 0 120px; overflow: visible; }
.reach-bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.reach-bg img { position: absolute; left: 50%; margin-left: -720px; bottom: 0; width: 1440px; max-width: none; height: 728px; }
.reach .wrap { z-index: 2; }
.reach-text { max-width: 352px; }
.reach-text .h-display { color: #fff; }
.reach-text .body-lg { margin-top: 24px; max-width: 332px; color: #fff; }
.pdf-links { display: flex; flex-wrap: wrap; gap: 43px; margin-top: 68px; margin-left: -3px; }
.pdf-links .pill { width: 292px; }
.reach-car { position: absolute; z-index: 3; left: calc(50% - 252px); top: 368px; width: 972px; pointer-events: none; }
.reach-car img { width: 100%; height: auto; max-width: none; }

/* ══════════════ 4. FAQ ══════════════ */
.faq { background: var(--petrol); z-index: 7; margin-top: -54px; padding: 205px 0 132px; }
.faq .wrap { display: grid; grid-template-columns: 352px 642px; justify-content: space-between; align-items: start; }
.faq .h-display { color: #fff; }
.faq-list { margin-top: 27px; }
.faq-list { border-top: 1px solid var(--line-dark); }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-question { display: flex; align-items: flex-start; gap: 14px; width: 100%; min-height: 76px; padding: 24px 0 24px; text-align: left; font-family: var(--font-body); font-weight: 600; font-size: 20px; line-height: 1.2; color: #fff; transition: color .25s; }
.faq-question:hover { color: var(--light); }
.faq-icon { flex-shrink: 0; width: 25px; height: 26px; margin-top: -1px; transition: transform .35s; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer-inner { padding: 0 0 24px 39px; font-family: var(--font-display); font-size: 17px; line-height: 1.55; color: rgba(233,240,240,.85); }
.faq-answer-inner a { color: var(--orange); text-decoration: underline; }

/* ══════════════ FOOTER ══════════════ */
.site-footer { background: #fff; padding: 73px 24px 48px; }
.footer-inner { display: flex; justify-content: center; align-items: flex-start; gap: 168px; }
.footer-logo img { width: 127px; height: auto; }
.footer-right { display: flex; flex-direction: column; gap: 30px; }
.footer-meta { display: flex; align-items: center; gap: 47px; font-size: 16px; color: var(--petrol); }
.footer-meta a:hover { color: var(--orange); }
.footer-socials { display: flex; align-items: center; gap: 35px; }
.footer-socials a { display: block; transition: opacity .2s, transform .2s; }
.footer-socials a:hover { opacity: .75; transform: translateY(-2px); }
.footer-socials img { height: auto; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 1360px) {
  :root { --wrap-pad-l: 56px; --wrap-pad-r: 40px; }
  .nav-menu, .nav-links { gap: 40px; }
  .hero-copy { margin-left: auto; margin-right: 140px; }
  .hero-tagline { font-size: clamp(40px, 4vw, 56px); }
  .hero-body { grid-template-columns: minmax(280px, 381px) minmax(0, 726px); gap: 48px; }
  .programme .wrap, .faq .wrap { grid-template-columns: minmax(260px, 352px) minmax(0, 697px); gap: 48px; }
}

@media (max-width: 1100px) {
  :root { --wrap-pad-l: 40px; --wrap-pad-r: 40px; --radius-section: 40px; }
  .nav { padding: 0 16px 0 32px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-right .lang-switch { display: none; }
  .hero-media { height: 760px; background-size: cover; background-position: center bottom; }
  .hero-top { height: auto; min-height: 760px; padding-top: 200px; padding-bottom: 120px; }
  .hero-head { flex-direction: column; }
  .hero-logo { margin-left: 0; width: 220px; }
  .hero-copy { margin: 40px 0 0; }
  .hero .badge { top: auto; bottom: 0; right: 40px; transform: translateY(calc(100% + 10px)); width: 120px; height: 120px; }
  .hero .badge:hover { transform: translateY(calc(100% + 10px)) scale(1.05); }
  .hero-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .intro { margin: 0 0 56px; max-width: 640px; order: -1; }
  .reg-block { max-width: 726px; }
  .programme { padding-top: 160px; }
  .programme .wrap, .faq .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .prog-left .badge { display: none; }
  .reach { padding-top: 220px; padding-bottom: 320px; }
  .reach-car { top: auto; left: auto; bottom: -150px; right: -60px; width: 720px; }
  .faq { padding-top: 220px; }
  .faq-list { margin-top: 0; }
  .footer-inner { gap: 80px; }
}

@media (max-width: 760px) {
  :root { --wrap-pad-l: 24px; --wrap-pad-r: 24px; --radius-section: 0px; }
  section[id] { scroll-margin-top: 96px; }
  .section-overlap { border-radius: 0; }
  .h-display { font-size: 32px; }
  .body-lg { font-size: 16px; line-height: 1.32; }

  /* Nav (Figma Mobile / Navigation) */
  .nav-wrapper { padding-top: 20px; }
  .nav-wrapper.is-scrolled { padding-top: 10px; }
  .nav { width: calc(100% - 32px); height: 67px; padding: 0 18px; border-radius: 22px; background: rgba(28,38,41,.9); }
  .nav-wrapper.is-scrolled .nav { background: rgba(28,38,41,.95); }
  .nav-logo img { width: 61px; }
  .nav-menu { flex: 1; }
  .nav-right { gap: 0; flex: 1; justify-content: space-between; margin-left: 42px; }

  /* Hero */
  .hero { padding-bottom: 48px; }
  .hero-media { height: 546px; background-image: url('img/hero-track-mobile.webp'); background-size: cover; background-position: center top; }
  .hero-top { height: 550px; min-height: 0; padding-top: 148px; padding-bottom: 0; }
  .hero-logo { width: 152px; }
  .hero-copy { margin-top: 58px; max-width: 285px; }
  .hero-tagline { font-size: 32px; }
  .hero .badge { top: 430px; bottom: auto; right: 24px; transform: none; width: 84px; height: 84px; }
  .hero .badge:hover { transform: scale(1.05); }
  .intro { margin: 24px 0 40px; gap: 18px; }
  .reg-block { margin: 0 -8px; width: calc(100% + 16px); max-width: none; }
  .reg-head { display: block; }
  .reg-tab, .reg-tab::after { display: none; }
  .reg-when { display: none; }
  .reg-card { border-radius: 16px; padding: 24px; }
  .reg-card-mobile-head { display: flex !important; flex-direction: column; gap: 20px; margin-bottom: 20px; }
  .reg-card-mobile-head .reg-title { font-size: 32px; }
  .reg-card-mobile-head .reg-time { color: var(--petrol); font-size: 16px; line-height: normal; }
  .reg-card-mobile-head .reg-date { font-size: 28px; line-height: normal; margin-top: 4px; }
  .gp-form { grid-template-columns: 1fr; row-gap: 20px; }
  .gp-field { gap: 8px; }
  .gp-field input { border-color: #99adb2; border-radius: 3px; padding: 0 14px; background: transparent; }
  .gp-field input::placeholder { color: #38525c; }
  .gp-required { margin-top: 0; padding-left: 0; }
  .gp-consent { margin-top: 0; gap: 10px; }
  .gp-submit { width: 100%; height: 44px; margin-top: 0; }

  /* Programme */
  .programme { margin-top: 0; padding: 48px 0; }
  .programme .wrap { gap: 20px; }
  .prog-left .body-lg { margin-top: 20px; max-width: none; }
  .schedule { gap: 20px; }
  .schedule-card { flex-direction: column; gap: 8px; padding: 18px; min-height: 0; border-color: rgba(14,42,59,.35); border-radius: 10px; font-size: 16px; }
  .schedule-card.is-alt { background: rgba(14,42,59,.08); }
  .schedule-time { flex: none; font-size: 18px; }
  .prog-badge-mobile { display: flex !important; justify-content: center; margin-top: 20px; }
  .prog-badge-mobile .badge { width: 84px; height: 84px; transform: rotate(-90deg); }

  /* How to reach */
  .reach { margin-top: 0; min-height: 0; padding: 48px 0 0; background: var(--orange-brand); overflow: hidden; }
  .reach-bg { display: none; }
  .reach-text { max-width: none; }
  .reach-text .body-lg { margin-top: 20px; max-width: none; }
  .pdf-links { flex-direction: column; gap: 20px; margin: 20px 0 0; }
  .pdf-links .pill { width: 100%; height: 46px; border-radius: 23px; font-size: 17.5px; }
  .pdf-links .pill .arrow { width: 31.6px; height: 31.6px; margin-top: -15.8px; right: 7px; }
  .reach-car { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; height: 240px; margin: 20px 0 0 24px; }
  .reach-car::before { content: ''; position: absolute; left: -24px; right: 0; top: -30px; height: 270px; background: url('img/reach-shape-mobile.svg') left top / 390px 270px no-repeat; }
  .reach-car img { position: absolute; left: -65px; top: 17px; width: 485px; }

  /* FAQ */
  .faq { margin-top: 0; padding: 48px 0; border-radius: 0 0 24px 24px; }
  .faq .wrap { gap: 24px; }
  .faq-list { border-top: 0; }
  .faq-item { border-bottom-color: rgba(128,158,168,.5); }
  .faq-question { gap: 12px; min-height: 0; padding: 18px 0; font-size: 16px; }
  .faq-icon { width: 20px; height: 21px; margin-top: 0; }
  .faq-answer-inner { padding: 0 0 18px 32px; font-size: 15px; }

  /* Footer */
  .site-footer { padding: 36px 24px; }
  .footer-inner { flex-direction: column; align-items: center; gap: 26px; }
  .footer-logo img { width: 90px; }
  .footer-right { width: 310px; max-width: 100%; gap: 26px; }
  .footer-meta { justify-content: space-between; font-size: 14px; gap: 0; }
  .footer-socials { justify-content: space-between; gap: 0; }
  .footer-socials a:nth-child(1) img { width: 25px; }
  .footer-socials a:nth-child(2) img { width: 13px; }
  .footer-socials a:nth-child(3) img { width: 25px; }
  .footer-socials a:nth-child(4) img { width: 34px; }
  .footer-socials a:nth-child(5) img { width: 79px; }
}

.reg-card-mobile-head, .prog-badge-mobile { display: none; }


/* ═══════════════════════════════════════════════════
   MOTION LAYER — quiet and simple
   Lenis smooth scroll + GSAP ScrollTrigger / SplitText for soft reveals.
   Degrades to the static design without scripts or with reduced motion.
   ═══════════════════════════════════════════════════ */

/* Hidden until the intro fades them in (.motion is dropped after 3s if scripts fail) */
.motion .hero-media, .motion .hero-car, .motion .hero-logo, .motion .hero-copy,
.motion .hero .badge, .motion .reg-block { visibility: hidden; }

/* Nav: tucks away on scroll down, returns on scroll up */
.nav-wrapper { transition: padding .4s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.nav-wrapper.is-hidden { transform: translateY(-140%); }

/* ── Hero: F1 car + optional photo ── */
.hero-media.has-photo { background-size: cover; background-position: center 40%;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hero-media.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,7,10,.75) 0%, rgba(2,7,10,.2) 45%, rgba(14,42,59,.4) 100%); }
.hero-car { position: absolute; z-index: 2; left: min(-70px, calc(50% - 790px)); top: 430px; width: 760px; pointer-events: none; will-change: transform; }
/* The exported car is cut straight on one side: mirror it so the cut edge sits off-screen on the left */
.hero-car img { width: 100%; height: auto; transform: scaleX(-1); filter: drop-shadow(0 30px 40px rgba(2,7,10,.5));
  -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 9%); mask-image: linear-gradient(270deg, transparent 0, #000 9%); }
.hero-top, .hero-body { z-index: 3; }
.hero .badge { z-index: 6; }
.badge .rotating-text { animation-duration: 32s; }

/* Countdown: plain figures with hairline dividers */
.hero-countdown { margin-top: 36px; }
.cd-label { display: block; margin-bottom: 12px; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: rgba(233,240,240,.65); }
.cd-units { display: flex; }
.cd-unit { padding: 0 22px; border-left: 1px solid rgba(233,240,240,.22); }
.cd-unit:first-child { padding-left: 0; border-left: 0; }
.cd-unit b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 34px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cd-unit small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(233,240,240,.55); }
.hero-countdown.is-done { display: none; }

/* ── Programme: thin timeline ── */
.schedule-wrap { position: relative; }
.lap-line { position: absolute; left: -34px; top: 22px; bottom: 22px; width: 1px; background: rgba(14,42,59,.18); }
.lap-line span { display: block; height: 100%; background: var(--orange); transform-origin: 50% 0; }
.gsap .lap-line span { transform: scaleY(0); }
.schedule-card { position: relative; transition: border-color .3s, background .3s; }
.schedule-card:hover { transform: none; border-color: var(--orange); }
.lap-dot { position: absolute; left: -39px; top: 30px; width: 11px; height: 11px; border-radius: 50%; background: var(--light); border: 1px solid rgba(14,42,59,.4); transition: background .4s, border-color .4s; }
.schedule-card.is-passed .lap-dot, .no-gsap .lap-dot { background: var(--orange); border-color: var(--orange); }

.reach .wrap { z-index: 2; }

/* Split headings: lines are masked by SplitText */
[data-split] .split-line { padding-bottom: .06em; margin-bottom: -.06em; }

/* GSAP animates the badges' transform: no CSS transition on it */
.gsap .badge { transition: none; }

@media (max-width: 1100px) {
  .hero-car { left: -60px; top: auto; bottom: 0; width: 460px; opacity: .55; }
  .lap-line { left: -22px; }
  .lap-dot { left: -27px; }
}
@media (max-width: 760px) {
  .hero-car { display: none; }
  .hero-countdown { margin-top: 20px; }
  .cd-label { font-size: 10px; margin-bottom: 8px; }
  .cd-unit { padding: 0 13px; }
  .cd-unit b { font-size: 22px; }
  .cd-unit small { font-size: 9px; letter-spacing: .1em; }
  .schedule-wrap { padding-left: 22px; }
  .lap-line { left: 5px; top: 26px; bottom: 26px; }
  .lap-dot { left: -22px; top: 24px; }
}
