/**
 * Attraktiv home — cinematic scroll layer.
 *
 * Loaded only on the front page. The base theme remains fully usable if this
 * stylesheet or the animation runtime is removed.
 */

[data-home-cinematic] {
  position: relative;
  background: #050506;
}

.home-scroll-progress {
  position: fixed;
  z-index: 35;
  top: 50%;
  right: 14px;
  width: 2px;
  height: min(22vh, 180px);
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-50%);
  pointer-events: none;
}

.home-scroll-progress i {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--blue), var(--orange));
  box-shadow:
    0 0 14px rgba(37, 82, 255, 0.52),
    0 0 24px rgba(240, 74, 22, 0.3);
  transform: scaleY(0);
  transform-origin: top center;
}

.hero--cinematic {
  min-height: 100svh;
  isolation: isolate;
}

.hero--cinematic::before,
.hero--cinematic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero--cinematic::before {
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.94) 0%, rgba(5, 5, 6, 0.77) 35%, rgba(5, 5, 6, 0.18) 72%, rgba(5, 5, 6, 0.34) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.22) 0%, transparent 58%, rgba(5, 5, 6, 0.58) 100%);
}

.hero--cinematic::after {
  inset: auto clamp(20px, 4.8vw, 82px) 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), rgba(255, 255, 255, 0.18) 48%, var(--orange));
  box-shadow:
    -22vw 0 36px rgba(37, 82, 255, 0.42),
    22vw 0 36px rgba(240, 74, 22, 0.34);
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050506;
  contain: paint;
}

.hero--cinematic .hero-media {
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center;
  animation: none;
  filter: saturate(0.9) contrast(1.06);
  transform: none;
}

.home-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.5) 0 0.7px, transparent 0.9px),
    radial-gradient(circle at 68% 72%, rgba(255, 255, 255, 0.38) 0 0.6px, transparent 0.9px);
  background-size: 9px 9px, 13px 13px;
  pointer-events: none;
}

.hero--cinematic .hero-content {
  min-height: 100svh;
  width: min(790px, 62vw);
  padding-top: clamp(145px, 17vh, 205px);
  padding-bottom: clamp(90px, 12vh, 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero--cinematic .eyebrow {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.68);
}

.hero--cinematic h1 {
  max-width: 760px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(62px, 6.8vw, 108px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.058em;
}

.home-hero__line {
  display: block;
  overflow: hidden;
}

.home-hero__line > span {
  display: block;
  transform-origin: left bottom;
}

.home-hero__line:nth-child(3) > span,
.home-hero__line:nth-child(4) > span {
  color: rgba(255, 253, 250, 0.82);
}

.home-hero__line:nth-child(4) > span::after {
  content: "";
  width: 0.11em;
  height: 0.11em;
  display: inline-block;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 22px rgba(240, 74, 22, 0.68);
}

.hero--cinematic .hero-intro {
  max-width: 510px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.72);
}

.hero--cinematic .hero-actions {
  margin-top: 36px;
}

.hero--cinematic .button {
  min-height: 58px;
  backdrop-filter: blur(12px);
}

.home-scroll-cue {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 4.8vw, 82px);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.home-scroll-cue i {
  position: relative;
  width: 52px;
  height: 1px;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
}

.home-scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  transform: translateX(-100%);
  animation: attraktiv-scroll-cue 2.2s ease-in-out infinite;
}

.poles--cinematic {
  isolation: isolate;
  background:
    radial-gradient(
      circle at 28% 18%,
      rgba(37, 82, 255, 0.055),
      transparent 34%
    ),
    radial-gradient(
      circle at 72% 82%,
      rgba(240, 74, 22, 0.045),
      transparent 34%
    ),
    var(--ivory);
}

.poles--cinematic::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: clamp(260px, 34vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      transparent 0 58.8%,
      rgba(5, 5, 6, 0.075) 59.2% 59.7%,
      transparent 60.1%
    ),
    conic-gradient(
      from 212deg,
      rgba(37, 82, 255, 0.48) 0deg 34deg,
      transparent 34deg 178deg,
      rgba(240, 74, 22, 0.4) 178deg 212deg,
      transparent 212deg 360deg
    );
  -webkit-mask: radial-gradient(
    circle,
    transparent 0 55.5%,
    #000 56% 61%,
    transparent 61.5%
  );
  mask: radial-gradient(
    circle,
    transparent 0 55.5%,
    #000 56% 61%,
    transparent 61.5%
  );
  opacity: 0.54;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.poles--cinematic::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 16px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -45deg,
    var(--blue) 0 50%,
    var(--orange) 50% 100%
  );
  box-shadow:
    0 0 0 8px var(--ivory),
    0 0 0 9px rgba(5, 5, 6, 0.09),
    0 12px 34px rgba(5, 5, 6, 0.08);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.poles--cinematic .pole-number {
  opacity: 0.22;
}

.poles--cinematic .pole h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(46px, 4.5vw, 72px);
  font-weight: 400;
}

.home-sequence__progress {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  width: min(270px, 34vw);
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(5, 5, 6, 0.5);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  transform: translateX(-50%);
}

.home-sequence__progress i {
  position: relative;
  height: 1px;
  flex: 1;
  overflow: hidden;
  background: rgba(5, 5, 6, 0.18);
}

.home-sequence__progress b {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
}

.aci-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.aci-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(48vw, 690px);
  aspect-ratio: 1;
  right: -18vw;
  top: -60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 61, 104, 0.2), transparent 68%);
  filter: blur(24px);
}

.aci-section::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.clients {
  position: relative;
  overflow: hidden;
}

.clients::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -230px;
  bottom: -300px;
  border: 1px solid rgba(5, 5, 6, 0.08);
  border-radius: 50%;
}

.home-motion-ready .home-hero__line > span,
.home-motion-ready .hero-intro,
.home-motion-ready .hero-actions,
.home-motion-ready .pole,
.home-motion-ready .agency-prism,
.home-motion-ready .production-media,
.home-motion-ready .aci-brand,
.home-motion-ready .aci-statement,
.home-motion-ready .aci-section,
.home-motion-ready .clients-label,
.home-motion-ready .client-logo {
  will-change: transform, opacity, clip-path;
}

.home-motion-ready .spectrum-line > span {
  transform-origin: center;
  will-change: transform;
}

.home-motion-fallback .home-scroll-progress {
  display: none;
}

@media (min-width: 1101px) {
  .poles--cinematic,
  .poles--cinematic .poles-grid {
    min-height: clamp(660px, 84svh, 860px);
  }

  .poles--cinematic .pole {
    justify-content: center;
    padding-bottom: 86px;
  }

  .poles--cinematic .pole-trigger {
    margin-top: 50px;
  }
}

@media (max-width: 1100px) {
  .hero--cinematic .hero-content {
    width: min(720px, 70vw);
  }

  .home-sequence__progress {
    display: none;
  }
}

@media (min-width: 621px) and (max-width: 1100px) {
  .hero--cinematic {
    min-height: clamp(760px, 88svh, 920px);
  }

  .hero--cinematic .hero-content {
    min-height: clamp(760px, 88svh, 920px);
    width: min(620px, 68vw);
    padding-top: 132px;
    padding-bottom: 72px;
  }

  .hero--cinematic h1 {
    font-size: clamp(60px, 8vw, 84px);
    line-height: 0.86;
  }
}

@media (max-width: 620px) {
  .home-scroll-progress {
    display: none;
  }

  .hero--cinematic {
    min-height: 780px;
  }

  .hero--cinematic::before {
    background:
      linear-gradient(90deg, rgba(5, 5, 6, 0.94), rgba(5, 5, 6, 0.58)),
      linear-gradient(180deg, transparent 48%, rgba(5, 5, 6, 0.76));
  }

  .hero--cinematic .hero-content {
    min-height: 780px;
    width: 100%;
    padding: 128px 20px 76px;
  }

  .hero--cinematic h1 {
    max-width: 350px;
    font-size: clamp(55px, 17vw, 72px);
    line-height: 0.84;
  }

  .hero--cinematic .hero-intro {
    max-width: 330px;
    margin-top: 30px;
  }

  .hero--cinematic .button {
    min-height: 54px;
  }

  .home-scroll-cue {
    display: none;
  }

  .poles--cinematic::before {
    top: 47%;
    width: min(74vw, 340px);
    opacity: 0.38;
    transform: translate(-50%, -50%) rotate(-12deg);
  }

  .poles--cinematic::after {
    top: 47%;
    width: 14px;
    opacity: 0.82;
  }

  .poles--cinematic .pole h2 {
    font-size: clamp(42px, 12vw, 48px);
    white-space: nowrap;
  }

  .aci-section::after {
    inset: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-scroll-progress {
    display: none;
  }

  .home-scroll-cue i::after {
    animation: none;
    transform: none;
  }

  .hero--cinematic .hero-media,
  .home-hero__line > span,
  .pole,
  .agency-prism,
  .production-media,
  .aci-brand,
  .aci-statement,
  .aci-section,
  .clients-label,
  .client-logo {
    transform: none !important;
    opacity: 1 !important;
    clip-path: none;
  }
}

@keyframes attraktiv-scroll-cue {
  0%,
  18% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}
