
.portfolio-hero {
  --hero-progress: 0;
  --hero-height: 100svh;
  --person-width: min(50vw, 95svh);
  --logos-width: 27vw;
  --sun-width: 56vw;
  --person-left: 50%;
  --person-shift: 210px;
  --logos-shift: -205px;
  --sun-shift: 119px;
  --hero-description-width: 470px;
  --hero-description-font-size: var(--font-base);
  position: relative;
  width: 100%;
  height: var(--hero-height);
  background: var(--color-white);
  isolation: isolate;
}

.hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-white);
}

.hero-base,
.hero-sun,
.hero-logos,
.hero-orange,
.hero-person {
  position: absolute;
  pointer-events: none;
}

.hero-base {
  z-index: 0;
  inset: 0;
  background: var(--color-white);
}

.hero-sun {
  z-index: 10;
  width: var(--sun-width);
  max-width: none;
  aspect-ratio: 1;
  left: 65%;
  top: 12%;
  transform: translate3d(
    -50%,
    calc(var(--hero-progress) * var(--sun-shift)),
    0
  ) rotate(calc(-25deg + var(--hero-progress) * 156deg));
  transform-origin: center;
  will-change: transform;
}

.hero-logos {
  z-index: 55;
  width: var(--logos-width);
  max-width: none;
  right: 12%;
  top: 16%;
  transform: translate3d(
    0,
    calc(var(--hero-progress) * var(--logos-shift)),
    0
  );
  will-change: transform;
}

.hero-orange {
  z-index: 50;
  inset: 0;
  width: 100%;
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.21),
      rgba(0, 0, 0, 0.21)
    ),
    radial-gradient(
      ellipse at 42% 55%,
      rgba(255, 124, 0, 0.98) 0%,
      rgba(238, 66, 0, 0.95) 33%,
      rgba(151, 36, 10, 0.98) 70%,
      #43150d 100%
    );
  clip-path: polygon(0 0, 62% 0, 37% 100%, 0 100%);
}

.hero-orange::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 120%;
  left: 7%;
  top: -10%;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    transparent 20%,
    rgba(255, 143, 0, 0.27) 60%,
    rgba(255, 70, 0, 0.55) 100%
  );
  transform: rotate(-24deg);
}

.hero-person {
  z-index: 100;
  width: var(--person-width);
  max-width: none;
  left: var(--person-left);
  bottom: -2px;
  transform: translate3d(
    calc(-50% + var(--hero-progress) * var(--person-shift)),
    0,
    0
  );
  transform-origin: bottom center;
  will-change: transform;
}

.hero-person img,
.hero-sun img,
.hero-logos img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-content {
  position: relative;
  z-index: 110;
  display: flex;
  align-items: center;
  height: 100%;
  pointer-events: none;
}

.hero-copy {
  width: min(49%, 660px);
  margin: 0;
  color: var(--color-white);
  pointer-events: auto;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--font-sm);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.hero-eyebrow span {
  display: block;
  width: clamp(36px, 4vw, 62px);
  height: 2px;
  background: var(--color-primary-light);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--font-h1);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.04;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.hero-copy h1 > span {
  display: block;
}

.hero-copy h1 strong {
  color: var(--color-accent);
  font-weight: inherit;
}

.hero-copy h1 .hero-symbol {
  color: var(--color-dark);
}

.hero-description {
  width: min(100%, var(--hero-description-width));
  max-width: 100%;
  margin-top: var(--space-4);
  font-size: var(--hero-description-font-size);
  line-height: 1.55;
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  opacity: 0.9;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: var(--space-5);
}

.hero-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: clamp(44px, 4.3vw, 64px);
  padding: 12px var(--space-5);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-dark);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
  font-size: var(--font-sm);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  white-space: nowrap;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.hero-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.32);
}

.hero-download svg {
  width: clamp(19px, 1.7vw, 26px);
  height: clamp(19px, 1.7vw, 26px);
  color: var(--color-primary-light);
  flex-shrink: 0;
}

.hero-download .hero-button-arrow {
  width: 17px;
  height: 17px;
  margin-left: 10px;
}

@media (min-width: 768px) and (max-width: 1400px) {
  .portfolio-hero {
    --person-left: 52%;
  }

  .hero-logos {
    right: 8%;
    top: 13%;
  }

  .hero-sun {
    left: 66%;
    top: 9%;
  }

  .hero-copy {
    width: min(50%, 660px);
  }

  .hero-copy h1 {
    font-size: var(--font-h1-medium);
  }
}

@media (min-width: 768px) and (max-aspect-ratio: 1/1) {
  .portfolio-hero {
    --person-left: 54%;
  }

  .hero-logos {
    right: 5%;
    top: 12%;
  }

  .hero-sun {
    left: 68%;
    top: 8%;
  }

  .hero-copy {
    width: 49%;
  }

  .hero-copy h1 {
    font-size: var(--font-h1-tablet);
  }
}

@media (max-width: 767px) {
  .portfolio-hero {
    --person-left: 37%;
    --person-shift: 14vw;
    --logos-shift: -14vw;
    --sun-shift: 10vw;
  }

  .hero-orange {
    clip-path: polygon(
      0 0,
      100% 0,
      100% 27%,
      70% 70%,
      70% 100%,
      0 100%
    );
    background-image:
      linear-gradient(
        rgba(0, 0, 0, 0.21),
        rgba(0, 0, 0, 0.21)
      ),
      radial-gradient(
        ellipse at 43% 70%,
        #ff7900 0%,
        #ff5300 33%,
        #bb2a08 66%,
        #681608 100%
      );
  }

  .hero-orange::before {
    width: 110%;
    height: 90%;
    left: -25%;
    top: 15%;
    background: linear-gradient(
      145deg,
      transparent 12%,
      rgba(255, 159, 0, 0.16) 55%,
      rgba(255, 99, 0, 0.3) 100%
    );
    transform: rotate(-18deg);
  }

  .hero-content {
    align-items: flex-start;
    padding-top: clamp(30px, 6svh, 60px);
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .hero-eyebrow {
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--font-xs);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0;
  }

  .hero-eyebrow span {
    width: clamp(35px, 11vw, 70px);
  }

  .hero-copy h1 {
    font-size: var(--font-h1-mobile);
    line-height: 1.08;
    letter-spacing: -0.065em;
  }

  .hero-copy h1 > span {
    white-space: nowrap;
  }

  .hero-description {
    margin-top: var(--space-4);
  }

  .hero-actions {
    margin-top: var(--space-5);
  }

  .hero-download {
    min-height: clamp(46px, 12vw, 66px);
    padding: 12px var(--space-4);
    font-size: var(--font-sm);
  }

  .hero-download svg {
    width: clamp(19px, 5vw, 30px);
    height: clamp(19px, 5vw, 30px);
  }

  .hero-download .hero-button-arrow {
    width: clamp(15px, 4vw, 23px);
    height: clamp(15px, 4vw, 23px);
    margin-left: var(--space-1);
  }

  .hero-logos {
    right: 0;
    top: auto;
    bottom: 11%;
  }

  .hero-sun {
    left: 77%;
    top: auto;
    bottom: 7%;
  }
}

@media (max-width: 767px) and (max-height: 650px) {
  .hero-content {
    padding-top: var(--space-5);
  }

  .hero-eyebrow {
    margin-bottom: var(--space-3);
  }

  .hero-description {
    margin-top: var(--space-3);
  }

  .hero-actions {
    margin-top: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sun,
  .hero-logos,
  .hero-person {
    will-change: auto;
  }
}
