/* Helmet-scroll slot only: Izaias with helmet instead of the gold 3D helmet. Head GL stays untouched. */
[data-gl="helmet-scroll"] {
  position: relative;
}
[data-gl="helmet-scroll"] .helmet-izaias {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  z-index: 12;
}

/*
  Helmet photo is a full opaque bust in a 66rem slot. The original 3D helmet
  was transparent around the edges; this PNG covers the impact headline.
  Clip the hero top/bottom, keep left/right so the face still hangs into PALCO.
*/
.taxi-w.on-track .s.is-on-track-home {
  clip-path: inset(0 -100vw 0 -100vw);
}
.taxi-w.on-track .on-t-helm-scroll-object,
.taxi-w.on-track .helmet-izaias {
  z-index: 0 !important;
}
.taxi-w.on-track .on-t-helm-scroll-pos2 .helmet-izaias,
.taxi-w.on-track .on-t-helm-scroll-pos3 .helmet-izaias {
  visibility: hidden;
}
.taxi-w.on-track .s-group.z-0 > section.s {
  position: relative;
  z-index: 30;
  isolation: isolate;
  background-color: #111112;
}
.taxi-w.on-track .text-impact-lg-mona.impact-on-track {
  position: relative;
  z-index: 50;
}

/* Lime → Tiffany on Rive (logo, loader, UI marks). Not on the WebGL head. */
canvas[data-rive-ln4],
canvas[data-rive-object],
canvas[data-rive-file],
canvas[data-rive-nav-hamburger],
canvas[data-rive-nav-object],
canvas[data-rive-primary] {
  filter: hue-rotate(102deg) saturate(0.72);
}

.transition-w {
  background-color: #81d8d0 !important;
}

/* Next-race / Madring widget */
.home-hero-next-race-w {
  display: none !important;
}

/* Helmet icons (rive + placeholder SVGs) */
.base-helmet-rive-w,
.nav-helmet-rive-w,
.base-helmet-rive {
  display: none !important;
}

.callout-icon,
.impact-icon-w,
svg[viewBox="0 0 97 50.1"] {
  display: none !important;
}

.home-collab-marquee-svg,
.marquee-offest-w {
  display: none !important;
}

.footer-marquee,
.footer-marquee-svg,
.footer-marquee-logo-w {
  display: none !important;
}

.on-t-hero-stats-ui-box2-col-2-svg {
  display: none !important;
}

/* F1 laurel wreaths */
.icon-svg-closed-reef {
  display: none !important;
}

/* LN → IP monogram (nav + loader) */
canvas[data-rive-ln4] {
  opacity: 0 !important;
}
.page-ln4-svg {
  background-color: #81d8d0;
  -webkit-mask: url("/img/logo-ip.svg?v=3") center / contain no-repeat;
  mask: url("/img/logo-ip.svg?v=3") center / contain no-repeat;
}
.transition-w canvas[data-rive-primary] {
  opacity: 0 !important;
}
.transition-w::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #111112;
  -webkit-mask: url("/img/logo-ip.svg?v=3") center / 5.5rem no-repeat;
  mask: url("/img/logo-ip.svg?v=3") center / 5.5rem no-repeat;
  pointer-events: none;
  z-index: 2;
}
img.is-ln4-logo {
  background-color: #81d8d0;
  -webkit-mask: url("/img/logo-ip.svg?v=3") center / contain no-repeat;
  mask: url("/img/logo-ip.svg?v=3") center / contain no-repeat;
  object-position: -9999px;
}

.s.is-horizontal-track .eyebrow-w:has(.text-eyebrow:empty) {
  display: none !important;
}



/* Race-track drawings only — boxes and copy stay, adapted in HTML */
.taxi-w.on-track canvas[data-rive-file="circuits"],
.taxi-w.on-track .home-hero-next-race-rive-w,
.taxi-w.on-track .f1-highlight-circuit-rive-w,
.taxi-w.on-track .f1-highlight-trophy-w,
.taxi-w.on-track .image.is-trophy,
.taxi-w.on-track .calendar-f1-logo,
.taxi-w.on-track [data-gl="tracks"],
.taxi-w.on-track .calendar-mobile-frame,
.taxi-w.on-track img[src*="crossed-flags"],
.taxi-w.on-track .horizontal-item-pill-w {
  display: none !important;
}

/* Only the three printed leftovers */
.taxi-w.on-track .on-t-hero-stats-ui-w,
.taxi-w.on-track .on-t-hero-stats-ui-sec,
.taxi-w.on-track .on-t-hero-stats-ui-box1-ix,
.taxi-w.on-track .on-t-hero-stats-ui-box2-ix,
.taxi-w.on-track .on-t-hero-stats-ui-img-fill,
.taxi-w.on-track .f1-car-stat-past-v2-w,
.taxi-w.on-track .calendar-track-w {
  display: none !important;
}
