/* One-screen hero concept inspired by dense premium studio landing pages. */
header.fixed {
  border-color: rgba(255, 250, 242, 0.08) !important;
  background: rgba(30, 31, 29, 0.94) !important;
  color: #fffaf2;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
}

header.fixed > .container-shell {
  height: 56px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

header.fixed a,
header.fixed nav {
  color: rgba(255, 250, 242, 0.78) !important;
}

header.fixed a:hover,
header.fixed a:focus-visible,
header.fixed nav a:hover,
header.fixed nav a:focus-visible {
  color: #fffaf2 !important;
}

header.fixed a[aria-label="Levin Design Studio"] > span:first-child {
  background: #fffaf2 !important;
  color: #20221f !important;
}

header.fixed a[aria-label="Levin Design Studio"] span span:first-child,
header.fixed a[aria-label="Levin Design Studio"] span span:last-child {
  color: #fffaf2 !important;
}

header.fixed a[href="/#consultation"],
header.fixed a[href="#consultation"] {
  background: #fffaf2 !important;
  color: #20221f !important;
}

main > section:first-child {
  min-height: 100svh !important;
  isolation: isolate;
}

main > section:first-child.levin-slider-ready > img {
  opacity: 0 !important;
}

.levin-hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #11120f;
}

.levin-hero-slider::before {
  position: absolute;
  inset: -18%;
  z-index: 4;
  content: "";
  pointer-events: none;
  opacity: 0.36;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 250, 242, 0.2), transparent 26%),
    radial-gradient(circle at 82% 72%, rgba(101, 116, 93, 0.22), transparent 28%);
  mix-blend-mode: screen;
  animation: levinLightDrift 16s ease-in-out infinite alternate;
}

.levin-hero-slider::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  content: "";
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 250, 242, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 242, 0.12) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.65), transparent 68%);
}

.levin-hero-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: scale(1.08) translate3d(calc(var(--slide-shift) * 22px), 0, 0);
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 38% 100%);
  transition:
    opacity 1.25s ease,
    transform 1.8s cubic-bezier(0.18, 0.84, 0.22, 1),
    clip-path 1.55s cubic-bezier(0.2, 0.92, 0.18, 1);
  will-change: opacity, transform, clip-path;
}

.levin-hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(108deg, transparent 0 42%, rgba(255, 250, 242, 0.22) 49%, transparent 57%),
    linear-gradient(90deg, rgba(12, 13, 12, 0.18), transparent);
  transform: translateX(-24%);
  transition:
    opacity 0.9s ease,
    transform 1.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.levin-hero-slide::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: var(--slide-image) center / cover no-repeat;
  filter: blur(26px) saturate(0.86);
  opacity: 0.2;
  transform: scale(1.08);
}

.levin-hero-slide img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.05);
  transform: scale(1.02);
}

.levin-hero-slide.is-active {
  z-index: 3;
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.levin-hero-slide.is-active img {
  animation: levinHeroKenburns 5.2s ease-out both;
}

.levin-hero-slide.is-active::before {
  opacity: 1;
  transform: translateX(18%);
}

.levin-hero-slide.is-leaving {
  z-index: 2;
  opacity: 0;
  transform: scale(1.04) translate3d(calc(var(--slide-shift) * -18px), 0, 0);
  clip-path: polygon(0 0, 42% 0, 62% 100%, 0 100%);
}

.levin-hero-rail {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 188px;
  z-index: 20;
  display: grid;
  gap: 10px;
}

.levin-hero-dot {
  position: relative;
  width: 48px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.26);
  cursor: pointer;
}

.levin-hero-dot span {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: #fffaf2;
}

.levin-hero-dot.is-active span {
  animation: levinDotProgress 5.2s linear both;
}

main > section:first-child > img {
  filter: saturate(0.94) contrast(1.04);
  transform: scale(1.015);
}

main > section:first-child > div.absolute:nth-of-type(1) {
  background: linear-gradient(90deg, rgba(12, 13, 12, 0.84) 0%, rgba(12, 13, 12, 0.62) 45%, rgba(12, 13, 12, 0.2) 100%) !important;
}

main > section:first-child > div.absolute:nth-of-type(2) {
  background: linear-gradient(0deg, rgba(12, 13, 12, 0.82) 0%, rgba(12, 13, 12, 0.18) 52%, rgba(12, 13, 12, 0.34) 100%) !important;
}

main > section:first-child > .container-shell {
  height: 100svh !important;
  min-height: 100svh !important;
  align-items: center !important;
  box-sizing: border-box;
  padding-top: 72px !important;
  padding-bottom: 118px !important;
}

main > section:first-child > .container-shell > div {
  max-width: 940px !important;
}

main > section:first-child h1 {
  max-width: 940px;
  font-family: var(--font-sans), Inter, system-ui, sans-serif !important;
  font-size: clamp(44px, 5.2vw, 68px) !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  line-height: 0.98 !important;
}

main > section:first-child p {
  max-width: 680px !important;
  font-size: clamp(17px, 1.35vw, 20px) !important;
  line-height: 1.48 !important;
}

main > section:first-child .mt-7 {
  margin-top: 28px !important;
}

main > section:first-child a[href="#consultation"],
main > section:first-child a[href="#quiz"],
main > section:first-child a[href*="wa.me"] {
  min-height: 54px !important;
  padding-inline: 28px !important;
  border-radius: 999px !important;
  font-weight: 680 !important;
  backdrop-filter: blur(14px);
}

main > section:first-child a[href="#consultation"] {
  background: rgba(255, 250, 242, 0.94) !important;
  color: #20221f !important;
}

main > section:first-child a[href="#quiz"] {
  border-color: rgba(255, 250, 242, 0.72) !important;
  background: rgba(255, 250, 242, 0.12) !important;
  color: #fffaf2 !important;
}

main > section:first-child a[href*="wa.me"] {
  background: rgba(255, 250, 242, 0.08) !important;
  color: #fffaf2 !important;
}

main > section:nth-of-type(2) {
  margin-top: -150px !important;
  padding-bottom: 30px !important;
}

main > section:nth-of-type(2) > .container-shell {
  padding: 8px !important;
  border-color: rgba(255, 250, 242, 0.18) !important;
  background: rgba(25, 27, 24, 0.64) !important;
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: blur(18px);
}

main > section:nth-of-type(2) > .container-shell > div {
  min-height: 82px;
  padding: 14px 18px !important;
  border: 1px solid rgba(255, 250, 242, 0.12);
  background: rgba(255, 250, 242, 0.08) !important;
}

main > section:nth-of-type(2) p:first-child {
  font-family: var(--font-sans), Inter, system-ui, sans-serif !important;
  font-size: clamp(26px, 2.7vw, 36px) !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  color: #fffaf2 !important;
}

main > section:nth-of-type(2) p:last-child {
  margin-top: 8px !important;
  color: rgba(255, 250, 242, 0.76) !important;
}

@keyframes levinHeroKenburns {
  from {
    transform: scale(1.04) translate3d(calc(var(--slide-shift) * 14px), 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(calc(var(--slide-shift) * -10px), -8px, 0);
  }
}

@keyframes levinLightDrift {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(0deg);
  }
  to {
    transform: translate3d(2%, 2%, 0) rotate(4deg);
  }
}

@keyframes levinDotProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 767px) {
  header.fixed > .container-shell {
    height: 64px !important;
  }

  main > section:first-child {
    min-height: 100svh !important;
  }

  .levin-hero-slide {
    clip-path: polygon(0 32%, 100% 18%, 100% 100%, 0 100%);
  }

  .levin-hero-slide.is-active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .levin-hero-slide.is-leaving {
    clip-path: polygon(0 0, 100% 0, 100% 36%, 0 54%);
  }

  .levin-hero-rail {
    display: none;
  }

  main > section:first-child > .container-shell {
    align-items: flex-end !important;
    padding-top: 92px !important;
    padding-bottom: 248px !important;
  }

  main > section:first-child h1 {
    font-size: clamp(36px, 11vw, 54px) !important;
  }

  main > section:first-child p {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  main > section:first-child a[href="#consultation"],
  main > section:first-child a[href="#quiz"],
  main > section:first-child a[href*="wa.me"] {
    width: 100%;
    min-height: 50px !important;
  }

  main > section:first-child a[href*="wa.me"] {
    display: none !important;
  }

  main > section:nth-of-type(2) {
    margin-top: -230px !important;
    padding-bottom: 20px !important;
  }

  main > section:nth-of-type(2) > .container-shell {
    gap: 6px !important;
    padding: 6px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  main > section:nth-of-type(2) > .container-shell > div {
    min-height: 62px;
    padding: 8px 10px !important;
  }

  main > section:nth-of-type(2) p:first-child {
    font-size: 22px !important;
  }

  main > section:nth-of-type(2) p:last-child {
    margin-top: 4px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .levin-hero-slider::before,
  .levin-hero-slide,
  .levin-hero-slide::before,
  .levin-hero-slide img,
  .levin-hero-dot span {
    animation: none !important;
    transition: none !important;
  }
}
