:root {
  --ink: #f6f1e8;
  --muted: rgba(246, 241, 232, 0.72);
  --faint: rgba(246, 241, 232, 0.48);
  --line: rgba(246, 241, 232, 0.34);
  --black: #030303;
  --spot-x: 68%;
  --spot-y: 44%;
  --cursor-x: 68vw;
  --cursor-y: 44vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  --hero-size: clamp(1120px, 86vw, 1680px) auto;
  --hero-position: 94% 36%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #010101;
}

.has-js .hero {
  cursor: none;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: -1px;
  content: "";
  background-image: url("images/heroBS-optimized.jpg");
  background-repeat: no-repeat;
  background-size: var(--hero-size);
  background-position: var(--hero-position);
  pointer-events: none;
}

.hero::before {
  z-index: -4;
  filter: brightness(0.18) contrast(1.12) saturate(0.72);
  transform: scale(1.015);
}

.hero::after {
  z-index: -3;
  opacity: 1;
  filter: brightness(1.58) contrast(1.22) saturate(0.9);
  transform: scale(1.015);
  mix-blend-mode: screen;
  -webkit-mask-image:
    radial-gradient(
      circle at var(--spot-x) var(--spot-y),
      rgba(255, 255, 255, 1) 0,
      rgba(255, 255, 255, 0.94) 8.5rem,
      rgba(255, 255, 255, 0.62) 16rem,
      rgba(255, 255, 255, 0.24) 26rem,
      rgba(255, 255, 255, 0) 39rem
    );
  mask-image:
    radial-gradient(
      circle at var(--spot-x) var(--spot-y),
      rgba(255, 255, 255, 1) 0,
      rgba(255, 255, 255, 0.94) 8.5rem,
      rgba(255, 255, 255, 0.62) 16rem,
      rgba(255, 255, 255, 0.24) 26rem,
      rgba(255, 255, 255, 0) 39rem
    );
}

.hero::selection,
.hero *::selection {
  background: rgba(246, 241, 232, 0.22);
}

.light-bloom {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--spot-x) var(--spot-y),
      rgba(236, 218, 184, 0.34) 0,
      rgba(236, 218, 184, 0.19) 11rem,
      rgba(236, 218, 184, 0.07) 25rem,
      rgba(236, 218, 184, 0) 39rem
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 37%, rgba(0, 0, 0, 0.08) 72%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.08) 28%, rgba(0, 0, 0, 0.68) 100%);
  mix-blend-mode: normal;
}

.torch-cursor {
  position: fixed;
  left: var(--cursor-x);
  top: var(--cursor-y);
  z-index: 12;
  width: 0.95rem;
  height: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 18px rgba(236, 218, 184, 0.5),
    0 0 58px rgba(236, 218, 184, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
}

.hero.is-lit .torch-cursor {
  opacity: 1;
}

.hero-copy {
  position: absolute;
  left: max(5rem, calc((100vw - 1120px) / 2 + 3rem));
  bottom: 26vh;
  z-index: 3;
  width: min(34rem, calc(100% - 7rem));
  text-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.74);
}

.hero-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: min(33rem, 100%);
  margin: 1.9rem 0 0;
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

.hero-line span:first-child {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-line span:first-child::after {
  content: "";
  display: inline-block;
  width: 1.4rem;
  height: 1px;
  margin-left: 0.75rem;
  vertical-align: middle;
  background: rgba(246, 241, 232, 0.34);
}

.hero-line span:last-child {
  color: rgba(255, 255, 255, 0.82);
}

h1 {
  margin: 0;
}

.hero-wordmark {
  width: min(33rem, 100%);
}

.hero-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid rgba(246, 241, 232, 0.72);
  outline-offset: 5px;
}

@media (max-width: 900px) {
  .hero {
    --hero-size: auto 106%;
    --hero-position: 82% 36%;
  }

  .hero-copy {
    left: 2rem;
    bottom: 21vh;
    width: calc(100% - 3.5rem);
  }

}

@media (max-width: 560px) {
  .hero {
    min-height: 100svh;
    --hero-position: 84% 36%;
  }

  .hero-wordmark {
    width: min(21rem, 100%);
  }

  .hero-line {
    flex-wrap: nowrap;
    gap: 0.45rem;
    width: min(21rem, 100%);
    margin-top: 1.55rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .hero-line span:first-child {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }

  .hero-line span:first-child::after {
    width: 0.65rem;
    margin-left: 0.45rem;
  }

}

@media (max-width: 360px) {
  .hero-copy {
    left: 1rem;
    bottom: 20vh;
    width: calc(100% - 2rem);
  }

  .hero-wordmark,
  .hero-line {
    width: min(15.75rem, 100%);
  }

  .hero-line {
    gap: 0.25rem;
    font-size: 0.5rem;
  }

  .hero-line span:first-child {
    font-size: 0.34rem;
    letter-spacing: 0.06em;
  }

  .hero-line span:first-child::after {
    width: 0.3rem;
    margin-left: 0.25rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (pointer: coarse) {
  .has-js .hero {
    cursor: auto;
  }

  .torch-cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
