:root {
  --black: #03050a;
  --black-2: #06080f;
  --city-blue: #06172b;
  --city-blue-2: #0c2440;
  --steel: #8e99a6;
  --steel-bright: #c7ced7;
  --silver: #e5e8ec;
  --gold: #b98a2b;
  --red: #8d1020;
  --hero-ease: cubic-bezier(.15, .84, .19, 1);
  --spear-flight-ease: cubic-bezier(.18, .78, .14, 1);
  --spear-width: min(96vw, 72rem);
  --spear-impact-inset: clamp(1rem, 2.2vw, 2rem);
  --spear-rebound: clamp(1.05rem, 3.65vw, 3rem);
  --spear-settle-1: clamp(.28rem, .76vw, .72rem);
  --spear-settle-2: clamp(.11rem, .32vw, .28rem);
  --spear-settle-3: clamp(.035rem, .12vw, .11rem);
  --spear-settle-4: clamp(.012rem, .045vw, .04rem);

  /* Manual vertical tuning:
     --spear-layer-y moves ONLY the spear over the wordmark.
     Positive values move the spear down; negative values move it up. */
  --spear-layer-y: clamp(.12rem, .46vw, .38rem);

  /* --brand-y moves the whole spear + wordmark lockup on the screen. */
  --brand-y: 39svh;
  --spear-duration: 3350ms;
  --spear-delay: 280ms;
  --spear-hit-time: 1780ms;
  --wordmark-delay: 3820ms;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
  color: var(--silver);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--silver);
  color: var(--black);
  padding: .7rem 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.spear-site {
  min-height: 100svh;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(199, 206, 215, .10), transparent 22rem),
    radial-gradient(circle at 74% 38%, rgba(185, 138, 43, .13), transparent 18rem),
    linear-gradient(180deg, #02040a 0%, var(--city-blue) 48%, #02040a 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  height: clamp(1rem, 4.8svh, 3.2rem);
  background: rgba(0, 0, 0, .94);
  pointer-events: none;
}

.hero::before {
  top: 0;
}

.hero::after {
  bottom: 0;
}

.hero__atmosphere {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
}

.hero__atmosphere::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.22) 35%, rgba(0,0,0,.16) 62%, rgba(0,0,0,.84)),
    linear-gradient(180deg, rgba(0,0,0,.54), transparent 36%, rgba(0,0,0,.82));
  pointer-events: none;
}

.hero__sky-glow {
  position: absolute;
  left: 50%;
  top: 4svh;
  width: clamp(24rem, 82vw, 68rem);
  aspect-ratio: 1.1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(206, 214, 223, .17) 0 8%, rgba(66, 92, 124, .14) 27%, rgba(7, 20, 39, .08) 55%, transparent 72%);
  filter: blur(.6px);
}

.hero__red-edge,
.hero__gold-edge {
  position: absolute;
  z-index: 1;
  width: clamp(10rem, 30vw, 28rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .26;
}

.hero__red-edge {
  left: -14rem;
  top: 34%;
  background: var(--red);
}

.hero__gold-edge {
  right: -12rem;
  top: 20%;
  background: var(--gold);
}

.hero__skyline {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(42svh, 29rem);
  transform: translate3d(calc(var(--mx, 0) * -8px), calc(var(--my, 0) * -4px), 0);
  opacity: .98;
}

.skyline-layer {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  width: max(138vw, 92rem);
  transform: translateX(-50%);
}

.skyline-layer--back {
  z-index: 1;
  opacity: .36;
  filter: blur(1.2px);
}

.skyline-layer--mid {
  z-index: 2;
  opacity: .58;
  filter: blur(.45px);
}

.skyline-layer--front {
  z-index: 3;
  opacity: .95;
}

.building {
  position: relative;
  flex: 0 0 auto;
  width: var(--building-width);
  height: var(--building-height);
  margin-right: var(--building-gap);
  background:
    linear-gradient(180deg, rgba(26, 48, 79, .96), rgba(5, 7, 13, .99) 76%),
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(255,255,255,.04) 13px 14px);
  border-top: 1px solid rgba(199, 206, 215, .18);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.035),
    0 -1rem 2.4rem rgba(32, 69, 111, .10);
}

.building::before {
  content: "";
  position: absolute;
  inset: 13% 18% 14%;
  opacity: var(--window-opacity);
  background-image:
    radial-gradient(circle, rgba(199,206,215,.7) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(185,138,43,.52) 0 1px, transparent 1.8px);
  background-position: 0 0, 8px 13px;
  background-size: 18px 18px, 26px 26px;
}

.building::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: var(--spire-height, 0px);
  transform: translateX(-50%);
  background: rgba(199, 206, 215, .35);
  box-shadow: 0 0 10px rgba(199, 206, 215, .25);
}

.building--cap-flat {
  border-radius: 1px 1px 0 0;
}

.building--cap-step {
  clip-path: polygon(0 16px, 22% 16px, 22% 0, 78% 0, 78% 16px, 100% 16px, 100% 100%, 0 100%);
}

.building--cap-peak {
  clip-path: polygon(0 100%, 0 13px, 42% 13px, 50% 0, 58% 13px, 100% 13px, 100% 100%);
}

.hero__street-haze {
  position: absolute;
  z-index: 5;
  left: -12%;
  right: -12%;
  bottom: -8svh;
  height: 34svh;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(199, 206, 215, .18), transparent 31%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.78) 60%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  z-index: 12;
  inset: -20%;
  opacity: .11;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.8) 0 1px, transparent 1.2px),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,.7) 0 1px, transparent 1.2px),
    radial-gradient(circle at 44% 53%, rgba(255,255,255,.55) 0 1px, transparent 1.2px);
  background-size: 72px 72px, 113px 113px, 151px 151px;
  animation: grainDrift 8s steps(6) infinite;
}

.hero__lance {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -20svh;
  height: min(116svh, 62rem);
  width: auto;
  transform: translateX(-50%);
  opacity: 0;
  filter:
    grayscale(1)
    contrast(1.16)
    brightness(.88)
    drop-shadow(0 3rem 2.4rem rgba(0,0,0,.76))
    drop-shadow(0 0 3rem rgba(199,206,215,.13));
  animation: lanceReveal 1450ms var(--hero-ease) 240ms forwards;
  animation-play-state: paused;
}

.hero__lance img {
  width: auto;
  max-width: none;
  height: 100%;
}

.hero__brand {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: var(--brand-y);
  width: min(92vw, 68rem);
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero__spear,
.hero__wordmark-wrap {
  grid-area: 1 / 1;
}

.hero__spear {
  position: relative;
  z-index: 3;
  width: var(--spear-width);
  max-width: none;
  opacity: 0;
  transform-origin: center;
  filter:
    drop-shadow(0 0 .8rem rgba(199, 206, 215, .22))
    drop-shadow(0 0 2rem rgba(185, 138, 43, .16));
  animation: spearFlight var(--spear-duration) linear var(--spear-delay) forwards;
  animation-play-state: paused;
}

.hero__wordmark-wrap {
  position: relative;
  z-index: 2;
  width: min(78vw, 38rem);
  opacity: 0;
  transform: translateY(.8rem) scale(.985);
  filter:
    drop-shadow(0 .4rem 1.1rem rgba(0,0,0,.92))
    drop-shadow(0 0 1.2rem rgba(199,206,215,.13));
  animation: nameReveal 1050ms ease-out var(--wordmark-delay) forwards;
  animation-play-state: paused;
}

.hero__wordmark {
  width: 100%;
  height: auto;
}


.hero__identity-copy {
  position: absolute;
  z-index: 10;
  left: clamp(1.35rem, 7vw, 6.2rem);
  top: calc(var(--brand-y) + clamp(6.2rem, 11vw, 9.2rem));
  width: min(82vw, 34rem);
  pointer-events: none;
  opacity: 0;
  transform: translateY(.75rem);
  animation: identityCopyReveal 1050ms ease-out calc(var(--wordmark-delay) + 620ms) forwards;
  animation-play-state: paused;
}

.hero__identity-copy p {
  margin: 0;
  color: rgba(229, 232, 236, .83);
  font-size: clamp(.83rem, 1.35vw, 1.08rem);
  line-height: 1.56;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: none;
  text-shadow:
    0 .35rem 1rem rgba(0,0,0,.86),
    0 0 1.1rem rgba(12,36,64,.34);
}

.hero__identity-copy span {
  display: block;
}

.hero__identity-copy span:last-child {
  color: rgba(229, 232, 236, .94);
  font-weight: 850;
  letter-spacing: .08em;
}

.hero__impact {
  position: absolute;
  z-index: 8;
  top: calc(var(--brand-y) + var(--spear-layer-y));
  right: var(--spear-impact-inset);
  width: 2px;
  height: clamp(4.8rem, 12vw, 8.8rem);
  transform: translateY(-50%) scaleY(.1);
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(229,232,236,.85), rgba(185,138,43,.7), transparent);
  box-shadow:
    0 0 1.4rem rgba(229,232,236,.55),
    0 0 3rem rgba(185,138,43,.38);
  animation: impactFlash 480ms ease-out var(--spear-hit-time) forwards;
  animation-play-state: paused;
  pointer-events: none;
}

.hero__chrome {
  position: absolute;
  z-index: 30;
  top: max(1rem, env(safe-area-inset-top));
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 4vw, 2rem) clamp(1.1rem, 5vw, 4rem);
  pointer-events: none;
}

.hero__name,
.hero__contact,
.hero__enter {
  pointer-events: auto;
  color: rgba(199, 206, 215, .76);
  font-size: clamp(.68rem, 1.8vw, .78rem);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 .2rem .8rem rgba(0,0,0,.8);
  transition: color .2s ease, text-shadow .2s ease;
}

.hero__name:hover,
.hero__contact:hover,
.hero__enter:hover,
.hero__name:focus-visible,
.hero__contact:focus-visible,
.hero__enter:focus-visible {
  color: var(--silver);
  text-shadow: 0 0 1rem rgba(199,206,215,.3);
}

.hero__social {
  position: absolute;
  z-index: 31;
  right: clamp(1rem, 5vw, 4rem);
  bottom: max(clamp(1.4rem, 6svh, 3rem), env(safe-area-inset-bottom));
  display: flex;
  gap: clamp(.55rem, 2.8vw, .9rem);
  align-items: center;
}

.social-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(142, 153, 166, .34);
  border-radius: 999px;
  color: rgba(142, 153, 166, .82);
  background: rgba(5, 7, 13, .34);
  backdrop-filter: blur(8px);
  transition: color .2s ease, border-color .2s ease, transform .2s ease, background .2s ease;
}

.social-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.social-icon--instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-icon--youtube .social-icon__cut {
  fill: var(--black);
}

.social-icon:hover,
.social-icon:focus-visible {
  color: var(--silver);
  border-color: rgba(199, 206, 215, .68);
  background: rgba(12, 36, 64, .5);
  transform: translateY(-2px);
}

.hero__enter {
  position: absolute;
  z-index: 31;
  left: clamp(1rem, 5vw, 4rem);
  bottom: max(clamp(1.65rem, 6.2svh, 3.2rem), env(safe-area-inset-bottom));
  border-bottom: 1px solid rgba(185, 138, 43, .42);
  padding-bottom: .22rem;
}


.hero--sequence-ready .hero__spear,
.hero--sequence-ready .hero__wordmark-wrap,
.hero--sequence-ready .hero__identity-copy,
.hero--sequence-ready .hero__impact,
.hero--sequence-ready .hero__lance {
  animation-play-state: running;
}

@keyframes spearFlight {
  0% {
    opacity: 0;
    transform: translate3d(calc(-50vw - 60%), var(--spear-layer-y), 0) rotate(-2.2deg);
    filter: blur(10px) drop-shadow(0 0 0 rgba(199,206,215,0));
    animation-timing-function: cubic-bezier(.14, .76, .08, 1);
  }

  9% {
    opacity: 1;
    filter: blur(5px) drop-shadow(0 0 1.5rem rgba(199,206,215,.32));
  }

  45% {
    opacity: 1;
    transform: translate3d(calc(50vw - 50% - var(--spear-impact-inset)), var(--spear-layer-y), 0) rotate(0deg);
    filter: blur(0) drop-shadow(0 0 2rem rgba(199,206,215,.44));
    animation-timing-function: cubic-bezier(.2, .64, .2, 1);
  }

  51% {
    transform: translate3d(calc(50vw - 50% - var(--spear-impact-inset)), var(--spear-layer-y), 0) rotate(0deg);
    filter: blur(0) drop-shadow(0 0 2.8rem rgba(185,138,43,.58));
    animation-timing-function: cubic-bezier(.22, .78, .24, 1);
  }

  66% {
    transform: translate3d(calc(-1 * var(--spear-rebound)), var(--spear-layer-y), 0) rotate(0deg);
    filter: blur(0) drop-shadow(0 0 1.7rem rgba(199,206,215,.34));
    animation-timing-function: cubic-bezier(.28, .82, .32, 1);
  }

  79% {
    transform: translate3d(var(--spear-settle-1), var(--spear-layer-y), 0) rotate(0deg);
    animation-timing-function: cubic-bezier(.36, .72, .38, 1);
  }

  89% {
    transform: translate3d(calc(-1 * var(--spear-settle-2)), var(--spear-layer-y), 0) rotate(0deg);
    animation-timing-function: cubic-bezier(.42, .66, .48, 1);
  }

  96%,
  100% {
    opacity: 1;
    transform: translate3d(0, var(--spear-layer-y), 0) rotate(0deg);
    filter: blur(0) drop-shadow(0 0 1.4rem rgba(199,206,215,.28));
  }
}
@keyframes nameReveal {
  0% {
    opacity: 0;
    transform: translateY(.8rem) scale(.985);
    clip-path: inset(0 50% 0 50%);
  }
  60% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes identityCopyReveal {
  0% {
    opacity: 0;
    transform: translateY(.75rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes impactFlash {
  0% {
    opacity: 0;
    transform: translateY(-50%) scaleY(.1);
  }
  35% {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scaleY(.65);
  }
}

@keyframes lanceReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(2.4rem) scale(1.02);
  }
  100% {
    opacity: .98;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes grainDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-2%, 1%, 0); }
  50% { transform: translate3d(1%, -2%, 0); }
  75% { transform: translate3d(2%, 2%, 0); }
}

@media (max-width: 420px) {
  .hero__brand {
    --brand-y: 38svh;
  }

  .hero__identity-copy {
    left: 50%;
    top: calc(var(--brand-y) + clamp(5.4rem, 22vw, 7.2rem));
    width: min(88vw, 25rem);
    transform: translate(-50%, .75rem);
    text-align: center;
  }

  .hero__identity-copy p {
    font-size: clamp(.72rem, 3.35vw, .88rem);
    line-height: 1.48;
    letter-spacing: .045em;
  }

  .hero__lance {
    height: min(114svh, 58rem);
    bottom: -18svh;
  }

  .hero__spear {
    width: min(98vw, 34rem);
  }

  .hero__wordmark-wrap {
    width: 82vw;
  }

  .hero__social {
    right: 50%;
    transform: translateX(50%);
    bottom: max(1.3rem, env(safe-area-inset-bottom));
  }

  .hero__enter {
    left: 50%;
    transform: translateX(-50%);
    bottom: max(4.4rem, calc(env(safe-area-inset-bottom) + 3.8rem));
  }
}

@media (min-width: 760px) {
  .hero__identity-copy {
    top: calc(var(--brand-y) + clamp(6.7rem, 8.4vw, 9.4rem));
    width: min(42vw, 35rem);
  }

  .hero__lance {
    left: auto;
    right: clamp(2.8rem, 10vw, 8rem);
    bottom: -27svh;
    height: min(130svh, 70rem);
    transform: none;
    animation-name: lanceRevealWide;
  }

  .hero__brand {
    --brand-y: 38svh;
    width: min(86vw, 78rem);
  }

  .hero__spear {
    width: min(86vw, 76rem);
  }

  .hero__wordmark-wrap {
    width: min(46vw, 40rem);
  }

  .hero__skyline {
    height: min(40svh, 31rem);
  }

  @keyframes lanceRevealWide {
    0% {
      opacity: 0;
      transform: translateY(2.8rem) scale(1.02);
    }
    100% {
      opacity: .98;
      transform: translateY(0) scale(1);
    }
  }
}

@media (min-width: 1120px) {
  .hero__lance {
    right: clamp(6rem, 13vw, 14rem);
    bottom: -31svh;
    height: min(136svh, 76rem);
  }

  .hero__brand {
    --brand-y: 39svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .hero__spear,
  .hero__wordmark-wrap,
  .hero__identity-copy,
  .hero__lance {
    opacity: 1;
    clip-path: none;
    filter: none;
    animation-play-state: running;
  }

  .hero__spear {
    transform: translate3d(0, var(--spear-layer-y), 0);
  }

  .hero__wordmark-wrap,
  .hero__identity-copy,
  .hero__lance {
    transform: none;
  }

  .hero__lance {
    filter: grayscale(1) contrast(1.14) brightness(.9) drop-shadow(0 3rem 2.4rem rgba(0,0,0,.76));
  }

  .hero__impact {
    display: none;
  }
}
