/* Clean hero reset: dark, text-led intro hero. */
body.frame-page.home-page #home.hero {
  min-height: clamp(560px, 72vh, 780px) !important;
  width: 100vw !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 96px max(24px, calc((100vw - 1180px) / 2)) 80px !important;
  overflow: hidden !important;
  position: relative !important;
  isolation: isolate !important;
  background: #020609 !important;
}

body.frame-page.home-page #home.hero::before {
  display: none !important;
}

body.frame-page.home-page #home.hero::after {
  display: none !important;
}

body.frame-page.home-page #home.hero > .hero-copy,
body.frame-page.home-page #home.hero > .hero-copy.glass {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  display: block !important;
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  margin: 0 !important;
  padding: clamp(26px, 3.5vw, 44px) clamp(20px, 4vw, 48px) !important;
  box-sizing: border-box !important;
  background: rgba(17, 72, 98, 0.9) !important;
  border: 1px solid rgba(166, 232, 248, 0.24) !important;
  border-radius: 24px !important;
  box-shadow:
    0 0 52px rgba(0, 0, 0, 0.54),
    0 0 86px rgba(0, 177, 218, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(6px) saturate(112%) !important;
  -webkit-backdrop-filter: blur(6px) saturate(112%) !important;
  transform: none !important;
  text-align: center !important;
}

body.frame-page.home-page #home.hero > .hero-copy .hero-kicker {
  margin: 0 0 18px !important;
  color: rgba(181, 229, 242, 0.82) !important;
  font-size: clamp(14px, 1.25vw, 18px) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

body.frame-page.home-page #home.hero > .hero-copy .hero-kicker-divider {
  display: inline-block;
  margin: 0 0.08em;
  transform: scaleX(0.6);
  transform-origin: center;
}

body.frame-page.home-page #home.hero > .hero-copy h1 {
  margin: 0 0 26px !important;
  color: #f7fcff !important;
  font-size: clamp(31px, 3.1vw, 46px) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  white-space: normal !important;
  padding: 0 !important;
  filter: none !important;
}

body.frame-page.home-page #home.hero > .hero-copy .hero-title-line {
  display: block !important;
  white-space: nowrap !important;
}

body.frame-page.home-page #home.hero > .hero-copy p {
  max-width: 540px !important;
  margin: 0 auto 34px !important;
  color: rgba(218, 239, 247, 0.78) !important;
  font-size: clamp(15px, 1.25vw, 18px) !important;
  line-height: 1.7 !important;
}

body.frame-page.home-page #home.hero > .hero-copy .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

body.frame-page.home-page #home.hero > .hero-copy .hero-cta-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
}

body.frame-page.home-page #home.hero > .hero-copy .hero-cta-row .btn {
  margin: 0 !important;
  flex: 0 0 150px !important;
  width: 150px !important;
  min-width: 150px !important;
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

body.frame-page.home-page #home.hero > .hero-copy .hero-estimate-cta {
  background: #f28a3d !important;
  border-color: #ffab68 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow:
    0 10px 24px rgba(210, 92, 22, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease !important;
}

body.frame-page.home-page #home.hero > .hero-copy .hero-estimate-cta::before {
  background-color: #f28a3d !important;
  background-image: none !important;
  animation: none !important;
}

body.frame-page.home-page #home.hero > .hero-copy .hero-estimate-cta:hover,
body.frame-page.home-page #home.hero > .hero-copy .hero-estimate-cta:focus-visible {
  background: #f59a52 !important;
  border-color: #f19a5d !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.frame-page.home-page #home.hero > .hero-copy .hero-estimate-cta:hover::before,
body.frame-page.home-page #home.hero > .hero-copy .hero-estimate-cta:focus-visible::before {
  background-color: #f59a52 !important;
  background-image: none !important;
  animation: none !important;
}

body.frame-page.home-page main#app > section.estimate-flow#project-estimate {
  margin-top: clamp(28px, 4vw, 64px) !important;
}

@media (min-width: 701px) and (max-width: 1100px) {
  body.frame-page.home-page #home.hero {
    min-height: clamp(560px, 70vh, 700px) !important;
    padding-left: clamp(72px, 8.4vw, 92px) !important;
    padding-right: clamp(72px, 8.4vw, 92px) !important;
  }

  body.frame-page.home-page #home.hero > .hero-copy {
    width: min(620px, 100%) !important;
    max-width: 620px !important;
  }
}

@media (max-width: 700px) {
  body.frame-page.home-page #home.hero {
    min-height: 620px !important;
    padding: 76px 24px 64px !important;
  }

  body.frame-page.home-page #home.hero > .hero-copy {
    padding: 26px 18px 24px !important;
    border-radius: 22px !important;
  }

  body.frame-page.home-page #home.hero > .hero-copy h1 {
    font-size: clamp(22px, 6.1vw, 27px) !important;
    letter-spacing: -0.035em !important;
  }

  body.frame-page.home-page #home.hero > .hero-copy p {
    max-width: 100% !important;
    font-size: 16px !important;
  }
}

/* Interactive Design cube hero */
body.frame-page.home-page #home.hero {
  min-height: clamp(640px, 78vh, 860px) !important;
  padding: 78px 24px 34px !important;
}

body.frame-page.home-page #home.hero .interactive-hero-stage {
  --cube-size: clamp(270px, 35vw, 510px);
  position: relative !important;
  width: min(100%, 1440px) !important;
  height: 100% !important;
  min-height: 510px !important;
  display: grid !important;
  place-items: center !important;
  isolation: isolate !important;
  perspective: 1500px !important;
  cursor: grab !important;
  user-select: none !important;
  touch-action: pan-y !important;
}

body.frame-page.home-page #home.hero .interactive-hero-stage:active {
  cursor: grabbing !important;
}

body.frame-page.home-page #home.hero .interactive-hero-title {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  z-index: 0 !important;
  width: max-content !important;
  color: rgba(168, 214, 241, 0.13) !important;
  font-family: inherit !important;
  font-size: clamp(38px, 8.5vw, 138px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.13em !important;
  line-height: 0.92 !important;
  white-space: nowrap !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none !important;
}

body.frame-page.home-page #home.hero .interactive-hero-glow {
  position: absolute !important;
  z-index: -1 !important;
  width: clamp(220px, 28vw, 440px) !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  filter: blur(80px) !important;
  opacity: 0.3 !important;
  pointer-events: none !important;
}

body.frame-page.home-page #home.hero .interactive-hero-glow-left {
  left: 8% !important;
  top: 27% !important;
  background: #087fbd !important;
}

body.frame-page.home-page #home.hero .interactive-hero-glow-right {
  right: 7% !important;
  bottom: 12% !important;
  background: #6845dc !important;
}

body.frame-page.home-page #home.hero .interactive-cube-shadow {
  position: absolute !important;
  z-index: 1 !important;
  width: clamp(210px, 28vw, 400px) !important;
  height: clamp(26px, 4vw, 58px) !important;
  bottom: 12% !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.7) !important;
  filter: blur(24px) !important;
  transform: rotate(-5deg) !important;
  pointer-events: none !important;
}

body.frame-page.home-page #home.hero .interactive-cube-scene {
  position: relative !important;
  z-index: 2 !important;
  width: var(--cube-size) !important;
  height: var(--cube-size) !important;
  perspective: 1500px !important;
  transform: translateY(-1%) rotate(-2deg) !important;
}

body.frame-page.home-page #home.hero .interactive-cube {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  transform-style: preserve-3d !important;
  will-change: transform !important;
}

body.frame-page.home-page #home.hero .interactive-cube-face {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(10px, 1.5vw, 18px) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  border: 1px solid transparent !important;
  background:
    linear-gradient(135deg, rgba(31, 57, 86, 0.18), rgba(3, 8, 20, 0.08) 48%, rgba(121, 199, 255, 0.04)),
    linear-gradient(135deg, #4ac6ff 0%, #4aff8c 18%, #ff00d6 50%, #f13523 73%, #ffda32 100%) !important;
  background-clip: padding-box, border-box !important;
  -webkit-background-clip: padding-box, border-box !important;
  box-shadow:
    inset 0 0 58px rgba(135, 222, 255, 0.1),
    inset 0 0 10px rgba(255, 255, 255, 0.08),
    0 0 24px rgba(36, 153, 229, 0.16) !important;
  backdrop-filter: blur(4px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(4px) saturate(145%) !important;
  backface-visibility: visible !important;
}

body.frame-page.home-page #home.hero .interactive-cube-face::before {
  content: "" !important;
  position: absolute !important;
  z-index: 2 !important;
  inset: -35% !important;
  background: linear-gradient(
    112deg,
    transparent 34%,
    rgba(255, 255, 255, 0.03) 42%,
    rgba(205, 247, 255, 0.34) 49%,
    rgba(255, 255, 255, 0.05) 55%,
    transparent 65%
  ) !important;
  transform: translateX(-70%) rotate(8deg) !important;
  mix-blend-mode: screen !important;
  pointer-events: none !important;
  animation: interactive-cube-sheen 7s ease-in-out infinite !important;
}

body.frame-page.home-page #home.hero .interactive-cube-face::after {
  content: "" !important;
  position: absolute !important;
  inset: 10% !important;
  border: 1px solid rgba(172, 235, 255, 0.25) !important;
  box-shadow:
    inset 0 0 22px rgba(97, 209, 255, 0.08),
    0 0 14px rgba(117, 221, 255, 0.08) !important;
  opacity: 0.8 !important;
  pointer-events: none !important;
}

body.frame-page.home-page #home.hero .interactive-cube-face img {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 43% !important;
  max-width: 170px !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 18px rgba(150, 234, 255, 0.7)) !important;
}

body.frame-page.home-page #home.hero .interactive-cube-face span {
  position: relative !important;
  z-index: 1 !important;
  color: rgba(212, 243, 255, 0.86) !important;
  font-size: clamp(10px, 1.1vw, 15px) !important;
  font-weight: 700 !important;
  letter-spacing: 0.28em !important;
  line-height: 1 !important;
}

body.frame-page.home-page #home.hero .interactive-cube-face:nth-child(2)::before {
  animation-delay: -1.1s !important;
}

body.frame-page.home-page #home.hero .interactive-cube-face:nth-child(3)::before {
  animation-delay: -2.2s !important;
}

body.frame-page.home-page #home.hero .interactive-cube-face:nth-child(4)::before {
  animation-delay: -3.3s !important;
}

body.frame-page.home-page #home.hero .interactive-cube-face:nth-child(5)::before {
  animation-delay: -4.4s !important;
}

body.frame-page.home-page #home.hero .interactive-cube-face:nth-child(6)::before {
  animation-delay: -5.5s !important;
}

body.frame-page.home-page #home.hero .interactive-cube-front {
  transform: translateZ(calc(var(--cube-size) / 2)) !important;
}

body.frame-page.home-page #home.hero .interactive-cube-back {
  transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)) !important;
}

body.frame-page.home-page #home.hero .interactive-cube-right {
  transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2)) !important;
}

body.frame-page.home-page #home.hero .interactive-cube-left {
  transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)) !important;
}

body.frame-page.home-page #home.hero .interactive-cube-top {
  transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2)) !important;
}

body.frame-page.home-page #home.hero .interactive-cube-bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)) !important;
}

body.frame-page.home-page #home.hero .interactive-hero-caption {
  position: absolute !important;
  right: clamp(22px, 4vw, 64px) !important;
  bottom: 20px !important;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 7px !important;
  color: rgba(194, 226, 239, 0.62) !important;
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
  pointer-events: none !important;
}

@media (max-width: 700px) {
  body.frame-page.home-page #home.hero {
    min-height: 620px !important;
    padding: 72px 18px 26px !important;
  }

  body.frame-page.home-page #home.hero .interactive-hero-stage {
    --cube-size: min(72vw, 300px);
    min-height: 510px !important;
  }

  body.frame-page.home-page #home.hero .interactive-hero-title {
    top: 83% !important;
    width: 100% !important;
    z-index: 3 !important;
    color: rgba(198, 236, 255, 0.78) !important;
    font-size: clamp(24px, 7.8vw, 34px) !important;
    letter-spacing: 0.08em !important;
    text-align: center !important;
    white-space: normal !important;
    text-shadow: 0 0 24px rgba(43, 165, 255, 0.46) !important;
  }

  body.frame-page.home-page #home.hero .interactive-cube-scene {
    transform: translateY(-4%) rotate(-2deg) !important;
  }

  body.frame-page.home-page #home.hero .interactive-cube-face img {
    width: 42% !important;
  }

  body.frame-page.home-page #home.hero .interactive-cube-face span {
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
  }

  body.frame-page.home-page #home.hero .interactive-cube-shadow {
    bottom: 13% !important;
  }

  body.frame-page.home-page #home.hero .interactive-hero-caption {
    right: 18px !important;
    bottom: 9px !important;
    font-size: 8px !important;
  }
}

@keyframes interactive-cube-sheen {
  0%, 14% {
    transform: translateX(-70%) rotate(8deg);
    opacity: 0;
  }
  28% {
    opacity: 0.7;
  }
  52%, 100% {
    transform: translateX(70%) rotate(8deg);
    opacity: 0;
  }
}

/* Interactive image grid hero */
body.frame-page.home-page #home.hero {
  min-height: clamp(640px, 78vh, 860px) !important;
  padding: 78px 24px 34px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(16, 70, 86, 0.18), transparent 42%),
    #020609 !important;
}

body.frame-page.home-page #home.hero > .hero-image-grid {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  isolation: isolate !important;
}

body.frame-page.home-page #home.hero > .hero-background-video {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 0 !important;
  display: block !important;
  width: 100vw !important;
  min-width: 100vw !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 0.9 !important;
  filter: brightness(0.92) saturate(1.1) contrast(1.08) !important;
  transform: translateX(-50%) scale(1.02) !important;
  transform-origin: center center !important;
  pointer-events: none !important;
}

body.frame-page.home-page #home.hero .hero-image-grid__field {
  --hero-grid-gap: clamp(3.5px, 0.425vw, 7px);
  --hero-grid-size: calc((100vw - (25 * var(--hero-grid-gap))) / 26);
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(26, var(--hero-grid-size)) !important;
  grid-auto-rows: var(--hero-grid-size) !important;
  gap: var(--hero-grid-gap) !important;
  width: 100vw !important;
  height: 100% !important;
  min-height: 100% !important;
  align-content: start !important;
  transform: none !important;
  transform-origin: center !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

body.frame-page.home-page #home.hero .hero-image-grid__tile {
  --hover-scale: 1;
  --hover-x: 0px;
  --hover-y: 0px;
  --hover-light: 0.74;
  --hover-saturation: 0.86;
  --hover-glow: 0;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  opacity: calc(
    var(--tile-opacity) + var(--hover-glow) * (1 - var(--tile-opacity))
  ) !important;
  border: 0 !important;
  border-radius: clamp(5px, 0.55vw, 9px) !important;
  background: #0a1821 !important;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.3),
    0 0 calc(26px * var(--hover-glow)) rgba(109, 226, 248, 0.78),
    inset 0 0 18px rgba(138, 226, 244, 0.08) !important;
  filter:
    brightness(var(--hover-light))
    saturate(var(--hover-saturation))
    contrast(1.04)
    drop-shadow(0 0 0 rgba(116, 229, 248, 0)) !important;
  transform:
    translate3d(var(--hover-x), var(--hover-y), 0)
    rotate(0deg)
    scale(var(--hover-scale)) !important;
  transform-origin: center !important;
  transition:
    filter 140ms ease-out,
    box-shadow 140ms ease-out,
    opacity 260ms ease-out !important;
  will-change: transform, filter !important;
}

body.frame-page.home-page #home.hero .hero-image-grid__tile::before {
  content: "" !important;
  position: absolute !important;
  z-index: 1 !important;
  inset: 0 !important;
  background:
    linear-gradient(135deg, rgba(113, 230, 249, 0.18), transparent 38%),
    linear-gradient(180deg, transparent 46%, rgba(1, 7, 12, 0.42)) !important;
  opacity: calc(0.95 - var(--hover-glow) * 0.9) !important;
  pointer-events: none !important;
  transition: opacity 140ms ease-out !important;
}

body.frame-page.home-page #home.hero .hero-image-grid__tile::after {
  content: "" !important;
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 !important;
  background: radial-gradient(circle at 50% 45%, rgba(198, 249, 255, 0.38), transparent 54%) !important;
  opacity: var(--hover-glow) !important;
  mix-blend-mode: screen !important;
  pointer-events: none !important;
  transition: opacity 140ms ease-out !important;
}

body.frame-page.home-page #home.hero .hero-image-grid__tile img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.03);
  animation: hero-grid-image-wave var(--wave-duration, 8s) ease-in-out var(--wave-delay, 0s) infinite;
  will-change: transform;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

@keyframes hero-grid-image-wave {
  0%,
  100% {
    transform: translate3d(-2px, 0, 0) scale(1.03) rotate(-0.12deg);
  }

  25% {
    transform: translate3d(2px, -2px, 0) scale(1.065) rotate(0.2deg);
  }

  50% {
    transform: translate3d(3px, 2px, 0) scale(1.09) rotate(0.12deg);
  }

  75% {
    transform: translate3d(-2px, 2px, 0) scale(1.07) rotate(-0.22deg);
  }
}

body.frame-page.home-page #home.hero .hero-image-grid__veil {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: none !important;
  pointer-events: none !important;
  background: none !important;
}

body.frame-page.home-page #home.hero > .hero-copy {
  z-index: 3 !important;
  text-shadow: none !important;
}

body.frame-page.home-page #home.hero > .hero-copy .hero-kicker,
body.frame-page.home-page #home.hero > .hero-copy h1,
body.frame-page.home-page #home.hero > .hero-copy h1 .hero-title-line {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-image: none !important;
}

@media (max-width: 700px) {
  body.frame-page.home-page #home.hero {
    min-height: 620px !important;
    padding: 72px 18px 26px !important;
  }

  body.frame-page.home-page #home.hero .hero-image-grid__field {
    --hero-grid-gap: clamp(3.5px, 1vw, 5.5px);
    --hero-grid-size: calc((100vw - (12 * var(--hero-grid-gap))) / 13);
    display: grid !important;
    grid-template-columns: repeat(13, var(--hero-grid-size)) !important;
    grid-auto-rows: var(--hero-grid-size) !important;
    gap: var(--hero-grid-gap) !important;
    width: 100vw !important;
    height: 100% !important;
    min-height: 100% !important;
    align-content: start !important;
    transform: none !important;
  }

  body.frame-page.home-page #home.hero .hero-image-grid__tile {
    width: 100% !important;
    height: 100% !important;
  }

  body.frame-page.home-page #home.hero .hero-image-grid__veil {
    background:
      radial-gradient(ellipse at center, rgba(2, 6, 9, 0.1) 18%, rgba(2, 6, 9, 0.34) 62%, rgba(2, 6, 9, 0.78) 100%) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.frame-page.home-page #home.hero .hero-image-grid__tile,
  body.frame-page.home-page #home.hero .hero-image-grid__tile img {
    transition: none !important;
    animation: none !important;
  }
}
