@import url('https://fonts.googleapis.com/css2?family=Homemade+Apple&family=Staatliches&family=Young+Serif&family=Epilogue:wght@500&display=swap');

.xco-wh-slider {
  --xco-wh-accent: #5b7f71;
  --xco-wh-copy-delay: 120ms;
  --xco-wh-copy-duration: 520ms;
  --xco-wh-copy-distance: 24px;
  --xco-wh-transition-speed: 900ms;
  --xco-wh-float-amount: 14px;
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #231f20;
  isolation: isolate;
  box-sizing: border-box;
}

.xco-wh-slider *,
.xco-wh-slider *::before,
.xco-wh-slider *::after {
  box-sizing: border-box;
}

.xco-wh-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.xco-wh-bg-video-current {
  z-index: 0;
}

.xco-wh-bg-video-next {
  z-index: 1;
  opacity: 0;
  transform: translateX(100%);
}

.xco-wh-slider.video-changing .xco-wh-bg-video-next {
  animation: xcoWhVideoSlideInRight var(--xco-wh-transition-speed) cubic-bezier(.22, 1, .36, 1) forwards;
}

.xco-wh-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.12;
  z-index: 2;
  pointer-events: none;
}

.xco-wh-panel {
  position: absolute;
  top: 50%;
  left: 30px;
  width: 49%;
  height: 75vh;
  max-height: 760px;
  min-height: 580px;
  border-radius: 8px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 40px 80px;
  z-index: 3;
  transform: translateY(-50%);
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
}

.xco-wh-slider.is-changing .xco-wh-panel {
  animation: xcoWhPanelSlideInLeft var(--xco-wh-transition-speed) cubic-bezier(.22, 1, .36, 1) both;
}

.xco-wh-logo {
  width: 100px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 35px;
  flex: 0 0 auto;
}

.xco-wh-copy {
  max-width: 82%;
  width: 100%;
}

.xco-wh-number {
  font-family: "Homemade Apple", cursive;
  font-size: 32px;
  line-height: 1;
  color: #422600;
  margin: 0 0 -5px 10px;
}

.xco-wh-title {
  font-family: "Staatliches", sans-serif;
  font-size: 120px;
  font-weight: 400;
  line-height: 0.88em;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: var(--xco-wh-accent);
  margin: 0 0 25px;
  overflow-wrap: anywhere;
}

.xco-wh-description {
  font-family: "Young Serif", serif;
  font-size: 22px;
  line-height: 1.45em;
  color: #000;
  margin: 0 0 36px;
}

.xco-wh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 65px;
  padding: 0 30px;
  border: 0;
  border-radius: 8px;
  background: var(--xco-wh-accent);
  color: #f0ecdb;
  font-family: "Staatliches", sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  transition: transform 0.35s ease, filter 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

.xco-wh-button:hover,
.xco-wh-button:focus {
  color: #f0ecdb;
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.xco-wh-slider.is-changing .xco-wh-logo,
.xco-wh-slider.is-changing .xco-wh-number,
.xco-wh-slider.is-changing .xco-wh-title,
.xco-wh-slider.is-changing .xco-wh-description,
.xco-wh-slider.is-changing .xco-wh-button {
  animation: xcoWhCopyIn var(--xco-wh-copy-duration) cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: var(--xco-wh-copy-delay);
}

.xco-wh-product-wrap {
  position: absolute;
  left: 42%;
  top: 50%;
  transform: translateY(-50%);
  width: 42vw;
  max-width: none;
  height: 72vh;
  z-index: 4;
  pointer-events: none;
  will-change: transform, opacity;
}

.xco-wh-slider.is-changing .xco-wh-product-wrap {
  animation: xcoWhProductSlideInLeft var(--xco-wh-transition-speed) cubic-bezier(.22, 1, .36, 1) both;
}

.xco-wh-product {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 2;
  animation: xcoWhFloat 2.5s ease-in-out infinite;
}

.xco-wh-shadow {
  position: absolute;
  left: 5%;
  bottom: 4%;
  width: 70%;
  height: 24%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,0) 65%);
  filter: blur(10px);
  opacity: 0.6;
  z-index: 1;
}

.xco-wh-controls {
  position: absolute;
  right: 60px;
  bottom: 50px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.xco-wh-control-button {
  appearance: none;
  border: 0 !important;
  outline: none;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #f0ecdb;
  font-family: "Staatliches", sans-serif;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 10px;
  transition: color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.xco-wh-control-button:hover,
.xco-wh-control-button:focus,
.xco-wh-control-button:active {
  background: transparent !important;
  background-color: transparent !important;
  color: rgba(122, 36, 38, 1);
  transform: translateY(-2px);
}

.xco-wh-control-divider {
  color: var(--xco-wh-accent);
  font-family: "Epilogue", sans-serif;
  font-size: 25px;
  font-weight: 500;
}

@keyframes xcoWhVideoSlideInRight {
  0% { opacity: 1; transform: translateX(100%); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes xcoWhPanelSlideInLeft {
  0% { opacity: 1; transform: translate(-110%, -50%); }
  100% { opacity: 1; transform: translate(0, -50%); }
}

@keyframes xcoWhProductSlideInLeft {
  0% { opacity: 1; transform: translate(-70px, -50%); }
  100% { opacity: 1; transform: translate(0, -50%); }
}

@keyframes xcoWhCopyIn {
  0% { opacity: 0; transform: translateX(calc(var(--xco-wh-copy-distance) * -1)); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes xcoWhFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(calc(var(--xco-wh-float-amount) * -1)); }
}

@media (max-width: 1024px) {
  .xco-wh-panel {
    width: 56%;
    padding: 35px 45px;
    min-height: 560px;
  }

  .xco-wh-copy {
    max-width: 92%;
  }

  .xco-wh-product-wrap {
    left: 52%;
    width: 48vw;
  }
}

@media (max-width: 767px) {
  .xco-wh-slider {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 24px 12px 90px;
  }

  .xco-wh-product-wrap {
    order: 1;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100%;
    height: 34vh;
    min-height: 230px;
    margin: 0 0 -10px;
    z-index: 4;
  }

  .xco-wh-slider.is-changing .xco-wh-product-wrap {
    animation: xcoWhProductSlideInLeftMobile var(--xco-wh-transition-speed) cubic-bezier(.22, 1, .36, 1) both;
  }

  .xco-wh-product {
    max-width: 76%;
    max-height: 100%;
  }

  .xco-wh-panel {
    order: 2;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    height: auto !important;
    min-height: auto;
    max-height: none;
    margin: 0;
    padding: 28px 24px 36px;
    justify-content: flex-start;
  }

  .xco-wh-slider.is-changing .xco-wh-panel {
    animation: xcoWhPanelSlideInLeftMobile var(--xco-wh-transition-speed) cubic-bezier(.22, 1, .36, 1) both;
  }

  .xco-wh-logo {
    width: 78px;
    margin-bottom: 28px;
  }

  .xco-wh-copy {
    max-width: 100%;
  }

  .xco-wh-number {
    margin-left: 0;
  }

  .xco-wh-title {
    font-size: 72px;
  }

  .xco-wh-description {
    font-size: 16px;
    line-height: 1.5em;
  }

  .xco-wh-button {
    min-height: 54px;
    font-size: 24px;
  }

  .xco-wh-controls {
    right: 20px;
    bottom: 24px;
  }

  .xco-wh-control-button {
    font-size: 24px;
  }

  @keyframes xcoWhPanelSlideInLeftMobile {
    0% { opacity: 1; transform: translateX(-110%); }
    100% { opacity: 1; transform: translateX(0); }
  }

  @keyframes xcoWhProductSlideInLeftMobile {
    0% { opacity: 1; transform: translateX(-70px); }
    100% { opacity: 1; transform: translateX(0); }
  }
}
