/**
 * Washnah Motion System
 * Shared reveals, transitions, parallax and reduced-motion support.
 */
:root {
  --motion-ease: cubic-bezier(0.2, 0.75, 0.25, 1);
  --motion-ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --motion-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 260ms;
  --motion-medium: 720ms;
  --motion-slow: 1050ms;
  --motion-distance: 34px;
  --motion-delay: 0ms;
  --page-progress: 0%;
  --motion-accent: var(--page-accent, var(--motion-accent));
  --motion-accent-deep: var(--page-accent-deep, #5f1018);
  --motion-accent-soft: var(--page-accent-soft, #d48a91);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

/* Page transition and scroll progress */
.washnah-scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: var(--page-progress);
  height: 3px;
  z-index: 100000;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--motion-accent),
    var(--motion-accent-soft),
    #ffffff
  );
  box-shadow: 0 0 18px color-mix(in srgb, var(--motion-accent) 42%, transparent);
  transition: width 80ms linear;
}

.washnah-page-transition {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.12),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      var(--motion-accent-deep) 0%,
      var(--motion-accent) 55%,
      color-mix(in srgb, var(--motion-accent-deep) 78%, black) 100%
    );
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 560ms var(--motion-ease-spring);
}

.washnah-page-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
}

body.page-leaving .washnah-page-transition {
  transform: scaleY(1);
  transform-origin: top;
}

body.page-leaving .washnah-page-transition::after {
  animation: washnahTransitionSweep 620ms var(--motion-ease) both;
}

@keyframes washnahTransitionSweep {
  to {
    transform: translateX(120%);
  }
}

/* Refined preloader */
#preloader {
  background:
    radial-gradient(
      circle at 50% 42%,
      color-mix(in srgb, var(--motion-accent) 8%, transparent),
      transparent 28%
    ),
    #fff;
}

#preloader .loader-wrapper {
  width: 220px;
  height: 160px;
}

#preloader .loader-logo {
  animation: washnahLogoBreath 1.8s var(--motion-ease-soft) infinite;
  filter: drop-shadow(
    0 12px 22px color-mix(in srgb, var(--motion-accent) 14%, transparent)
  );
}

#preloader .circle-loader {
  width: 110px;
  height: 110px;
  border-width: 2px;
  border-color: color-mix(in srgb, var(--motion-accent) 12%, transparent);
  border-top-color: var(--motion-accent);
}

#preloader .circle-loader::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--motion-accent) 13%, transparent);
  border-bottom-color: var(--motion-accent);
  animation: spin 1.8s linear infinite reverse;
}

@keyframes washnahLogoBreath {
  0%,
  100% {
    transform: scale(0.97);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.035);
    opacity: 1;
  }
}


/* Sector signature ripple shared by ECO and Water hero icons */
.sector-signature-icon {
  position: relative;
  isolation: isolate;
}

.sector-signature-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  pointer-events: none;
  animation: sectorSignatureRipple 3s ease-out infinite;
}

.sector-signature-ripple-two {
  animation-delay: 1.5s;
}

@keyframes sectorSignatureRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
  }

  22% {
    opacity: 0.66;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.72);
    opacity: 0;
  }
}

/* Hero cinematic entrance */
.hero-content > *,
.video-banner .container > * {
  will-change: transform, opacity, filter;
}

.motion-hero-item {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  filter: blur(8px);
  transition:
    opacity 900ms var(--motion-ease-spring) var(--hero-delay, 0ms),
    transform 1100ms var(--motion-ease-spring) var(--hero-delay, 0ms),
    filter 900ms var(--motion-ease-soft) var(--hero-delay, 0ms);
}

.motion-hero-item.motion-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.hero .hero-kicker,
.video-banner .page-kicker {
  overflow: hidden;
}

.hero .hero-kicker::after,
.video-banner .page-kicker::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(-110%);
  opacity: 0.75;
}

.motion-visible.hero-kicker::after,
.motion-visible.page-kicker::after {
  animation: washnahTextSweep 900ms var(--motion-ease) 180ms both;
}

@keyframes washnahTextSweep {
  0% {
    transform: translateX(-110%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(110%);
  }
}

.hero .hero-video,
.video-banner .bg-video,
.stats-pro > img,
.vision-cta .hero-video {
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.08);
  transition: transform 100ms linear;
  will-change: transform;
}

.hero::after,
.video-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.32;
  background:
    radial-gradient(
      circle at var(--ambient-x, 72%) var(--ambient-y, 28%),
      rgba(255, 255, 255, 0.18),
      transparent 22%
    ),
    linear-gradient(
      120deg,
      transparent 35%,
      rgba(255, 255, 255, 0.07) 50%,
      transparent 65%
    );
  mix-blend-mode: screen;
  transition: opacity 500ms ease;
}

.hero-content,
.video-banner .container {
  z-index: 4;
}

.hero-scroll-cue {
  animation: washnahCueFloat 2.6s ease-in-out infinite;
}

@keyframes washnahCueFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Core reveal system */
.motion-reveal {
  --reveal-x: 0px;
  --reveal-y: var(--motion-distance);
  --reveal-scale: 0.985;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0)
    scale(var(--reveal-scale));
  filter: blur(7px);
  transition:
    opacity var(--motion-medium) var(--motion-ease-spring) var(--motion-delay),
    transform var(--motion-slow) var(--motion-ease-spring) var(--motion-delay),
    filter var(--motion-medium) var(--motion-ease-soft) var(--motion-delay);
  will-change: opacity, transform, filter;
}

.motion-reveal[data-motion="left"] {
  --reveal-x: -44px;
  --reveal-y: 0px;
}

.motion-reveal[data-motion="right"] {
  --reveal-x: 44px;
  --reveal-y: 0px;
}

.motion-reveal[data-motion="scale"] {
  --reveal-y: 10px;
  --reveal-scale: 0.93;
}

.motion-reveal[data-motion="fade"] {
  --reveal-y: 0px;
  --reveal-scale: 1;
}

.motion-reveal.motion-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.motion-reveal .section-eyebrow,
.motion-reveal .page-kicker {
  transition: letter-spacing 950ms var(--motion-ease-spring)
    calc(var(--motion-delay) + 100ms);
}

.motion-reveal.motion-visible .section-eyebrow,
.motion-reveal.motion-visible .page-kicker {
  letter-spacing: 0.13em;
}

.section-title h2::after,
.contact-intro h2::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 850ms var(--motion-ease-spring)
    calc(var(--motion-delay) + 180ms);
}

.motion-visible.section-title h2::after,
.motion-visible.contact-intro h2::after,
.motion-visible .section-title h2::after,
.motion-visible .contact-intro h2::after {
  transform: scaleX(1);
}

/* Section atmosphere */
main > section,
main > .page-title {
  position: relative;
  isolation: isolate;
}

main > section:not(.dark-background)::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(220px, 34vw, 520px);
  height: clamp(220px, 34vw, 520px);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.32;
  filter: blur(2px);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--motion-accent) 7.5%, transparent),
    rgba(128, 25, 34, 0) 69%
  );
  transform: translate3d(
    var(--section-orbit-x, 0),
    var(--section-orbit-y, 0),
    0
  );
}

main > section:nth-of-type(odd):not(.dark-background)::before {
  top: -150px;
  right: -170px;
}

main > section:nth-of-type(even):not(.dark-background)::before {
  bottom: -170px;
  left: -180px;
}

/* Premium cards with depth and light tracking */
.motion-card {
  isolation: isolate;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --card-lift: 0px;
  position: relative;
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
    translate3d(0, var(--card-lift), 0);
  transform-style: preserve-3d;
  transition:
    transform 520ms var(--motion-ease-spring),
    box-shadow 420ms var(--motion-ease-soft),
    border-color 420ms ease;
  will-change: transform;
}

.motion-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(255, 255, 255, 0.7),
    transparent 36%
  );
  mix-blend-mode: soft-light;
  transition: opacity 320ms ease;
}

.motion-card > *:not(.stretched-link) {
  position: relative;
  z-index: 1;
}

.motion-card.is-hovered {
  --card-lift: -7px;
}

.motion-card.is-hovered::after {
  opacity: 0.48;
}

.services .service-item.motion-card:hover,
.profile-card.motion-card:hover,
.contact-detail.motion-card:hover,
.stats-item.motion-card:hover {
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
    translate3d(0, var(--card-lift), 0);
}

.services .service-item .icon,
.profile-card .profile-icon,
.contact-detail .icon-box {
  transform: translateZ(24px);
}

.services .service-item h3,
.profile-card .profile-content,
.stats-item span {
  transform: translateZ(14px);
}

/* Elegant button interaction */
.motion-magnetic {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0);
  transition:
    transform 420ms var(--motion-ease-spring),
    box-shadow 320ms ease,
    background 320ms ease,
    color 320ms ease;
}

.btn-primary-pro,
.btn-secondary-pro,
.header-cta,
.footer-contact-btn,
.contact .php-email-form button[type="submit"] {
  overflow: hidden;
  isolation: isolate;
}

.btn-primary-pro::before,
.btn-secondary-pro::before,
.header-cta::before,
.footer-contact-btn::before,
.contact .php-email-form button[type="submit"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    115deg,
    transparent 22%,
    rgba(255, 255, 255, 0.34) 48%,
    transparent 74%
  );
  transform: translateX(-135%);
  transition: transform 720ms var(--motion-ease);
}

.btn-primary-pro:hover::before,
.btn-secondary-pro:hover::before,
.header-cta:hover::before,
.footer-contact-btn:hover::before,
.contact .php-email-form button[type="submit"]:hover::before {
  transform: translateX(135%);
}

/* Partners marquee refinement */
.partners-marquee {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.partners-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-track img {
  opacity: 0.74;
  filter: grayscale(1);
  transition:
    opacity 360ms ease,
    filter 360ms ease,
    transform 500ms var(--motion-ease-spring);
}

.logo-track img:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-6px) scale(1.08);
}

/* Contact form polish and state transitions */
.contact-form-card {
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--motion-accent) 10%, transparent),
    transparent 68%
  );
}

.contact .php-email-form .form-control-wrap,
.contact .php-email-form .col-md-6,
.contact .php-email-form .col-md-12 {
  position: relative;
}

.contact .php-email-form input,
.contact .php-email-form select,
.contact .php-email-form textarea {
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    transform 320ms var(--motion-ease-spring),
    background-color 240ms ease;
}

.contact .php-email-form input:focus,
.contact .php-email-form select:focus,
.contact .php-email-form textarea:focus {
  transform: translateY(-2px);
}

.contact .php-email-form .field-invalid {
  border-color: #c9303e !important;
  box-shadow: 0 0 0 4px rgba(201, 48, 62, 0.1) !important;
}

.contact .php-email-form .field-valid {
  border-color: #278758;
}

.contact .php-email-form .loading,
.contact .php-email-form .error-message,
.contact .php-email-form .sent-message {
  display: none;
  margin: 0 0 18px;
  padding: 13px 16px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 320ms ease,
    transform 420ms var(--motion-ease-spring);
}

.contact .php-email-form .loading.is-visible,
.contact .php-email-form .error-message.is-visible,
.contact .php-email-form .sent-message.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.contact .php-email-form .loading {
  color: #5b4b17;
  background: #fff8dc;
  border: 1px solid #f0dda0;
}

.contact .php-email-form .error-message {
  color: #8c1f2b;
  background: #fff1f2;
  border: 1px solid #efc7cc;
}

.contact .php-email-form .sent-message {
  color: #17643f;
  background: #edf9f2;
  border: 1px solid #bfe4cf;
}

.contact .php-email-form button[type="submit"] {
  min-width: 190px;
}

.contact .php-email-form button[type="submit"] .button-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.contact .php-email-form button[type="submit"] .button-spinner {
  width: 17px;
  height: 17px;
  display: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.contact .php-email-form.is-sending button[type="submit"] {
  cursor: wait;
  opacity: 0.82;
}

.contact .php-email-form.is-sending .button-spinner {
  display: inline-block;
}

.contact .php-email-form.is-sending .button-icon {
  display: none;
}

.contact .php-email-form.is-sent .contact-form-fields {
  opacity: 0.5;
}

/* Header and navigation micro-motion */
.site-header .logo img {
  transition:
    transform 620ms var(--motion-ease-spring),
    filter 420ms ease;
}

.site-header .logo:hover img {
  transform: scale(1.035);
  filter: drop-shadow(
    0 8px 14px color-mix(in srgb, var(--motion-accent) 20%, transparent)
  );
}

.navmenu > ul > li > a::after {
  transform-origin: center;
  transition:
    transform 420ms var(--motion-ease-spring),
    opacity 260ms ease;
}

.mobile-nav-active .navmenu > ul > li {
  opacity: 0;
  transform: translateX(22px);
  animation: washnahMenuItemIn 520ms var(--motion-ease-spring) forwards;
  animation-delay: calc(var(--menu-index, 0) * 45ms + 80ms);
}

@keyframes washnahMenuItemIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Footer reveal and subtle divider */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1160px, calc(100% - 40px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
}

.footer-socials a,
.contact-socials a {
  transition:
    transform 480ms var(--motion-ease-spring),
    background 320ms ease,
    color 320ms ease;
}

.footer-socials a:hover,
.contact-socials a:hover {
  transform: translateY(-5px) rotate(4deg);
}

/* Responsive tuning */
@media (max-width: 1199px) {
  :root {
    --motion-distance: 28px;
  }

  .motion-reveal[data-motion="left"],
  .motion-reveal[data-motion="right"] {
    --reveal-x: 0px;
    --reveal-y: 28px;
  }

  .hero .hero-video,
  .video-banner .bg-video,
  .stats-pro > img,
  .vision-cta .hero-video {
    transform: translate3d(0, calc(var(--parallax-y, 0px) * 0.55), 0)
      scale(1.08);
  }
}

@media (max-width: 767px) {
  :root {
    --motion-medium: 620ms;
    --motion-slow: 820ms;
    --motion-distance: 22px;
  }

  .washnah-scroll-progress {
    height: 2px;
  }
  .motion-reveal {
    filter: blur(4px);
  }
  .hero::after,
  .video-banner::after {
    opacity: 0.2;
  }
  .motion-card {
    transform: none !important;
  }
  .motion-card::after {
    display: none;
  }
  .partners-marquee {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent,
      #000 3%,
      #000 97%,
      transparent
    );
    mask-image: linear-gradient(
      90deg,
      transparent,
      #000 3%,
      #000 97%,
      transparent
    );
  }
  .contact .php-email-form button[type="submit"] {
    min-width: 100%;
  }
}

@media (hover: none), (pointer: coarse) {
  .motion-card,
  .motion-magnetic {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .motion-reveal,
  .motion-hero-item,
  .motion-card,
  .motion-magnetic,
  .hero .hero-video,
  .video-banner .bg-video,
  .stats-pro > img,
  .vision-cta .hero-video {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }

  .section-title h2::after,
  .contact-intro h2::after {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  .washnah-page-transition,
  .washnah-scroll-progress,
  .hero::after,
  .video-banner::after {
    display: none !important;
  }
}

.form-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 0;
  color: #7b7f86;
  font-size: 12px;
  line-height: 1.5;
}

.form-privacy-note i {
  color: #278758;
}

/* ========================================================================== 
   FINAL REFINEMENT — sector video heroes and signature preloader
   ========================================================================== */

/* Sector hero: stable media framing across desktop, tablet and mobile */
.sector-hero {
  --sector-video-position: 50% 50%;
  min-height: clamp(620px, 82svh, 900px);
  padding: calc(var(--header-height) + clamp(78px, 9vw, 132px)) 0
    clamp(88px, 10vw, 138px);
  text-align: left;
  background: #10161d;
  isolation: isolate;
}

.sector-hero--eco {
  --sector-accent: 108, 151, 92;
  --sector-video-position: 52% 48%;
}

.sector-hero--water {
  --sector-accent: 73, 148, 185;
  --sector-video-position: 50% 52%;
}

.video-banner.sector-hero .bg-video {
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: var(--sector-video-position);
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.045);
  filter: saturate(0.92) contrast(1.04) brightness(0.78);
}

.video-banner.sector-hero .overlay {
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(8, 13, 18, 0.95) 0%,
      rgba(8, 13, 18, 0.78) 39%,
      rgba(8, 13, 18, 0.34) 72%,
      rgba(8, 13, 18, 0.48) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 13, 18, 0.35) 0%,
      transparent 44%,
      rgba(8, 13, 18, 0.82) 100%
    );
}

.sector-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 73% 40%,
      rgba(var(--sector-accent), 0.2),
      transparent 27%
    ),
    linear-gradient(90deg, rgba(var(--sector-accent), 0.08), transparent 48%);
  mix-blend-mode: screen;
}

.sector-hero::after {
  opacity: 0.2;
  z-index: 3;
}

.sector-hero .container {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(130px, 0.22fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  width: min(calc(100% - 48px), 1240px);
  max-width: 1240px;
  margin-inline: auto;
}

.sector-hero-meta {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding-right: clamp(20px, 3vw, 42px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--nav-font);
  text-transform: uppercase;
}

.sector-hero-number {
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.055em;
}

.sector-hero-line {
  display: block;
  width: 56px;
  height: 2px;
  background: rgb(var(--sector-accent));
  box-shadow: 0 0 20px rgba(var(--sector-accent), 0.38);
}

.sector-hero-label {
  max-width: 130px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.19em;
}

.sector-hero-copy {
  max-width: 930px;
}

.sector-hero-copy .page-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--nav-font);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.video-banner.sector-hero h1 {
  max-width: 950px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 6.2vw, 6.25rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.058em;
  text-wrap: balance;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.video-banner.sector-hero .sector-hero-copy > p {
  max-width: 610px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.75;
}

.sector-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.sector-hero-actions .btn-primary-pro {
  background: rgb(var(--sector-accent));
  box-shadow: 0 14px 34px rgba(var(--sector-accent), 0.24);
}

.sector-hero-actions .btn-primary-pro:hover {
  background: color-mix(in srgb, rgb(var(--sector-accent)), white 10%);
}

.sector-scroll-link {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 26px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.64);
  transform: translateX(-50%);
  font-family: var(--nav-font);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sector-scroll-link:hover {
  color: #fff;
}
.sector-scroll-link i {
  font-size: 17px;
  animation: washnahCueFloat 2.4s ease-in-out infinite;
}

.sector-hero + .sector-services {
  position: relative;
  z-index: 7;
  margin-top: -1px;
  border-radius: 30px 30px 0 0;
}

/* Signature preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 42%,
      color-mix(in srgb, var(--motion-accent) 9.5%, transparent),
      transparent 29%
    ),
    linear-gradient(145deg, #ffffff 0%, #fbf8f8 52%, #f5f1f2 100%);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 650ms var(--motion-ease-soft),
    visibility 650ms var(--motion-ease-soft);
}

#preloader::before,
#preloader::after {
  content: "";
  position: absolute;
  width: min(64vw, 760px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--motion-accent) 5.5%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

#preloader::before {
  animation: washnahPreloaderHalo 3.4s ease-in-out infinite;
}
#preloader::after {
  width: min(43vw, 510px);
  animation: washnahPreloaderHalo 3.4s ease-in-out 0.55s infinite reverse;
}

.preloader-stage {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(88vw, 360px);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.preloader-orbit {
  position: relative;
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--motion-accent) 11%, transparent);
}

.preloader-ring-outer {
  border-top-color: color-mix(in srgb, var(--motion-accent) 86%, transparent);
  border-right-color: color-mix(in srgb, var(--motion-accent) 32%, transparent);
  animation: spin 2.15s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.preloader-ring-inner {
  inset: 20px;
  border-color: color-mix(in srgb, var(--motion-accent) 8%, transparent);
  border-bottom-color: color-mix(
    in srgb,
    var(--motion-accent) 58%,
    transparent
  );
  animation: spin 2.85s linear infinite reverse;
}

.preloader-dot {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--brand, var(--motion-accent));
  border-radius: 50%;
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--motion-accent) 8%, transparent),
    0 0 22px color-mix(in srgb, var(--motion-accent) 45%, transparent);
  transform: translateX(-50%);
  transform-origin: 0 90px;
  animation: washnahOrbitDot 2.15s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.preloader-logo-shell {
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid color-mix(in srgb, var(--motion-accent) 8%, transparent);
  border-radius: 50%;
  box-shadow:
    0 22px 60px rgba(65, 22, 27, 0.1),
    inset 0 0 0 8px color-mix(in srgb, var(--motion-accent) 2.5%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#preloader .loader-logo {
  position: static;
  z-index: auto;
  width: 96px;
  height: auto;
  animation: washnahLogoBreath 2.2s var(--motion-ease-soft) infinite;
  filter: drop-shadow(
    0 9px 18px color-mix(in srgb, var(--motion-accent) 13%, transparent)
  );
}

.preloader-brand {
  margin: 18px 0 0;
  color: #1a2026;
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}

.preloader-caption {
  margin: 8px 0 0;
  color: rgba(30, 37, 44, 0.52);
  font-family: var(--nav-font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preloader-progress {
  position: relative;
  width: 150px;
  height: 2px;
  margin-top: 22px;
  overflow: hidden;
  background: color-mix(in srgb, var(--motion-accent) 9%, transparent);
  border-radius: 999px;
}

.preloader-progress span {
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--motion-accent) 28%,
    #b64c57 70%,
    transparent
  );
  transform: translateX(-115%);
  animation: washnahPreloaderProgress 1.25s var(--motion-ease) infinite;
}

#preloader.preloader-ready {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader.preloader-ready .preloader-stage {
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
  filter: blur(5px);
  transition:
    opacity 420ms ease,
    transform 520ms var(--motion-ease),
    filter 420ms ease;
}

@keyframes washnahOrbitDot {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}
@keyframes washnahPreloaderProgress {
  0% {
    transform: translateX(-115%);
  }
  100% {
    transform: translateX(250%);
  }
}
@keyframes washnahPreloaderHalo {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

@media (max-width: 991px) {
  .sector-hero {
    min-height: clamp(600px, 78svh, 780px);
    padding-top: calc(var(--header-height) + 72px);
  }
  .sector-hero .container {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 28px;
    width: min(calc(100% - 36px), 900px);
  }
  .sector-hero-meta {
    padding-right: 22px;
  }
  .video-banner.sector-hero h1 {
    font-size: clamp(2.55rem, 8vw, 4.8rem);
  }
  .sector-hero--eco {
    --sector-video-position: 57% 50%;
  }
  .sector-hero--water {
    --sector-video-position: 54% 50%;
  }
}

@media (max-width: 767px) {
  .sector-hero {
    min-height: max(620px, 86svh);
    padding: calc(var(--header-height) + 58px) 0 92px;
  }
  .sector-hero .container {
    display: block;
    width: min(calc(100% - 30px), 620px);
  }
  .sector-hero-meta {
    display: flex;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0;
    border: 0;
  }
  .sector-hero-number {
    font-size: 1.35rem;
  }
  .sector-hero-line {
    width: 34px;
  }
  .sector-hero-label {
    max-width: none;
    font-size: 8px;
  }
  .sector-hero-copy .page-kicker {
    margin-bottom: 17px;
    font-size: 8px;
    letter-spacing: 0.14em;
  }
  .video-banner.sector-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.45rem, 13vw, 4.15rem);
    line-height: 1.01;
  }
  .video-banner.sector-hero .sector-hero-copy > p {
    max-width: 34ch;
    margin-top: 20px;
    font-size: 0.98rem;
  }
  .sector-hero-actions {
    margin-top: 28px;
  }
  .sector-hero-actions a {
    width: 100%;
    justify-content: center;
  }
  .sector-scroll-link {
    display: none;
  }
  .video-banner.sector-hero .overlay {
    background:
      linear-gradient(90deg, rgba(8, 13, 18, 0.91), rgba(8, 13, 18, 0.52)),
      linear-gradient(180deg, rgba(8, 13, 18, 0.28), rgba(8, 13, 18, 0.89));
  }
  .sector-hero--eco {
    --sector-video-position: 62% center;
  }
  .sector-hero--water {
    --sector-video-position: 58% center;
  }
  .preloader-orbit {
    width: 164px;
    height: 164px;
  }
  .preloader-logo-shell {
    width: 110px;
    height: 110px;
  }
  #preloader .loader-logo {
    width: 84px;
  }
  .preloader-dot {
    transform-origin: 0 77px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #preloader::before,
  #preloader::after,
  .preloader-ring,
  .preloader-dot,
  #preloader .loader-logo,
  .preloader-progress span,
  .sector-scroll-link i {
    animation: none !important;
  }
  .video-banner.sector-hero .bg-video {
    transform: scale(1.02) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sector-signature-ripple {
    display: none;
    animation: none;
  }
}
