.hero {
  position: relative;
  height: min(calc(100svh - 72px), var(--hero-max-height));
  width: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: clip;
  min-height: 800px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--hero-parallax, 0px), 0) scale(1);
  will-change: transform, filter, opacity;
  z-index: 0;
  animation: hero-breathe 12s ease-in-out infinite alternate;
}

@keyframes hero-breathe {
  0% {
    transform: scale(1);
    filter: brightness(1) contrast(1);
    opacity: 0.98;
  }

  100% {
    transform: scale(1.06);
    filter: brightness(1.03) contrast(1.02);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 60%,
      rgba(0, 0, 0, 0.85)
    ),
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65));
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 40%, 100% 100%;
  background-position: bottom, center;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  padding: 0 6vw;
  display: grid;
  justify-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
}

.hero--bonded::before {
  background-image: var(--bonded-hero-image);
}

.hero--designinspo::before {
  background-image: var(--designinspo-hero-image);
}

.hero--contact::before {
  background-image: var(--contact-hero-image);
}

.hero--energy-efficiency::before {
  background-image: var(--hero-energy-efficiency);
}

.hero--windowsdoors::before {
  background-image: var(--windows-doors-hero-image);
}

.home-automation-one::before {
  background-image: var(--home-automation-one);
}

.home-automation-two::before {
  background-image: var(--home-automation-two);
}

.home-automation-three::before {
  background-image: var(--home-automation-three);
}

.home-automation-four::before {
  background-image: var(--home-automation-four);
}

.home-automation-five::before {
  background-image: var(--home-automation-five);
}

.home-automation-six::before {
  background-image: var(--home-automation-six);
}

.home-automation-seven::before {
  background-image: var(--home-automation-seven);
}

.hero--bespoke-designed::before{
  background-image: var(--hero-bespoke-designed);
}

.hero--bespoke-config::before{
  background-image: var(--hero-bespoke-config);
}

.hero-event::before {
  background-image: var(--hero-event);
}

.hero--types-of-motion::before {
  background-image: var(--hero-types-of-motion);
}

.hero--about-us::before {
  background-image: var(--hero-about-us);
}

#bespoke .intro-media::before {
  background-image: var(--bespoke-design);
}


.hero a {
  color: var(--hero-ink);
}

.eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hero-ink);
  font-size: 0.8rem;
}


#events .eyebrow,
#configurable .eyebrow, 
#bespoke .eyebrow {
  color: var(--olive-green);
}

h1.headline {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

p.subhead {
  margin: 0;
  max-width:65ch;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.hero p,
.hero p.subhead {
  color: var(--hero-ink);
}

.hero-actions {
  display: grid;
  gap: 14px;
  justify-content: center;
  grid-template-columns: repeat(2,1fr);
  flex-wrap: wrap;
  margin-top: 6px;
  color: var(--hero-ink);
}

.single.hero-actions {
  grid-template-columns: 1fr;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--hero-ink);
  z-index: 2;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 1px solid var(--hero-ink);
  border-radius: 16px;
  position: relative;
}

.wheel {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: var(--hero-ink);
  border-radius: 2px;
  animation: wheel 1.6s ease-in-out infinite;
}

.hero--bonded .headline {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
}

.hero--bonded .hero-inner {
  max-width: 1200px;
}

.hero--motioneer .hero-inner {
  position: relative;
}

.hero-badge {
  width: 150px;
  height: 150px;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.hero-badge img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.hero--automation {
  position: relative;
  height: min(calc(100svh - 72px), var(--hero-max-height));
  overflow: clip;
  display: block;
  isolation: isolate;
}

.hero-slides {
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: none;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 60%,
      rgba(0, 0, 0, 0.85)
    ),
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65));
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 40%, 100% 100%;
  background-position: bottom, center;
}

.hero-slide .hero-inner {
  max-width: 1080px;
  padding: 0 6vw;
  display: grid;
  justify-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide.is-active .hero-inner {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide.is-out {
  opacity: 0;
  z-index: 1;
}

.hero-controls {
  position: absolute;
  inset: auto 0 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  z-index: 3;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--hero-line);
  background: rgba(255, 255, 255, 0.25);
}

.hero-dots button.is-active {
  background: var(--hero-ink);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wheel {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

@media (max-width: 960px) {
  .hero-prev,
  .hero-next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 640px) {
  .hero-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }
}
