.header-12 .at-main-menu {
  background-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.header-12 .at-main-menu nav ul li a {
  color: #fefefe;
  border-radius: 50px;
}
.header-12 .at-main-menu nav ul li.has-dropdown > a::after {
  filter: invert(1);
}
.header-12 .at-main-menu nav ul li:hover.has-dropdown > a {
  color: #fefefe;
  background: rgba(255, 255, 255, 0.14);
}
.header-12 .at-main-menu nav ul li a.at-nav-active {
  color: #0f0f0f;
  background: #fefefe;
  box-shadow: 0 2px 10px rgba(15, 15, 15, 0.18);
}
.header-12 .at-main-menu nav ul li:hover.has-dropdown > a.at-nav-active {
  color: #0f0f0f;
  background: #fefefe;
}

.at-mobile-menu-active ul li:hover a {
background: rgba(255, 255, 255, 0.14);
}

.at-main-menu nav ul li .submenu.at-services-menu {
  width: 880px;
  padding: 20px;
  display: flex;
  gap: 14px;
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  /* Base .submenu rule left-anchors to the trigger's own left edge
     (left: 0), which for "Services" (the 2nd item, not the first) pushes
     a wide panel far enough right that it can run past the header/
     viewport edge. Center it under the trigger instead. A plain fade +
     rise (no scaleY) avoids squashing the service photos inside it, which
     is what the base .submenu's scale(1, 0) "unroll" was doing here. */
  left: 50%;
  transform-origin: center top;
  transform: translate(-50%, -14px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  border-radius: 16px;
}
.at-main-menu nav ul li:hover > .submenu.at-services-menu {
  transform: translate(-50%, 0);
}
.at-services-menu__item {
  position: relative;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  height: 300px;
  display: block;
  text-decoration: none;
  padding: 0 !important;
  border-radius: 14px !important;
  overflow: hidden;
  /* flex-grow is animatable (it interpolates as a plain number), so this
     is what makes the fan hover effect below transition smoothly instead
     of snapping between sizes. */
  transition: flex-grow 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.at-services-menu__item:first-child {
  flex-grow: 1.45;
}
/* Fan-out on hover: whichever card is hovered grows, every other card
   (including the first, which is otherwise the default-largest) shrinks
   to match — same :has() technique already used for the FAQ's open-item
   border in faq.css. */
.at-services-menu:has(.at-services-menu__item:hover) .at-services-menu__item {
  flex-grow: 0.65;
}
.at-services-menu:has(.at-services-menu__item:hover) .at-services-menu__item:hover {
  flex-grow: 2.6;
}
.at-services-menu__img {
  position: absolute;
  inset: 0;
  display: block;
}
.at-services-menu__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.at-services-menu__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 42%, transparent 68%);
  pointer-events: none;
}
.at-services-menu__item:hover .at-services-menu__img img {
  transform: scale(1.08);
}
.at-services-menu__name {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #fefefe !important;
  text-align: left;
  padding: 0 !important;
  background: none !important;
}

/* Header CTA — glass pill label + solid orange circular arrow accent */
.header-12__cta {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  border-radius: 50px;
  /* overflow: hidden; */
}
.header-12__cta-label {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-right: none;
  border-radius: 50px 0 0 50px;
  color: #fefefe;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  padding: 13px 40px 13px 24px;
  white-space: nowrap;
}
.header-12__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  background: var(--at-theme-primary, #f0460e);
  color: #fefefe;
  transition: transform 250ms ease;
  z-index: 10;
  flex-shrink: 0;;
}
.header-12__cta:hover .header-12__cta-icon {
  transform: rotate(45deg);
}


#how-it-works .card__process-pill--1 {
  background-image: url(../imgs/pages/how-it-works/get_quote.webp);
}
#how-it-works .card__process-pill--2 {
  background-image: url(../imgs/pages/how-it-works/measure.webp);
}
#how-it-works .card__process-pill--3 {
  background-image: url(../imgs/pages/how-it-works/installation.webp);
}
#how-it-works .card__process-pill--4 {
  background-image: url(../imgs/pages/how-it-works/control.webp);
}

.header-12__cta--icon-left {
  gap: 10px;
  padding: 13px 26px 13px 20px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background 300ms ease, border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}
.header-12__cta--icon-left .header-12__cta-icon {
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  color: #fefefe;
  transition: transform 250ms ease;
}
.header-12__cta--icon-left .header-12__cta-label {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
}
.header-12__cta--icon-left:hover {
  background: var(--at-theme-primary, #f0460e);
  border-color: var(--at-theme-primary, #f0460e);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(240, 70, 14, 0.55);
}
.header-12__cta--icon-left:hover .header-12__cta-icon {
  transform: scale(1.12);
}

.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #0f0f0f;
}

.hero-cine {
  /* Scales continuously with viewport width instead of jumping at fixed
     breakpoints, so cards keep growing on larger screens. */
  --hc-width: clamp(190px, 12vw, 260px);
  --hc-height: clamp(150px, 9vw, 200px);
  --hc-gap: 1rem;
  --hc-half: calc(var(--hc-width) / 2);
  --hc-step: calc(var(--hc-width) + var(--hc-gap));
  --hc-speed: 550ms;
  --hc-bottom: 96px;
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-cine-item {
  position: absolute;
  top: calc(100% - var(--hc-height) - var(--hc-bottom));
  left: 0;
  width: var(--hc-width);
  height: var(--hc-height);
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
  transition: top var(--hc-speed), left var(--hc-speed), width var(--hc-speed), height var(--hc-speed), border-radius var(--hc-speed), opacity var(--hc-speed), box-shadow var(--hc-speed);
  transition-timing-function: ease-out;
  will-change: top, left, width, height, opacity;
}

.hero-cine-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-cine-item::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: 0 0 50px 25px rgba(0, 0, 0, 0.25) inset;
  transition: box-shadow var(--hc-speed);
}

.hero-cine-item:nth-child(1),
.hero-cine-item:nth-child(2) {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}
.hero-cine-item:nth-child(1)::after,
.hero-cine-item:nth-child(2)::after {
  box-shadow: 0 -80px 220px 60px rgba(0, 0, 0, 0.8) inset;
  /* Flat tint over the whole full-bleed slide (on top of the existing
     top-fade vignette) once it's the main/current image — the peek-stack
     thumbnails stay untinted/vibrant. */
  background: rgba(0, 0, 0, 0.44);
}

.hero-cine-item:nth-child(n + 3) {
  cursor: pointer;
}
/* nth-child(3) is the peek card closest to becoming the main slide: each
   next() call (autoplay or arrow click) appends the current slot-1 card to
   the end of the list, shifting slot-3 up into slot-2 — so it's this one,
   not the visually-nearest slot-5, that's actually "up next". box-shadow
   can't paint an actual gradient, so this layers a tighter warm-orange
   glow with a softer, wider amber one underneath it — reads as a warm
   gradient halo instead of one flat, simple colored shadow — plus the
   same thin white ring the flat version had. */
.hero-cine-item:nth-child(3) {
  left: calc(100% - var(--hc-half) - var(--hc-step) * 2);
  /* Multi-color halo instead of a single-hue glow: five shadow layers,
     each tinted a different LED color (pink-red, gold, green, blue,
     purple), orbiting the card in sync so the blend keeps rotating
     instead of sitting fixed. Each keyframe just rotates every layer's
     x/y offset 45deg further around the same circle; blur/spread/color
     stay put per layer so the browser can interpolate the motion smoothly. */
  box-shadow: 0 -15px 18px -12px rgba(255, 61, 113, 0.55), 14px -5px 20px -12px rgba(255, 176, 32, 0.5), 9px 12px 22px -12px rgba(64, 208, 130, 0.5), -9px 12px 20px -12px rgba(64, 156, 255, 0.5), -14px -5px 20px -12px rgba(191, 90, 242, 0.45), 0 0 0 2px rgba(254, 254, 254, 0.45);
  animation: heroThumbGlowSpin 6s linear infinite;
}
@keyframes heroThumbGlowSpin {
  0% {
    box-shadow: 0 -15px 18px -12px rgba(255, 61, 113, 0.55), 14px -5px 20px -12px rgba(255, 176, 32, 0.5), 9px 12px 22px -12px rgba(64, 208, 130, 0.5), -9px 12px 20px -12px rgba(64, 156, 255, 0.5), -14px -5px 20px -12px rgba(191, 90, 242, 0.45), 0 0 0 2px rgba(254, 254, 254, 0.45);
  }
  12.5% {
    box-shadow: 11px -11px 18px -12px rgba(255, 61, 113, 0.55), 13px 7px 20px -12px rgba(255, 176, 32, 0.5), -2px 15px 22px -12px rgba(64, 208, 130, 0.5), -15px 2px 20px -12px rgba(64, 156, 255, 0.5), -7px -13px 20px -12px rgba(191, 90, 242, 0.45), 0 0 0 2px rgba(254, 254, 254, 0.45);
  }
  25% {
    box-shadow: 15px 0 18px -12px rgba(255, 61, 113, 0.55), 5px 14px 20px -12px rgba(255, 176, 32, 0.5), -12px 9px 22px -12px rgba(64, 208, 130, 0.5), -12px -9px 20px -12px rgba(64, 156, 255, 0.5), 5px -14px 20px -12px rgba(191, 90, 242, 0.45), 0 0 0 2px rgba(254, 254, 254, 0.45);
  }
  37.5% {
    box-shadow: 11px 11px 18px -12px rgba(255, 61, 113, 0.55), -7px 13px 20px -12px rgba(255, 176, 32, 0.5), -15px -2px 22px -12px rgba(64, 208, 130, 0.5), -2px -15px 20px -12px rgba(64, 156, 255, 0.5), 13px -7px 20px -12px rgba(191, 90, 242, 0.45), 0 0 0 2px rgba(254, 254, 254, 0.45);
  }
  50% {
    box-shadow: 0 15px 18px -12px rgba(255, 61, 113, 0.55), -14px 5px 20px -12px rgba(255, 176, 32, 0.5), -9px -12px 22px -12px rgba(64, 208, 130, 0.5), 9px -12px 20px -12px rgba(64, 156, 255, 0.5), 14px 5px 20px -12px rgba(191, 90, 242, 0.45), 0 0 0 2px rgba(254, 254, 254, 0.45);
  }
  62.5% {
    box-shadow: -11px 11px 18px -12px rgba(255, 61, 113, 0.55), -13px -7px 20px -12px rgba(255, 176, 32, 0.5), 2px -15px 22px -12px rgba(64, 208, 130, 0.5), 15px -2px 20px -12px rgba(64, 156, 255, 0.5), 7px 13px 20px -12px rgba(191, 90, 242, 0.45), 0 0 0 2px rgba(254, 254, 254, 0.45);
  }
  75% {
    box-shadow: -15px 0 18px -12px rgba(255, 61, 113, 0.55), -5px -14px 20px -12px rgba(255, 176, 32, 0.5), 12px -9px 22px -12px rgba(64, 208, 130, 0.5), 12px 9px 20px -12px rgba(64, 156, 255, 0.5), -5px 14px 20px -12px rgba(191, 90, 242, 0.45), 0 0 0 2px rgba(254, 254, 254, 0.45);
  }
  87.5% {
    box-shadow: -11px -11px 18px -12px rgba(255, 61, 113, 0.55), 7px -13px 20px -12px rgba(255, 176, 32, 0.5), 15px 2px 22px -12px rgba(64, 208, 130, 0.5), 2px 15px 20px -12px rgba(64, 156, 255, 0.5), -13px 7px 20px -12px rgba(191, 90, 242, 0.45), 0 0 0 2px rgba(254, 254, 254, 0.45);
  }
  100% {
    box-shadow: 0 -15px 18px -12px rgba(255, 61, 113, 0.55), 14px -5px 20px -12px rgba(255, 176, 32, 0.5), 9px 12px 22px -12px rgba(64, 208, 130, 0.5), -9px 12px 20px -12px rgba(64, 156, 255, 0.5), -14px -5px 20px -12px rgba(191, 90, 242, 0.45), 0 0 0 2px rgba(254, 254, 254, 0.45);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cine-item:nth-child(3) {
    animation: none;
  }
}
.hero-cine-item:nth-child(4) {
  left: calc(100% - var(--hc-half) - var(--hc-step));
  transition-delay: calc(var(--hc-speed) * 0.12);
}
.hero-cine-item:nth-child(5) {
  left: calc(100% - var(--hc-half));
  transition-delay: calc(var(--hc-speed) * 0.24);
}
.hero-cine-item:nth-child(6) {
  left: calc(100% - var(--hc-half) + var(--hc-step));
  opacity: 0;
  transition-delay: calc(var(--hc-speed) * 0.36);
}
.hero-cine-item:nth-child(7) {
  left: calc(100% - var(--hc-half) + var(--hc-step) * 2);
  opacity: 0;
  transition-delay: calc(var(--hc-speed) * 0.48);
}

/* Content — only the item currently in slot 2 reveals its copy */
.hero-cine-content {
  position: absolute;
  left: 60px;
  bottom: 64px;
  z-index: 2;
  max-width: min(600px, 42vw);
  color: #fefefe;
  display: none;
  flex-direction: column;
  gap: 16px;
}
.hero-cine-item:nth-child(2) .hero-cine-content {
  display: flex;
  opacity: 0;
  animation: heroCineReveal 400ms ease-out var(--hc-speed) forwards;
}
@keyframes heroCineReveal {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero-cine-title {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  color: #fefefe;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hero-cine-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #fefefe;
  opacity: 0.8;
  margin: 0;
  max-width: 460px;
  margin-bottom: 30px;
}
.hero-cine-cta {
  display: none;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-cine-item:nth-child(2) .hero-cine-cta {
  display: flex;
}

/* Caption — was an overlay label on the peek-stack thumbnails; disabled per feedback */
.hero-cine-caption {
  display: none;
}

.hero-cine-nav {
  position: absolute;
  right: 40px;
  /* Peek-stack cards reserve the bottom var(--hc-bottom) (96px) of the
     section; the arrows (42px tall) need to fit entirely below that, so
     bottom must stay <= 96 - 42 = 54px or they overlap the thumbnails. */
  bottom: 44px;
  z-index: 6;
  display: flex;
  gap: 8px;
}
.hero-cine-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(254, 254, 254, 0.35);
  background: rgba(254, 254, 254, 0.08);
  color: #fefefe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 250ms ease, border-color 250ms ease, transform 250ms ease, color 250ms ease;
}
.hero-cine-arrow:hover {
  background: #fefefe;
  color: #0f0f0f;
  border-color: #fefefe;
}
.hero-cine-arrow:active {
  transform: scale(0.94);
}
.hero-cine-arrow--prev svg {
  transform: rotate(180deg);
}

/* Tablet — dropping the 3rd (fully-visible) card to just the edge-sliced
   one keeps the stack narrow enough that it can't run into the title/desc
   column as the viewport (and thus the content column's 42vw) shrinks. */
@media (max-width: 1199.98px) {
  .hero-cine-item:nth-child(3) {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 767.98px) {
  .hero-cine-item:nth-child(n + 3) {
    opacity: 0;
    visibility: hidden;
  }
  .hero-cine-content {
    max-width: 90%;
    left: 24px;
    right: 24px;
    bottom: 32px;
  }
}

@media (max-width: 575.98px) {
  .hero-slider {
    min-height: 560px;
  }
  .hero-cine-title {
    font-size: 30px;
  }
  .hero-cine-cta {
    gap: 10px;
  }
}
