.loader {
  align-items: center;
  background: var(--tomato);
  color: var(--white);
  display: grid;
  inset: 0;
  justify-items: center;
  overflow: hidden;
  position: fixed;
  z-index: 50;
}

.loader__label {
  font-family: var(--accent-font);
  font-size: clamp(32px, 6vw, 72px);
  margin: 0;
  position: absolute;
  top: 12vh;
  text-align: center;
  text-transform: uppercase;
}

.loader__stack {
  height: min(430px, 58vh);
  position: relative;
  width: min(680px, 86vw);
}

.sandwich-layer {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
  filter: drop-shadow(12px 18px 10px rgba(27, 23, 20, 0.22));
  height: min(190px, 24vh);
  left: 50%;
  opacity: 0;
  position: absolute;
  transform: translateX(-50%);
  width: min(620px, 82vw);
}

.sandwich-layer--bottom,
.sandwich-layer--top {
  height: min(170px, 22vh);
}

.sandwich-layer--bottom {
  background-image: url("../assets/images/sandwich-layers/bottom-bread.png");
  bottom: 10px;
}

.sandwich-layer--top {
  background-image: url("../assets/images/sandwich-layers/top-bread.png");
  bottom: min(238px, 31vh);
}

.sandwich-layer--turkey {
  background-image: url("../assets/images/sandwich-layers/turkey.png");
  bottom: min(72px, 10vh);
}

.sandwich-layer--cheese {
  background-image: url("../assets/images/sandwich-layers/cheese.png");
  bottom: min(124px, 16vh);
}

.sandwich-layer--tomato {
  background-image: url("../assets/images/sandwich-layers/tomato.png");
  bottom: min(174px, 22vh);
}

.sandwich-layer--lettuce {
  background-image: url("../assets/images/sandwich-layers/lettuce.png");
  bottom: min(204px, 26vh);
}

.page-wipe {
  display: grid;
  inset: 0;
  opacity: 0;
  place-items: center;
  pointer-events: none;
  position: fixed;
  visibility: hidden;
  z-index: 45;
}

.page-wipe svg {
  height: 100%;
  position: absolute;
  width: 100%;
}

.page-wipe__path--coffee {
  fill: var(--coffee);
}

.page-wipe__path--tomato {
  fill: var(--tomato);
}

.page-wipe__path--cheese {
  fill: var(--cheese);
}

.page-wipe__text {
  color: var(--white);
  font-family: var(--display-font);
  font-size: clamp(72px, 12vw, 180px);
  line-height: 0.9;
  opacity: 0;
  position: relative;
  text-transform: uppercase;
  -webkit-text-stroke: 2px var(--ink);
}

.js-line-reveal {
  overflow: hidden;
}

.line-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.line-mask > span {
  display: inline-block;
}

.cursor-trail {
  display: none;
}

@media (pointer: fine) {
  .cursor-trail {
    display: block;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    z-index: 60;
  }

  .cursor-trail span {
    background: var(--tomato);
    border: 2px solid var(--ink);
    border-radius: 50%;
    height: 18px;
    left: 0;
    position: absolute;
    top: 0;
    transform: translate(-50%, -50%);
    width: 18px;
  }

  .cursor-trail span:nth-child(even) {
    background: var(--cheese);
  }
}
