/* Typography
-------------------------------------------------------------- */
@font-face {
  font-family: "BebasNeue";
  src: url("https://raw.githubusercontent.com/10clouds/codepen/tesla-hero-slider/tesla-hero-slider/src/assets/fonts/BebasNeue-Regular.otf");
}
/* Breakpoints
-------------------------------------------------------------- */
/* Media queries
-------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

:root {
  --btn-color: white;
  --car-color: white;
  --bckg-height: 300px;
  --shadow-opacity: 0.2;
  --car-shadow-height: 300px;
}

body {
  background-color: black;
  overflow-x: hidden;
}

ul {
  padding: 0;
  list-style: none;
}

.container {
  max-width: 780px;
  padding: 10px;
  margin: 0 auto;
}
@media only screen and (min-width:768px) {
  .container {
    padding: 0 20px;
  }
}
@media only screen and (min-width:992px) and (max-width:1199px) {
  .container {
    max-width: 1000px;
  }
}
@media only screen and (min-width:1200px) {
  .container {
    max-width: 1200px;
  }
}
@media only screen and (min-width:1800px) {
  .container {
    max-width: 1550px;
  }
}

/* Body, html
-------------------------------------------------------------- */
html {
  font-size: 62.5%;
}

body {
  font-size: 14px;
  font-size: 1.4rem;
  line-height: 22px;
  line-height: 2.2rem;
  font-family: "Helvetica", "Arial", sans-serif;
  color: #fff;
}
@media only screen and (min-width:992px) {
  body {
    font-size: 16px;
    font-size: 1.6rem;
    line-height: 26px;
    line-height: 2.6rem;
  }
}
@media only screen and (min-width:1800px) {
  body {
    font-size: 18px;
    font-size: 1.8rem;
  }
}

/* Headers
-------------------------------------------------------------- */
h1 {
  margin: 0;
  font-size: 5.5rem;
  line-height: 1;
  font-family: "BebasNeue", "Helvetica", "Arial", sans-serif;
  letter-spacing: 0.9px;
  font-weight: 500;
}
@media only screen and (min-width:768px) {
  h1 {
    font-size: 7rem;
  }
}
@media only screen and (min-width:1200px) {
  h1 {
    font-size: 8rem;
  }
}
@media only screen and (min-width:1800px) {
  h1 {
    font-size: 9.2rem;
  }
}

/* Text, Links
-------------------------------------------------------------- */
a {
  text-decoration: none;
  color: #fff;
}

/* Button
-------------------------------------------------------------- */
.button {
  position: relative;
  height: 55px;
  width: 180px;
  background: none;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 300;
  text-align: center;
  border: 0;
  cursor: pointer;
}
@media only screen and (min-width:992px) {
  .button {
    font-size: 1.8rem;
    width: 210px;
  }
}
.button:focus {
  outline: none;
}
.button:hover:before {
  height: 100%;
  opacity: 1;
}
.button:before {
  position: absolute;
  content: "";
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  opacity: 0;
  background-color: var(--btn-color);
  transition: all 0.3s;
  z-index: -1;
}
.button__border {
  position: absolute;
  top: 0;
  left: 0;
  height: 55px;
  width: 180px;
  border: 1px solid var(--btn-color);
  transition: all 0.6s ease-in-out;
}
.button__border:after {
  position: absolute;
  content: "";
  left: 50%;
  top: 50%;
  width: 150%;
  height: 220%;
  opacity: 0.3;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, var(--btn-color) 1%, transparent 80%);
  z-index: -1;
  transition: opacity 0.6s ease-in-out, background 0.6s linear 0.5s;
}
@media only screen and (min-width:992px) {
  .button__border {
    width: 210px;
  }
}
.button__border--enter {
  border: 1px solid transparent;
}
.button__border--enter:after {
  opacity: 0;
  background: transparent;
}
.button__border--exit {
  border: 1px solid transparent;
}
.button__border--exit:after {
  opacity: 0.2;
  background: transparent;
}

/* Header
-------------------------------------------------------------- */
.tesla-header {
  display: flex;
  justify-content: space-between;
  padding: 25px 0;
}
@media only screen and (min-width:1200px) {
  .tesla-header {
    padding: 50px 0 60px;
  }
}
@media only screen and (min-width:1800px) {
  .tesla-header {
    padding: 80px 0;
  }
}
.tesla-header__logo img {
  height: 12.5px;
  width: auto;
}
.tesla-header__brand {
  font-family: "BebasNeue", "Helvetica", "Arial", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 3px;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
}
.tesla-header__nav img {
  height: 20px;
  width: auto;
}

/* Slide Item
-------------------------------------------------------------- */
.tesla-slide {
  position: relative;
  margin-top: 50px;
  width: 100%;
  order: 1;
  /* Slide Item Img
  -------------------------------------------------------------- */
  /* Slide Item Img
  -------------------------------------------------------------- */
}
@media only screen and (min-width:768px) {
  .tesla-slide {
    margin-top: 70px;
  }
}
@media only screen and (min-width:1200px) {
  .tesla-slide {
    margin-top: 0;
    width: calc(100% - 150px);
  }
}
.tesla-slide__img {
  position: absolute;
  overflow: hidden;
  transform: translateX(0) scale(1);
  transition: opacity 0.8s ease-in-out 0.05s, transform 0.8s ease-in-out 0.1s;
}
@media only screen and (max-width:767px) {
  .tesla-slide__img {
    width: 100%;
    transform: none;
    overflow: initial;
  }
}
@media only screen and (min-width:768px) {
  .tesla-slide__img {
    margin-top: 0;
    top: -5%;
    right: -50%;
    z-index: -1;
  }
}
@media only screen and (min-width:992px) {
  .tesla-slide__img {
    top: -35%;
    right: -25%;
  }
}
@media only screen and (min-width:1800px) {
  .tesla-slide__img {
    top: -50%;
    right: -19%;
  }
}
.tesla-slide__img:before {
  position: absolute;
  content: "";
  width: calc(var(--car-shadow-height));
  height: calc(var(--car-shadow-height) * 1.4);
  top: 45%;
  left: 60%;
  transform: translate(-50%, -50%);
  opacity: 0.35;
  background: radial-gradient(ellipse at center, var(--car-color) 10%, transparent 75%);
  transition: opacity 0.5s ease-in 0.3s;
  z-index: 9;
}
@media only screen and (min-width:992px) {
  .tesla-slide__img:before {
    width: calc(var(--car-shadow-height) * 2);
    height: calc(var(--car-shadow-height) * 1.8);
    opacity: 0.4;
  }
}
.tesla-slide__img-floor {
  position: absolute;
  left: 0;
  top: 0;
  transition: all 0.7s ease-in-out 0.4s;
}
.tesla-slide__img-car {
  transition: opacity 0.6s ease-in-out 0.1s;
}
.tesla-slide__img--enter {
  opacity: 0;
  transform: translateX(-5%) scale(1.1);
}
.tesla-slide__img--enter .tesla-slide__img-floor {
  opacity: 0;
}
.tesla-slide__img--enter .tesla-slide__img-car {
  opacity: 0;
}
.tesla-slide__img--enter:before {
  opacity: 0;
}
.animation-back .tesla-slide__img--enter {
  opacity: 0;
  transform: scale(0.8);
}
.tesla-slide__img--exit {
  transition: opacity 0.5s ease-in-out 0.4s, transform 0.8s ease-in-out 0.3s;
  opacity: 0;
  transform: scale(0.9);
}
.tesla-slide__img--exit .tesla-slide__img-floor {
  transition: all 0.5s ease-in-out 0.2s;
  opacity: 0;
}
.tesla-slide__img--exit:before {
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
}
.animation-back .tesla-slide__img--exit {
  transition: opacity 0.5s ease-in-out 0.6s, transform 0.9s ease-in-out 0.1s;
  transform: translateX(-5%) scale(1.1);
}
.animation-back .tesla-slide__img--exit .tesla-slide__img-floor {
  transition: all 0.5s ease-in-out 0.2s;
  opacity: 0;
}
.animation-back .tesla-slide__img--exit .tesla-slide__img-car {
  transition: opacity 0.6s ease-in-out 0.5s;
  opacity: 0;
}
.animation-back .tesla-slide__img--exit:before {
  transition: opacity 0.5s ease-in 0.3s;
}
.tesla-slide__img img {
  max-width: 100%;
  min-width: 600px;
  transform: translateX(-50%);
  margin: -100px 0 0 55%;
}
@media only screen and (max-width:480px) {
  .tesla-slide__img img {
    margin: -10px 0 0 40%;
  }
}
@media only screen and (min-width:768px) {
  .tesla-slide__img img {
    max-width: 85%;
    transform: none;
    margin: -40px 0 0;
  }
}
@media only screen and (min-width:992px) {
  .tesla-slide__img img {
    min-width: 800px;
    margin-top: 0;
    max-width: 1300px;
  }
}
@media only screen and (min-width:1800px) {
  .tesla-slide__img img {
    max-width: 2000px;
  }
}

/* Contained slides (contain:true) use a self-contained product photo — e.g. a
   car on a service lift — instead of a bleed render. Show the whole image on
   the right and drop the car-shaped glow that only suits the big car renders. */
.tesla-slide__img--contain:before {
  display: none;
}
/* Drop the solid brand-colour panel behind cut-out product photos. */
.tesla-slide--contain .tesla-slide__bckg {
  display: none;
}
.tesla-slide__img.tesla-slide__img--contain img {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  transform: none;
  margin: 0;
}
@media only screen and (min-width:768px) {
  .tesla-slide__img.tesla-slide__img--contain {
    top: 2%;
    right: 0;
    width: 58%;
  }
}
@media only screen and (min-width:992px) {
  .tesla-slide__img.tesla-slide__img--contain {
    top: 0;
    right: 1%;
    width: 58%;
  }
}
@media only screen and (min-width:1800px) {
  .tesla-slide__img.tesla-slide__img--contain {
    top: -2%;
    right: 3%;
    width: 54%;
  }
}

/* large:true — a single slide whose product photo should be shown bigger. */
@media only screen and (min-width:768px) {
  .tesla-slide__img.tesla-slide__img--lg {
    top: -6%;
    right: -4%;
    width: 78%;
  }
}
@media only screen and (min-width:992px) {
  .tesla-slide__img.tesla-slide__img--lg {
    top: -8%;
    right: -4%;
    width: 80%;
  }
}
@media only screen and (min-width:1800px) {
  .tesla-slide__img.tesla-slide__img--lg {
    top: -10%;
    right: -2%;
    width: 72%;
  }
}

/* Framed slides (framed:true) hold a full-frame photo that has its own
   background (not a cut-out), so present it as a rounded image card with a
   soft shadow and a brand-tinted border instead of a floating cut-out. */
.tesla-slide__img.tesla-slide__img--framed img {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 6px rgba(255, 255, 255, 0.03);
  object-fit: cover;
}
.tesla-slide__img--framed:before {
  display: none;
}
.tesla-slide__bckg {
  position: absolute;
  right: 5%;
  bottom: 38%;
  width: 250px;
  height: calc(var(--bckg-height) / 2.2);
  z-index: -1;
}
@media only screen and (max-width:480px) {
  .tesla-slide__bckg {
    right: 3%;
    bottom: 35%;
    height: calc(var(--bckg-height) / 2.5);
  }
}
@media only screen and (min-width:768px) {
  .tesla-slide__bckg {
    width: 300px;
    height: calc(var(--bckg-height) / 1.8);
    bottom: 40%;
    right: 0;
  }
}
@media only screen and (min-width:992px) {
  .tesla-slide__bckg {
    width: 400px;
    height: calc(var(--bckg-height) / 1.5);
    right: -2%;
  }
}
@media only screen and (min-width:1200px) {
  .tesla-slide__bckg {
    bottom: 56%;
  }
}
@media only screen and (min-width:1800px) {
  .tesla-slide__bckg {
    height: var(--bckg-height);
    width: 570px;
    right: 2%;
  }
}
.tesla-slide__bckg:before, .tesla-slide__bckg:after {
  position: absolute;
  content: "";
  transition: all 0.8s ease-in-out 0.3s;
}
.tesla-slide__bckg:after {
  width: calc(var(--bckg-height) * 1.2);
  height: calc(var(--bckg-height) * 0.8);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  background: radial-gradient(ellipse at center, var(--car-color) 25%, transparent 65%);
}
@media only screen and (min-width:768px) {
  .tesla-slide__bckg:after {
    width: calc(var(--bckg-height) * 2);
    height: calc(var(--bckg-height) * 1.5);
  }
}
@media only screen and (min-width:1800px) {
  .tesla-slide__bckg:after {
    width: calc(var(--bckg-height) * 3.5);
    height: calc(var(--bckg-height) * 2.2);
  }
}
.tesla-slide__bckg:before {
  width: calc(var(--bckg-height) * 1.5);
  height: calc(var(--bckg-height) * 0.7);
  top: 70%;
  left: -40%;
  opacity: var(--shadow-opacity);
  background: radial-gradient(ellipse at center, var(--car-color) 10%, transparent 65%);
}
@media only screen and (min-width:768px) {
  .tesla-slide__bckg:before {
    width: calc(var(--bckg-height) * 3.5);
    height: var(--bckg-height);
    top: 100%;
    left: -80%;
  }
}
@media only screen and (min-width:1800px) {
  .tesla-slide__bckg:before {
    width: calc(var(--bckg-height) * 4.5);
  }
}
.tesla-slide__bckg-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.8;
  background: var(--car-color);
  transition: all 0.8s ease-in 0.3s, transform 0.8s ease-in-out, background 0s;
}
.tesla-slide__bckg--enter .tesla-slide__bckg-fill {
  height: 0;
  top: 0;
  bottom: 100%;
  opacity: 0.3;
  transform: translateY(-20px) scale(1.1);
  transition: all 0.7s ease-in 0.5s, transform 0.8s ease-in-out 0.1s, background 0s;
}
.tesla-slide__bckg--enter:before, .tesla-slide__bckg--enter:after {
  opacity: 0;
}
.animation-back .tesla-slide__bckg--enter .tesla-slide__bckg-fill {
  bottom: 0;
  top: 100%;
  transform: translateY(10px) scale(0.9);
}
.tesla-slide__bckg--exit .tesla-slide__bckg-fill {
  transition: all 0.6s ease-in 0.1s, background 0s;
  height: 0;
  top: 100%;
  bottom: 0;
  opacity: 0.2;
  transform: translateY(10px) scale(0.9);
}
.tesla-slide__bckg--exit:before {
  transition: all 0.6s ease-in-out 0.2s;
}
.tesla-slide__bckg--exit:before, .tesla-slide__bckg--exit:after {
  opacity: 0;
}
.animation-back .tesla-slide__bckg--exit .tesla-slide__bckg-fill {
  top: 0;
  bottom: 100%;
  transform: translateY(-20px) scale(1.1);
}

/* Slide Item Aside
-------------------------------------------------------------- */
.tesla-slide-aside {
  text-align: left;
  /* Slide Item Whole name
  -------------------------------------------------------------- */
  /* Slide Item Name
  -------------------------------------------------------------- */
  /* Slide Item Description
  -------------------------------------------------------------- */
  /* Slide Button
  -------------------------------------------------------------- */
}
@media only screen and (max-width:767px) {
  .tesla-slide-aside {
    padding-left: 20px;
  }
}
@media only screen and (max-width:480px) {
  .tesla-slide-aside {
    padding-left: 0;
  }
}
.tesla-slide-aside__wholename {
  height: auto;
}
@media only screen and (min-width:768px) {
  .tesla-slide-aside__wholename {
    height: 75px;
  }
}
.tesla-slide-aside__wholename > span {
  height: 55px;
  vertical-align: top;
}
@media only screen and (min-width:768px) {
  .tesla-slide-aside__wholename > span {
    height: 75px;
  }
}
.tesla-slide-aside__overline {
  margin: 0 0 14px 15px;
  font-size: 2.6rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 700;
  color: #14b8a6;
}
.tesla-slide-aside__eyebrow {
  margin: 0 0 6px 15px;
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--car-color, #00d4a0);
  transition: color 0.6s ease-in-out;
}
.tesla-slide-aside__name {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: hidden;
}
@media only screen and (max-width:767px) {
  .tesla-slide-aside__name {
    width: 100%;
  }
}
@media only screen and (max-width:480px) {
  .tesla-slide-aside__name {
    width: 100%;
  }
}
.tesla-slide-aside__name-part {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 1;
  display: block;
  margin-left: 15px;
  transition: top 0.5s ease-out 0.1s, opacity 0.4s linear;
}
.tesla-slide-aside__name-part--enter {
  left: 0;
  top: 100%;
  opacity: 0;
}
.animation-back .tesla-slide-aside__name-part--enter {
  top: -100%;
}
.tesla-slide-aside__name-part--exit {
  left: 0;
  top: -100%;
  opacity: 0;
  transition: top 0.5s ease-out 0.4s, opacity 0.4s linear 0.4s;
}
.animation-back .tesla-slide-aside__name-part--exit {
  top: 100%;
}
.tesla-slide-aside__desc {
  position: relative;
  margin: 10px 0 0;
  max-width: 420px;
  height: 5rem;
  overflow: hidden;
}
@media only screen and (min-width:768px) {
  .tesla-slide-aside__desc {
    margin-top: 40px;
  }
}
.tesla-slide-aside__desc-text {
  position: absolute;
  display: block;
  left: 0;
  top: 0;
  bottom: 0;
  margin: 0;
  line-height: 2.5rem;
  letter-spacing: 0.5px;
  font-weight: 300;
  opacity: 1;
  transition: top 0.4s ease-out 0.2s, bottom 0.4s ease-out 0.2s, opacity 0.4s ease-out 0.3s, line-height 0.3s ease-out 0.5s;
}
.tesla-slide-aside__desc-text--enter {
  left: 0;
  top: 100%;
  bottom: 0;
  opacity: 0;
  line-height: 4rem;
}
.animation-back .tesla-slide-aside__desc-text--enter {
  top: -100%;
  bottom: auto;
  line-height: 3rem;
}
.tesla-slide-aside__desc-text--exit {
  transition: bottom 0.5s ease-out 0.3s, top 0.5s ease-out 0.3s, opacity 0.4s ease-out 0.3s, line-height 0.3s ease-out 0.2s;
  left: 0;
  top: auto;
  bottom: 100%;
  opacity: 0;
  line-height: 4rem;
}
.animation-back .tesla-slide-aside__desc-text--exit {
  top: 100%;
  bottom: auto;
}
.tesla-slide-aside__button {
  position: relative;
  height: 50px;
  margin-top: 25px;
}
@media only screen and (min-width:768px) {
  .tesla-slide-aside__button {
    margin-top: 50px;
  }
}
.tesla-slide-aside__button button {
  z-index: 1;
}

/* Slide Params
  -------------------------------------------------------------- */
.tesla-slide-params {
  margin: 250px 0 30px;
}
@media only screen and (max-width:480px) {
  .tesla-slide-params {
    margin-top: 350px;
  }
}
@media only screen and (min-width:768px) {
  .tesla-slide-params {
    margin-top: 130px;
  }
}
@media only screen and (min-width:992px) {
  .tesla-slide-params {
    margin: 170px 0 20px;
  }
}
@media only screen and (min-width:1800px) {
  .tesla-slide-params {
    margin: 225px 0 80px;
  }
}
.tesla-slide-params__list {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
}
@media only screen and (min-width:1200px) {
  .tesla-slide-params__list {
    padding-left: 10%;
  }
}
.tesla-slide-params__item {
  text-align: center;
  width: 190px;
}
.tesla-slide-params__item:first-of-type .tesla-slide-params__wrapper {
  padding-left: 10px;
  width: 160px;
  text-align: left;
}
.tesla-slide-params__item:first-of-type .tesla-slide-params__wrapper .tesla-slide-params__value {
  padding-left: 5px;
}
.tesla-slide-params__wrapper {
  display: inline-block;
  margin-bottom: 10px;
}
.tesla-slide-params__value {
  padding: 0 8px;
  font-size: 3.1rem;
  transition: opacity 0.05s ease-in;
}
@media only screen and (min-width:768px) {
  .tesla-slide-params__value {
    font-size: 4.8rem;
  }
}
.tesla-slide-params__value--enter {
  opacity: 0.7;
}
.tesla-slide-params__value--exit {
  opacity: 0;
}
.tesla-slide-params__prefix {
  display: inline-block;
  vertical-align: top;
  font-size: 2rem;
}
@media only screen and (min-width:768px) {
  .tesla-slide-params__prefix {
    font-size: 3rem;
  }
}
.tesla-slide-params__name {
  margin-top: -5px;
  font-size: 1.4rem;
}
.tesla-slide-params__sufix {
  font-family: "BebasNeue", "Helvetica", "Arial", sans-serif;
  letter-spacing: 0.9px;
  font-size: initial;
}

/* Slider
-------------------------------------------------------------- */
.tesla-slider {
  padding-top: 20px;
  /* Mouse scroll
  -------------------------------------------------------------- */
}
@media only screen and (min-width:992px) {
  .tesla-slider {
    padding-top: 40px;
  }
}
@media only screen and (min-width:1200px) {
  .tesla-slider {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 0;
  }
}
@media only screen and (min-width:1800px) {
  .tesla-slider {
    padding-top: 135px;
  }
}
.tesla-slider__scroll {
  order: 3;
  width: 100%;
}
.tesla-slider__scroll img {
  display: block;
  margin: 0 auto;
}

/* Slider Navigation
-------------------------------------------------------------- */
.tesla-slider-navigation {
  /* Slider Navigation List
  -------------------------------------------------------------- */
  /* Slider Navigation List item
  -------------------------------------------------------------- */
}
@media only screen and (min-width:1200px) {
  .tesla-slider-navigation {
    order: 2;
    width: 150px;
  }
}
.tesla-slider-navigation__list {
  display: flex;
  margin: 0;
  justify-content: space-around;
  text-align: center;
}
@media only screen and (min-width:768px) {
  .tesla-slider-navigation__list {
    margin: 5px;
  }
}
@media only screen and (min-width:1200px) {
  .tesla-slider-navigation__list {
    display: block;
    order: 2;
    text-align: right;
  }
}
.tesla-slider-navigation__item {
  display: inline-block;
  padding: 0 5px;
  text-transform: uppercase;
  line-height: 1;
  font-size: 1.2rem;
}
@media only screen and (min-width:768px) {
  .tesla-slider-navigation__item {
    font-size: 1.5rem;
    letter-spacing: 0.6px;
  }
}
@media only screen and (min-width:1200px) {
  .tesla-slider-navigation__item {
    display: block;
    margin-top: 90px;
  }
}
@media only screen and (min-width:1800px) {
  .tesla-slider-navigation__item {
    margin-top: 95px;
  }
}
.tesla-slider-navigation__item:first-of-type {
  margin-top: 0;
}
.tesla-slider-navigation__link--active {
  font-size: 1.2rem;
  transition: font-size 0.3s linear, color 0.2s linear 0.8s;
}
@media only screen and (min-width:768px) {
  .tesla-slider-navigation__link--active {
    font-size: 1.4rem;
  }
}
@media only screen and (min-width:1200px) {
  .tesla-slider-navigation__link--active {
    font-size: 1.8rem;
  }
}


/* ----------------------------------------------------------------------------
   Full-screen blurred background image behind all content. A dark overlay on
   top keeps the foreground copy readable.
---------------------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  z-index: -3;
  background: url("/static/ai-bg.jpg") center center / cover no-repeat;
  filter: blur(6px);
  transform: scale(1.04);
}
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background: rgba(0, 0, 0, 0.62);
}


/* === ServiceGeni pro components === */
html { scroll-behavior: smooth; }

/* Header navigation */
.tesla-header { align-items: center; }
.tesla-header__links { display: flex; align-items: center; gap: 28px; }
.tesla-header__link {
  font-size: 1.4rem; letter-spacing: 0.4px; color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}
.tesla-header__link:hover { color: #fff; }
.tesla-header__cta {
  font-family: inherit; font-size: 1.4rem; font-weight: 500; color: #fff;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px; padding: 10px 22px; cursor: pointer; transition: all 0.2s;
}
.tesla-header__cta:hover { background: #fff; color: #0b0e13; border-color: #fff; }

/* Hamburger (mobile) */
.tesla-header__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; background: none; border: 0; cursor: pointer; padding: 0;
}
.tesla-header__burger span {
  display: block; height: 2px; width: 24px; margin: 0 auto; background: #fff;
  border-radius: 2px; transition: transform 0.25s, opacity 0.2s;
}
.tesla-header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tesla-header__burger.is-open span:nth-child(2) { opacity: 0; }
.tesla-header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media only screen and (max-width: 900px) {
  .tesla-header__links { display: none; }
  .tesla-header__burger { display: flex; }
}

/* Mobile slide-in menu */
.sg-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(5, 7, 11, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.sg-menu.is-open { opacity: 1; pointer-events: auto; }
.sg-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(320px, 84vw);
  background: #0d1118; border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 90px 28px 28px; transform: translateX(100%); transition: transform 0.28s ease;
  display: flex; flex-direction: column;
}
.sg-menu.is-open .sg-menu__panel { transform: translateX(0); }
.sg-menu__heading { font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin: 0 0 12px; }
.sg-menu__list { margin: 0 0 24px; }
.sg-menu__item {
  display: block; width: 100%; text-align: left; background: none; border: 0; color: #fff;
  cursor: pointer; font-family: inherit; font-size: 1.8rem; padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sg-menu__item:hover { color: #7cd0ff; }
.sg-menu__cta {
  margin-top: auto; font-family: inherit; font-size: 1.5rem; font-weight: 500; color: #0b0e13;
  background: #fff; border: 0; border-radius: 999px; padding: 14px; cursor: pointer;
}

/* Footer */
.sg-footer {
  position: relative; z-index: 1; background: #0a0d12;
  border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 60px;
  padding: 64px 24px 0; color: rgba(255, 255, 255, 0.7);
}
.sg-footer__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.sg-footer__brand { max-width: 320px; }
.sg-footer__logo { font-family: "Bebas Neue", sans-serif; font-size: 2.4rem; letter-spacing: 2px; color: #fff; }
.sg-footer__tag { margin: 12px 0 0; font-size: 1.4rem; line-height: 1.6; }
.sg-footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.sg-footer__col h4 { color: #fff; font-size: 1.3rem; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 14px; }
.sg-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.sg-footer__col a { font-size: 1.4rem; color: rgba(255, 255, 255, 0.65); }
.sg-footer__col a:hover { color: #fff; }
.sg-footer__bar {
  max-width: 1200px; margin: 56px auto 0; padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap; font-size: 1.3rem; color: rgba(255, 255, 255, 0.5);
}
.sg-footer__cta {
  font-family: inherit; font-size: 1.4rem; font-weight: 500; color: #0b0e13;
  background: #fff; border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer;
}

/* Demo modal */
.sg-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 80;
  background: rgba(4, 6, 10, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: sgFade 0.2s ease;
}
@keyframes sgFade { from { opacity: 0; } to { opacity: 1; } }
.sg-modal__card {
  position: relative; width: min(440px, 100%); background: #0e1219;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 34px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.sg-modal__close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0;
  color: rgba(255, 255, 255, 0.6); font-size: 2.6rem; line-height: 1; cursor: pointer;
}
.sg-modal__close:hover { color: #fff; }
.sg-modal__form h3, .sg-modal__done h3 { font-family: "Bebas Neue", sans-serif; font-size: 3rem; letter-spacing: 1px; color: #fff; margin: 0 0 6px; }
.sg-modal__sub { margin: 0 0 20px; font-size: 1.4rem; color: rgba(255, 255, 255, 0.6); }
.sg-field { display: block; margin-bottom: 14px; }
.sg-field span { display: block; font-size: 1.2rem; letter-spacing: 0.4px; color: rgba(255, 255, 255, 0.6); margin-bottom: 6px; }
.sg-field input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; color: #fff;
  font-family: inherit; font-size: 1.5rem;
}
.sg-field input:focus { outline: none; border-color: #7cd0ff; background: rgba(255, 255, 255, 0.06); }
.sg-modal__submit {
  width: 100%; margin-top: 8px; padding: 14px; cursor: pointer; font-family: inherit;
  font-size: 1.6rem; font-weight: 600; color: #0b0e13; background: #fff; border: 0;
  border-radius: 10px; transition: opacity 0.2s;
}
.sg-modal__submit:hover { opacity: 0.9; }
.sg-modal__submit:disabled { opacity: 0.6; cursor: default; }
.sg-modal__err { color: #ff8a8a; font-size: 1.3rem; margin: 0 0 8px; }
.sg-modal__done p { font-size: 1.5rem; line-height: 1.6; color: rgba(255, 255, 255, 0.75); margin: 0 0 22px; }


/* === ServiceGeni mobile fixes === */
@media only screen and (max-width: 600px) {
  /* Keep the three stats on one row without overflowing small screens */
  .tesla-slide-params__list { padding-left: 0; }
  .tesla-slide-params__item { width: auto; flex: 1 1 0; }
  .tesla-slide-params__item:first-of-type .tesla-slide-params__wrapper {
    width: auto; padding-left: 0; text-align: center;
  }
  .tesla-slide-params__value { font-size: 2.5rem; padding: 0 3px; }
  .tesla-slide-params__prefix { font-size: 1.6rem; }
  /* A touch more breathing room around the hero copy */
  .tesla-slide-aside { padding-left: 0; }
  .tesla-slide-aside__desc { max-width: 100%; }
}
@media only screen and (max-width: 900px) {
  .sg-footer__inner { gap: 32px; }
  .sg-footer__cols { gap: 32px; }
}


/* === ServiceGeni mobile nav fit === */
@media only screen and (max-width: 600px) {
  /* Let the horizontal client nav fit / scroll instead of clipping */
  .tesla-slider-navigation__list {
    overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch;
  }
  .tesla-slider-navigation__item { font-size: 1.1rem; padding: 0 7px; white-space: nowrap; }
}

/* === remove blurred bg: solid black === */
body::before, body::after { display: none !important; }
body { background: #000 !important; }


/* === one-page scroll-track (pinned slider, scroll drives slides) === */
.sg-track { position: relative; width: 100%; }
.sg-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 3vh;
  overflow: hidden;
}
.sg-sticky .container { width: 100%; }


/* === one-page: hide duplicate header + stats in pinned slider === */
body:has(.hero) .tesla-header { display: none !important; }
body:has(.hero) .tesla-slide-params { display: none !important; }
body:has(.hero) .tesla-slider-navigation { display: none !important; }


/* === one-page: bigger product images, shifted right === */
body:has(.hero) .tesla-slide__img.tesla-slide__img--contain {
  width: 84%;
  right: -12%;
  top: -2%;
}
/* Per-slide image sizing (s1=Automobiles, s2=Restaurant, s3=Healthcare, s4=Meineke, s6=Call Logs) */
body:has(.hero) .tesla-slide__img.tesla-slide__img--s1 {
  width: 100%;
  right: -22%;
  top: -8%;
}
