:root {
  --tm-gold: #c8a45e;
  --tm-ink: #080808;
}

html { scroll-behavior: auto; }

.torrelle-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  z-index: 10020;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #9f7b36, #e1c685);
  pointer-events: none;
}

.torrelle-loader {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--tm-ink);
  color: #fff;
}

.torrelle-loader__inner {
  width: min(78vw, 440px);
  text-align: center;
}

.torrelle-loader__mark {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.torrelle-loader__name {
  margin: 0;
  font: 500 clamp(1.5rem, 4vw, 2.7rem)/1.05 Georgia, serif;
  letter-spacing: .16em;
}

.torrelle-loader__sub {
  margin: 11px 0 25px;
  color: #aaa;
  font: 600 10px/1.4 Arial, sans-serif;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.torrelle-loader__track {
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
}

.torrelle-loader__line {
  height: 100%;
  transform: translateX(-101%);
  background: var(--tm-gold);
}

.torrelle-motion-ready .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.torrelle-image-mask {
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
}

.torrelle-image-mask > img,
.torrelle-image-mask > picture,
.torrelle-image-mask > video {
  will-change: transform;
}

body.torrelle-loading { overflow: hidden; }

@media (max-width: 980px), (pointer: coarse) {
  .torrelle-loader__mark { width: 70px; height: 70px; }
  .torrelle-image-mask { clip-path: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .torrelle-loader { display: none !important; }
  .torrelle-progress { display: none !important; }
  .torrelle-image-mask { clip-path: none !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
