/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */


:root{/* root styling, for whole page*/
  --accent: #FF0000; /* Talus red accent */
  --white: #ffffff;
  --black: #000000;
  --white-rgb: 255,255,255;
  --black-rgb: 0,0,0;
  --ink: #111; /* primary text color */
  --ink-2: #222; /* secondary link color*/
  --line: #d9d9d9; /*light divider*/
  --paper: #ffffff; /*page background */
  --tint: #f6f7fa;
  --maxWidth: 1200px;
  --bg:#0b0b0c;
  --panel:#111214;
  --rail-btn-w: clamp(20px, 2.6vw, 34px);
  --stage-bg: url(/img/carouselPanelBackground.jpg);
  --stage-edge: clamp(64px, 12vw, 220px);
  --stage-max: clamp(360px, 56vh, 780px);
  --muted:#7c828a;
  --text:#f5f7fb;
  --thumb-h:clamp(40px, 6vw, 52px);  /* thumbnail strip height */
  --thumb-strip-h: calc(var(--thumb-h)+ 8px);
  --nav-h: 72px;
  --nav-top: calc(var(--nav-h) + env(safe-area-inset-top));
  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --footer-bg: #0f1012;
  --footer-ink: #eaeaea;
  --footer-ink-dim: #cfcfcf;
  --ring: var(--accent);
  /* vars for racing page */
  --ink-soft: #1f2937;
  --line-softer: #eef1f4; /* optional softer */
  --table-head: #f6f8fb;
}

@media (max-width: 720px){
  :root {
    --nav-h: 64px;
  }          /* smaller thumb-h */
}


/* text stuff*/


body{
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}


.rich-text{
  max-width: 80ch;
  margin: 0 auto 24px;
  line-height: 1.65;
  font-size: 1.2rem; /* need 1.075 mobile maybe larger for desktop*/
  color: #222;
}
.rich-text .lead{
  font-size: 50px;
  font-weight: 500;
  margin-bottom: .6rem;
}




*,/* universal selector*/
*::before,
*::after{box-sizing:border-box;}/* forces everything including before,after to use border box*/




/* navbar section*/




.navbar {/* navbar styling*/
  position: fixed;/* lock to origin loc*/
  top: 0;
  left: 0;
  right: 0;/* pin to top left+ bottom and center ie full screen*/
  z-index: 100;
  height: var(--nav-h);
  background-color: rgba(var(--white-rgb), .98); /*last val opacity*/
  border-bottom: 1px solid rgba(var(--black-rgb), .08);
  transition: background .3s ease, /*transition to scrolled or hide*/
              border-color .3s ease,
              box-shadow .3s ease,
              backdrop-filter .3s ease,
              height .3s ease,
              transform .28s ease,
              opacity .28s ease;
  backdrop-filter: saturate(180%) blur(10px);/*content behind bar filter*/
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled{/*nav appearance while scrolling*/
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.navbar.hide {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
/*
.navbar-wrapper{
  max-width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 24px;
}*/

.logo{
  justify-self: center;/* center in grid*/
  display: inline-block;
  text-decoration: none;
}

.logo img{
  height:50px;
  width:auto;
  display: block;
}
@media(max-width: 640px){
  .logo img{height:36px}
}
.navbar-links {
  margin-left: auto;
  list-style: none;
  display: flex;
  gap: 10px;/*link gap*/
  padding: 0;
}
/* Links hidden on smaller displays */
@media (max-width: 1000px) {
  .navbar-links { display: none; }
}
.navbar-links a{
  position: relative;
  font-size: clamp(14px, 1.2vw, 20px);/* link font size (font-size: clamp(16px, 1.2vw, 18px));*/
  font-weight: 600;
  color: rgb(var(--black));
  padding: 10px 6px;/*spacing of links*/
  text-decoration: none;
}

@media (min-width: 1000px) {
  .navbar-links a {
    font-size: 18px;
    padding: 10px 8px;
  }
}

@media (min-width: 1200px) {
  .navbar-links a {
    font-size: 20px;
    padding: 12px 10px;
  }
}

.navbar-links a::after {/* aesthetics for nav*/
  content: "";
  position: absolute;
  left: 0;right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.navbar-links a:hover,
.navbar-links a:focus-visible {color: var(--accent);}

.navbar-links a:hover::after,
.navbar-links a:focus-visible::after {transform: scaleX(1);}

.navbar-grid{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin: 0;
  height:100%;
  gap: 0;
  padding: 0 16px;/*side padding*/
}

@media (max-width: 640px){
  .navbar{ height: 64px; }
  .navbar.scrolled{ height: 60px;}
  /*body:not(.has-full-hero){ padding-top: 64px;}
  .logo { font-size: 18px;}
  navbar-links {display: none;}*/
}


/*Talus burger + drawer */


.menu-toggle{/*parallelogram*/
  width: calc(var(--nav-h)*1.175); /* width of parallelogram base*/
  height: var(--nav-h);/*base of parallelogram*/
  background: var(--accent);
  transform: skew(-30deg);/*parallelogram angle*/
  padding: 0;
  border: 0;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover{

}
/*.menu-toggle:before{
  content: "";
  position: absolute; inset:0;
  background: var(--accent);
  transform: skew(-30deg);
  transform-origin: left bottom;
  z-index: -1;
}*/
.navbar-wrapper{
  position: relative;
  height: 100%;
  align-items: center;
}
.triangle{/* logo triangle */
  --tri-side: calc(var(--nav-h) * .425);
  --tri-h: calc(var(--tri-side) * .866025);
  --stroke-w: calc(var(--tri-side)* 0.147);
  position: absolute;
  left:38px;
  bottom: 25%;
  /*bottom: calc(var(--navH)* 0.25- var(--stroke-w)/2); not even close lol */
  scale: 70%;
  width: var(--tri-side);
  height: var(--tri-h);
  pointer-events: none;
  overflow: visible;
  transition: transform .25s ease;
}

.triangle polygon{
  stroke: black;
  fill:none;
  stroke-width: var(--stroke-w);
}

.bracket{
  position: absolute;
  left: 26px;
  bottom: 45%;
  height: auto;
  z-index: 5;
  overflow: visible;
  transform-origin: bottom left;
  transition: transform .25s ease;
  pointer-events: none;
}
.bracket path{
  stroke: white;
  stroke-width: 4;
  stroke-linecap: square;
  fill: none;
  vector-effect: non-scaling-stroke;
}


.menu-toggle:hover ~ .triangle,
.menu-toggle:focus-visible ~ .triangle{
  transform: translateY(6px);

}

.menu-toggle:hover ~ .bracket,
.menu-toggle:focus-visible ~ .bracket{
  transform: rotate(-15deg);
}
/*Talus burger*/



/* nav drawer menu section*/



.nav-drawer{
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: min(84vw, 320px);
  height: calc(100vh - var(--nav-h));
  background: rgba(var(--white-rgb), .98);
  border-right: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transform: translateX(-100%);
  transition: transform .28s ease;
  z-index: 99;          /* just under navbar */
  overflow-y: auto;
}
@supports (height: 100svh){
  .nav-drawer{
    height: calc(100svh - var(--nav-h));
  }
}
.nav-drawer.open{
  transform: translateX(0);
}
.drawer-links{
  list-style: none;
  padding: 16px;
  margin:0;
  display: grid;
  gap: 8px;
}
.drawer-links a{
  display: block;
  padding: 10px 8px;
  color: rgb(var(--black));
  text-decoration: none;
  font-weight: 600;
}
.drawer-links a:hover,
.drawer-links a:focus-visible{
  color: var(--accent);
  background: rgba(0,0,0,.04);
  border-radius: 8px;
}



/* dim backdrop when drawer is open */


.drawer-backdrop{
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.drawer-backdrop.show{
  opacity: 1;
  pointer-events: auto;
}



















/*hero section*/


.hero {
  position: relative;
  height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0 !important;
  margin: 0;
  overflow: hidden;
}
  @supports (height: 100svh) {
    /*ios viewport support*/
    .hero { min-height: 70svh; }
  }

.hero-img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height:100%;
  object-fit: cover;
  z-index: -1;/* fill image container completely, crop as needed*/
  inset: 0;/* same as top:0,right:0,etc. short hand no margin.*/
  pointer-events: none;
}
.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;            /*no zoom */
  object-position: 50% 50%; /* center it */
  background:#000;
  /* bars blend in */
}

.hero-text, .hero-content{
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 45px 0 16px;
}

.hero h1{
  font-size: clamp(2.6rem, 3.4vw, 3.35rem);
  margin: 0 0 .4rem 0;
  letter-spacing: -.02em;
  line-height: 1.08;
  font-weight: 800;
  /*text-transform: uppercase; looks too aggressive*/
  text-shadow:
    0 10px 24px rgba(0,0,0,.3);
    /*0 0 1px rgba(0,0,0,.35);*/
  color: var(--white);
  opacity: 1;
}

.hero-sub{
  display: block;
  margin-top: 0.45em;
  font-size: clamp(1.4rem, 1.4vw, 1.9rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);       /* not grey */
  letter-spacing: 0.01em;
}
/*.hero p{
  font-size: 1.3rem;
  max-width: 720px;
  margin: 0 auto;
  color: var(--white);
}*/
html,body{
  margin:0;
  padding: 0;
  overflow-x: hidden;
}
.hero-kicker{
  margin-bottom:.9rem;
  font-size: clamp(12px, 0.85vw, 14px);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffffff;
  /*color: var(--accent);*/
  opacity: 0.95;
}

/* Desktop wide view: scale up to match laptop @125% feel */
@media (min-width: 1600px){
  .hero h1{
    font-size: calc(clamp(2.6rem, 3.4vw, 3.35rem) * 1.15);
  }
  .hero-sub{
    font-size: calc(clamp(1.25rem, 1.6vw, 1.55rem) * 1.15);
  }
  .hero-text{
    padding: 64px 0 22px;
  }
}

/* Hero text scaling on smaller screens */
@media (max-width: 720px){

  .hero-text,
  .hero-content{
    padding: 32px 16px 20px;   /* a bit less top, some side padding */
  }

  .hero h1{
    font-size: clamp(1.9rem, 6vw, 2.3rem); /* smaller + fluid on phones */
    line-height: 1.15;
  }

  /*.hero p{
    font-size: clamp(1rem, 4vw, 1.2rem);
    max-width: 90vw; /* avoid super long lines on narrow screens
  }*/
}


/* hero arrow + scroll */
html {
  scroll-behavior: smooth;
}

/* wrapper: bottom-center over the video */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;              /* move up/down as needed */
  transform: translateX(-50%);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  z-index: 5;
}

/* "Explore" label */
.hero-scroll__label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
  opacity: 0.9;
}

/* down chevron */
.hero-scroll__arrow {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  color: #ffffff;
  animation: heroArrowBounce 1.6s ease-in-out infinite;
}

@keyframes heroArrowBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}



/*css for section right below hero*/
/* section base */
.index-subhero-body{
  background: #ffffff;
  padding: clamp(96px, 14vh, 160px) 0;
}

/* two boxed panels */
.index-subhero-body .intro-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 4vw, 72px);
  align-items: stretch;
}

/* invisible panel boxes */
.index-subhero-body .intro-left,
.index-subhero-body .intro-right{
  padding: clamp(18px, 3vw, 42px);
  min-height: clamp(340px, 40vh, 520px);
}

/* left panel split */
.index-subhero-body .intro-left{
  display: grid;
  grid-template-rows: 1fr 1fr;
}

.index-subhero-body .intro-left__bottom{
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* typography */
.index-subhero-body .kicker{
  margin: 10px 5px 25px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  max-width: 22ch;
}

.index-subhero-body .title{
  margin: 0;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  color: #111827;
  max-width: 22ch;
}

/* right panel hierarchy */
.index-subhero-body .lead{
  margin: 0 0 16px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
  max-width: 42ch;
}

.index-subhero-body .sub{
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  max-width: 60ch;
}

.index-subhero-body{
  position: relative;
  /*padding-bottom: 200px; iff adding lower logo*/
}

/* the dragged-in image */
.subhero-stamp{
  position: absolute;
  left: 50%;
  bottom: -150px;              /* visual placement */
  transform: translateX(-50%);
  pointer-events: none;
}

/* size ONLY the image */
.subhero-stamp img{
  width: 500px;              /* adjust freely */
  height: auto;
  display: block;
}


/* responsive stacking */
@media (max-width: 1100px){
  .index-subhero-body .intro-grid{
    grid-template-columns: 1fr;
  }

  .index-subhero-body .intro-left,
  .index-subhero-body .intro-right{
    min-height: 0;
  }

  .index-subhero-body .intro-left{
    grid-template-rows: auto;
  }

  .index-subhero-body .intro-left__bottom{
    display: none;
  }

  .index-subhero-body .title{
    max-width: none;
  }
}



/* make the About typography reusable for below sections*/
.kicker{
  margin: 0 auto 25px;
  font-size: 1rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
}



.title{
  margin: 0 auto 22px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  color: #111827;
  max-width: none;
}

.lead{
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
  max-width: 42ch;
}

.sub{
  margin: 0 auto 72px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: #4b5563;
  max-width: 60ch;
}

/* section intro spacing so cards aren't glued to the text */
.index-section-intro{
  margin: 0 auto;
  padding-top: 0;
  text-align: center;
}


/* over rides needs normalization */
.index-page-body {
  background: #ffffff;
  padding: 72px 0;
}



.index-page-body .container {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
  text-align: center;
  align-items: center;
}
@media (min-width: 1600px){
  .index-page-body .container{
    max-width: 1480px;           /* gives cards room */
    padding-inline: clamp(24px, 3vw, 72px);
  }
}

/* wrapper for the three lines */
.index-section-intro {
  text-align: center;
  max-width: none;
  margin: 0 auto 28px;     /* center + space under the block */
}














/* index banner sections */



.index-banner{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);  /* full-bleed */
  margin-right: calc(50% - 50vw);
  min-height: 100svh;             /* 100 org height */
  display: grid;
  place-items: center;
  overflow: hidden;

  /* background image */
}

.index-banner--hero{
  min-height: 120vh;
  display: grid;
  place-items: center;
}

.index-banner--min{
  min-height: 67vh;
  display: grid;
  place-items: center;
}

.index-banner > .bg-img{/*background-image*/
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; /*object-position: center;*/
  pointer-events: none;     /* only the button is clickable */
  z-index: 0;
}
.index-banner .lead{
  font-size: clamp(16px, 1.9vw, 20px);  /* smaller overall */
  line-height: 1.45;                    /* still comfortable */
  font-weight: 500;
  color: #fff;

  text-shadow:
    0 3px 10px rgba(0,0,0,.85),
    0 0 16px rgba(0,0,0,.7);
}

#our-cars > .bg-img{
  object-position: center 80%; /* try 10%–35% */
}



/*index page section titles over img*/

.banner-title{
  position: relative;
  text-align: center;
  white-space: nowrap;
  z-index: 2;
  margin: 0 auto;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: #fff;

  text-shadow:
    0 3px 10px rgba(0,0,0,.55),
    0 0 1px rgba(0,0,0,.35);

  pointer-events: none;
}


.banner-title h2 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600;
}

/* when the title sits on an image/video */
.banner-title--light{
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35); /* optional */
}

.banner-title .header-underline{
  color: var(--white);
}

.banner-title .header-black{
  color: var(--black);
}

/* remove underline for title*/
.banner-title .header-underline::after{
  /*background: linear-gradient(
    90deg,
    rgba(254,0,0,.90) 0%,
    rgba(254,0,0,.75) 35%,
    rgba(254,0,0,.45) 55%,
    var(--black) 100%
  );*/
  content: none;
}

.banner-content{
  position: absolute;
  left: clamp(16px, 5vw, 72px);
  bottom: clamp(20px, 6vw, 72px);
  max-width: 46ch;
  color: white;
  z-index: 1;
  text-align: left;
}

.banner-content--tl{
  position: absolute;
  left: 85px;
  top: 100px;
  max-width: 46ch;
  z-index: 1;
  text-align: left;
}

.banner-content--br {
  left: auto;
  right: clamp(24px, 5vw, 72px);
  text-align: right;
  display: grid;
  justify-items: end; /* button aligns with text */
}

.banner-content--ctr {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 4vh, 40px);  /* ↓ moves the text+button lower */
  transform: translateX(-50%);
  text-align: center;
  display: grid;
  justify-items: center;
  z-index: 3;
  row-gap: .2rem;
}

.banner-content--ctr .lead {
  margin: 0 0 0.15rem;      /* almost no bottom margin under the text */
}

/* just in case the button has a top margin somewhere else */
.banner-content--ctr .btn-cta {
  margin-top: 0;
}

/* subtle dark veil for legibility */
.banner-full::before{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to left,  rgba(0,0,0,.45), rgba(0,0,0,0) 60%),
    linear-gradient(to top,   rgba(0,0,0,.30), rgba(0,0,0,0) 55%);
}


.cars-index-hero {
  margin: 24px 0 32px;   /* space above/below the image */
}

.cars-index-hero img {
  display: block;
  width: 100%;           /* match the container width */
  height: auto;          /* no forced tallness */
  object-fit: cover;     /* safe if the container narrows */
  border-radius: 8px;    /* optional: can set to 0 if you hate it */
}
/* overlay that centers the cards group */
.cars-hero-cards {
  position: absolute;
  inset: 0;                       /* fill the whole hero */
  display: flex;
  justify-content: center;        /* horizontally center */
  align-items: flex-start;                         /*start at top */
  padding: 200px;    /* top padding moves cards down */
}


/* base state: cards are hidden + offset sideways */
.cars-hero-cards .cars-index-card {
  opacity: 0;
  transform: translateX(var(--slide-offset, 0));
  transition:
    opacity 900ms ease-out,
    transform 900ms ease-out;
}

/* left card slides in from the left */
.cars-hero-cards .cars-index-card:nth-child(1) {
  --slide-offset: -140px;
}

/* right card slides in from the right */
.cars-hero-cards .cars-index-card:nth-child(2) {
  --slide-offset: 140px;
}

/* when .is-visible gets added by your JS */
.cars-hero-cards.is-visible .cars-index-card {
  opacity: 1;
  transform: translateX(0);
}

.cars-index-label{
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #e5e7eb;
  opacity: .9;
  align-self: center;
}

/* ...your existing .cars-index-card, .cars-index-thumb, etc... */

.cars-index-btn{
  width: auto;
  display: flex;
  justify-content: center;
  margin-top: 100px;
}


/* Banner mobile layout */
@media (max-width: 720px){

  /* --- TITLE stays top-left, but bigger + spaced down --- */
  .banner-title{
    top: clamp(18px, 6vw, 32px);     /* moved DOWN on mobile */
    left: clamp(12px, 4vw, 24px);   /* still left-aligned */
    transform: none !important;
    text-align: left !important;
    white-space: normal;
  }

  /* If your title is an h1/h2 inside banner-title, bump its size */
  .banner-title h1,
  .banner-title h2{
    font-size: clamp(32px, 9vw, 48px);   /* bigger + responsive */
    line-height: 1.1;
  }

  /* Make the banner lead text NOT tiny on phones */
  .index-banner .lead{
    font-size: clamp(15px, 4vw, 18px);
    text-align: center;
  }

  /* Center ALL banner content blocks on mobile */
  .banner-content,
  .banner-content--tl,
  .banner-content--br,
  .banner-content--ctr,
  .banner-content-index{
    left: 50%;
    right: auto;
    top: auto;
    bottom: clamp(20px, 8vw, 42px);
    transform: translateX(-50%);
    max-width: min(36rem, 90vw);
    text-align: center;
    display: grid;
    justify-items: center;
    row-gap: .35rem;
  }
}




/* CTA button (only the button is clickable) */
.btn-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 22px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius:24px;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  /*transform: skew(30deg);*/
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-cta:hover,
.btn-cta:focus-visible{
  background: #c80000;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0,0,0,.24);
}

@media (max-width: 640px){
  .cars-cta-title{ top: calc(env(safe-area-inset-top) + 32px);}
}

.cars-cta-btn{
  position: absolute;
  left:50%;
  bottom: clamp(24px, 6vw, 56px);
  transform: translateX(-50%);
  z-index: 2;
}
/* layout tweak for this banner only */
/* RIGHT COLUMN: position + width */
.banner-content-right{
  position: absolute;

  /* kill the left value from .banner-content */
  left: auto;

  /* anchor to the right half and center vertically */
  right: clamp(40px, 7vw, 90px);
  top: 42%;
  transform: translateY(-50%);

  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.2rem;
}




/* content block sitting ON the hero image */
.banner-content--cars-index{
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 3vh, 20px);
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;          /* center text, cards, and button */
  gap: 14px;

  width: 100%;
  text-align: center;
  z-index: 10;
}












/* cards for car + racing display on index */


/* column of favorite cars + CTA */
.cars-index {
  display: flex;
  flex-direction: row;      /* row instead of column */
  flex-wrap: nowrap;        /* keep them side-by-side */
  gap: 125px;                /* small gap between the two cards */
  justify-content: center;  /* center pair under the text */
  align-items: stretch;
  margin-top: 12px;
  margin-bottom: 50px;
}

@media(min-width: 1600px){
  .cars-index {
    gap: 170px;
  }
}
/* tiny label above the stack */
.cars-index-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #111827;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.82),
    rgba(255, 255, 255, 0.60)
  );
}
/* BIG VERTICAL CARDS ON HERO */
.cars-index-card {
  flex: 0 0 min(36vw, clamp(480px, 30vw, 600px));                /* width of each card; tweak 34–38vw */

  border-radius: 2px;
  background: rgba(255,255,255, .95);
  overflow: hidden;               /* image + body share same radius */
  display: flex;
  flex-direction: column;

  border:0 solid transparent;  /* for hover outline */
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(15, 23, 42, 0.06);

  transition:
    transform 160ms ease-out,
    box-shadow 160ms ease-out,
    background-color 160ms ease-out;
  cursor: pointer;
  z-index: 1;
}
/* transitions for js*/

.cars-index-card {
  position: relative;
}

.cars-index-inner {
  position: relative;
  z-index: 1;
}

/* clone sits on top and fades out more slowly */
.cars-index-inner-clone {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity 420ms ease-out; /* ⬅ slower + softer */
}

.card-margin {
  margin-top:20px;
}

  .cars-index-card:hover {
  transform: translateY(-4px);
  border-color: #ff1515;          /* your red accent */
  box-shadow:
    0 22px 46px rgba(15, 23, 42, 0.45),
    0 0 0 1px rgba(15, 23, 42, 0.18);
}

/* thumbnail for cards */
.cars-index-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden; /* clip to rounded corners */
}

.cars-index-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* title for the cards on index page*/
.cars-index-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;      /* like “ORIGINAL” in the example */
  margin: 20px 0 4px;
  color: #111827;
}

.cars-index-meta {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563;
}

/* footer bar at bottom of card */
.cars-index-footer{
  margin-top: auto;
  padding: 10px 26px 14px;
  border-top: 1px solid rgba(148,163,184,0.35);

  display: flex;
  justify-content: center;   /* button to the right; use center if you prefer */
}

/* small pill-style link */
.cars-index-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;

  background: #111827;
  color: #ffffff;
  transition: background-color 140ms ease-out, transform 140ms ease-out;
}

.cars-index-link:hover{
  background: #ff1515;        /* your red accent on hover */
  transform: translateY(-1px);
}

/* tiny tags inside cards */
.cars-index-tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cars-index-tag{
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.7);
  font-size: 0.7rem;
  color: #111827;
  opacity: .95;
}

/* specs block inside card */
.cars-index-specs{
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(148,163,184,0.45); /* subtle divider */
  display: grid;
  row-gap: 8px;
}

.cars-index-specs-title{
  /* pull the banner out to card edges */
  margin: 16px -10px 0;         /* -26px matches the side padding above */
  padding: 7px 26px 6px;

  background: #f3f4f6;          /* light grey strip */
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;

  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-align: left;
  color: #6b7280;
}

/* each row in the specs grid */
.cars-index-spec-row{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  column-gap: 16px;
  align-items: baseline;
}

.cars-index-spec-row dt{
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #6b7280;
}

.cars-index-spec-row dd{
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: #111827;
}



/* mobile: align left, full-width allowed */
@media (max-width: 800px){
  .banner-content--cars-index{
    align-items: flex-start;
  }
  .cars-index-faves{
    max-width: 100%;
  }
  .cars-index-btn{
    align-self: flex-start;
  }
}


/* 2-card layout: keep them centered, not stretched edge-to-edge */
.index-cards-grid--two {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cars-hero-cards .cars-index {text-align: center}/* card fixes*/



/* 3-card layout for Racing only */
.cars-index--three{
  display: grid;                  /* override flex */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(45px, 4.3vw, 90px);

  margin-top: 24px;
  justify-items: stretch;
}

/* Let each card fill its column instead of fixed 36vw/480px */
.cars-index--three .cars-index-card{
  flex: 0 0 min(28vw, 420px);                  /* ignore the flex sizing */
}

/* Ensure the inner wrapper stretches to full height */
.cars-index--three .cars-index-inner{
  height: 100%;
  display: flex;
  flex-direction: column;
}
.cars-index--three .cars-index-footer{
  margin-top: auto;               /* button sticks to bottom */
}



/* Small screens: stack */
@media (max-width: 1100px){
  .cars-index--three{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  .cars-index {
    grid-template-columns: 1fr;
  }
}


.index-page-body--racing .container{
  max-width: 1450px;              /* wider than the default 1120px */
}

@media (min-width: 1600px){
  .index-page-body--racing .container{
    max-width: 1700px;
  }
}



.hero-title-block--cars{
  position: absolute;
  bottom: clamp(32px, 8vh, 72px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffffff;
  z-index: 2;
  max-width: 720px;
  padding: 0 1.25rem;
  opacity: .9;

}

.hero-title--cars{
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  text-shadow:
    0 6px 22px rgba(0,0,0,0.55),
    0 0 2px rgba(0,0,0,0.45);
}



/* white body container */
.section-header {
  text-align: left;
  margin: 12px 0 16px;
}

/*first section under hero styling*/







/* grid for the cards */
.index-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* force a nice 2-up layout on wider screens */
.index-cards-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

/* --- CARD BASE: no inner padding, let image touch edges --- */
.index-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.10),
    0 1px 2px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);

  padding: 0;               /* remove inner padding */
  overflow: hidden;         /* card corners crop the image */
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.index-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

/* IMAGE: full width, pinned to the top & sides */
.index-card__img {
  display: block;
  width: 100%;
  height: 190px;            /* tweak height as you like */
  object-fit: cover;
  margin: 0;                /* kill any default gap */
}

/* TEXT AREA: add padding only around the content */
.index-card h3,
.index-card p,
.index-card__link {
  padding: 0 22px;          /* left/right padding only */
}

/* fine-tune vertical spacing */
.index-card h3 {
  margin: 14px 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111827;
}

.index-card p {
  margin: 0 0 14px;
  font-size: 0.96rem;
  line-height: 1.5;
  color: #4b5563;
}

.index-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff1515;
  text-decoration: none;
  margin-bottom: 18px;
}

.index-card__link::after {
  content: "›";
  font-size: 1.1rem;
  transform: translateY(1px);
}






.page-body {
  position: relative;
  z-index: 0;
  margin-top: 0;
  padding: 28px 0 40px;
  background: white;
  width: 100%;/*100% leaves margins*/
 /* box-shadow: 0 -4px 8px rgba(0,0,0,0.08); ( need to add elsewhere) */
  border-radius: 0;
   /* subtle separation from hero */
}

.page-body--tint {
  background: var(--tint);
}


/* page body manipulators */
.page-body--flush {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.page-body--tight {
  margin-top: clamp(12px, 2vw, 24px);   /* smaller than the global 80px */
}
.car-titlebar + .page-body { margin-top: 0; padding-top: 0; }
.page-body--flush .car-detail { padding-top: 0; }
.page-body--flush .car-detail { padding-bottom: 0; }
.page-body--flush + .page-body--tight { margin-top: 0; }



















/*cars page */





/*container for pages*/
.container {/* size cards with max width*/
  max-width: 1240px;/* header width*/
  margin: 0 auto;
  padding: 0 16px;
}
@media(min-width: 1200px){
  .container {
    max-width: 1440px;
  }
}

@media(min-width: 1700px){
  .container {
    max-width: 1700px;
  }
}



.car-titlebar{
  text-align: center;
  margin: 0 0 clamp(18px, 3vw, 32px);   /* space *below* the header block */
  padding-top: 8px;                     /* tiny fence above (kills big gap) */
  position: relative;
}

/*hero img strip*/

.cars-hero{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 60vh;  /* shorter than racing; tweak here */
  margin-bottom: 0;
  overflow: hidden;                        /* broader support than clip */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

/* background image */
.cars-hero-img{
  position: absolute; inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);                /* avoids iOS repaint jank */
}


/*subtitle*/
.cars-page-title{
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  color: rgba(var(--white-rgb), .94);
  font: 700 clamp(30px, 5vw, 120px)/1.02 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: -0.01em;
  text-align: center;
  text-shadow:
    0 2px 6px rgba(0,0,0,.55),
    0 0 1px rgba(0,0,0,.35);
  mix-blend-mode: normal;
  z-index: 5;
  top: 40px;
}
/* ensure no decorative line is left over */
.cars-page-title::after{ content:none; }

@media (max-width: 720px){
  .cars-page-title{
    font-size: clamp(38px, 9vw, 56px);  /* balanced + readable */
    top: clamp(18px, 5vw, 28px);
    padding: 0 14px;               /* prevent edge collisions */
  }
}
/* Centered chip with a hairline behind it */
.cars-intro{
  position: relative;
  margin: 10px 0 6px;
  text-align: center;
}
.cars-intro::before{
  content:"";
  position:absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,.08), transparent);
  pointer-events:none;
}
.cars-intro p{
  display: inline-block;
  position: relative;
  margin: 0;
  padding: .35rem .8rem;
  font: 700 clamp(16px,1.4vw,18px)/1.1 system-ui, sans-serif;
  color: #111;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
/* tighten gap to grid below the intro */
.cars-intro + .page-body{ margin-top: clamp(6px, 1.4vw, 12px); }

/* keep it compact, top-left */
.car-filter{
  display:inline-block;
  margin:6px 0;
}

/* track = bright red */
.mode-toggle{
  position:relative;
  width: 220px;              /* tweak size */
  height: 36px;
  padding: 4px;              /* thin red gutter */
  border:0;
  border-radius:999px;
  background:#ff1a1a;        /* bright red */
  cursor:pointer;
  outline:none;
  box-shadow:none;
  margin-bottom: 10px;
  isolation:isolate;         /* keep layers clean */
}
.mode-toggle * { pointer-events: none; }


/* kill any global blending/outlines */
.mode-toggle, .mode-toggle *{
  mix-blend-mode: normal !important;
  border: 0 !important;
}

/* track labels */
.track-label{
  position:absolute;
  top:50%; transform:translateY(-50%);
  font: 700 .9rem/1 system-ui, sans-serif;
  color:#fff; opacity:.95;
  pointer-events:none;
}
.track-left{ left:14px; }
.track-right{ right:14px; }

/* WHITE pill = the selected side (always white) */
.toggle-thumb{
  position:absolute;
  inset:4px;
  width: calc(50% - 4px);
  border-radius:999px;
  background:#ffffff !important;   /* force pure white */
  z-index: 2;                       /* above everything */
  display:grid; place-items:center;
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 1px 3px rgba(0,0,0,.16);  /* soft shadow, NOT outline */
}

/* thumb label (selected text) */
.thumb-label{
  font: 800 .9rem/1 system-ui, sans-serif;
  color:#111;
  white-space:nowrap;
}

/* slide positions */
.mode-toggle.is-race .toggle-thumb{ transform: translateX(0%); }
.mode-toggle.is-4x4  .toggle-thumb{ transform: translateX(100%); }

/* hide the track label UNDER the pill so red doesn't show through */
.mode-toggle.is-race .track-left{ opacity:0; }
.mode-toggle.is-4x4  .track-right{ opacity:0; }





.cars-section {
  position: relative;
}

/* left rail */
.cars-section::before,
.cars-section::after {
  content: "";
  position: absolute;
  top: 120px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.08) 20%,
    rgba(0,0,0,0.12) 50%,
    rgba(0,0,0,0.08) 80%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
}

.cars-section::before {
  left: clamp(40px, 6vw, 80px);     /* near left card edge */
}

.cars-section::after {
  right: clamp(40px, 6vw, 80px);    /* near right card edge */
}





.cars-grid{/*cars page cards*/
  list-style: none;
  padding: 0;
  margin-top: 0;
  display:grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 40px);
  row-gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}
@media (max-width: 900px){
  .cars-grid{ grid-template-columns: 1fr; }
}

.car-card{
  background: #fff;
  border-radius: 0;
  overflow: visible;
  position: relative;
  padding-bottom:0;
  box-shadow:
  0 18px 40px rgba(15, 23, 42, 0.35),
  0 0 0 1px rgba(15, 23, 42, 0.06);
  /* border: 2px solid rgba(0, 0, 0, .5); optional border */
  /*0 0 0 1px rgba(254, 0, 0, .66);*/
  transition: transform .2s ease, box-shadow .2s ease;
}


.car-card::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background:
    /* soft shadow on top edge of the strip */
    linear-gradient(
      to bottom,
      rgba(0,0,0,.22),
      rgba(0,0,0,0) 60%
    ) left / 65% 100% no-repeat,  /* ⬅ width ~ where the wedge starts */

      /* base red */
    var(--accent);
  z-index: 0;                  /* above the red panel if needed */
  pointer-events: none;
  /* border-radius: 0 0 8px 8px;  add if your card has rounded corners */
}



.car-card .card-link{
  position: relative;
  display:block;
  height:100%;
  text-decoration:none;
  color:inherit;
}

.car-card img{
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.car-card .card-content{
  position: relative;
  left: 0; right: 0; bottom: 0;
  margin-top:0;/*shift bar over img*/
  padding: 10px 18px;
  display : flex;
  align-items: center;
  flex-wrap: nowrap;
  background:#fff;
}

.car-card .card-content > *{/*text work around*/
  position: relative;
  z-index: 2;
}

.car-card .card-content::after{
  content:"";
  position:absolute;
  inset: 0;
  z-index: 1;
  top: 8px;
  /*bottom: 8px;/* remove?*/
  background:
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,0) 75%) top/100% 12px no-repeat,/*shadow right of angle*/
    /*linear-gradient(to top, rgba(0,0,0,.25), rgba(0,0,0,0) 75%) bottom/100% 12px no-repeat,*/
    var(--accent);
  clip-path: polygon(
    70% 0%,   /* top cut */
    100% 0%,  /* top-right */
    100% 100%,/* bottom-right */
    62% 100%  /* bottom cut */
  );
}

.car-card .card-content::before{/*diag shadow*/
  content:"";
  position:absolute;
  left:0; right:0; bottom: 0px; top: 8px;
  pointer-events:none;
  overflow: visible;
  z-index:2;                           /* above red, below white */

  clip-path: polygon(
    70% 0%,   /* seam top */
    72% 0%,   /* a bit inside red at top   */
    64% 100%, /* a bit inside red at bottom*/
    62% 100%  /* seam bottom */
  );

  background: linear-gradient(
    -45deg,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,.22) 2px
  );


  /* helps the shadow blend into the red fill without a hard boundary */
  mix-blend-mode: multiply;
  opacity:.5;                              /* strength of the seam */
}


.car-card .card-content h3{
  margin: 0;
  font-size: 30px;  /* slightly smaller */
  font-weight: 700;
  letter-spacing: 0.03em;                    /* add some tracking */
  color: #111111;
  transform: translateY(-5px);
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.car-card .meta{
  margin: 0 0 0 12px;
  flex: 0 0 auto;
  transform: translateY(3px);
  white-space: nowrap;
  text-align: right;
  font-size: clamp(.85rem, 1.6vw, .95rem);
  font-weight: 700;
  text-shadow:
    0 2px 6px rgba(0,0,0,.55),
    0 0 1px rgba(0,0,0,.35);
  color: #fff;
}

@media (hover:hover){
  .car-card:hover{
    transform: translateY(-4px);
    border-color: #ff1515;
    box-shadow:
      0 26px 70px rgba(15, 23, 42, 0.60),
      0 0 0 1px rgba(15, 23, 42, 0.22);
  }
}








/* car page work arounds*/
/* center the section headings like on home */
.section-header--center{ text-align: center; }
.section-header--center .header-underline{ display: inline-block; }

/* centered car page title (single class as requested) */


.nowrap{ white-space: nowrap; }

.nowrap{ white-space: nowrap; }


.carousel-title-bar{
  position: relative;
  height: 56px;
  z-index: 90;                 /* above stage/arrows */
  pointer-events: none;          /* don’t block clicks */
  display: flex; align-items: center; justify-content: center;

  background: linear-gradient(180deg, rgba(0,0,0,0.72), rgba(0,0,0,0.28));
  border-bottom: 1px solid rgba(255,255,255,0.14);
}






/* indv car display*/


.car-gallery{
  width: 100vw;
  position: relative;
  margin-inline:auto;
  display:grid;
  grid-template-rows: auto auto;
  min-height:0;
  background:linear-gradient(180deg, #0b0b0c 0%, #0f1012 40%, #0b0b0c 100%);
}
@media (max-width: 780px) {
  .car-gallery{
    margin-top: var(--nav-h);
  }
}



/* Cars page slideshow code*/




.stage{
  padding-left: var(--stage-edge);
  padding-right: var(--stage-edge);
  position:relative;
  width: 100%;
  height: auto;
  max-height: calc(var(--stage-max) - var(--thumb-strip-h, 0px));
  overflow:hidden;
  background:#000;
  display:grid;
  place-items:center;
  isolation:isolate;
}
.stage-media{
  position: relative;
  z-index: 1;
  width:100%;
  height: auto;
  aspect-ratio: 16/9;
  max-height: calc(var(--stage-max) - var(--thumb-strip-h, 0px));
  object-fit:contain;
  object-position:center;
  display:block;
  background: #000;
  user-select:none; -webkit-user-drag:none;
}
.stage video.stage-media{ background:#000; }

.stage::before{
  content: "";
  position: absolute;
  inset: -4%;
  background: var(--stage-bg, none) center / cover no-repeat;
  filter: blur(28px) brightness(.6) saturate(1.1);
  transform: scale(1.08);
  z-index: 0;
}
/* edge fade */
.stage::after{
  content:""; position:absolute; inset:auto 0 0 0; height:28px;
  background:linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.55));
  pointer-events:none;
}

/* can use if needed*/
.stage-title{
  position:absolute; inset:24px auto auto 24px;
  padding:6px 10px; border-radius:999px;
  background:rgba(0,0,0,.45); backdrop-filter:saturate(140%) blur(6px);
  box-shadow:var(--shadow);
  font-size:14px; color:var(--text);
}

.counter{
  position:absolute; right:16px; bottom:16px; z-index:3;
  font-weight:600; font-size:14px;
  color:#fff; background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px) saturate(140%);
  border-radius:999px; padding:6px 10px; box-shadow:var(--shadow);
}

.nav-btn{
  position:absolute;
  inset:0 auto 0 0;
  width:var(--stage-edge);
  display:grid;
  place-items:center;
  color:#fff;
  border:0;
  cursor:pointer;
  z-index:3;
  background: none;
}
.nav-btn.next {
  inset: 0 0 0 auto;
}

.nav-btn::before{
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px) brightness(.6);
  -webkit-backdrop-filter: blur(8px) brightness(.9);
  background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0));
  border-left: 1px solid rgba(255,255,255,0.06);
}
.nav-btn.next::before{
  background: linear-gradient(270deg, rgba(0,0,0,0.35), rgba(0,0,0,0));
  border-left: 0;
  border-right:1px solid rgba(255,255,255,0.06);
}

.nav-btn:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}
.nav-btn svg{
  width:22px;
  height:22px;
  z-index: 1;
}

*, *::before, *::after { box-sizing: border-box; }
/* ---------- Thumbnail strip ---------- */
.thumbs{
  background:var(--panel);
  padding: 2px 6px;

  border-top:1px solid #1b1c1f;
  position:relative;
  overflow:hidden;
}
.thumb-rail{
  display:flex;
  justify-content: center;
  gap:8px;
  align-items:center;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -ms-overflow-style: none;
  padding:4px calc(var(--rail-btn-w)+ 8px);
  min-height: calc(clamp(72px, 7vh, 104px) + 8px);
  scrollbar-gutter: stable both-edges;
    max-width: calc(100% - 90px); /* leaves room for both buttons */
    margin-left: auto;
    margin-right: auto;

}
.thumb-rail::-webkit-scrollbar {
  display: none;
}
.thumb{
  position:relative; flex:0 0 auto; width:auto; height:var(--thumb-h);
  aspect-ratio:16/9;
  border-radius:10px; overflow:hidden;
  scroll-snap-align:start; cursor:pointer;
  border:1px solid #202228; background:#0b0c0e;
}
.thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.thumb[data-type="video"]::after{
  content:"▶"; position:absolute; inset:auto auto 8px 8px;
  font-size:12px; line-height:1; padding:6px 8px; border-radius:999px;
  background:rgba(0,0,0,.6); color:#fff; box-shadow:var(--shadow);
}

.thumb.active{ outline:2px solid var(--accent); outline-offset:2px; }

/* thumb scroll arrows */
.rail-btn{
  position:absolute;
  top:0; bottom: 0;
  width:var(--rail-btn-w);
  display:grid;
  place-items:center;
  background:linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0)); color:#fff;
  border:0;
  cursor:pointer;
  color: #ffffff;
  z-index:2;
}
.rail-btn.prev{ left: 0;}
.rail-btn.next{
  inset:0 0 0 auto;
  background:linear-gradient(270deg, rgba(0,0,0,.35), rgba(0,0,0,0));
}
.rail-btn svg{ width:18px; height:18px; }

/* ---------- Responsive niceties ---------- */
@media (max-width: 720px){

  /* Remove desktop side gutters so image fills width */
  .stage{
    --stage-edge: 0px;
    padding-left: 0;
    padding-right: 0;
  }

  /* --- Stage arrows: completely hidden on mobile --- */
  .nav-btn{
    display: none !important;
  }

  /* --- Thumbnail rail arrows become the main prev/next --- */
  .thumb-rail{
    padding: 4px 42px; /* space for arrows left/right */
  }

  /* Counter moves up a bit to avoid overlapping */
  .counter{
    right: 12px;
    bottom: 12px;
  }
}



/* indv. car specs section*/


.specs-slab{
  background: var(--white);
  position: relative;
  padding: 16px;
  /*box-shadow: 0 6px 12px rgba(0,0,0,.15);*/
  top: 0;
  margin-bottom:0;
  z-index: 4;
}
.specs-slab::before{
  content:"";
  position: absolute;
  inset: 6px;                                /* trims inset from edges */
  /*box-shadow: inset 0 0 0 2px var(--accent); /* thin red trim */
  pointer-events: none;
}

.specs-head{ margin: 4px 6px 14px; }
.specs-title{
  margin: 0;
  justify-content: center;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  color: var(--black);                            /* readable on black */
}

.specs-grid-box{
  /*border: 2px solid var(--accent);*/
  border-radius: 0;
  padding: 12px;
background: var(--white);
  gap: 12px;
  /*box-shadow: 0 6px 22px rgba(0,0,0,.12);*/
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.specs-box{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 140px 1fr;          /* label | value */
  align-items: center;
  gap: 10px 14px;
  /*box-shadow: 0 6px 22px rgba(0,0,0,.12);
  /* sharp edges by default (no radius) */
}

/* labels + values */
.specs-key{ font-weight: 700; color: var(--ink); }
.specs-val{ color: #333; }

/* Responsive columns */
@media (max-width: 980px){
  .specs-grid-box{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .specs-grid-box{ grid-template-columns: 1fr; }
  .specs-box{ grid-template-columns: 130px 1fr; }
}




/* indv cars page body */







/* Container width & spacing */
.feature-sections{
  max-width: 92vw;
  margin: 32px auto;
  padding: 0 2vw;
}
.feature-sections > :last-child { margin-bottom: 0; }/* for other cars section*/

/* Each row: no cards; text flows around floated image */
.story{
  display: flow-root;
  margin: 40px 0 72px;
  overflow: visible; /* contains the float so next section sits properly */
}
.story > h2{/*img format fencing*/
  display: flow-root;
  margin: 0 0 50px;
}
.story > :last-child{ margin-top: 0;
  margin-bottom: 0;}

.story .indent{
  padding-left: 12px;
}

.story h2{/*text header for car page*/
  margin: 0 0 clamp(28px, 2.6vw, 48px);
  font: 800 clamp(32px, 3.6vw, 48px)/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: -0.01em;
  color: #0f1114;                 /* black-ish heading */
}
.story h3{
  margin: 0 0 clamp(24px, 2.2vw, 36px);
  text-align: center;
  font: 800 clamp(32px, 3.6vw, 48px)/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: -0.01em;
  color: #0f1114;
}
.story p{/* text body car page*/
  margin: 0 0 18px 0;
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.65;
  color: #2a2e33;                 /* body text */
  max-width: none;                /* comfortable line length */
}
.story.story--reverse h2{ text-align: right;}
.story.story--reverse .indent{
  padding-left: 0;
  padding-right: 12px;
}

/* Floated images (modest size, text wraps) */
.story img{
  display: block;
  object-fit: cover;
}
.float-right{
  float: right;
  width: min(34%, 420px);
  margin: 65px 0 12px 24px;        /* gap to the left of image */
}
.float-left{
  float: left;
  width: min(34%, 420px);
  margin: 65px 24px 12px 0;        /* gap to the right of image + shift img down at first val */
}

.float-center{
  float: none;
  margin: 4px auto 16px;
}
/* Soft divider between rows (not a card border) */
.rule{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.12), transparent);
  margin: 22px 0 0;
}

@media (max-width: 820px){

  /* mobile layout: stack vertically */
  .story{
    display: flex;
    flex-direction: column;
  }

  /* center ALL story headers on mobile */
  .story h2,
  .story.story--reverse h2,
  .story h3,
  .story.story--reverse h3 {
    order: -1;              /* header always goes above image */
    text-align: center;     /* force center alignment on mobile */
    margin-bottom: 16px;
  }

  /* float images become full-width block elements */
  .float-right,
  .float-left{
    float: none;
    width: 100%;
    margin: 0 0 14px 0;
  }

  .story p{
    max-width: unset;
  }
}



/*other cars carousel css (bottom of indv car page)*/



.carousel-heading{
  text-align: center;
  margin:0 0 16px;
}

.carousel-heading h2{
  margin: 0;
  line-height: 1.1;
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}

.carousel-heading h2::after{
  content: "";
  position: absolute;
  left: 0; right:0; bottom:0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;

}


/* util
.visually-hidden{
  position:absolute!important;
  clip:rect(1px,1px,1px,1px);
  padding:0!important;
  border:0!important;
  height:1px!important;
  width:1px!important;
  overflow:hidden;}

 */

/*carousel for bottom of idv car pages*/
.carousel-panel{
  width: 100%;
  background:
    linear-gradient(to bottom,
    rgba(255,255,255,.25) 0%,
    rgba(255,255,255,.10) 6%,
    rgba(255,255,255,0) 18%),

      /* subtle bottom 'floor' reflection glow */
    radial-gradient(120% 70% at 50% 110%,
    rgba(255,255,255,.10) 0%,
    rgba(255,255,255,0) 60%),

      /* vignette edges & overall darkening */
    radial-gradient(120% 100% at 50% 0%,
    rgba(0,0,0,.30) 0%,
    rgba(0,0,0,.30) 35%,
    rgba(0,0,0,.45) 100%),
    linear-gradient(to bottom,
    rgba(0,0,0,.20) 0%,
    rgba(0,0,0,.55) 60%,
    rgba(0,0,0,.80) 100%);
  color: var(--white);
  border-radius: 0;
  padding: 25px 25px;
  /*padding: 0 clamp(72px, 6vw, 120px); padding top bottom, left right*/
  margin-bottom: 60px;
  position: relative;
  overflow: visible;
}

.carousel{
  position: relative;
  width: 100%;
  overflow: visible;
  max-width: none;
  z-index: 1; /* above background */
  margin: 0 auto;
}
.carousel-viewport{
  width: 100%;
  overflow: hidden;
  display: block;
  height: auto
}

.carousel-track{
  display:flex;
  width: 100%;
  gap:16px;
  margin:0;
  padding: 0;
  list-style:none;
  transition: transform .35s ease;
  will-change: transform;
}
/* 3 visible desktop / 2 tablet / 1 mobile */

.carousel-card{
  flex: 0 0 calc((100% - 32px)/3);
  background:#fff;
  border-radius: 0;
  overflow:hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
  display: flex;
  flex-direction: column;
  /*transition: transform .35s ease, filter .35s ease, opacity .35s, box-shadow .35s;*/
  transform: none
}
.carousel-card.is-side{
  transform: scale(.92);
  filter: grayscale(.6) brightness(.92);
  opacity: .75;
  z-index: -1;
}
.carousel-card.is-center{
  transform: scale(1.20);
  filter: none;
  opacity: 1;
  z-index: 2;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.carousel-card.is-hidden{
  opacity: .35;
  filter: grayscale(.9) brightness(.85);
}
.carousel-card img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.card-link{ display:block; text-decoration:none; color:inherit; }

/* card content for cars page*/
.card-content{
  padding: 0;
  text-align: left;
  background: #fff;
}

.card-content h4{
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}
@media (max-width: 900px){.carousel-card{
  flex-basis: calc((100% - 16px)/2);
}
}
@media (max-width: 720px){.carousel-card {
  flex-basis: 100%;
}
}

/* arrows */
.carousel-nav{
  position:absolute;
  top:50%;
  translate:0 -50%;
  width:44px;
  height:44px;
  border:none;
  border-radius:50%;
  background: rgba(0,0,0,.6);
  color:#fff;
  font-size:20px;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: background .2s ease, transform .2s ease;
  z-index: 5;
}
.carousel-nav:hover{
  background: rgba(0,0,0,.75);
  transform: translateY(0%) scale(1.10);
}
.carousel-nav:disabled{ opacity:.35; cursor: default; }
.carousel-nav.prev{ left: -85px; }
.carousel-nav.next{ right: -85px; }


/*not used*/

.carousel-title-bar{
  position: relative;
  height: 56px;
  z-index: 90;                 /* above stage/arrows */
  pointer-events: none;          /* don’t block clicks */
  display: flex; align-items: center; justify-content: center;

  background: linear-gradient(180deg, rgba(0,0,0,0.72), rgba(0,0,0,0.28));
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.carousel-title-bar h2{
  margin: 0;
  color: #ffffff;
  font: 800 24px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: calc(100% - 32px);
}

/* just in case your .stage has a high z-index from earlier */
.stage { position: relative; z-index: 1; }

@media (max-width: 640px){
  .carousel-title-bar{ height: 46px; }
  .carousel-title-bar h2{ font-size: 20px; }
}



















/* racing page styling */

.racing-hero{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);     /* edge-to-edge */
  margin-right: calc(50% - 50vw);
  min-height: 60vh;
  margin-bottom: 0;
  overflow: clip;
  pointer-events: none;
}

html { scroll-behavior: smooth; }

/* tighter top spacing */
.pill-nav{
  max-width: 1200px;
  margin: 0 auto;     /* ↓ was ~10/14; shrink top/bottom */
  padding: clamp(8px, 1.2vw, 14px) 6px; /* top/bottom even spacing for pills + 6px space from cont edge. */
  display: flex;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 22px);
}

/* hover = accent color */
.pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border: 1px solid #e6e8ee;
  border-radius: 9999px;
  background: #fff;
  color: #111;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.pill:hover,
.pill:focus-visible{
  background: var(--accent, #e11d2e);
  border-color: var(--accent, #e11d2e);
  color: #fff;
  box-shadow: 0 6px 16px rgba(225, 29, 46, .18);
}

.pill:active{ transform: translateY(1px); }


/* grey bar */
.pill-sep{
  height: 1px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: clamp(14px, 2.4vw, 24px);

  background: linear-gradient(
    to right,
    transparent 6%,
    rgba(0,0,0,.07) 6% 94%,
    transparent 94%
  );
}


.racing-hero-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;                 /* fill without distortion */
  background: fixed;
  object-position: center;           /* tweak per section if needed */
}




.racing-title{
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  color: rgba(var(--white-rgb), .98);
  font: 700 clamp(30px, 5vw, 120px)/1.02 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: -0.01em;
  text-align: center;
  text-shadow:
    0 2px 6px rgba(0,0,0,.55),
    0 0 1px rgba(0,0,0,.35);
  /* subtle “pop” on very bright frames */
  mix-blend-mode: normal;
  z-index: 50;
  top: 40px;
}


@media (max-width: 720px) {
  .racing-title {
    font-size: clamp(38px, 9vw, 56px); /* balanced + readable */
    top: clamp(18px, 5vw, 28px);
    padding: 0 14px;
  }
}

/* Racing container*/
.racing-container{
  width: min(1080px, calc(100% - 32px));   /* laptop + readable */
  margin-inline: auto;
}
.racing-container--wide{
  width: min(1400px, calc(100% - 32px)); /* “in the page” */
  margin-inline: auto;
}


/* laptop / 125% 1080p */
@media (min-width: 1200px){
  .racing-container{
    width: min(1180px, calc(100% - 40px));/* confusing stuff for consistency overall */
  }
}

/* anything over 125% 1080p */
@media (min-width: 1600px){
  .racing-container {
    width: min(1320px, calc(100% - 56px));
  }
  .racing-container--wide{
    width: min(1760px, calc(100% - 40px));
  }
}




/* vertical rhythm */

.racing-section{
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(36px, 5vw, 80px);
  /*margin-top: clamp(32px, 6vw, 64px);*/
}

.racing-section--top{
  padding-top: clamp(18px, 2.6vw, 34px);
  padding-bottom: clamp(24px, 4.5vw, 56px);
}

.racing-section--grey{
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom:clamp(36px, 5vw, 80px);
  /*margin-top: clamp(32px, 6vw, 64px);*/
  background: rgba(15, 23, 42, 0.02);
  border-block: 1px solid rgba(15, 23, 42, 0.05);
  position: relative;
}


.racing-section-short--grey{
  padding-block: clamp(20px, 3.5vw, 40px);
  background: rgba(15, 23, 42, 0.02);
  border-block: 1px solid rgba(15, 23, 42, 0.05);
}


.racing-section-short--grey p{
  margin: 0;
  transform: translateY(-5px);/*looked low*/
}



/* spacing between header and content */
.racing-section-inside{
  margin-bottom: clamp(36px, 5vw, 80px);
}



.racing-kicker{
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding-left: 5px;
}

.racing-subtitle {
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #0f1114;
  margin: 0;
  padding: 0;
}

/* gen racing text block*/
.racing-body{
  /* make sure it's a normal block, not positioned or flexed */
  display: block;
  position: static;
  left: auto;
  transform: none;
  text-align: initial;
}

.racing-body p{
  margin: 0;
  text-align: left;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
  font-weight: 400;
  color: #2a2a2a;
  text-wrap: auto;          /* nicer line breaks*/
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


/* wrapper for "the track" section */
.img-container{
  margin-top: clamp(16px, 2.6vw, 28px);
  margin-bottom: clamp(36px, 5vw, 80px);
  text-align: center;
}


.track-img{
  display: block;
  width: min(820px, 55vw); /* min 420px, prefer 55% viewport, max 820px */
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 12px;
  border: 1px solid var(--line, #e5e7eb);
  box-shadow:
    0 12px 28px rgba(0,0,0,.14),
    0 2px 6px rgba(0,0,0,.08);
}



/* container for results table*/
.results-container{
  max-width: 1200px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 5vw, 80px);
  padding: 0 clamp(16px, 3vw, 24px);
}

/* not needed anymore*/
.results-title{

  background:

    linear-gradient(15deg,
    rgba(255,255,255,.10) 0%,
    rgba(255,255,255,0) 38%),
    linear-gradient(-12deg,
    rgba(255,255,255,.06) 0%,
    rgba(255,255,255,0) 48%),

      /* top highlight toned down */
    linear-gradient(to bottom,
    rgba(255,255,255,.16) 0%,
    rgba(255,255,255,.08) 12%,
    rgba(255,255,255,0) 30%),

      /* floor glow, subtle */
    radial-gradient(120% 70% at 50% 110%,
    rgba(255,255,255,.05) 0%,
    rgba(255,255,255,0) 60%),

      /* horizontal vignette stronger */
    linear-gradient(to right,
    rgba(0,0,0,.30),
    rgba(0,0,0,0) 16%,
    rgba(0,0,0,0) 84%,
    rgba(0,0,0,.30)),

      /* side fall-offs */
    radial-gradient(60% 120% at -10% 50%,
    rgba(0,0,0,.28) 0%,
    rgba(0,0,0,0) 60%),
    radial-gradient(60% 120% at 110% 50%,
    rgba(0,0,0,.28) 0%,
    rgba(0,0,0,0) 60%),

      /* overall vertical darkening stronger */
    linear-gradient(to bottom,
    rgba(0,0,0,.16) 0%,
    rgba(0,0,0,.34) 60%,
    rgba(0,0,0,.48) 100%),
  #555555;

  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.15;
  padding: clamp(14px, 1.8vw, 18px) clamp(16px, 2.4vw, 24px);

  /* thicker frame to match the table outline */
  border: 3px solid #777;
  border-bottom: 0;
  /* subtle lift for readability */
  text-shadow: 0 1px 1px rgba(0,0,0,.6);
}


/* table */
.race-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 3px solid #777;  /* outer border thickness */
  color: var(--ink-soft);
  table-layout: fixed;
  box-shadow: 0 6px 12px rgba(0,0,0,.15);
}

/* header cells */
.race-table thead th{
  background: var(--table-head);
  color: var(--ink);
  font-weight: 700;
  font-size: 30px; /* bigger headers */
  text-align: left;
  padding: clamp(14px, 1.4vw, 18px) clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
}
.race-table thead th:last-child{
  text-align: center;
}
.race-table thead th:first-child{
  text-align: center;
}
.race-table .car-col{
  width: 20ch;
} /* center line adj */

/* body cells */
.race-table tbody td{
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  padding: clamp(14px, 1.4vw, 18px) clamp(16px, 2vw, 24px);
  vertical-align: middle;
}

/* light inner grid lines */
.race-table tbody tr + tr td{ border-top: 1px solid var(--line); }
.race-table td + td,
.race-table th + th{ border-left: 1px solid var(--line); }

/* alignments */

/* highlight fastest */
.fastest{ color: var(--accent); font-weight: 700; }


@media (max-width: 720px){

  .results-container{
    padding-left: 8px;
    padding-right: 8px;
  }

  .race-table{
    table-layout: auto;          /* let columns grow/shrink by content */
  }

  .race-table thead th{
    font-size: 1rem;             /* smaller header text on phones */
    padding: 8px 6px;
    white-space: normal;         /* allow wrapping */
    word-break: break-word;      /* break long words if needed */
  }

  .race-table tbody td{
    font-size: 0.95rem;
    padding: 8px 6px;
  }

  .race-table .car-col{
    width: auto;                 /* don't force car column too wide */
  }
}




/*compare videos section */

.lap-compare{
  max-width: min(1600px, 98vw);
  margin: 0 auto;
  padding: clamp(6px, 1.2vw, 16px) clamp(6px, 1.2vw, 16px) clamp(36px, 5vw, 80px);
}

.lap-compare__title{
  margin:0 0 12px;
  font:800 clamp(22px,2.6vw,32px)/1.1 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; }

.lap-grid{
  display:grid;
  grid-template-columns:1fr; /*single vid*/
  column-gap: clamp(2px, 0.25vw, 8px);
  row-gap: clamp(6px, 1vw,12px);
}

/* SINGLE-VIDEO sizing */
.lap-grid .lap-card{
  max-width: min(960px, 100%); /* single vid sizing*/
  margin-inline: auto;
}

/* switch to 2 col when comparing */
.lap-grid.is-compare{
  grid-template-columns:1fr 1fr;
}

.lap-grid .lap-card:nth-child(2){
  display:none;                           /* hide right video by default */
}

.lap-grid.is-compare .lap-card:nth-child(2){
  display:block;                          /* show in compare mode */
}

@media (max-width: 900px){
  .lap-toolbar{
    grid-template-columns: 1fr;
  }

  /* force single column even in compare mode */
  .lap-grid,
  .lap-grid.is-compare{
    grid-template-columns: 1fr !important;
  }

  /* make each video use full width on mobile */
  .lap-grid .lap-card{
    max-width: 100%;
    margin-inline: 0;
  }
}


.lap-toolbar{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap: 10px;
  margin: 6px 0 12px;
}


.picker { /* select vid picker*/
  position: relative;
  display: inline-flex;            /* center the pill in the grid cell */
  justify-content: center;
  align-items: center;
  /* no width: 100% here → shrink to the select's width */
}

.lap-toolbar .picker{
  justify-self: center;
}
/* select ui */
.picker select{
  display: block;
  min-width: 220px;
  padding: 0.45rem 2.4rem 0.45rem 0.9rem;  /* room for arrow on right */
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font: 500 0.9rem/1.3 var(--font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* dropdown arrow */
.picker::after{
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #4b5563;
  pointer-events: none;
}


.picker select:hover{
  background: #ffffff;
  border-color: #9ca3af;
  box-shadow: 0 0 0 1px rgba(15,23,42,.12);
}

/* focus = strong outline so keyboard users see it */
.picker select:focus{
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(15,23,42,.18);
  background: #ffffff;
}

.sync-controls{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:center;
}

.sync-controls button{
  padding:8px 12px; border:1px solid #d1d5db; border-radius:999px; background:#fff; font-weight:700;
}
.lock{ display:inline-flex; gap:6px; align-items:center; font-weight:600; }

@media (max-width: 900px){
  .lap-toolbar{ grid-template-columns:1fr; }
  .lap-grid{ grid-template-columns:1fr; }
}
.lap-card{
  background:#fff;
  border:1px solid var(--line,#e5e7eb);
  border-radius:0;
  overflow:clip;
  box-shadow:0 8px 28px rgba(0,0,0,.06);
}
.lap-video{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  background:#000;
}
figure { margin: 0; }



/* analysis car logic */

.analysis-card{
  background: transparent;

  border-radius: 0;
  padding: 0;

  margin-top:0; /* spacing between cards */
}


/* card title */

.analysis-card .analysis-subtitle{
  margin: 0 0 18px;
  padding-left: clamp(10px, 1.2vw, 18px);
  padding-top: clamp(10px, 1.2vw, 18px);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  color: #0f1114;
}

.analysis-card-text p{
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.75;
  color: rgba(15,23,42,.82);
  max-width: 70ch; /* stops ultra-wide paragraphs */
}



/* footer wrap up points */

.analysis-summary{
  margin-top: clamp(18px, 2.4vw, 28px);
  padding: clamp(14px, 1.8vw, 20px);
  border-radius: 16px;
  background: rgba(15,23,42,.03);
  border: 1px solid rgba(15,23,42,.06);
}

.analysis-summary-title{
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15,23,42,.75);
}

.analysis-summary-list{
  margin: 0;
  padding-left: 1.1em;
}

.analysis-summary-list li{
  margin: 8px 0;
}



/* 2-column layout inside each analysis card */
.analysis-card-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}


.analysis-card{
  overflow: hidden;
}

/* img on right of cards*/

.figure-right{
  width: 100%;
  margin: 0;
  align-self: center;
}

.figure-right img{
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.figure-right figcaption{
  margin-top: 10px;
  font-size: 0.95rem;
  color: rgba(15,23,42,.65);
  text-align: center;
}


/* large top figure in analysis section */
.analysis-figure{
  position: relative;
}

/* Image = the card */
.analysis-figure > img{
  display: block;
  width: 100%;              /* fill the container */
  max-width: 1100px;        /* optional cap so it doesn’t get too huge */
  height: auto;
  margin-top: 0;
  margin-bottom: 15px;
  margin-inline: auto;      /* center it */
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;      /* match your other cards */
  box-shadow: 0 8px 24px rgba(0,0,0,.12);  /* on the image, not the wrapper */
}




/* optional: if your text column has long words/urls, this prevents pushing the figure */
.analysis-card-text{
  min-width: 0;
}

/* ====== RESPONSIVE (add) ====== */
@media (max-width: 900px){
  .analysis-card-grid{
    grid-template-columns: 1fr;
  }

  .figure-right{
    max-width: 560px;
    margin-inline: auto;
  }
}



/*analysis section*/


.analysis-body{
  /* make sure it's a normal block, not positioned or flexed */
  display: block;
  position: static;
  left: auto;
  transform: none;

  /* true centering of the content box */
  max-width: clamp(680px, 78vw, 1200px);
  margin-inline: auto;          /* centers horizontally */
  padding: clamp(12px, 3vh, 32px) 16px 0;

  text-align: initial;
}

.analysis-body p{
  margin: 0 auto 40px;
  text-align: left;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
  font-weight: 400;
  color: #2a2a2a;
  text-wrap: auto;          /* nicer line breaks*/
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


.analysis-simple{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  font-size: 1.04rem;
  line-height: 1.7;
}

.analysis-subtitle{
  font-size: 45px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
  text-align: left;
  margin: 15px 0 20px -100px;
  /* keep your vertical rhythm */
  padding-left: 0;
  border: 0;

  position: relative;
  /* nudge past the column */
}

/*
  font: 800 clamp(32px, 3.6vw, 48px)/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: -0.01em;
  color: #0f1114;
  max-width: 92vw;
  margin: 32px auto;
  padding: 0 2vw; black-ish heading
   */


@media (min-width: 900px){
  .analysis-subtitle{ left: -24px; }  /* a touch more on desktop */
}


.lap-title {
  display: block;
  max-width: 1100px;
  margin: 10px auto 0;        /* center and add space below */
  text-align: center;
  font: 800 40px/1.2 var(--font-sans, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  color: #111827;
  text-transform: none;
  letter-spacing: -0.02em;
}






/*selector*/

.analysis-toolbar {
  max-width: clamp(680px, 78vw, 1200px);
  margin: 32px auto 8px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.analysis-toolbar__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

/* Panels: only the active one is visible */
.analysis-turn {
  display: none;
}

.analysis-turn.is-active {
  display: block;
}

/* end section one up left 6 up right*/
.getting-quicker{
  max-width: min(1120px, 96vw);
  margin: 72px auto 80px;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* two-column layout: left heading, right cards */
.kt-inner{
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
}

/* left side heading */
.kt-heading .racing-subtitle{
  margin:  -100px 0 10px;
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.getting-intro{
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted, #4b5563);
  max-width: 28ch;
}

/* right side column with vertical accent line */
.kt-right{
  position: relative;
  padding-left: 18px;
  text-align: left;
}

.kt-right::before{
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(239,68,68,0.00),
    rgba(239,68,68,0.9),
    rgba(239,68,68,0.00)
  );
}

/* list styling: stacked "cards" with numbered badges */
.quick-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: takeaway;
}

.quick-list li{
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.04);
  box-shadow:
    0 14px 32px rgba(15,23,42,0.10);
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}

/* numbered red pill */
.quick-list li::before{
  counter-increment: takeaway;
  content: counter(takeaway);
  align-self: flex-start;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(239,68,68,0.55);
}
.quick-title{
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;

  display: block;         /* no flex, no weird layout */
  text-align: left;       /* always left aligned */
}

/* text inside each card */
.quick-list h4{
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;

  /* hard reset layout so other global styles can't fight us */
  display: block;          /* undo any display:flex/or inline-flex */
  text-align: left;        /* kill any text-align:center/right */
  justify-self: start;     /* in the grid cell, hug the left edge */
}

.quick-list p{
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted, #4b5563);
  text-align: left;
}

/* Force text content into the right column of the grid */
.quick-list li > h4,
.quick-list li > p {
  grid-column: 2;
  justify-self: start;
  text-align: left;
}


/* hover effect */
.quick-list li:hover{
  transform: translateY(-1px);
  box-shadow:
    0 18px 36px rgba(15,23,42,0.14);
  border-color: rgba(239,68,68,0.35);
}

/* responsive: stack with no vertical line on small screens */
@media (max-width: 768px){
  .kt-inner{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kt-right{
    padding-left: 0;
  }

  .kt-right::before{
    display: none;
  }
}



/* index 1 code */

.page-section {
  max-width: 1120px;
  margin: 0 auto;
}

.index-section-header{
  text-align: center;
  margin-bottom: 1.8rem;
}

.index-section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.4rem);
  letter-spacing: 0.03em;
}

.section-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.98rem;
  color: #4b5563; /* muted gray */
}

.section-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.98rem;
  color: #111827;
}

/*img in section on new index*/
/* full-bleed image band under "Our Cars" */
.section-hero-img {
  margin: 2rem 0 3rem;
}

/* OPTION A: full width of the content area (no rounding, no shadow) */
.section-hero-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}



/*indv car pages spec under img slideshow classes*/
.specs-footer {
  position: relative;
  isolation: isolate;
  background: #0b0b0d;
  color: #f4f6f8;
  border: var(--line);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

.specs-footer::before{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:80px;
  background: radial-gradient(60% 160% at 50% 0%, rgba(255,255,255,0.08), transparent 70%);
  pointer-events:none;
  z-index:0;
}

.specs-footer__head{
  position: relative;
  z-index: 1;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
}
.specs-footer__title{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
}

.specs-footer__meta{ display:none; }


.specs-footer__grid{
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(6px, .8vw, 10px);
  padding: 6px 14px 8px;
  align-items: center;
  box-sizing: border-box;
  grid-template-columns: repeat(3, 1fr);
}



.specs-tile{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: clamp(6px, .7vw, 8px);
  padding: clamp(6px, 0.7vw, 10px) clamp(8px, 1vw, 12px);
  background: #ffffff;
  min-height: clamp(38px, 4vh, 52px);
  border: 1px solid rgba(0,0,0,0.10);

}
.specs-tile dt{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
  color: #111111;
}
.specs-tile dd{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #333333;
  font-size: clamp(13px, 1vw, 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.parent-card{
  display: flex;
  flex-direction: column;
}
.parent-card > .specs-footer{
  margin-top: auto;
}

/* optional: center the header text */
.specs-footer__head.center { text-align: center; }

/* NO IDEA IF USED*/
/* Reusable black slab with thin red trim */
.slab{
  background: var(--white);
  position: relative;
  padding: 16px;
  box-shadow: 0 6px 12px rgba(0,0,0,.15);
  margin-block: clamp(12px, 2vw, 24px);
  margin-top: 0;
}
.slab::before{
  content:"";
  position:absolute;
  inset:6px;
 /* box-shadow: inset 0 0 0 2px var(--accent);*/
  pointer-events:none;
}
.slab + .slab{ margin-top: 28px; }

.slab-head{ margin: 4px 6px 14px; }
.slab-title{
  margin:0;
  font-weight:500;
  font-size: clamp(22px, 3vw, 34px);
  line-height:1.15;
  color:var(--black);
  letter-spacing:.01em;
}

/* Description card + layout */
.desc-card{
  padding: clamp(24px, 3.5vw, 52px);
  min-block-size: clamp(260px, 40vw, 520px);
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
}
.desc-card::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:3px;
  background: var(--accent);
}

.desc-body{
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(18px, 3vw, 32px);
}
.desc-lead{ margin:0 0 10px; font-weight:600; font-size:1.05rem; color:#222; }
.desc-text{
  margin:.6em 0;
  line-height: 1.65;
  font-size: clamp(18px, 2.1vw, 22px);
  color:#333;
}

.desc-points{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
  align-content:start;
}

.desc-points li{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:10px;
  align-items:start;
}
.bullet{
  inline-size:.9em;
  block-size:.9em;
  background: var(--accent);
  border-radius:50%;
  translate: 0 .3em;
}

/* Mobile */
@media (max-width:900px){
  .desc-body{ grid-template-columns: 1fr; }
}


/* footer*/



/* Footer base */
.site-footer{
  background: #f3f4f6;           /* light grey */
  color: #111;
  border-top: 1px solid #e5e7eb; /* subtle seam */
  margin: 0;
}

/* Inner grid */
.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) 16px;
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: 1.2fr 1fr 1fr; /* brand | contact | social */
  align-items: start;
}
@media (max-width: 900px){
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  .footer-inner{ grid-template-columns: 1fr; }
}

/* Columns */
.footer-col{ min-width: 0; }
.footer-title{
  margin: 0 0 10px;
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: .02em;
}

/* Brand / logo */
.footer-brand .brand-logo{
  width: clamp(120px, 18vw, 180px);
  height: auto;
  display: block;
}
.brand-tag{
  margin-top: 8px;
  color: #444;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Lists & links */
.footer-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.footer-list a{
  color: #111;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0,0,0,.25);
}
.footer-list a:hover{
  color: var(--accent);
  border-color: transparent;
}

/* Socials */
.social-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
}
.social{
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.social svg{ width: 18px; height: 18px; fill: currentColor; }
.social:hover{
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* Copyright bar */
.footer-copy{
  border-top: 1px solid #e5e7eb;
  padding: 12px 16px;
  text-align: center;
  color: #444;
  font-size: 14px;
}
.footer-copy p{
  max-width: 1200px;
  margin: 0 auto;
}

/* Reliable full-width separator (outside the story) */
.section-sep{
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.12), transparent);
  margin: 24px 0 0;
  clear: both; /* guarantees it spans under floats */

}

.section-full {

  width: 100vw;            /* ensures no shortfall on some browsers */
  max-width: 100vw;
  overflow: visible;
}







/* FILMS */


.film { position: relative; }
.film::before{
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1; /* sit above bg, below text if your text is z-index:2 */
}

/* Top + Bottom gradient (black by default) */
.film--tb::before{
  --film-alpha: .38;   /* strength of the fade */
  --film-stop: 60%;    /* where it fades to transparent */

  background:
    linear-gradient(180deg, rgba(0,0,0,var(--film-alpha)), rgba(0,0,0,0) var(--film-stop)),
    linear-gradient(0deg,   rgba(0,0,0,var(--film-alpha)), rgba(0,0,0,0) var(--film-stop));
}


.film--superlight::before{ background: rgba(var(--black-rgb), .08); }
.film--light::before { background: rgba(var(--black-rgb), .18); }
.film--med::before   { background: rgba(var(--black-rgb), .32); }
.film--heavy::before { background: rgba(var(--black-rgb), .50); z-index: 1; }

/* White film (to lift very dark photos) */
.film--white.film--light::before { background: rgba(var(--white-rgb), .18); }
.film--white.film--med::before   { background: rgba(var(--white-rgb), .32); }
.film--white.film--heavy::before { background: rgba(var(--white-rgb), .50); }

/* Directional films (great when text sits on one side) */
.film--left::before   { background: linear-gradient(90deg, rgba(0,0,0,.45), transparent 65%); }
.film--right::before  { background: linear-gradient(270deg, rgba(0,0,0,.45), transparent 65%); }
.film--top::before    { background: linear-gradient(180deg, rgba(0,0,0,.38), transparent 60%); }
.film--bottom::before { background: linear-gradient(0deg,   rgba(0,0,0,.38), transparent 60%); }

















/* part shed*/





















.separator{
  /* full-bleed */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  height: 48px;
  background: var(--paper);       /* default */
}
.separator--black { background: var(--black); }
.separator--accent{ background: var(--accent); }
.separator--tint  { background: var(--tint);   }




/* test fade seperator */
/* edge-to-edge 2px bar */
.section-separator {
  height: 15px;                  /* only as tall as the bar */
  width: 100%;                  /* full viewport width */
  display: block;
  padding: 0;
  margin: 0;                    /* no extra vertical gap */
  border: 0;
}

/* red that turns to black around 25% */
.section-separator--red-to-black {
  background: linear-gradient(
    90deg,
    #ff1515 0%,    /* solid red at the start */
    #000000 35%,   /* hold red until ~35% (around the "u") */
    #000000 55%,   /* transition through dark grey */
      /* fully black by ~70% */
    #000000 100%   /* stay black to the edge */
  );
}
.section-separator--black-to-red{
  background: linear-gradient(
    90deg,
    #000000 0%,
    #000000 35%,
    #000000 55%,
    #ff0000 100%
  );
}

.section-separator--black{
  background: black;
}


/* reflective header section*/



:root {
  --stage-shadow-color: 0 0 0;          /* base shadow color in R G B */
  --stage-reflect-strength: 0.35;       /* reflection opacity */
  --stage-reflect-fade: 70%;            /* where the reflection fades out */
  --stage-floor-width: min(28ch, 90vw); /* “stage” ellipse width */
  --stage-floor-height:12px;
}


.stage-heading {
  position: relative;
  display: block;
  justify-items: center;
  margin-inline: auto;
  vertical-align: top;
  line-height: 1;
  gap: 0.0rem; /* space between text and reflection */
}

/* Main text */
.stage-heading__front {
  display: block;
  line-height: 1;
}

/* Mirrored text */
/*.stage-heading__reflection{
  display: block;
  line-height: 1;
  transform: scaleY(-1);
  opacity: var(--stage-reflect-strength);

 */
/* Works in Chrome/Safari/Edge + quiets IntelliJ */
/*noinspection CssInvalidPropertyValue*/
/*-webkit-mask: linear-gradient(
  to bottom,
  rgba(0,0,0,1) 0%,
  rgba(0,0,0,0) 70%
);
mask: linear-gradient(
  to bottom,
  rgba(0,0,0,1) 0%,
  rgba(0,0,0,0) 70%
);
}
/* “Stage floor” ellipse under the heading */
.stage-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--stage-floor-height) * -0.7);
  width: var(--stage-floor-width);
  height: var(--stage-floor-height);
  background:
    radial-gradient(50% 120% at 50% 0%,
    rgba(var(--stage-shadow-color) / 0.35) 0%,
    rgba(var(--stage-shadow-color) / 0.00) 70%);
  filter: blur(2px);
  pointer-events: none;
}

/* optional: variants */
.stage-heading.stage--dramatic {
  --stage-reflect-strength: 0.55;
  --stage-floor-height: clamp(10px, 1.8vw, 22px);
}
.stage-heading.stage--subtle {
  --stage-reflect-strength: 0.2;
  --stage-floor-height: clamp(6px, 0.8vw, 10px);
}



::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}


/* car page test bg css*/


/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}


.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */


.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }}

