.home-hero-desktop {
  --default-transition: all 300ms ease-out;
  --hero-transition: all 400ms ease-in-out;
  display: none;
  position: relative;
  padding: 75px 0 129px;
  background-color: var(--colour-black);
  overflow: hidden;
}
.home-hero-desktop .inner {
  display: grid;
  grid-template-columns: 160px auto 160px;
}
.home-hero-desktop .frame {
  position: relative;
  width: 100%;
  max-width: 1016px;
  margin: 0 auto;
  aspect-ratio: 1016 / 586;
}

.home-hero-desktop img {
  height: auto;
}

/* Landing */
.home-hero-desktop .landing {
  position: absolute;
  display: flex;
  justify-content: center;
  height: 100%;
  width: 100%;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--hero-transition);
}
.home-hero-desktop .landing.is-active {
  opacity: 1;
  pointer-events: all;
}
.home-hero-desktop .landing:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3.25%;
  height: auto;
  aspect-ratio: 1;
  content: "";
  display: block;
  background-color: var(--colour-green);
}
.home-hero-desktop .landing .logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 37.9%;
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.home-hero-desktop .landing .logo img {
  margin-bottom: 18%;
  margin-top: 18%;
}
.home-hero-desktop .landing .Button a {
  background-color: transparent;
  cursor: pointer;
}
.home-hero-desktop .landing .Button--arrow-right a:after {
  background-color: var(--colour-blue);
}
.home-hero-desktop .landing #hero-loader {
  position: absolute;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--colour-blue);
  transition: width 250ms linear;
  z-index: -1;
}

.home-hero-desktop .landing .img-one {
  position: absolute;
  top: 5.63%;
  left: 3.25%;
  width: 35.4%;
  height: auto;
  aspect-ratio: 1;
}
.home-hero-desktop .landing .img-one:before {
  position: absolute;
  width: 27.5%;
  height: 9.2%;
  display: block;
  content: "";
  background-color: var(--colour-black);
}
.home-hero-desktop .landing .img-two {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26.6%;
  height: 47%;
}

/* Slides */
.home-hero-desktop .slides {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: var(--hero-transition);
}
.home-hero-desktop .slides.is-active {
  opacity: 1;
  pointer-events: all;
}
.home-hero-desktop .slides:before {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 3.25%;
  aspect-ratio: 1;
  content: "";
  display: block;
  background-color: var(--colour-green);
}
.home-hero-desktop .slides img {
  width: 100%;
  height: auto;
}

.home-hero-desktop .slides .box-1 {
  position: absolute;
  top: 0;
  left: 27.5%;
  width: 26.57%;
  aspect-ratio: 1;
  overflow: hidden;
  z-index: 10;
}

.home-hero-desktop .slides .box-2 {
  position: absolute;
  top: 0;
  right: 0;
  width: 35.43%;
  aspect-ratio: 1;
  overflow: hidden;
  z-index: 10;
}
.home-hero-desktop .slides .box-2:before {
  position: absolute;
  top: 0;
  left: 0;
  height: 9.17%;
  background-color: var(--colour-black);
  content: "";
  transition: var(--hero-transition);
  z-index: 20;
}
.home-hero-desktop .slides.position-1 .box-2:before {
  width: 9.17%;
}
.home-hero-desktop .slides.position-2 .box-2:before {
  width: 27.5%;
}
.home-hero-desktop .slides.position-3 .box-2:before {
  width: 9.17%;
}
.home-hero-desktop .slides.position-4 .box-2:before {
  width: 27.5%;
}

.home-hero-desktop .slides .box-3 {
  position: absolute;
  bottom: 0;
  width: 19.69%;
  aspect-ratio: 1;
  overflow: hidden;
  transition: var(--hero-transition);
  z-index: 10;
}
.home-hero-desktop .slides.position-1 .box-3 {
  right: 22.83%;
}
.home-hero-desktop .slides.position-2 .box-3 {
  right: 18.9%;
}
.home-hero-desktop .slides.position-3 .box-3 {
  right: 35.43%;
  width: 22.24%;
}
.home-hero-desktop .slides.position-4 .box-3 {
  right: 23.82%;
}

.home-hero-desktop .slides .box-4 {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 550px;
  height: 197px;
  color: var(--colour-white);
}
.home-hero-desktop .slides .box-4 .txt {
  bottom: 8%;
}
.home-hero-desktop .slides .box-4 h2 {
  width: min-content;
  font-size: 6.94vw;
  font-weight: 600;
  line-height: 90%;
}

.home-hero-desktop .slides .img {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 9;
  transition: opacity 400ms linear;
}
.home-hero-desktop .slides .img.last-active {
  opacity: 0;
  z-index: 10;
}
.home-hero-desktop .slides .img.is-active {
  pointer-events: all;
  opacity: 1;
  z-index:11;
  transition: clip-path 400ms linear;
}
.home-hero-desktop .slides .img.slide-left {
  animation: slideLeft 400ms;
}
.home-hero-desktop .slides .img.slide-left img {
  animation: slideLeftInsides 400ms;
  transition: clip-path 400ms linear;
}
.home-hero-desktop .slides .img.slide-right {
  animation: slideRight 400ms;
}
.home-hero-desktop .slides .img.slide-right img {
  animation: slideRightInsides 400ms;
  transition: clip-path 400ms linear;
}

@keyframes slideRight {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes slideLeft {
  0%   { clip-path: inset(0 0 0 100%); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes slideRightInsides {
  0%   { transform: translateX(-60px); }
  100% { transform: translateX(0); }
}
@keyframes slideLeftInsides {
  0%   { transform: translateX(60px); }
  100% { transform: translateX(0); }
}

.home-hero-desktop .txt {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: var(--hero-transition);
}
.home-hero-desktop .txt.is-active {
  opacity: 1;
  pointer-events: all;
}
.home-hero-desktop .img.is-active:before {
  background-position-x: 50%;
  opacity: 1;
}
.home-hero-desktop .img.is-active:after {
  background-color: rgba(0, 0, 0, .4);
}
.home-hero-desktop .img:before {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 4.583vw;
  aspect-ratio: 1;
  background-image: var(--white-arrow);
  background-position: calc(50% - 6px) 50%;
  background-repeat: no-repeat;
  background-size: 24px;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition:
    background-position 500ms ease-out 500ms,
    opacity 500ms ease-out 500ms;
  z-index: 1;
}
.home-hero-desktop .img:after {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 4.583vw;
  aspect-ratio: 1;
  background-color: black;
  content: "";
  pointer-events: none;
  transition:
    background-color 6500ms linear;
}
.home-hero-desktop .img .overlay {
  opacity: 0;
  transition: var(--hero-transition);
}
.home-hero-desktop .img:hover .overlay {
  opacity: 1;
}

.home-hero-desktop .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--colour-blue);
  color: var(--colour-white);
  opacity: 0;
}
.home-hero-desktop .overlay > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 9% 7% 0;
  text-align: center;
}
.home-hero-desktop .overlay .columns {
  flex-direction: row;
  gap: 10px;
}
.home-hero-desktop .overlay h2 {
  font-size: 3.33vw;
  font-weight: 600;
  line-height: 128%;
}
.home-hero-desktop .overlay p {
  font-size: 1.11vw;
  line-height: 172%;
}
.home-hero-desktop .overlay a {
  display: flex  ;
  align-items: center;
  height: 4.583vw;
  padding-left: 12px;
  flex: 0 0 auto;
  font-size: 0.9722vw;
  font-weight: 600;
  line-height: 172%;
  letter-spacing: 0;
  opacity: 1 !important;
  color: var(--colour-white);
}
.home-hero-desktop .overlay a span {
  border-bottom: 2px solid var(--colour-white);
}
.home-hero-desktop .overlay a:before {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 30;
}
.home-hero-desktop .overlay a:after {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 4.583vw;
  aspect-ratio: 1;
  background-color: var(--colour-black);
  content: "";
}

/* Controls */
.home-hero-desktop .nav-button {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
  padding: 0 20px 0;
  color: var(--colour-white);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  text-align: right;
  transition: var(--default-transition);
}
.home-hero-desktop .nav-button.previous {
  align-items: flex-start;
  padding: 0 0 0 20px;
  text-align: left;
}
.home-hero-desktop .nav-button.is-active {
  opacity: 1;
  pointer-events: all;
}
.home-hero-desktop .nav-button:before {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  margin: 4px 3px;
  background-image: var(--white-arrow);
  background-position: 50% 50%;
  background-size: 24px;
  background-repeat: no-repeat;
  content: "";
}
.home-hero-desktop .nav-button:after {
  position: absolute;
  inset: 0;
  display: block;
  content: "";
  background: url(https://www.luxidgroup.com/hubfs/Luxid%20site/Images/Home%20Hero/hero-next-gradient-hover@2x.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0;
  transition: var(--default-transition);
}
.home-hero-desktop .nav-button:hover:after {
  opacity: 1;
}
.home-hero-desktop .nav-button.previous:before {
  transform: scale(-1) translateY(2px);
}
.home-hero-desktop .nav-button.previous:after {
  transform: scale(-1);
}
.home-hero-desktop .nav-button .titles {
  position: relative;
  width: 100%;
}
.home-hero-desktop .nav-button .titles p {
  position: absolute;
  right: 0;
  line-height: 1.24;
  opacity: 0;
  transition: var(--default-transition);
}
.home-hero-desktop .nav-button.previous .titles p {
  left: 0;
}
.home-hero-desktop .nav-button .titles p.is-active {
  opacity: 1;
}

.home-hero-desktop .dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  position: absolute;
  bottom: 70px;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: var(--hero-transition);
}
.home-hero-desktop .dots.is-active {
  opacity: 1;
  pointer-events: all;
}
.home-hero-desktop .dots button {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--colour-white);
  box-sizing: border-box;
  appearance: none;
  cursor: pointer;
  transition: var(--default-transition);
}
.home-hero-desktop .dots button:before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: calc(100% + 2px);
  background-color: var(--colour-green);
  content: "";
  transition: var(--default-transition);
}
.home-hero-desktop .dots button:after {
  position: absolute;
  left: -9px;
  top: -9px;
  width: 22px;
  height: 22px;
  content: "";
}
.home-hero-desktop .dots button:hover:before {
  width: calc(100% + 2px);
}
.home-hero-desktop .dots button.is-active {
  width: 40px;
  pointer-events: none;
}
.home-hero-desktop .dots button.is-active:before {
  width: calc(var(--before-width, 0) + 2px);
}

@media (min-width: 1024px) {
  .home-hero-desktop {
    display: block;
  }
}

@media (min-width: 1440px) {
  .home-hero-desktop .slides .box-4 .txt {
    bottom: unset;
  }
  .home-hero-desktop .slides .box-4 h2 {
    font-size: 100px;
  }
  .home-hero-desktop .img:before,
  .home-hero-desktop .img:after {
    width: 66px;
  }
  .home-hero-desktop .overlay > div {
    padding: 20px 15px 0;
  }
  .home-hero-desktop .overlay h2 {
    font-size: 48px;
  }
  .home-hero-desktop .overlay p {
    font-size: 16px;
  }
  .home-hero-desktop .overlay a {
    height: 66px;
    font-size: 14px;
  }
  .home-hero-desktop .overlay a:after {
    width: 66px;
  }
}
