:root {
  --ink: #101010;
  --paper: #fbfbf8;
  --amber: #f5a522;
  --mx: 0px;
  --my: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

.scene {
  isolation: isolate;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.scene__image,
.scene__shade {
  position: absolute;
  inset: -18px;
  pointer-events: none;
}

.scene__image {
  z-index: -3;
  transform: translate3d(var(--mx), var(--my), 0) scale(1.035);
  background:
    linear-gradient(125deg, rgba(18, 34, 17, 0.42), rgba(4, 7, 5, 0.06) 52%, rgba(6, 11, 4, 0.46)),
    url("https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260715_021124_b20d7db2-0adb-43dc-b502-1b7226d75b69.png&w=1600&q=90") center / auto 100% no-repeat,
    radial-gradient(circle at 50% 45%, #47732c, #152015 65%, #080908);
  filter: saturate(1.12) contrast(1.04);
  animation: image-breathe 16s ease-in-out infinite alternate;
  transition: transform 700ms cubic-bezier(.2, .8, .2, 1);
}

/* The supplied Urban Jungle artwork already contains the original title,
   navigation, and transit display. Keep the semantic overlays in the DOM,
   but avoid doubling those pixels in the visual recreation. */
.nav-pill,
.transit-sign,
.hero-copy,
.leaf {
  visibility: hidden;
}

.scene__shade {
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 30%, rgba(0, 0, 0, 0.58) 100%),
    radial-gradient(circle at 50% 55%, transparent 25%, rgba(0, 0, 0, 0.24) 100%);
}

.nav-pill {
  position: absolute;
  z-index: 5;
  top: clamp(18px, 4vw, 42px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(4, 6, 4, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translate(-50%, -18px);
  animation: enter-nav 900ms 100ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.nav-pill__close,
.nav-pill__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.nav-pill__close {
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: #050505;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
}

.nav-pill__item {
  min-height: 30px;
  padding: 0 17px;
  background: var(--paper);
}

.nav-pill__item:not(.is-active) {
  background: rgba(255, 255, 255, 0.87);
}

.nav-pill__item:hover,
.nav-pill__item:focus-visible {
  background: var(--amber);
  transform: translateY(-2px);
  outline: none;
}

.transit-sign {
  position: absolute;
  z-index: 3;
  top: 14%;
  left: 50%;
  display: grid;
  gap: 2px;
  min-width: 172px;
  padding: 13px 19px 12px;
  border: 6px solid rgba(22, 25, 19, 0.92);
  border-radius: 13px;
  background: linear-gradient(#564019, #2d2515);
  box-shadow: 0 0 0 2px rgba(167, 121, 34, 0.32), 0 0 27px rgba(247, 179, 43, 0.27);
  color: var(--amber);
  font-family: "Courier New", monospace;
  font-size: clamp(9px, 1vw, 15px);
  font-weight: 800;
  line-height: 1.02;
  text-align: center;
  text-shadow: 0 0 7px rgba(255, 180, 50, 0.6);
  opacity: 0;
  transform: translate(-50%, -8px);
  animation: enter-sign 1s 500ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.hero-copy {
  position: absolute;
  z-index: 4;
  right: clamp(18px, 4vw, 64px);
  bottom: clamp(28px, 6vw, 74px);
  left: clamp(18px, 4vw, 64px);
  text-align: center;
}

.hero-copy__eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.42em;
  opacity: 0;
  transform: translateY(12px);
  animation: enter-copy 800ms 720ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.hero-copy__title {
  margin: 0;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(62px, 11.5vw, 188px);
  font-weight: 900;
  letter-spacing: -0.095em;
  line-height: 0.76;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.hero-copy__title span {
  display: block;
  opacity: 0;
  transform: translate3d(var(--mx), calc(28px + var(--my)), 0);
  animation: enter-title 1.05s cubic-bezier(.2, .8, .2, 1) forwards;
}

.hero-copy__title span:nth-child(2) {
  animation-delay: 150ms;
}

.leaf {
  position: absolute;
  z-index: 6;
  width: clamp(42px, 6vw, 100px);
  pointer-events: none;
  opacity: 0;
  animation: enter-leaf 850ms 1s cubic-bezier(.2, .8, .2, 1) forwards;
}

.leaf svg {
  display: block;
  width: 100%;
  height: auto;
  fill: #fff;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 3;
}

.leaf--left {
  bottom: 29%;
  left: 13%;
  transform: rotate(-22deg);
}

.leaf--right {
  right: 13%;
  bottom: 16%;
  transform: rotate(15deg) scaleX(-1);
}

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

@keyframes image-breathe {
  from { background-position: center center, center center, center center; }
  to { background-position: center center, 51% 49%, center center; }
}

@keyframes enter-nav {
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes enter-sign {
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes enter-copy {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes enter-title {
  to { opacity: 1; transform: translate3d(var(--mx), var(--my), 0); }
}

@keyframes enter-leaf {
  to { opacity: 1; }
}

@media (max-width: 760px) {
  .scene__image {
    background-size: auto 100%;
  }

  .nav-pill {
    max-width: calc(100vw - 24px);
    gap: 3px;
  }

  .nav-pill__item {
    padding: 0 10px;
    font-size: 8px;
  }

  .transit-sign {
    top: 16%;
    min-width: 134px;
    padding: 10px 12px;
    border-width: 4px;
    font-size: 8px;
  }

  .hero-copy {
    bottom: 38px;
  }

  .hero-copy__eyebrow {
    margin-bottom: 14px;
    font-size: 7px;
    letter-spacing: 0.28em;
  }

  .hero-copy__title {
    font-size: clamp(54px, 17vw, 108px);
    letter-spacing: -0.08em;
    line-height: 0.8;
  }

  .leaf--left { left: 4%; bottom: 29%; }
  .leaf--right { right: 4%; bottom: 17%; }
}

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

  .scene__image,
  .hero-copy__title span {
    transform: none;
  }
}
