:root {
  color-scheme: dark;
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  background: #0b0604;
  color: #f5eee5;
  --accent: #dd2433;
  --accent-active: #c51d2b;
  --accent-text: #fff7f5;
  --display-font: Oswald, "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  --header-block-padding: clamp(0.65rem, 1.45vw, 1.85rem);
  --header-inline-padding: clamp(1.35rem, 3.15vw, 4rem);
  --header-control-height: 2.875rem;
  scrollbar-gutter: stable;
  scroll-padding-block-start: calc(2 * var(--header-block-padding) + var(--header-control-height));
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

.hero {
  --stage-height: max(38rem, 100svh);
  --scroll-distance: clamp(8rem, 31svh, 17rem);
  min-block-size: calc(var(--stage-height) + var(--scroll-distance));
}

.hero__stage {
  --armor-scroll-rate: 0.15;
  --armor-top: 8.5%;
  --armor-height: min(calc(var(--stage-height) * 1.48), 192vw);
  --armor-fade-start: 0.54;
  --armor-fade-mid: 0.72;
  --armor-fade-end: 0.92;
  position: sticky;
  top: 0;
  isolation: isolate;
  overflow: hidden;
  block-size: var(--stage-height);
  background: #0b0604;
}

.hero__atmosphere,
.hero__light-spill,
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__atmosphere,
.hero__light-spill {
  inset: -4%;
  transform: translate3d(0, var(--haze-shift, 0px), 0);
}

.hero__atmosphere {
  background:
    radial-gradient(ellipse 20% 28% at 13% 6%, #37373099, transparent),
    radial-gradient(ellipse 23% 38% at 92% 14%, #292820a1, transparent),
    linear-gradient(180deg, #0b0806, #100b08 55%, #090504 92%);
}

.hero__light-spill {
  opacity: 0.21;
  mix-blend-mode: screen;
}

.hero__wash {
  position: absolute;
  inset: 0;
  /* Fade all four edges so the moving light never exposes a hard rectangle. */
  mask-image:
    linear-gradient(transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
  translate:
    calc(var(--haze-pointer-x, 0px) * 0.44)
    calc(var(--haze-pointer-y, 0px) * 0.44);
}

.hero__wash--right {
  background:
    radial-gradient(ellipse 17% 39% at 65% 25%, #857e6fe6, #807260c7 26%, #634b34aa 52%, transparent),
    radial-gradient(ellipse 24% 47% at 60% 33%, #735739ba, #45301c99 48%, transparent),
    radial-gradient(ellipse 15% 32% at 96% 13%, #79776bc4, #62523fb3 43%, transparent),
    radial-gradient(ellipse 19% 37% at 6% 69%, #806449b8, #50392780 49%, transparent),
    radial-gradient(ellipse 23% 38% at 30% 14%, #4d352193, transparent);
  opacity: 0.96;
  animation: haze-wash-right 22s ease-in-out infinite;
}

.hero__wash--left {
  background:
    radial-gradient(ellipse 13% 31% at 32% 27%, #a09d8bed, #979278d6 27%, #7b5940a1 64%, transparent),
    radial-gradient(ellipse 22% 46% at 34% 29%, #ae7c51d1, #8e5d37a6 28%, #5233227d 65%, transparent),
    radial-gradient(ellipse 23% 40% at 23% 69%, #857057c9, #6c543daf 38%, #3d281a7a 69%, transparent),
    radial-gradient(ellipse 19% 36% at 59% 27%, #626154b3, #4e463998 42%, transparent),
    radial-gradient(ellipse 18% 36% at 90% 22%, #717063ba, #60503d9c 49%, transparent),
    radial-gradient(ellipse 19% 33% at 89% 63%, #4f473ac9, #3c28198a 41%, transparent);
  opacity: 0;
  animation: haze-wash-left 22s ease-in-out infinite;
}

.hero__bloom {
  --light-rise: 58svh;
  --light-drift: 0px;
  --pointer-depth: 1;
  position: absolute;
  left: var(--light-x);
  top: var(--light-y);
  inline-size: var(--light-size);
  aspect-ratio: var(--light-ratio, 1);
  background: radial-gradient(ellipse closest-side, var(--light-core) 7%, var(--light-halo) 49%, transparent);
  filter: blur(var(--light-blur, clamp(8px, 1vw, 20px)));
  translate:
    calc(var(--haze-pointer-x, 0px) * var(--pointer-depth))
    calc(var(--haze-pointer-y, 0px) * var(--pointer-depth));
  transform: translate(-50%, -50%);
  opacity: 0.45;
  animation: haze-rise var(--light-period) linear var(--light-delay) infinite;
}

.hero__bloom--left {
  --light-x: 19%;
  --light-y: 57%;
  --light-size: clamp(4.5rem, 7vw, 10rem);
  --light-core: #d0c7b5be;
  --light-halo: #8e826d77;
  --light-period: 15s;
  --light-delay: -9.8s;
  --light-drift: 5vw;
  --pointer-depth: 1.15;
}

.hero__bloom--upper {
  --light-x: 38%;
  --light-y: 56%;
  --light-size: clamp(10rem, 24vw, 32rem);
  --light-ratio: 1.05;
  --light-core: #a798805e;
  --light-halo: #8e705344;
  --light-blur: clamp(18px, 2.5vw, 45px);
  --light-period: 16s;
  --light-delay: -10.5s;
  --light-rise: 68svh;
  --light-drift: -8vw;
  --pointer-depth: 0.64;
}

.hero__bloom--middle {
  --light-x: 58%;
  --light-y: 65%;
  --light-size: clamp(5rem, 10vw, 14rem);
  --light-core: #c5a688a8;
  --light-halo: #97775e71;
  --light-period: 13s;
  --light-delay: -3.9s;
  --light-drift: 6vw;
}

.hero__bloom--right {
  --light-x: 68%;
  --light-y: 44%;
  --light-size: clamp(3.5rem, 5.5vw, 8rem);
  --light-core: #c6b7a2ac;
  --light-halo: #9e8b6b70;
  --light-period: 14s;
  --light-delay: -8.7s;
  --light-drift: 4.5vw;
  --pointer-depth: 1.25;
}

.hero__bloom--low {
  --light-x: 88%;
  --light-y: 76%;
  --light-size: clamp(7rem, 15vw, 21rem);
  --light-core: #afa89360;
  --light-halo: #86806d45;
  --light-period: 18s;
  --light-delay: -5.4s;
  --light-rise: 64svh;
  --light-drift: -8vw;
  --pointer-depth: 0.78;
}

.hero__rail {
  position: absolute;
  inset: 41% 0 auto;
  transform: translate3d(0, calc(var(--hero-scroll, 0px) * 0.3), 0);
  pointer-events: none;
}

.hero__track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: max(0.85rem, 3.4vw);
  transform: translateY(-50%);
}

.hero__track[data-perspective] {
  display: block;
  transform: none;
}

.photo {
  display: block;
  flex: none;
  inline-size: max(7.5rem, 15vw);
  block-size: auto;
  filter: sepia(0.13) saturate(0.82) brightness(0.93) drop-shadow(0 2px 4px #07040280);
}

.hero__track[data-perspective] .photo {
  position: absolute;
  inset: 0 auto auto 50%;
}

.hero__shade {
  background:
    linear-gradient(180deg, #08050326, transparent 27%, transparent 43%, #0b060466 69%, #0b0604 100%),
    radial-gradient(ellipse at 50% 34%, transparent 38%, #08050387 100%);
}

.hero__armor-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Keep the final fade fixed to the stage while the armor moves behind it. */
  mask-image: linear-gradient(#000 72%, #000d 82%, #0006 92%, transparent 99%);
}

.hero__armor {
  --armor-fade: linear-gradient(
    #000 calc(var(--stage-height) * var(--armor-fade-start)),
    #000b calc(var(--stage-height) * var(--armor-fade-mid)),
    transparent calc(var(--stage-height) * var(--armor-fade-end))
  );
  position: absolute;
  inset-block-start: var(--armor-top);
  inset-inline-start: 50%;
  block-size: var(--armor-height);
  aspect-ratio: 840 / 1280;
  transform: translate3d(-50%, calc(var(--hero-scroll, 0px) * var(--armor-scroll-rate)), 0);
  filter: drop-shadow(0 0 1.7rem #080604b0);
  -webkit-mask-image: var(--armor-fade);
  mask-image: var(--armor-fade);
}

.hero__intro {
  /* The 1920px video has a 948px-wide artwork layer starting 170px down. */
  --intro-pixel: calc(var(--armor-height) * 840 / 1280 / 948);
  --intro-headroom: calc(var(--intro-pixel) * 170);
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: #050505;
  opacity: 1;
  transition: opacity 680ms ease-in-out;
}

.hero__intro--ending { opacity: 0; }

.hero__intro-video {
  --intro-fade: linear-gradient(
    #000 min(calc(var(--intro-headroom) + var(--stage-height) * var(--armor-fade-start)), 84%),
    #000b min(calc(var(--intro-headroom) + var(--stage-height) * var(--armor-fade-mid)), 92%),
    transparent min(calc(var(--intro-headroom) + var(--stage-height) * var(--armor-fade-end)), 100%)
  );
  position: absolute;
  inset-block-start: calc(var(--armor-top) - var(--intro-headroom));
  inset-inline-start: 50%;
  inline-size: calc(var(--intro-pixel) * 1920);
  aspect-ratio: 1920 / 1080;
  transform: translate3d(-50%, calc(var(--hero-scroll, 0px) * var(--armor-scroll-rate)), 0);
  -webkit-mask-image: var(--intro-fade);
  mask-image: var(--intro-fade);
}

.armor {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.armor--reveal {
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 170ms ease-out, visibility 0s linear 170ms;
}

.armor__stone-grain {
  mix-blend-mode: soft-light;
  opacity: 0.65;
}

.hero__stage:has(.hero__reveal[aria-pressed="true"]) .armor--reveal,
.hero__stage[data-lens-active] .armor--reveal {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.site-header,
.hero-menu__header {
  padding: var(--header-block-padding) var(--header-inline-padding);
}

.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  background-color: #0b0809f2;
  transition: opacity 680ms ease-in-out, background-color 360ms ease-in-out;
}

.site-header[data-at-top] { background-color: transparent; }

.site-header[data-intro] {
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.hero__nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.35rem, 1.9vw, 2.25rem);
  color: #fff;
}

.hero__nav ul {
  display: flex;
  justify-content: end;
  gap: clamp(1.1rem, 1.75vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__nav a,
.hero-menu a {
  color: inherit;
  text-decoration: none;
}

.hero__nav li a { font-size: 1rem; font-weight: 600; }
.hero__nav li a:hover { color: #ff8ca4; }
.hero__nav :is(a, button):focus-visible,
.hero-menu :is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.hero__nav-cta {
  display: inline-grid;
  place-items: center;
  min-block-size: var(--header-control-height);
  min-inline-size: 9.125rem;
  padding: 0.55rem 1.15rem;
  border: 2px solid #e4063b;
  border-radius: 2px;
  font: 700 0.875rem/1.25 var(--display-font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__nav-cta:hover { background: #800c2c; }

.hero__brand {
  display: flex;
  align-items: baseline;
  gap: 0.28em;
  justify-self: start;
  font: 700 clamp(1.35rem, 1.85vw, 2.2rem) / 1 var(--display-font);
  letter-spacing: -0.025em;
}

.hero__brand span {
  inline-size: 0.28em;
  aspect-ratio: 1;
  background: var(--accent);
}

.hero-menu-button {
  position: relative;
  inline-size: 2.875rem;
  block-size: var(--header-control-height);
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: none;
  color: #fff;
  cursor: pointer;
}

.hero__menu-toggle { display: none; }
.hero-menu__close { display: block; }

.hero-menu-button span,
.hero-menu__close span::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  inline-size: 1.25rem;
  block-size: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.hero__menu-toggle span { box-shadow: 0 -6px currentColor, 0 6px currentColor; }
.hero-menu__close span { transform: translate(-50%, -50%) rotate(45deg); }
.hero-menu__close span::after {
  transform: translate(-50%, -50%) rotate(90deg);
  content: "";
}

body:has(.hero-menu[open]) { overflow: hidden; }

.hero-menu {
  position: fixed;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: 0 0 clamp(0.85rem, 3vw, 1.75rem);
  border: 0;
  background: radial-gradient(ellipse at top right, #2d0a15, transparent 65%), #0b0809;
  color: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hero-menu[open] { display: flex; flex-direction: column; }
.hero-menu::backdrop { background: transparent; }

.hero-menu__header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-menu__nav {
  inline-size: min(100% - 2 * clamp(1.25rem, 5vw, 3rem), 32rem);
  margin: auto;
  padding-block: clamp(1rem, 4svh, 2.75rem);
}

.hero-menu__nav ul { margin: 0; padding: 0; list-style: none; }
.hero-menu__nav li { border-block-end: 1px solid #ffffff26; }

.hero-menu__nav li a {
  display: block;
  padding-block: 0.62rem;
  font: 700 clamp(1.5rem, 4.15vw, 2.375rem)/1.3 var(--display-font);
}

.hero-menu__nav li a:hover { color: #ff8ca4; }
.hero-menu__nav .hero__nav-cta { margin-block-start: 1.5rem; }

.hero__copy {
  position: absolute;
  inset: auto 1.25rem clamp(2rem, 5.5svh, 4.5rem);
  text-align: center;
  transform: translate3d(0, calc(var(--hero-scroll, 0px) * -0.075), 0);
  pointer-events: none;
}

.hero__text-window {
  display: block;
  overflow: hidden;
}

.hero__text-layer { display: block; }

.hero__copy--entering .hero__text-layer {
  animation: hero-text-rise 1.2s cubic-bezier(0.79, 0.057, 0.273, 0.972) var(--text-delay, 12ms) both;
}

@keyframes hero-text-rise {
  from { transform: translateY(var(--text-start, 100%)); }
  to { transform: translateY(0); }
}

.hero__copy h1 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(6.8rem, min(19vw, 30svh), 17.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.033em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__eyebrow {
  --text-delay: 0ms;
  margin-block-end: 0.38em;
  font-size: clamp(1.45rem, 2.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: #f2ede5;
}

.hero__description {
  margin: clamp(1.1rem, 3svh, 1.65rem) 0 clamp(1.25rem, 3.5svh, 2rem);
}

.hero__description p {
  margin: 0;
  color: #d2c7bc;
  font-size: clamp(1rem, 1.48vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.42;
}

.hero__actions {
  --text-start: calc(100% + 7px);
  padding: 7px;
  margin: -7px;
}

.hero__reveal {
  display: inline-block;
  pointer-events: auto;
  min-block-size: clamp(2.75rem, 7svh, 3.9rem);
  border: 0;
  padding: 0.55rem clamp(1.15rem, 2.3vw, 2.65rem);
  background: var(--accent);
  color: var(--accent-text);
  font: 700 clamp(0.9rem, 1vw, 1.125rem) / 1.3 Manrope, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.hero__reveal[hidden] { display: none; }

.hero__reveal:hover,
.hero__reveal[aria-pressed="true"] {
  background: var(--accent-active);
}

.hero__reveal:focus-visible { outline: 2px solid #f5eee5; outline-offset: 4px; }

@keyframes haze-wash-right {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1.03); opacity: 0.96; }
  50% { transform: translate(5%, -16%) rotate(1.8deg) scale(1.10); opacity: 0; }
  51% { transform: translate(-4%, 13%) rotate(-1.5deg) scale(0.99); opacity: 0; }
}

@keyframes haze-wash-left {
  0% { transform: translate(-4%, 13%) rotate(-1.5deg) scale(0.99); opacity: 0; }
  50% { transform: translate(0, 0) rotate(0deg) scale(1.03); opacity: 0.96; }
  99%, 100% { transform: translate(5%, -16%) rotate(1.8deg) scale(1.10); opacity: 0; }
}

@keyframes haze-rise {
  from { transform: translate(-50%, -50%) scale(0.86); opacity: 0; }
  36% { opacity: 0.88; }
  67% { opacity: 0.72; }
  to {
    transform: translate(calc(-50% + var(--light-drift)), calc(-50% - var(--light-rise))) scale(1.13);
    opacity: 0;
  }
}

.hero__stage[data-offscreen] :is(.hero__wash, .hero__bloom) { animation-play-state: paused; }

@media (max-width: 64rem) {
  .hero__nav[data-menu-ready] { grid-template-columns: 1fr auto; }
  .hero__nav[data-menu-ready] > :is(ul, .hero__nav-cta) { display: none; }
  .hero__menu-toggle:not([hidden]) { display: block; }
}

@media (max-width: 49rem) {
  :root { --header-inline-padding: clamp(1rem, 4vw, 1.5rem); }
  .hero__nav {
    grid-template-columns: auto 1fr;
    gap: 0.65rem 1rem;
  }
  .hero__nav-cta {
    justify-self: end;
    min-inline-size: 0;
    min-block-size: 2.4rem;
    padding-inline: 0.85rem;
  }
  .hero__nav ul {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
  }
  .hero__nav li a { font-size: clamp(0.78rem, 2.5vw, 0.95rem); }
}

@media (max-width: 42rem) {
  .hero__stage {
    --armor-top: 10%;
    --armor-fade-start: 0.44;
    --armor-fade-mid: 0.61;
    --armor-fade-end: 0.77;
  }
  .hero__rail { inset-block-start: 37%; }
  .hero__copy h1 { font-size: clamp(4.5rem, 20vw, 8rem); }
}

@media (max-height: 38rem) {
  .hero__stage { top: calc(100svh - var(--stage-height)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero { --scroll-distance: 0px; }
  .hero__bloom {
    top: calc(var(--light-y) - var(--light-rise) * 0.5);
  }
  .hero__bloom,
  .hero__wash {
    translate: none;
    animation: none;
  }
  .hero__atmosphere, .hero__light-spill { transform: none; }
  .hero__intro, .site-header, .armor--reveal { transition: none; }
  .hero__copy--entering .hero__text-layer { animation: none; }
}
