/* DESKTOP */

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  overflow-y: hidden;
}

#header {
  width: 100vw;
  height: auto;
  position: fixed;
  top: 0;
  left: 0;
  margin: 1.5rem;
}

#header img {
  width: calc(100vw - 3rem);
  height: auto;
}

.hs-carousel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 3;
}

.hs-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  position: relative;
  font-family: "ChromaST-MediumItalic";
}

/* .hs-word {
  font-weight: 300;
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
  margin: 0 0.8em;
  font-size: 8vw;
  text-transform: uppercase;
  line-height: 6vw;
  white-space: normal;
  text-align: center;
  user-select: none;
} */

.hs-word {
  font-weight: 300;
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
  margin: 0 0.8em;
  padding: 0.08em 0.15em 0.05em 0.05em;
  font-size: 8vw;
  line-height: 6vw;
  text-transform: uppercase;
  white-space: normal;
  text-align: center;
  user-select: none;
  font-feature-settings: "ss01";
}

/* Invisible sizer — stays in normal flow so .word gets its natural height/width */
.hs-word-sizer {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

/* Shadow + glass layers — all stacked absolutely on top of the sizer */
.hs-shadow-black,
.hs-shadow-white,
.hs-word-glass {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* will-change: transform, opacity; */
}

.hs-word-glass,
.hs-shadow-white {
  transition:
    color 100ms linear,
    -webkit-text-stroke-width 100ms linear,
    opacity 100ms linear;
}

/* Fixed blur — never animated, so the browser only blurs once */
.hs-shadow-black {
  color: rgba(0, 0, 0, 1);
  z-index: 1;
}

.hs-shadow-white {
  color: rgba(255, 255, 255, 0.9);
  z-index: 2;
}

/* .hs-word-glass {
  color: transparent;
  background-image: var(--active-image);
  -webkit-background-clip: text;
  background-clip: text;
  background-repeat: no-repeat;
  z-index: 3;
  pointer-events: auto;
} */

.hs-word-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -0.15em;
  left: -0.1em;
  right: -0.1em;
  bottom: -0.1em;
  width: auto;
  height: auto;
  color: transparent;
  background-image: var(--active-image);
  -webkit-background-clip: text;
  background-clip: text;
  background-repeat: no-repeat;
  z-index: 3;
  pointer-events: auto;
}

.hs-image-layer {
  background-color: black;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.hs-image-layer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
}

@media (max-width: 600px) {
  .hs-carousel {
    align-items: flex-start;
  }

  .hs-track {
    flex-direction: column;
    width: 100%;
    height: max-content;
  }

  .hs-word {
    font-weight: 800;
    margin: 13vh 0;
    font-size: 11vw;
    line-height: 0.85;
  }

  .hs-word-sizer {
    line-height: 0.85;
  }
}
