/* =========================================================================
   2VS Racing - Homepage "Nuit Électrique" (design 2a)
   Scoped under .tvs so Enfold global styles don't leak in.
   Fonts: Archivo (headline/body), IBM Plex Mono (labels)
   ========================================================================= */

/* ---- self-hosted fonts (GDPR: no Google Fonts CDN) ----------------------
   woff2 files live in assets/fonts/ (paths are relative to THIS file).
   Archivo is a variable font: one file covers weights 400-900, so the
   font-weight range lets the browser interpolate every weight we use
   (400 / 600 / 800 / 900). Latin subset only - covers all French glyphs. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/archivo-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/archivo-latin-italic-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-600.woff2') format('woff2');
}

.tvs {
  position: relative;
  background: #05070d;
  color: #fff;
  overflow: hidden;
  font-family: 'Archivo', system-ui, sans-serif;
}
.tvs *, .tvs *::before, .tvs *::after { box-sizing: border-box; }
.tvs a { color: #3b82f6; text-decoration: none; }
.tvs a:hover { color: #93b4ff; }

/* Enfold overrides - the only two places we need !important, because Enfold
   sets these globally on .container / content headings. */
.tvs h1, .tvs h2, .tvs h3 { margin: 0 !important; color: inherit !important; }

/* ---- ambient glow + grain ------------------------------------------------ */
.tvs-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none; filter: blur(40px);
  background: radial-gradient(ellipse at center, rgba(37,99,235,.45), transparent 65%);
}
.tvs-grain {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---- sticky floating glass nav ------------------------------------------- */
.tvs-nav {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: calc(100% - 64px); max-width: 1400px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 24px;
  background: rgba(10,14,24,.55);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.tvs-logo { display: inline-flex; align-items: baseline; gap: 8px; font: italic 900 20px 'Archivo'; letter-spacing: -.5px; }
.tvs-logo span { color: #3b82f6; }
.tvs-logo-team {
  font: 600 10px 'IBM Plex Mono'; font-style: normal; letter-spacing: 3px;
  color: #8b93a7; padding: 3px 8px; border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px; transform: translateY(-1px);
}
/* offset anchor targets so the fixed nav doesn't overlap section tops */
.tvs [id] { scroll-margin-top: 96px; }
.tvs-nav-links { display: flex; align-items: center; gap: 30px; font: 600 11px 'Archivo'; letter-spacing: 2px; }
.tvs-nav-links a { color: #fff; }
.tvs-nav-links a.dim { color: #8b93a7; }
.tvs-nav-cta {
  padding: 10px 20px; background: #2563eb; border-radius: 10px; color: #fff !important;
  box-shadow: 0 4px 16px rgba(37,99,235,.5);
}

/* ---- hero ---------------------------------------------------------------- */
.tvs-hero { position: relative; height: 760px; }
.tvs-track-wrap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  perspective: 1100px;
}
.tvs-track {
  width: 1420px; flex: none;
  transform: rotateX(62deg) rotateZ(-12deg) translateY(90px);
  transform-origin: 50% 55%;
}
.tvs-track-bed   { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 46; stroke-linejoin: round; }
.tvs-track-dash  { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.5; stroke-dasharray: 10 16; animation: tvs-dash 2s linear infinite; }
/* A single lit segment travels the whole loop: the path is normalised to
   pathLength=100, the dash is a 26-unit lit run + 74-unit gap, and the offset
   animates a full -100 so it laps seamlessly (no snap-back). */
.tvs-track-glow  { fill: none; stroke: #3b82f6; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
                   stroke-dasharray: 26 74; animation: tvs-trace 4.5s linear infinite;
                   filter: drop-shadow(0 0 10px rgba(59,130,246,1)); }

/* real circuit map in the hero (viewBox 800x600): flat, right-aligned, large,
   with the same travelling glow. Overrides the fake-track 3D transform. */
.tvs-track-wrap.is-circuit { perspective: none; justify-content: flex-end; align-items: center; padding-right: 1%; }
.tvs-track-wrap.is-circuit .tvs-track {
  width: min(940px, 74%); height: auto;
  transform: rotate(-7deg); transform-origin: 50% 50%;
}
.tvs-track-wrap.is-circuit .tvs-track-bed  { stroke-width: 26; }
.tvs-track-wrap.is-circuit .tvs-track-dash { stroke-width: 2; stroke-dasharray: 6 10; }
.tvs-track-wrap.is-circuit .tvs-track-glow { stroke-width: 5; }
/* Magny-Cours reads better turned 90deg to the left in the hero */
.tvs-track-wrap.is-circuit .tvs-track--magny-cours { transform: rotate(-97deg); }

/* mini circuit outline inside race cards / gallery headings (static, no dash) */
.tvs-track-mini { display: block; width: 100%; height: 100%; }
.tvs-track-mini .tvs-track-bed  { stroke: rgba(255,255,255,.09); stroke-width: 24; }
.tvs-track-mini .tvs-track-dash { display: none; }
.tvs-track-mini .tvs-track-glow {
  stroke: #3b82f6; stroke-width: 10; stroke-dasharray: none; animation: none;
  filter: drop-shadow(0 0 3px rgba(59,130,246,.7));
}
.tvs-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,13,.4) 0%, transparent 42%, rgba(5,7,13,.85) 100%);
}
.tvs-hero-copy {
  position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding: 0 56px; max-width: 720px;
}
.tvs-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  padding: 8px 14px; background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  font: 600 11px 'IBM Plex Mono'; letter-spacing: 2px; margin-bottom: 26px;
}
.tvs-eyebrow .dot { width: 7px; height: 7px; background: #3b82f6; border-radius: 50%; box-shadow: 0 0 8px #3b82f6; animation: tvs-blink 1.5s infinite; }
.tvs-h1 {
  font: 900 116px/0.88 'Archivo'; text-transform: uppercase; letter-spacing: -4px;
  background: linear-gradient(180deg, #fff 55%, #8ea3c8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tvs-h1-stroke {
  font: italic 900 116px/0.88 'Archivo'; text-transform: uppercase; letter-spacing: -2px;
  color: transparent; -webkit-text-stroke: 2px rgba(59,130,246,.9);
}
.tvs-lede { font: 400 16px/1.65 'Archivo'; color: #c3ccdd; max-width: 420px; margin: 24px 0 34px; }
.tvs-btns { display: flex; gap: 14px; }
.tvs-btn {
  font: 800 13px 'Archivo'; letter-spacing: 1.5px; padding: 17px 32px; border-radius: 12px; cursor: pointer;
}
.tvs-btn-primary { background: #2563eb; box-shadow: 0 8px 28px rgba(37,99,235,.5); }
.tvs-btn-glass {
  background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.16);
}
/* Button text stays white. This overrides BOTH our own `.tvs a` link colour
   and Enfold's global `#top a` colour - beat them on specificity (id + 2
   classes) rather than reaching for !important. */
.tvs a.tvs-btn, #top .tvs a.tvs-btn,
.tvs a.tvs-btn:hover, #top .tvs a.tvs-btn:hover { color: #fff; }

/* floating glass stat cards */
.tvs-stats { position: absolute; right: 56px; bottom: 56px; display: flex; gap: 14px; }
.tvs-stat {
  width: 130px; padding: 22px 20px; background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 18px; box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.tvs-stat.accent { background: rgba(37,99,235,.22); border-color: rgba(59,130,246,.4); box-shadow: 0 8px 32px rgba(37,99,235,.3); }
.tvs-stat-num { font: 900 46px/1 'Archivo'; color: #fff; }
.tvs-stat-lbl { font: 600 10px 'IBM Plex Mono'; color: #3b82f6; letter-spacing: 1.5px; margin-top: 8px; }
.tvs-stat.accent .tvs-stat-lbl { color: #93b4ff; }

/* ---- section shell ------------------------------------------------------- */
.tvs-section { position: relative; padding: 96px 56px; }
.tvs-sec-head { text-align: center; margin-bottom: 48px; }
.tvs-kicker { font: 600 11px 'IBM Plex Mono'; color: #3b82f6; letter-spacing: 4px; margin-bottom: 12px; }
.tvs-sec-title { font: 900 62px/1 'Archivo'; text-transform: uppercase; letter-spacing: -2px; }

/* ---- 2025 recap video (standalone card) ---------------------------------- */
.tvs-recap { position: relative; padding: 40px 56px 20px; }
.tvs-recap-glow {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; pointer-events: none; filter: blur(50px);
  background: radial-gradient(ellipse at center, rgba(37,99,235,.28), transparent 65%);
}
.tvs-recap .tvs-sec-head { position: relative; margin-bottom: 30px; }
.tvs-recap-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 60px rgba(0,0,0,.55);
  background: #05070d;
}
.tvs-recap-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* overlays never block the native video controls (which auto-hide, so the
   badge + caption show cleanly at rest and controls appear on hover) */
.tvs-recap-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,7,13,.35) 0%, transparent 30%, transparent 70%, rgba(5,7,13,.7) 100%);
}
.tvs-recap-badge {
  position: absolute; left: 24px; top: 22px; pointer-events: none;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px; background: rgba(5,7,13,.4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  font: 600 10px 'IBM Plex Mono'; color: #fff; letter-spacing: 1.5px;
}
.tvs-recap-badge .dot { width: 6px; height: 6px; background: #3b82f6; border-radius: 50%; box-shadow: 0 0 8px #3b82f6; }
.tvs-recap-caption {
  position: absolute; left: 24px; bottom: 46px; pointer-events: none;
  font: 800 22px 'Archivo'; text-transform: uppercase; letter-spacing: -.5px;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}

/* ---- gallery (self-hosted media, organised by race) ---------------------- */
.tvs-gallery { position: relative; padding: 40px 56px 20px; }
.tvs-gallery-glow {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; pointer-events: none; filter: blur(50px);
  background: radial-gradient(ellipse at center, rgba(37,99,235,.28), transparent 65%);
}
.tvs-gallery .tvs-sec-head { position: relative; margin-bottom: 30px; }

.tvs-gallery-race { position: relative; margin-bottom: 56px; }
.tvs-gallery-race:last-child { margin-bottom: 0; }
.tvs-gallery-race-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 14px;
}
.tvs-gallery-race-track { width: 72px; height: 54px; flex: none; }
.tvs-gallery-race-name { font: 800 30px 'Archivo'; text-transform: uppercase; letter-spacing: -1px; }
.tvs-gallery-race-date { font: 500 12px 'IBM Plex Mono'; color: #8b93a7; letter-spacing: 1px; margin-left: auto; }

/* per-race recap video */
.tvs-gallery-video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 60px rgba(0,0,0,.55);
  margin-bottom: 20px;
}
.tvs-gallery-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* rider clips: poster tiles that open a per-race video carousel (Magnific).
   Clips are portrait (phone) footage, so the tiles are 9:16. */
.tvs-gallery-clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tvs-gallery-clip {
  position: relative; display: block; margin: 0; aspect-ratio: 9 / 16;
  border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.1);
  background: #05070d; cursor: pointer;
}
.tvs-gallery-clip img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .3s ease, transform .4s ease; }
.tvs-gallery-clip:hover img { opacity: 1; transform: scale(1.05); }
.tvs-gallery-clip-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; pointer-events: none;
  background: rgba(37,99,235,.9); box-shadow: 0 6px 20px rgba(0,0,0,.45);
  transition: transform .15s ease, background .2s ease;
}
.tvs-gallery-clip:hover .tvs-gallery-clip-play { transform: translate(-50%, -50%) scale(1.08); }
.tvs-gallery-clip-play::before {
  content: ''; position: absolute; top: 50%; left: 55%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff;
}
.tvs-gallery-clip-label {
  position: absolute; left: 8px; right: 8px; bottom: 8px; pointer-events: none;
  font: 700 11px 'Archivo'; text-transform: uppercase; letter-spacing: .5px; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.75);
}

/* video carousel popup (Magnific inline, self-hosted mp4) */
.tvs-mfp-video { max-width: 92vw; margin: 0 auto; }
.tvs-mfp-video video { display: block; margin: 0 auto; width: auto; max-width: 92vw; max-height: 84vh; border-radius: 12px; background: #000; }
.tvs-mfp-video-popup .mfp-content { background: none; box-shadow: none; text-align: center; }

/* image grid */
.tvs-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tvs-gallery-item {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); cursor: pointer;
}
.tvs-gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease, opacity .3s ease; opacity: .92;
}
.tvs-gallery-item:hover img { transform: scale(1.06); opacity: 1; }
.tvs-gallery-item.is-hidden { display: none; } /* still in DOM for the lightbox */
.tvs-gallery-more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(5,7,13,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  font: 800 26px 'Archivo'; color: #fff; letter-spacing: -.5px;
}
.tvs-gallery-item:hover .tvs-gallery-more { background: rgba(37,99,235,.5); }

/* ---- lightbox ------------------------------------------------------------ */
.tvs-lightbox {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center;
  background: rgba(5,7,13,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tvs-lightbox.open { display: flex; }
.tvs-lightbox-img {
  max-width: 90vw; max-height: 86vh; border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}
.tvs-lightbox button {
  position: absolute; background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16); color: #fff; cursor: pointer;
  border-radius: 999px; line-height: 1;
}
.tvs-lightbox-close { top: 22px; right: 22px; width: 46px; height: 46px; font-size: 26px; }
.tvs-lightbox-prev, .tvs-lightbox-next {
  top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 30px;
}
.tvs-lightbox-prev { left: 22px; }
.tvs-lightbox-next { right: 22px; }
.tvs-lightbox button:hover { background: rgba(37,99,235,.4); border-color: rgba(59,130,246,.5); }

/* ---- team ---------------------------------------------------------------- */
.tvs-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tvs-rider { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.tvs-rider-photo { height: 360px; }
/* bias the crop to the top so riders' heads stay in frame */
.tvs-rider-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.tvs-rider-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(5,7,13,.95)); }
.tvs-rider-insta {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(5,7,13,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 2px 10px rgba(0,0,0,.35);
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
/* white icon that beats our own `.tvs a` and Enfold's `#top a` link colour,
   so it stays high-contrast on light-topped photos (no !important) */
.tvs a.tvs-rider-insta, #top .tvs a.tvs-rider-insta,
.tvs a.tvs-rider-insta:hover, #top .tvs a.tvs-rider-insta:hover { color: #fff; }
.tvs-rider-insta:hover { background: #2563eb; border-color: rgba(59,130,246,.7); transform: translateY(-1px); }
.tvs-rider-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.tvs-rider-name { font: 800 19px 'Archivo'; text-transform: uppercase; }
.tvs-chip {
  display: inline-block; margin-top: 8px; padding: 5px 11px;
  background: rgba(37,99,235,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(59,130,246,.4); border-radius: 999px;
  font: 600 10px 'IBM Plex Mono'; color: #93b4ff;
}

/* ---- races --------------------------------------------------------------- */
.tvs-races { position: relative; padding: 40px 56px 96px; }
.tvs-races-glow {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px; pointer-events: none; filter: blur(40px);
  background: radial-gradient(ellipse at center, rgba(37,99,235,.25), transparent 65%);
}
.tvs-races-head { position: relative; margin-bottom: 36px; }
.tvs-races-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* only 2 rounds remain, so the upcoming grid uses wider cards */
.tvs-races-grid--upcoming { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.tvs-race {
  position: relative; overflow: hidden;
  padding: 26px 22px; background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
}
/* decorative circuit map, top-right of the card, behind the text */
.tvs-race-track { position: absolute; top: -14px; right: -22px; width: 150px; height: 112px; opacity: .5; pointer-events: none; }
.tvs-race-num, .tvs-race-name, .tvs-race-date, .tvs-race-detail { position: relative; z-index: 1; }
.tvs-race.next { background: rgba(37,99,235,.16); border-color: rgba(59,130,246,.35); }
.tvs-race-num { font: 900 30px 'Archivo'; font-style: italic; color: transparent; -webkit-text-stroke: 1.5px rgba(59,130,246,.7); }
.tvs-race.next .tvs-race-num { -webkit-text-stroke-color: rgba(59,130,246,.9); }
.tvs-race-name { font: 800 24px 'Archivo'; text-transform: uppercase; margin-top: 14px; }
.tvs-race-date { font: 500 12px 'IBM Plex Mono'; color: #8b93a7; margin-top: 10px; }
.tvs-race.next .tvs-race-date { color: #93b4ff; }
.tvs-race-detail { font: 500 11px/1.5 'IBM Plex Mono'; color: #8b93a7; margin-top: 8px; }
.tvs-race.next .tvs-race-detail { color: #a9bbe0; }

/* ---- partners ------------------------------------------------------------ */
.tvs-partners {
  position: relative; border-top: 1px solid rgba(255,255,255,.08);
  padding: 36px 56px; display: flex; align-items: center; gap: 36px;
}
.tvs-partners-lbl { font: 600 10px 'IBM Plex Mono'; color: #3b82f6; letter-spacing: 2px; flex: none; }
.tvs-partners-list { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
/* Most logos ship with their own (mostly dark) baked background, so no tile:
   just 5px breathing room and a uniform height, sitting on the page bg. */
.tvs-partner {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px;
}
.tvs-partner--logo { background: none; padding: 5px; }
.tvs-partner--logo img { height: 44px; width: auto; max-width: 190px; object-fit: contain; display: block; }
.tvs-partner:not(.tvs-partner--logo) {
  padding: 0 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: #8b93a7;
  font: 700 14px 'Archivo'; letter-spacing: 1px; text-transform: uppercase;
}

/* ---- footer -------------------------------------------------------------- */
.tvs-footer {
  /* extra bottom padding clears Enfold's fixed "scroll to top" button so it
     doesn't overlap the contact email in the bottom-right corner */
  position: relative; padding: 56px 56px 104px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: flex-end;
}
.tvs-footer-logo { width: 88px; height: auto; display: block; margin-bottom: 18px; }
.tvs-footer-brand { font: italic 900 26px 'Archivo'; }
.tvs-footer-brand span { color: #3b82f6; }
.tvs-footer-desc { font: 400 13px/1.5 'Archivo'; color: #8b93a7; max-width: 400px; margin-top: 12px; }
.tvs-footer-contact-lbl { font: 600 11px 'IBM Plex Mono'; color: #5b6478; letter-spacing: 2px; }
.tvs-footer-contact { font: 800 17px 'Archivo'; color: #3b82f6; margin-top: 6px; }
.tvs-footer-social {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px;
  font: 600 13px 'IBM Plex Mono'; color: #c3ccdd;
}
.tvs-footer-social svg { color: #3b82f6; }
.tvs-footer-social:hover { color: #fff; }

/* nav Instagram icon */
.tvs-nav-ig { display: inline-flex; align-items: center; color: #c3ccdd; }
.tvs-nav-ig:hover { color: #3b82f6; }

/* ---- keyframes ----------------------------------------------------------- */
@keyframes tvs-dash  { to { stroke-dashoffset: -52; } }   /* subtle centreline drift */
@keyframes tvs-trace { to { stroke-dashoffset: -100; } }  /* one full lap of the loop */
@keyframes tvs-blink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }

/* respect reduced-motion: freeze the travelling glow */
@media (prefers-reduced-motion: reduce) {
  .tvs-track-glow, .tvs-track-dash { animation: none; }
}

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .tvs-h1, .tvs-h1-stroke { font-size: 84px; }
  .tvs-team-grid { grid-template-columns: repeat(2, 1fr); }
  .tvs-races-grid { grid-template-columns: repeat(2, 1fr); }
  .tvs-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .tvs-stats { position: static; padding: 0 56px 40px; }
}
@media (max-width: 700px) {
  /* keep the CTA + Instagram in the nav; hide only the section anchor links */
  .tvs-nav-links a:not(.tvs-nav-cta):not(.tvs-nav-ig) { display: none; }
  .tvs-nav-links { gap: 14px; }
  .tvs-nav { padding: 10px 12px 10px 18px; }

  .tvs-h1, .tvs-h1-stroke { font-size: 48px; letter-spacing: -1px; }
  .tvs-sec-title { font-size: 34px; letter-spacing: -1px; }
  .tvs-gallery-race-name { font-size: 22px; }
  .tvs-lede { font-size: 15px; }

  .tvs-hero { height: auto; padding: 132px 0 56px; }
  .tvs-hero-copy { padding: 0 24px; max-width: 100%; }
  /* anchor the circuit to the TOP of the hero (behind the eyebrow + title) so
     the travelling glow is visible there but the CTA buttons and stats below
     sit on a clean background, not over the animation */
  .tvs-track-wrap.is-circuit { justify-content: center; align-items: flex-start; padding: 74px 8px 0; }
  .tvs-track-wrap.is-circuit .tvs-track { width: 96%; opacity: .4; transform: none; }
  .tvs-track-wrap.is-circuit .tvs-track-glow { stroke-width: 6; }

  .tvs-section, .tvs-recap, .tvs-races, .tvs-gallery, .tvs-partners, .tvs-footer { padding-left: 24px; padding-right: 24px; }
  .tvs-recap { padding-top: 24px; }
  .tvs-team-grid, .tvs-races-grid, .tvs-races-grid--upcoming { grid-template-columns: 1fr; max-width: 100%; }
  .tvs-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .tvs-gallery-clips { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .tvs-lightbox-prev, .tvs-lightbox-next { width: 44px; height: 44px; font-size: 24px; }
  /* align stats with the 24px hero padding and add breathing room under the buttons */
  .tvs-stats { flex-wrap: wrap; padding: 0 24px 40px; margin-top: 30px; }
  .tvs-partners { flex-direction: column; align-items: flex-start; gap: 20px; }
  .tvs-footer { flex-direction: column; align-items: flex-start; gap: 24px; }
  .tvs-footer > div[style] { text-align: left !important; }
}
@media (max-width: 420px) {
  .tvs-h1, .tvs-h1-stroke { font-size: 40px; }
  .tvs-sec-title { font-size: 28px; }
  .tvs-btns { flex-direction: column; align-items: stretch; }
  .tvs-btn { text-align: center; }
}
