.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .hero {
    cursor: crosshair;
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translate3d(0, calc(var(--scroll, 0) * 0.25px), 0) scale(1.06);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.hero__img--dim {
  filter: brightness(0.26) saturate(0.45) contrast(1.15);
}

.hero__beam,
.hero__glow {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}

.hero__beam {
  width: 48vmax;
  height: 48vmax;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0%, rgba(0, 0, 0, 0.82) 32%, rgba(0, 0, 0, 0.3) 58%, transparent 76%);
  mask-image: radial-gradient(circle closest-side, #000 0%, rgba(0, 0, 0, 0.82) 32%, rgba(0, 0, 0, 0.3) 58%, transparent 76%);
}

.hero__img--lit {
  inset: auto;
  top: 0;
  left: 0;
  max-width: none;
  filter: brightness(1.08) saturate(1.1) contrast(1.05);
  will-change: transform;
}

.hero__glow {
  width: 68vmax;
  height: 68vmax;
  background: radial-gradient(circle closest-side, rgba(255, 193, 90, 0.2), transparent 62%);
  mix-blend-mode: screen;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.7) 0%, transparent 22%, transparent 48%, rgba(6, 8, 12, 0.86) 84%, var(--night-950) 100%),
    linear-gradient(90deg, rgba(6, 8, 12, 0.65) 0%, transparent 55%);
}

.hero__content {
  --pt: calc(var(--nav-h) + 48px);
  position: relative;
  align-self: end;
  padding-top: var(--pt);
  padding-bottom: clamp(28px, 4vw, 56px);
  pointer-events: none;
}

.hero__content a,
.hero__content button {
  pointer-events: auto;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bone-dim);
  margin-bottom: clamp(16px, 2vw, 28px);
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 12px var(--lamp);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--lamp);
  animation: pulse 2.2s var(--ease-out) infinite;
}

@keyframes pulse {
  from {
    transform: scale(0.4);
    opacity: 1;
  }
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hero__title {
  position: relative;
  font-size: clamp(5.2rem, 19vw, 19rem);
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.45);
}

.hero__title .split-line:first-child {
  font-size: 0.34em;
  font-stretch: 75%;
  color: var(--lamp);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 0.08em;
}

.hero__badge {
  position: absolute;
  right: 0;
  top: calc(var(--nav-h) + 24px);
  width: clamp(120px, 15vw, 210px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  animation: badge-in 1.2s 1.1s var(--ease-out) forwards;
}

.hero__badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
  fill: var(--bone);
}

.hero__badge text {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__badge-num {
  display: grid;
  place-items: center;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ember);
  color: var(--night-950);
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(2.6rem, 4.6vw, 4.6rem);
  line-height: 1;
  box-shadow: 0 0 60px rgba(255, 90, 31, 0.45);
}

.hero__badge-num {
  white-space: nowrap;
}

.hero__badge-num sup {
  font-size: 0.36em;
  vertical-align: 1em;
  margin-left: 0.04em;
}

@media (max-width: 700px) {
  .hero__content {
    --pt: calc(var(--nav-h) + 28px);
  }

  .hero__badge {
    top: calc(var(--pt) - 10px);
    right: max(var(--gutter), var(--safe-r));
    width: 96px;
  }

  .hero__badge-num {
    font-size: 2.1rem;
  }

  .hero__badge text {
    font-size: 16px;
  }

  .hero__meta {
    max-width: calc(100% - 112px);
    align-items: flex-start;
    line-height: 1.5;
  }

  .hero__meta .pulse-dot {
    flex: none;
    margin-top: 0.45em;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(6, 8, 12, 0.7) 0%, transparent 18%, rgba(6, 8, 12, 0.3) 38%, rgba(6, 8, 12, 0.78) 66%, var(--night-950) 100%),
      linear-gradient(90deg, rgba(6, 8, 12, 0.45) 0%, transparent 70%);
  }

  .hero__lead {
    text-shadow: 0 1px 14px rgba(6, 8, 12, 0.85);
  }
}

@media (max-width: 560px) {
  .hero__title {
    font-size: calc(20vw + 1.25rem);
  }
}

@media (max-width: 1100px) {
  .hero__badge {
    right: max(var(--gutter), var(--safe-r));
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  .hero__title {
    font-size: clamp(4rem, 26svh, 19rem);
  }

  .hero__badge {
    width: 92px;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes badge-in {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-30deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__row {
  display: grid;
  gap: 28px;
  margin-top: clamp(20px, 3vw, 40px);
}

.hero__lead {
  max-width: 44ch;
  font-size: clamp(1.05rem, 0.7vw + 0.85rem, 1.35rem);
  line-height: 1.5;
  color: var(--bone-dim);
}

.hero__lead strong {
  color: var(--bone);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__ctas .btn--ghost {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 520px) {
  .hero__row {
    gap: 22px;
  }

  .hero__ctas {
    gap: 10px;
  }

  .hero__ctas .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 900px) {
  .hero__row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.hero__bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-strong);
  background: rgba(6, 8, 12, 0.62);
}

.hero__bar > div {
  padding: 18px var(--gutter);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero__bar dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}

.hero__bar dd {
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(1.1rem, 1.4vw, 1.45rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero__count dd {
  font-family: var(--mono);
  font-stretch: 100%;
  font-weight: 500;
  color: var(--lamp);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 899px) {
  .hero__bar > div {
    padding-block: 14px;
  }

  .hero__bar > div:nth-child(odd) {
    padding-right: 14px;
  }

  .hero__bar > div:nth-child(even) {
    padding-left: 16px;
    border-right: 0;
  }

  .hero__bar > div:nth-child(n + 3) {
    border-bottom: 0;
  }

  .hero__bar dt {
    margin-bottom: 4px;
  }
}

@media (max-width: 420px) {
  .hero__bar dd {
    font-size: 1rem;
  }
}

@media (min-width: 900px) {
  .hero__bar {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__bar > div {
    border-bottom: 0;
  }

  .hero__bar > div:last-child {
    border-right: 0;
  }
}

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--ember);
  color: var(--night-950);
  transform: rotate(-1.6deg) scale(1.03);
  margin-block: -6px;
  box-shadow: 0 20px 60px -20px rgba(255, 90, 31, 0.6);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 16px 14px;
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__track span::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--night-950);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
