
.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-mobile-image-height: 0px;
  position: relative;
  width: 100%;
  height: var(--hero-height);
  min-height: 0;
  background: #fff;
  isolation: isolate;
}

.portfolio-hero,
.portfolio-hero * {
  box-sizing: border-box;
}

.hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
}

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

.hero-base {
  z-index: 0;
  inset: 0;
  background: #fff;
}

.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: -1px;
  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: #fff;
  pointer-events: auto;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
  margin: 0 0 clamp(12px, 1.2vw, 22px);
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-eyebrow span {
  display: block;
  width: clamp(36px, 4vw, 62px);
  height: 2px;
  flex-shrink: 0;
  background: #ffae00;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-primary, "Poppins", sans-serif);
  font-size: clamp(50px, min(5.3vw, 90svh), 90px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

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

.hero-copy h1 strong {
  color: #ffad00;
  font-weight: inherit;
}

.hero-copy .text-outline-auto {
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
  paint-order: stroke fill;
}

.hero-description {
  width: min(100%, 470px);
  margin: clamp(14px, 1.8vw, 28px) 0 0;
  font-size: clamp(12px, min(1.15vw, 2.4svh), 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
}

.hero-actions {
  margin-top: clamp(18px, 2.3vw, 38px);
}

.hero-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1vw, 16px);
  min-height: clamp(44px, 4.3vw, 64px);
  padding: 12px clamp(20px, 2vw, 32px);
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #171717;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
  text-decoration: none;
  font-size: clamp(11px, 0.85vw, 14px);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.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: #ff9b00;
  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: clamp(50px, min(4.8vw, 90svh), 70px);
  }
}

@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: clamp(45px, 6vw, 60px);
  }
}

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

  .hero-orange {
    clip-path: polygon(
      0 0,
      100% 0,
      100% 28%,
      72% 68%,
      72% 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 {
    width: 100%;
    height: auto;
    min-height: 0;
    align-items: flex-start;
    padding-top: calc(72px + clamp(32px, 6vw, 55px));
    padding-inline: clamp(18px, 6.5vw, 45px);
  }

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

  .hero-eyebrow {
    gap: clamp(9px, 2.5vw, 16px);
    margin-bottom: clamp(12px, 4vw, 24px);
    font-size: clamp(10px, 2.6vw, 17px);
    letter-spacing: 0;
  }

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

  .hero-copy h1 {
    font-size: clamp(50px, 7.6vw, 52px);
    line-height: 1.14;
    letter-spacing: -0.025em;
  }

  .hero-description {
    width: 100%;
    max-width: 540px;
    margin-top: clamp(16px, 4.5vw, 30px);
    font-size: clamp(13px, 3.3vw, 21px);
    line-height: 1.55;
  }

  .hero-actions {
    width: 100%;
    margin-top: clamp(18px, 5vw, 34px);
  }

  .hero-download {
    display: flex;
    width: 100%;
    min-height: clamp(46px, 12vw, 66px);
    padding: 12px clamp(18px, 5vw, 34px);
    gap: clamp(10px, 2.8vw, 20px);
    font-size: clamp(11px, 2.65vw, 17px);
  }

  .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: clamp(2px, 1vw, 10px);
  }

  .hero-person {
    left: 50%;
  }

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

  .hero-sun {
    left: 59%;
    top: auto;
    bottom: 5%;
  }
}

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

  .hero-eyebrow {
    margin-bottom: 12px;
  }

  .hero-description {
    margin-top: 14px;
  }

  .hero-actions {
    margin-top: 18px;
  }
}

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