/* s02-hero — LAVA Dental Studio Section 1 Architecture Across Mobile, Tablet & PC */
#top.ws-hero-root {
  --hero-pad-x: clamp(1.5rem, 1.3636rem + 0.6061vw, 1.875rem);
  --hero-gutter: clamp(1rem, 0.6818rem + 1.4141vw, 1.875rem);
  --hero-pad-top: clamp(5.75rem, 4.5455rem + 6.4646vw, 10rem);
  --hero-pad-bottom: clamp(2rem, 1.3636rem + 2.8283vw, 3.75rem);
  --hero-gap-y: clamp(1.25rem, 1.1364rem + 1.6162vw, 2.5rem);
  --hero-step-3: clamp(1.9531rem, 1.5867rem + 1.6285vw, 2.9607rem);
  --hero-step-1: clamp(1.25rem, 1.0986rem + 0.6727vw, 1.6663rem);
  --hero-step--1: clamp(0.8rem, 0.7499rem + 0.2226vw, 0.9377rem);
  --hero-ease-1: cubic-bezier(0.33, 0, 0.11, 1);
  --hero-ease-2: cubic-bezier(1, 0, 0.47, 0.93);
  --hero-ease-3: cubic-bezier(0.2, 1.8, 0.4, 1);
  --hero-ease-4: cubic-bezier(0.1, 0.75, 0.25, 1);
  position: sticky;
  top: 0;
  z-index: 1;
  overflow: clip;
  background-color: #031c14;
  color: #ddefde;
}

/* 50/50 Split Background & Dual Opposing Intro Curtains */
#top .ws-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 28, 20, 0.96) 0%,
    rgba(3, 28, 20, 0.72) 52%,
    rgba(3, 28, 20, 0.5) 100%
  );
}

@media screen and (min-width: 720px) {
  #top .ws-hero-bg {
    background: linear-gradient(
      180deg,
      rgba(3, 28, 20, 0.78) 0%,
      rgba(3, 28, 20, 0.28) 28%,
      rgba(3, 28, 20, 0) 56%
    );
  }
}

#top .ws-hero-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  filter: contrast(1.03) brightness(0.9);
}

#top .ws-hero-bg::before,
#top .ws-hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #031c14;
  pointer-events: none;
}

#top .ws-hero-bg::before {
  transform-origin: 0% 50%;
  transform: scaleX(0.5);
}

#top .ws-hero-bg::after {
  transform-origin: 100% 50%;
  transform: scaleX(0);
  opacity: 1;
}

#top.is-animating:not(.is-loaded) .ws-hero-bg::before {
  transform: scaleX(1);
}

#top.is-animating:not(.is-loaded) .ws-hero-bg::after {
  transform: scaleX(1);
  opacity: 0.82;
}

#top.is-animating.is-loaded .ws-hero-bg::before {
  animation: ws-hero-bg-enter-left 1.15s forwards;
}

#top.is-animating.is-loaded .ws-hero-bg::after {
  animation: ws-hero-bg-enter-right 1.15s forwards;
}

@keyframes ws-hero-bg-enter-left {
  0% {
    transform: scaleX(1);
    animation-timing-function: cubic-bezier(1, 0, 0.47, 0.93);
  }
  50% {
    transform: scaleX(0);
    animation-timing-function: cubic-bezier(0.33, 0, 0.11, 1);
  }
  100% {
    transform: scaleX(0.5);
  }
}

@keyframes ws-hero-bg-enter-right {
  0%,
  50% {
    opacity: 0.82;
    transform: scaleX(1);
    animation-timing-function: cubic-bezier(0.33, 0, 0.11, 1);
  }
  100% {
    opacity: 1;
    transform: scaleX(0);
  }
}

/* Foreground 12-Col / 4-Row Responsive Content Grid */
#top .ws-hero-content {
  position: relative;
  z-index: 2;
}

#top .ws-hero-container {
  width: min(1290px, calc(100% - var(--hero-pad-x) * 2));
  margin-inline: auto;
}

#top .ws-hero-grid {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: var(--hero-gap-y) var(--hero-gutter);
  padding: var(--hero-pad-top) 0 calc(var(--hero-pad-bottom) + 56px);
}

@media screen and (min-width: 720px) {
  #top .ws-hero-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(4, auto);
  }
}

@media screen and (min-width: 768px) {
  #top .ws-hero-grid {
    padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
  }
}

#top .ws-hero-item {
  grid-column: 1 / -1;
  min-width: 0;
}

#top .ws-hero-item--body {
  place-self: center;
  width: 100%;
}

#top .ws-hero-item--footer {
  align-self: end;
}

@media screen and (min-width: 720px) {
  #top .ws-hero-item {
    grid-column: 1 / span 5;
    grid-row-end: span 2;
  }

  #top .ws-hero-item--header {
    grid-row-start: 1;
  }

  #top .ws-hero-item--body {
    grid-area: 1 / 4 / span 4 / span 6;
    place-self: center;
    width: 100%;
  }

  #top .ws-hero-item--footer {
    grid-row-start: 3;
    align-self: end;
  }
}

@media screen and (min-width: 720px) and (max-width: 959px) and (max-height: 1023px) {
  #top .ws-hero-item--body {
    grid-column: 7 / span 6;
  }
}

@media screen and (min-width: 960px) {
  #top .ws-hero-item {
    grid-column: 1 / span 4;
  }

  #top .ws-hero-item--header {
    grid-row-start: 1;
  }

  #top .ws-hero-item--body {
    grid-area: 1 / 5 / span 4 / span 4;
    place-self: center;
    width: 100%;
  }

  #top .ws-hero-item--footer {
    grid-row-start: 3;
    align-self: end;
  }
}

/* Display Heading & Staggered Word Entrance */
#top .ws-hero-title {
  margin: 0;
  max-width: 398px;
  font-family: 'Josefin Sans', 'Jost', sans-serif;
  font-size: var(--hero-step-3);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
  color: #ddefde;
}

@media screen and (max-width: 719px) {
  #top .ws-hero-title,
  #top .ws-hero-body {
    text-wrap: balance;
  }

  #top .ws-hero-title {
    max-width: 285px;
  }
}

#top .ws-hero-word {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.75s var(--hero-ease-3),
    transform 0.75s var(--hero-ease-3);
  transition-delay: calc(var(--word-i, 0) * 0.08s + 0.06s);
}

#top .ws-hero-word:first-child {
  transition-delay: 0s;
}

#top.is-animating:not(.is-loaded) .ws-hero-word {
  opacity: 0;
  transform: translateY(14px);
  transition: none;
}

/* Center-Seam Video Preview Card & Scroll Polygon Clip Collapse */
#top .ws-hero-video-card {
  max-width: 470px;
  width: 100%;
  margin-inline: auto;
  border-radius: clamp(0.5rem, 0.4545rem + 0.202vw, 0.625rem);
  overflow: clip;
  background-color: #031c14;
  opacity: 1;
  transform: scale(1);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  transition:
    opacity 0.85s var(--hero-ease-1) 0.14s,
    transform 0.85s var(--hero-ease-1) 0.14s,
    clip-path 0.85s var(--hero-ease-1) 0.14s;
}

@media screen and (max-width: 719px) {
  #top .ws-hero-video-card {
    max-width: min(360px, 100%);
  }
}

#top.is-animating:not(.is-loaded) .ws-hero-video-card {
  opacity: 0;
  transform: scale(0.5);
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  transition: none;
}

#top .ws-hero-video-clip {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: inherit;
  overflow: clip;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  will-change: clip-path;
}

@media screen and (max-width: 719px) and (max-height: 760px) {
  #top .ws-hero-video-clip {
    max-height: 28svh;
  }
}

#top .ws-hero-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  display: block;
  animation: ws-hero-poster-drift 14s ease-in-out infinite alternate;
}

@keyframes ws-hero-poster-drift {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.055);
  }
}

#top .ws-hero-video-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(3, 28, 20, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#top .ws-hero-play-circle {
  width: clamp(2.5rem, 1.5rem + 2.5vw, 3.75rem);
  height: clamp(2.5rem, 1.5rem + 2.5vw, 3.75rem);
  border-radius: 50%;
  background-color: #ddefde;
  color: #031c14;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 50%;
  opacity: 1;
  transform: scale(1);
  transition:
    transform 0.5s var(--hero-ease-4),
    opacity 0.5s var(--hero-ease-1) 0.38s;
}

#top .ws-hero-play-circle svg {
  width: 100%;
  height: 100%;
  display: block;
}

#top.is-animating:not(.is-loaded) .ws-hero-play-circle {
  opacity: 0;
  transform: scale(0);
  transition: none;
}

#top .ws-hero-video-btn:hover .ws-hero-play-circle {
  transform: scale(1.1);
}

/* Bottom-Left Subtitle & Primary Pill CTA */
#top .ws-hero-body {
  font-size: var(--hero-step-1);
  font-weight: 500;
  line-height: 1.4;
  color: #ddefde;
  opacity: 1;
  transition: opacity 0.75s var(--hero-ease-1) 0.28s;
}

#top .ws-hero-body p {
  margin: 0;
}

#top.is-animating:not(.is-loaded) .ws-hero-body {
  opacity: 0;
  transition: none;
}

#top .ws-hero-cta {
  display: inline-block;
  margin-top: clamp(1.35rem, 1.05rem + 2.2vw, 3.5rem);
  transform-origin: 50% 50%;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.5s var(--hero-ease-1) 0.36s,
    transform 0.5s var(--hero-ease-1) 0.36s;
}

#top.is-animating:not(.is-loaded) .ws-hero-cta {
  opacity: 0;
  transform: scale(0);
  transition: none;
}

#top .ws-hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.95rem, 0.9091rem + 0.404vw, 1.25rem) clamp(1.85rem, 1.8182rem + 0.8081vw, 2.5rem);
  border-radius: clamp(2rem, 1.8182rem + 0.8081vw, 2.5rem);
  border: 1px solid #ddefde;
  background-color: #ddefde;
  color: #031c14;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.5s var(--hero-ease-4);
}

#top .ws-hero-cta-btn:hover {
  transform: scale(1.02);
}

#top .ws-hero-cta-text {
  font-size: var(--hero-step--1);
  font-weight: 500;
  line-height: 1.4;
}

/* Native <dialog> Video Modal */
#top .ws-hero-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(1054px, 94vw);
  max-height: 90svh;
  width: 100%;
  margin: auto;
}

#top .ws-hero-dialog::backdrop {
  background: rgba(3, 28, 20, 0.86);
  backdrop-filter: blur(8px);
}

#top .ws-hero-dialog-body {
  position: relative;
  margin: 0 clamp(0.5rem, 1vw, 1.25rem);
}

#top .ws-hero-dialog-close {
  position: absolute;
  top: clamp(0.75rem, 1.5vw, 1.25rem);
  right: clamp(0.75rem, 1.5vw, 1.25rem);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background-color: #031c14;
  color: #ddefde;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.5s var(--hero-ease-4);
}

#top .ws-hero-dialog-close:hover {
  transform: scale(1.1);
}

#top .ws-hero-dialog-close svg {
  width: 100%;
  height: 100%;
  display: block;
}

#top .ws-hero-dialog-video {
  display: block;
  width: 100%;
  max-height: 86svh;
  object-fit: contain;
  background-color: #031c14;
  border-radius: 8px;
}
