/* ==========================================================================\n   LOADING SCREEN\n========================================================================== */

html.is-loading,
html.is-loading body {
  overflow: hidden !important;
}

.loading--screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fdfdfd;
  clip-path: inset(0% 0% 0% 0%);
  will-change: clip-path, opacity;
}

html.is-loading .loading--screen {
  display: flex;
}

html.loader-already-played .loading--screen {
  display: none !important;
}

.loading--screen .image--absolute100 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loading--title,
.brand--loading-wrapper {
  position: relative;
  z-index: 5;
  width: 5rem;
}

.brand--loading {
  display: block;
  width: 100% !important;
  height: auto;
  will-change: transform, opacity;
}

.main-wrapper,
.navbar {
  opacity: 1;
}

html.is-loading .main-wrapper,
html.is-loading .navbar {
  opacity: 0;
}

/* Remove old loading percentage completely */
.loading--progress,
.loading--indicator {
  display: none !important;
}

/* ==========================================================================\n   HERO VIMEO COVER\n========================================================================== */

.video-bg-absolute {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-bg-absolute iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  max-width: none !important;
  border: 0;
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* ==========================================================================\n   HERO VIDEO WRAPPERS\n========================================================================== */

.home--video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html:not(.home-video-ready) .home--video-wrapper[video="1"] {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

html.home-video-ready .home--video-wrapper.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

html.home-video-ready .home--video-wrapper:not(.is-active) {
  z-index: 1;
  opacity: 0;
  visibility: hidden;
}

/* Block clicks from reaching the Vimeo iframe (native controls). */
.home--video-wrapper .vimeo-bg,
.home--video-wrapper .vimeo-bg__iframe-wrapper,
.home--video-wrapper .vimeo-bg__iframe,
.home--video-wrapper .vimeo-bg__placeholder {
  pointer-events: none;
}

/* ==========================================================================\n   HERO VIDEO CONTROLS\n========================================================================== */

.home--videos-control {
  z-index: 5;
}

.hero--video-play {
  cursor: pointer;
  user-select: none;
}

.hero--video-play .arrow--8 {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero--video-play p {
  opacity: 0.4;
  transition: opacity 0.35s ease;
}

html:not(.home-video-ready) .hero--video-play[video-play="1"] .arrow--8 {
  opacity: 1;
}

html:not(.home-video-ready) .hero--video-play[video-play="1"] p {
  opacity: 1;
}

.hero--video-play.is-active .arrow--8 {
  opacity: 1;
}

.hero--video-play.is-active p {
  opacity: 1;
}

.hero--video-play:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.25rem;
}

/* ==========================================================================
   LAPLAND VIDEO CREDIT
========================================================================== */

.lapland--video-text {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

html:not(.home-video-ready) .lapland--video-text,
.lapland--video-text.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   HERO VIDEO MUTE
========================================================================== */

.hero--video-mute {
  cursor: pointer;
  user-select: none;
  z-index: 5;
}

/* Leftover equalizer embed from an earlier experiment — hide until removed in Webflow */
.hero--video-mute:not(:has(svg)) {
  display: none !important;
}

.hero--video-mute svg:nth-child(2),
.hero--video-mute[data-vimeo-muted="true"] svg:nth-child(1) {
  display: none;
}

.hero--video-mute svg:nth-child(1),
.hero--video-mute[data-vimeo-muted="true"] svg:nth-child(2) {
  display: block;
}

.hero--video-mute:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.25rem;
}

/* ==========================================================================\n   HERO VIDEO PROGRESS\n========================================================================== */

.home--hero-progress {
  overflow: hidden;
}

.home--hero-progress .progress--indicator {
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ==========================================================================\n   EXPERIENCES SWIPER\n========================================================================== */

.swiper.is--experiences {
  width: 100%;
  overflow: hidden;
  cursor: grab;
}

.swiper.is--experiences:active {
  cursor: grabbing;
}

.swiper.is--experiences .swiper-wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.swiper.is--experiences .swiper-wrapper.is--experiences {
  align-items: stretch;
}

.swiper.is--experiences .swiper-slide.is--experiences {
  flex-shrink: 0;
  width: 100%;
  height: auto;
}

.swiper.is--experiences .experience--content {
  width: 100%;
  height: 100%;
}

.swiper.is--experiences .experience--image-wrapper {
  overflow: hidden;
}

.swiper.is--experiences .experience--image-wrapper .image--absolute100 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================\n   EXPERIENCES AUTOPLAY PROGRESS\n========================================================================== */

.swiper.is--experiences .rod--100 {
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ==========================================================================\n   EXPERIENCES GLOBAL PAGINATION PROGRESS\n========================================================================== */

.swiper--pagination.is--home {
  width: 100%;
}

.swiper--pagination.is--home .swiper--progress {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.swiper--pagination.is--home .pagination--indicator {
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================\n   REMOVE SWIPER NATIVE PAGINATION\n========================================================================== */

.swiper.is--experiences .swiper-pagination,
.swiper.is--experiences .swiper-button-prev,
.swiper.is--experiences .swiper-button-next,
.swiper.is--experiences .experiences--swiper-navigation,
.swiper.is--experiences .experiences--swiper-pagination {
  display: none !important;
}

/* ==========================================================================\n   RESPONSIVE\n========================================================================== */

@media screen and (max-width: 767px) {
  .loading--title,
  .brand--loading-wrapper {
    width: 4.5rem;
  }
}

/* ==========================================================================\n   REDUCED MOTION\n========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero--video-play .arrow--8,
  .hero--video-play p,
  .lapland--video-text,
  .swiper--pagination.is--home .pagination--indicator {
    transition: none;
  }
}
