/* Second pass refinements after screenshot review. */
.site-header {
  gap: 16px;
  padding: 8px 12px 8px 18px;
}

.brand {
  width: 172px;
  height: 58px;
  overflow: visible;
}

.brand img {
  height: auto;
  object-fit: contain;
}

.desktop-nav a {
  padding: 10px 13px;
}

.header-phone {
  padding: 12px 17px;
}

.hero {
  min-height: 92svh;
}

.hero-bg {
  background-image: url("https://images.unsplash.com/photo-1600607688969-a5bfcd646154?auto=format&fit=crop&w=2400&q=86");
  filter: saturate(0.9) contrast(1.08);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.48;
}

.hero-overlay {
  background:
    radial-gradient(circle at 22% 20%, rgba(130, 181, 222, 0.42), transparent 30%),
    radial-gradient(circle at 78% 66%, rgba(130, 181, 222, 0.28), transparent 24%),
    linear-gradient(112deg, rgba(7, 16, 20, 0.92) 0%, rgba(7, 16, 20, 0.78) 43%, rgba(7, 16, 20, 0.52) 100%);
}

.hero-shell {
  min-height: 92svh;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.86fr);
  gap: 64px;
  padding: 128px 0 74px;
}

h1,
h2 {
  letter-spacing: -0.045em;
  line-height: 1;
}

h1 {
  max-width: 740px;
  margin: 20px 0 22px;
  font-size: clamp(3rem, 5.9vw, 6.35rem);
  font-weight: 920;
}

h2 {
  font-size: clamp(2.05rem, 3.8vw, 4.15rem);
  font-weight: 920;
}

.hero-lede {
  max-width: 600px;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  position: absolute;
  inset: -45% auto -45% -40%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.76), transparent);
  content: "";
  transform: skewX(-18deg) translateX(-170%);
}

.btn:hover::after,
.is-visible .btn-primary::after {
  animation: buttonShine 1150ms ease;
}

@keyframes buttonShine {
  to { transform: skewX(-18deg) translateX(560%); }
}

.hero-showcase {
  min-height: 560px;
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), var(--shadow);
  backdrop-filter: blur(12px);
}

.showcase-card.large {
  inset: 42px 74px 86px 32px;
}

.showcase-card.small {
  width: 42%;
  height: 190px;
}

.top-card {
  top: 84px;
}

.bottom-card {
  bottom: 32px;
}

.floating-badge {
  bottom: 236px;
}

.hero-meter {
  position: absolute;
  left: 34px;
  right: 54px;
  bottom: 26px;
  display: grid;
  gap: 9px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meter div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-meter i {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #ffffff, var(--blue-deep));
  animation: meterPulse 2.8s ease-in-out infinite;
}

@keyframes meterPulse {
  0%, 100% { transform: translateX(-8%); filter: brightness(1); }
  50% { transform: translateX(18%); filter: brightness(1.35); }
}

.hero-piece {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  animation: heroIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-copy .hero-piece:nth-child(1) { animation-delay: 180ms; }
.hero-copy .hero-piece:nth-child(2) { animation-delay: 620ms; }
.hero-copy .hero-piece:nth-child(4) { animation-delay: 1220ms; }
.hero-copy .hero-piece:nth-child(5) { animation-delay: 1700ms; }
.hero-showcase.hero-piece { animation-delay: 2150ms; }

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

.section {
  padding: 92px 0;
}

.section-heading {
  margin-bottom: 38px;
}

.service-card,
.step,
.gallery-item,
.award-slide,
.contact-grid a {
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.service-card:hover,
.step:hover,
.gallery-item:hover,
.contact-grid a:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(7, 16, 20, 0.2);
}

.service-number {
  margin-bottom: 136px;
}

.reveal-up {
  transform: translateY(52px);
}

.is-visible .reveal-up,
.is-visible.reveal-up {
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.services,
.work,
.process,
.awards,
.team,
.areas {
  position: relative;
}

.services::before,
.work::before,
.process::before,
.awards::before,
.team::before,
.areas::before {
  position: absolute;
  top: 70px;
  left: -8%;
  z-index: 0;
  width: 34%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  content: "";
  opacity: 0;
}

.services.is-visible::before,
.work.is-visible::before,
.process.is-visible::before,
.awards.is-visible::before,
.team.is-visible::before,
.areas.is-visible::before {
  animation: sectionSweep 1300ms ease both;
}

@keyframes sectionSweep {
  0% { opacity: 0; transform: translateX(-90px); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateX(520px); }
}

.site-footer {
  display: block;
  width: min(1180px, calc(100% - 32px));
  margin: 46px auto 24px;
  overflow: hidden;
  border-radius: 34px;
  color: rgba(255, 255, 255, 0.74);
  background:
    radial-gradient(circle at 12% 12%, rgba(130, 181, 222, 0.28), transparent 30%),
    linear-gradient(145deg, #071014, #102b3d);
  box-shadow: var(--shadow);
}

.site-footer p {
  max-width: 520px;
  margin: 16px 0 0;
  line-height: 1.65;
}

.site-footer a {
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.55fr 0.8fr;
  gap: 34px;
  padding: 42px;
}

.footer-main img {
  width: 190px;
  padding: 8px 0;
  filter: brightness(0) invert(1) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-links a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-links a:hover {
  color: var(--blue);
  transform: translateX(4px);
}

.footer-cta {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-cta span {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 950;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 42px;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 980px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-showcase {
    min-height: 470px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand {
    width: 146px;
    height: 50px;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 4.25rem);
  }

  h2 {
    font-size: clamp(2rem, 9.4vw, 3.15rem);
  }

  .hero-shell {
    padding-top: 116px;
  }

  .hero-showcase {
    min-height: 420px;
  }

  .showcase-card.large {
    inset: 34px 54px 78px 14px;
  }

  .top-card {
    top: 74px;
  }

  .bottom-card {
    bottom: 48px;
  }

  .hero-meter {
    left: 18px;
    right: 24px;
  }

  .floating-badge {
    bottom: 196px;
  }

  .section {
    padding: 74px 0;
  }

  .footer-main,
  .footer-bottom {
    padding: 26px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Mobile/content fixes requested after live review. */
body {
  max-width: 100%;
}

.contact-card h2 {
  font-size: clamp(1.75rem, 3.2vw, 3.1rem);
}

.contact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.quick-contact a {
  justify-items: center;
  text-align: center;
}

.quick-contact span,
.quick-contact strong {
  text-align: center;
}

.lightbox img {
  max-width: min(980px, calc(100vw - 32px));
  max-height: calc(100svh - 96px);
}

.service-modal-panel {
  max-height: calc(100svh - 32px);
  overflow: auto;
}

@media (max-width: 640px) {
  .site-header {
    left: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    transform: none;
    overflow: visible;
  }

  .menu-toggle {
    flex: 0 0 48px;
  }

  .brand {
    min-width: 0;
  }

  .quick-contact a {
    place-items: center;
    text-align: center;
  }

  .quick-contact span,
  .quick-contact strong {
    text-align: center;
  }

  .contact-card h2 {
    font-size: clamp(1.75rem, 8vw, 2.55rem);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-modal {
    padding: 10px;
  }

  .service-modal-panel {
    max-height: calc(100svh - 20px);
    border-radius: 24px;
  }

  .site-footer,
  .footer-main,
  .footer-bottom,
  .footer-links,
  .footer-cta {
    text-align: center;
  }

  .footer-main {
    justify-items: center;
  }

  .footer-main > div:first-child {
    display: grid;
    justify-items: center;
  }

  .footer-links {
    justify-items: center;
  }

  .footer-links a {
    margin-inline: auto;
  }

  .footer-bottom {
    align-items: center;
  }
}

/* Mobile gallery controls and awards carousel refinements. */
.award-slide {
  cursor: zoom-in;
}

@media (max-width: 640px) {
  .gallery-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .gallery-controls button {
    min-width: 0;
    padding: 9px 6px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .award-carousel {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 28px;
    padding: 0;
    background:
      radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.76), transparent 34%),
      linear-gradient(145deg, #d9dee3, #aeb7bf);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 24px 58px rgba(7, 16, 20, 0.16);
  }

  .award-carousel::before {
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 22px;
    content: "";
    pointer-events: none;
  }

  .award-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 76%;
    min-height: auto;
    place-items: center;
    padding: 12px;
    opacity: 1;
    transform: translate(-50%, -50%) translateX(120%) scale(0.86);
    animation: mobileAwardLoop 9s linear infinite;
    will-change: transform, opacity;
  }

  .award-slide:nth-child(2) {
    animation-delay: -6s;
  }

  .award-slide:nth-child(3) {
    animation-delay: -3s;
  }

  .award-slide.active,
  .award-slide:not(.active) {
    opacity: 1;
  }

  .award-slide img {
    max-height: none;
    width: 100%;
    border-radius: 14px;
  }

  .award-slide span {
    margin-top: 8px;
    font-size: 0.72rem;
  }

  @keyframes mobileAwardLoop {
    0% { opacity: 0; transform: translate(-50%, -50%) translateX(126%) scale(0.82); }
    8% { opacity: 1; transform: translate(-50%, -50%) translateX(76%) scale(0.9); }
    30% { opacity: 1; transform: translate(-50%, -50%) translateX(0) scale(1.06); }
    44% { opacity: 1; transform: translate(-50%, -50%) translateX(-76%) scale(0.9); }
    52% { opacity: 0; transform: translate(-50%, -50%) translateX(-126%) scale(0.82); }
    100% { opacity: 0; transform: translate(-50%, -50%) translateX(-126%) scale(0.82); }
  }
}

.local-seo-copy {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  background: rgba(7, 16, 20, 0);
  opacity: 0;
  transition: opacity 240ms ease, background 240ms ease;
}

.thanks-modal.is-open {
  pointer-events: auto;
  background: rgba(7, 16, 20, 0.84);
  opacity: 1;
}

.thanks-panel {
  position: relative;
  width: min(620px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  padding: clamp(28px, 5vw, 52px);
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 14%, rgba(130, 181, 222, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(10, 22, 28, 0.98), rgba(21, 60, 84, 0.96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  text-align: center;
  transform: translateY(22px) scale(0.96);
  transition: transform 260ms ease;
}

.thanks-modal.is-open .thanks-panel {
  transform: translateY(0) scale(1);
}

.thanks-panel .eyebrow {
  justify-content: center;
}

.thanks-panel h2 {
  margin-top: 16px;
}

.thanks-panel p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}

.thanks-panel > button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.quote-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

/* Final polish after review: darker gradients, real map, static CTA hover, visible awards. */
.hero-actions .btn-primary,
.quote-form .btn-primary,
.team-copy .btn-primary,
.footer-cta .btn-primary,
.service-modal .btn-primary,
.area-phone {
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.34);
  background: linear-gradient(135deg, #174f78 0%, #2d74aa 38%, #6faeda 52%, #2d74aa 66%, #0b314c 100%);
  background-size: 320% 100%;
  box-shadow: 0 18px 42px rgba(23, 79, 120, 0.38);
  animation: ctaGradient 5.6s ease-in-out infinite;
}

.hero-actions .btn-primary:hover,
.quote-form .btn-primary:hover,
.team-copy .btn-primary:hover,
.footer-cta .btn-primary:hover,
.service-modal .btn-primary:hover,
.area-phone:hover {
  box-shadow: 0 26px 58px rgba(23, 79, 120, 0.48);
  transform: translateY(-4px) scale(1.02);
}

.btn.is-magnetic,
.magnetic.is-magnetic {
  transform: translateY(-4px) scale(1.02);
}

.quick-contact {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 42%),
    linear-gradient(135deg, #174f78 0%, #2d74aa 46%, #0b314c 100%);
  box-shadow: 0 28px 80px rgba(23, 79, 120, 0.42);
}

.quick-contact a {
  display: grid;
  place-items: center;
  text-align: center;
}

.quick-contact span,
.quick-contact strong {
  text-align: center;
}

.quick-contact strong {
  line-height: 1.3;
}

.quote-form .btn-primary {
  min-height: 62px;
  width: min(260px, 100%);
  justify-self: start;
  font-size: 1.05rem;
}

.team-copy .btn-primary {
  min-height: 62px;
  padding: 0 34px;
  font-size: 1.05rem;
}

.footer-cta {
  justify-items: center;
  text-align: center;
}

.footer-cta .btn-primary {
  min-height: 62px;
  padding: 0 34px;
  font-size: 1.04rem;
}

.area-panel {
  grid-template-columns: 1.12fr 0.88fr;
}

.area-map {
  min-height: 520px;
  background: #071014;
}

.area-map::before,
.area-map .pin,
.pin {
  display: none !important;
}

.area-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.9) contrast(1.04);
}

.area-callout {
  margin: 8px 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.area-phone {
  min-height: 58px;
  margin-bottom: 24px;
  padding: 0 26px;
}

.awards {
  grid-template-columns: 0.56fr 1.44fr;
}

.award-carousel {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  perspective: none;
}

.award-slide {
  position: relative;
  inset: auto;
  min-height: 300px;
  padding: 16px;
  opacity: 1;
  transform: none;
  transition: transform 360ms ease, box-shadow 360ms ease, opacity 360ms ease;
}

.award-slide.active {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 30px 80px rgba(23, 79, 120, 0.26);
}

.award-slide:not(.active) {
  opacity: 0.78;
}

.award-slide img {
  max-height: 230px;
}

.award-slide span {
  margin-top: 12px;
  font-size: 0.78rem;
}

.award-controls {
  display: none;
}

@media (max-width: 980px) {
  .awards,
  .area-panel {
    grid-template-columns: 1fr;
  }

  .award-carousel {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    overflow-x: auto;
    padding: 10px 4px 24px;
    scroll-snap-type: x mandatory;
  }

  .award-slide {
    scroll-snap-align: center;
  }
}

@media (max-width: 640px) {
  .quick-contact a {
    place-items: start;
    text-align: left;
  }

  .quick-contact span,
  .quick-contact strong {
    text-align: left;
  }

  .quote-form .btn-primary,
  .team-copy .btn-primary,
  .footer-cta .btn-primary,
  .area-phone {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-piece,
  .hero-meter i,
  .services.is-visible::before,
  .work.is-visible::before,
  .process.is-visible::before,
  .awards.is-visible::before,
  .team.is-visible::before,
  .areas.is-visible::before {
    animation: none !important;
  }

  .hero-piece {
    opacity: 1;
    transform: none;
  }
}

/* Fourth pass: requested CTA, hero, contact bar, and motion refinements. */
.desktop-nav a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.desktop-nav a::before {
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(130, 181, 222, 0.32), rgba(255, 255, 255, 0.72));
  content: "";
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 220ms ease, transform 220ms ease;
}

.desktop-nav a::after {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  border-radius: 99px;
  background: var(--blue-deep);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.desktop-nav a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.desktop-nav a:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-2px);
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 4.05vw, 4.9rem);
  line-height: 1.04;
}

.hero-copy {
  max-width: 760px;
}

.hero-actions .btn {
  min-height: 82px;
  padding: 0 44px;
  font-size: 1.28rem;
}

.hero-actions .btn-primary {
  min-width: 292px;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
  background: linear-gradient(135deg, #2d74aa 0%, #82b5de 36%, #ffffff 50%, #82b5de 62%, #174f78 100%);
  background-size: 320% 100%;
}

.hero-actions .btn-glass {
  min-width: 276px;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

.hero-proof {
  gap: 8px;
  margin-top: -44px;
}

.hero-proof span {
  padding: 6px 10px;
  font-size: 0.76rem;
}

.quick-contact {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(135deg, #2d74aa 0%, #82b5de 48%, #174f78 100%);
  box-shadow: 0 28px 80px rgba(45, 116, 170, 0.36);
}

.quick-contact a {
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.quick-contact a:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.58);
}

.quick-contact span {
  color: rgba(255, 255, 255, 0.72);
}

.quick-contact strong {
  color: #ffffff;
}

.hero-piece {
  opacity: 0;
  transform: translateY(-34px);
  filter: blur(10px);
  animation: heroTopDown 620ms cubic-bezier(0.18, 0.9, 0.24, 1) forwards;
}

.hero-copy .hero-piece:nth-child(1) { animation-delay: 120ms; }
.hero-copy .hero-piece:nth-child(2) { animation-delay: 470ms; }
.hero-copy .hero-piece:nth-child(3) { animation-delay: 820ms; }
.hero-copy .hero-piece:nth-child(4) { animation-delay: 1160ms; }
.hero-showcase.hero-piece { animation-delay: 1580ms; }
.hero-proof.hero-piece { animation-delay: 1980ms; }

@keyframes heroTopDown {
  0% {
    opacity: 0;
    transform: translateY(-34px);
    filter: blur(10px);
  }
  70% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.section-heading .eyebrow,
.section-heading h2,
.section-heading p,
.band-content span,
.band-content h2,
.band-content .btn,
.contact-card .eyebrow,
.contact-card h2,
.contact-grid,
.quote-form,
.team-copy .eyebrow,
.team-copy h2,
.team-copy p,
.area-copy .eyebrow,
.area-copy h2,
.chip-list {
  opacity: 0;
  transform: translateY(-22px);
  filter: blur(8px);
}

.is-visible .section-heading .eyebrow,
.is-visible .section-heading h2,
.is-visible .section-heading p,
.parallax-band.is-visible .band-content span,
.parallax-band.is-visible .band-content h2,
.parallax-band.is-visible .band-content .btn,
.contact.is-visible .contact-card .eyebrow,
.contact.is-visible .contact-card h2,
.contact.is-visible .contact-grid,
.contact.is-visible .quote-form,
.team.is-visible .team-copy .eyebrow,
.team.is-visible .team-copy h2,
.team.is-visible .team-copy p,
.areas.is-visible .area-copy .eyebrow,
.areas.is-visible .area-copy h2,
.areas.is-visible .chip-list {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.18, 0.9, 0.24, 1), filter 700ms ease;
}

.is-visible .section-heading h2,
.parallax-band.is-visible .band-content h2,
.contact.is-visible .contact-card h2,
.team.is-visible .team-copy h2,
.areas.is-visible .area-copy h2 {
  transition-delay: 180ms;
}

.is-visible .section-heading p,
.parallax-band.is-visible .band-content .btn,
.contact.is-visible .contact-grid,
.team.is-visible .team-copy p,
.areas.is-visible .chip-list {
  transition-delay: 360ms;
}

.contact.is-visible .quote-form {
  transition-delay: 520ms;
}

@media (max-width: 980px) {
  h1 {
    max-width: 700px;
    font-size: clamp(2.85rem, 8vw, 4.4rem);
  }

  .hero-actions .btn {
    min-height: 74px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.45rem, 10vw, 3.55rem);
  }

  .hero-actions .btn {
    min-height: 68px;
    padding: 0 26px;
    font-size: 1.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-piece,
  .section-heading .eyebrow,
  .section-heading h2,
  .section-heading p,
  .band-content span,
  .band-content h2,
  .band-content .btn,
  .contact-card .eyebrow,
  .contact-card h2,
  .contact-grid,
  .quote-form,
  .team-copy .eyebrow,
  .team-copy h2,
  .team-copy p,
  .area-copy .eyebrow,
  .area-copy h2,
  .chip-list {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

/* Third pass: stronger CTA hierarchy, wider layout, service modals. */
.site-header,
.hero-shell,
.section,
.band-content {
  width: min(1200px, calc(100% - 40px));
}

.hero-shell {
  grid-template-columns: minmax(580px, 0.98fr) minmax(430px, 0.8fr);
  gap: 74px;
  align-items: center;
}

.hero-copy {
  max-width: 650px;
  transform: translateX(18px);
}

.hero-fader {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  pointer-events: none;
}

.hero-fader img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1400ms ease, transform 5200ms ease;
}

.hero-fader img.active {
  opacity: 1;
  transform: scale(1.12);
}

h1 {
  max-width: 680px;
  font-size: clamp(3rem, 4.55vw, 5.35rem);
  line-height: 1.03;
}

.hero-lede {
  max-width: 640px;
  font-size: clamp(1.05rem, 1.2vw, 1.18rem);
}

.hero-actions {
  gap: 16px;
  margin-top: 24px;
}

.hero-actions .btn {
  min-height: 66px;
  padding: 0 34px;
  font-size: 1.08rem;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.hero-actions .btn-primary {
  min-width: 230px;
  color: #031018;
  background: linear-gradient(135deg, #9dd3ff 0%, #6fb6ec 48%, #ffffff 52%, #70b7ec 58%, #2d74aa 100%);
  background-size: 280% 100%;
  animation: ctaGradient 5s ease-in-out infinite;
}

.hero-actions .btn-glass {
  min-width: 220px;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.18);
}

@keyframes ctaGradient {
  0%, 100% { background-position: 0% 50%; }
  46% { background-position: 100% 50%; }
}

.hero-proof {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: -34px;
  opacity: 0.82;
}

.hero-proof span {
  padding: 8px 13px;
  font-size: 0.9rem;
}

.quick-contact {
  width: min(1080px, calc(100% - 40px));
  margin-top: -34px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(180deg, #18262d 0%, #071014 100%);
  box-shadow: 0 28px 80px rgba(7, 16, 20, 0.36);
}

.quick-contact a {
  padding: 30px 32px;
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.quick-contact a:hover {
  z-index: 1;
  background: linear-gradient(180deg, rgba(130, 181, 222, 0.22), rgba(130, 181, 222, 0.05));
  color: #c8ebff;
  transform: scale(1.045);
}

.quick-contact span {
  color: rgba(184, 218, 245, 0.72);
}

.quick-contact strong {
  color: var(--white);
  font-size: 1.15rem;
}

.service-card {
  cursor: pointer;
}

.service-card::before {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--blue);
  content: "+";
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
  transition: transform 220ms ease, background 220ms ease;
}

.service-card:hover::before {
  background: #ffffff;
  transform: rotate(90deg) scale(1.12);
}

.parallax-band,
.band-content {
  min-height: 620px;
}

.band-content {
  padding: 70px 0;
}

.band-content h2 {
  max-width: 900px;
  font-size: clamp(2.65rem, 4.4vw, 5rem);
}

.band-content .btn {
  min-height: 64px;
  width: fit-content;
  padding: 0 34px;
  font-size: 1.05rem;
}

.process {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 44px;
  align-items: start;
}

.process-head {
  position: sticky;
  top: 130px;
  margin-bottom: 0;
}

.process-head p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.timeline {
  grid-template-columns: 1fr;
  gap: 16px;
}

.timeline-line {
  display: none;
}

.step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 6px 18px;
  align-items: start;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(235, 246, 255, 0.78));
}

.step span {
  grid-row: span 2;
  margin-bottom: 0;
  box-shadow: 0 12px 30px rgba(7, 16, 20, 0.2);
}

.area-map {
  background:
    linear-gradient(rgba(7, 16, 20, 0.58), rgba(7, 16, 20, 0.68)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1300&q=82") center / cover;
}

.area-map::before {
  background-color: rgba(7, 16, 20, 0.32);
  backdrop-filter: blur(1px);
}

.pin {
  outline: 8px solid rgba(130, 181, 222, 0.12);
  animation: pinPulse 2.8s ease-in-out infinite;
}

.pin:nth-child(2) { animation-delay: 400ms; }
.pin:nth-child(3) { animation-delay: 800ms; }
.pin:nth-child(4) { animation-delay: 1200ms; }

@keyframes pinPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.quote-form {
  gap: 18px;
}

.quote-form button {
  margin-top: 8px;
}

.site-footer {
  width: 100%;
  margin: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(130, 181, 222, 0.28), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #142c38 0%, #071014 100%);
}

.footer-main,
.footer-bottom {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-main {
  padding: 54px 0 42px;
}

.footer-bottom {
  padding: 22px 0 30px;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  background: rgba(7, 16, 20, 0);
  opacity: 0;
  transition: opacity 240ms ease, background 240ms ease;
}

.service-modal.is-open {
  pointer-events: auto;
  background: rgba(7, 16, 20, 0.82);
  opacity: 1;
}

.service-modal-panel {
  position: relative;
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: 0.9fr 1fr;
  gap: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(145deg, rgba(10, 22, 28, 0.98), rgba(21, 60, 84, 0.96));
  box-shadow: var(--shadow);
  transform: translateY(20px) scale(0.96);
  transition: transform 260ms ease;
}

.service-modal.is-open .service-modal-panel {
  transform: translateY(0) scale(1);
}

.service-modal-panel > img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 24px;
}

.service-modal-panel p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.7;
}

.service-modal-panel strong {
  display: block;
  margin: 18px 0 22px;
  color: var(--blue);
}

.service-modal-panel button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.magnetic.is-magnetic,
.btn.is-magnetic {
  transform: translate(var(--mx, 0), var(--my, 0)) scale(1.06);
}

@media (max-width: 980px) {
  .hero-shell,
  .process,
  .service-modal-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    transform: none;
  }

  .process-head {
    position: static;
  }

  .hero-proof {
    margin-top: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero-shell,
  .section,
  .band-content,
  .footer-main,
  .footer-bottom {
    width: min(100% - 24px, 1200px);
  }

  h1 {
    font-size: clamp(2.55rem, 11vw, 3.75rem);
  }

  .hero-actions .btn {
    min-height: 62px;
    width: 100%;
    font-size: 1rem;
  }

  .quick-contact {
    width: 100%;
    margin-top: 0;
    border-radius: 0;
  }

  .quick-contact a:hover {
    transform: none;
  }

  .parallax-band,
  .band-content {
    min-height: 560px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .service-modal-panel {
    padding: 16px;
  }

  .service-modal-panel > img {
    min-height: 230px;
  }
}

/* Final override: must stay last so browser-visible changes win. */
.site-header,
.hero-shell,
.section,
.band-content {
  width: min(1200px, calc(100% - 40px));
}

.desktop-nav a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.desktop-nav a::before {
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(130, 181, 222, 0.38), rgba(255, 255, 255, 0.78));
  content: "";
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 220ms ease, transform 220ms ease;
}

.desktop-nav a::after {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  border-radius: 99px;
  background: var(--blue-deep);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.desktop-nav a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.desktop-nav a:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-2px);
}

.hero-shell {
  grid-template-columns: minmax(660px, 1fr) minmax(420px, 0.72fr);
  gap: 54px;
}

.hero-copy {
  max-width: 780px;
  transform: translateX(10px);
}

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 3.92vw, 4.65rem);
  line-height: 1.04;
}

.hero-actions .btn {
  min-height: 82px;
  padding: 0 44px;
  font-size: 1.28rem;
}

.hero-actions .btn-primary {
  min-width: 292px;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
  background: linear-gradient(135deg, #2d74aa 0%, #82b5de 36%, #ffffff 50%, #82b5de 62%, #174f78 100%);
  background-size: 320% 100%;
  animation: ctaGradient 5s ease-in-out infinite;
}

.hero-actions .btn-glass {
  min-width: 276px;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

.hero-proof {
  gap: 8px;
  margin-top: -44px;
}

.hero-proof span {
  padding: 6px 10px;
  font-size: 0.76rem;
}

.quick-contact {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(135deg, #2d74aa 0%, #82b5de 48%, #174f78 100%);
  box-shadow: 0 28px 80px rgba(45, 116, 170, 0.36);
}

.quick-contact a {
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.quick-contact a:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.58);
}

.quick-contact span,
.quick-contact strong {
  color: #ffffff;
}

.quick-contact span {
  opacity: 0.72;
}

.hero-piece {
  opacity: 0;
  transform: translateY(-34px);
  filter: blur(10px);
  animation: heroTopDownFinal 620ms cubic-bezier(0.18, 0.9, 0.24, 1) forwards;
}

.hero-copy .hero-piece:nth-child(1) { animation-delay: 120ms; }
.hero-copy .hero-piece:nth-child(2) { animation-delay: 470ms; }
.hero-copy .hero-piece:nth-child(3) { animation-delay: 820ms; }
.hero-copy .hero-piece:nth-child(4) { animation-delay: 1160ms; }
.hero-showcase.hero-piece { animation-delay: 1580ms; }
.hero-proof.hero-piece { animation-delay: 1980ms; }

@keyframes heroTopDownFinal {
  0% { opacity: 0; transform: translateY(-34px); filter: blur(10px); }
  70% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.section-heading .eyebrow,
.section-heading h2,
.section-heading p,
.band-content span,
.band-content h2,
.band-content .btn,
.contact-card .eyebrow,
.contact-card h2,
.contact-grid,
.quote-form,
.team-copy .eyebrow,
.team-copy h2,
.team-copy p,
.area-copy .eyebrow,
.area-copy h2,
.chip-list {
  opacity: 0;
  transform: translateY(-22px);
  filter: blur(8px);
}

.is-visible .section-heading .eyebrow,
.is-visible .section-heading h2,
.is-visible .section-heading p,
.parallax-band.is-visible .band-content span,
.parallax-band.is-visible .band-content h2,
.parallax-band.is-visible .band-content .btn,
.contact.is-visible .contact-card .eyebrow,
.contact.is-visible .contact-card h2,
.contact.is-visible .contact-grid,
.contact.is-visible .quote-form,
.team.is-visible .team-copy .eyebrow,
.team.is-visible .team-copy h2,
.team.is-visible .team-copy p,
.areas.is-visible .area-copy .eyebrow,
.areas.is-visible .area-copy h2,
.areas.is-visible .chip-list {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.18, 0.9, 0.24, 1), filter 700ms ease;
}

.is-visible .section-heading h2,
.parallax-band.is-visible .band-content h2,
.contact.is-visible .contact-card h2,
.team.is-visible .team-copy h2,
.areas.is-visible .area-copy h2 {
  transition-delay: 180ms;
}

.is-visible .section-heading p,
.parallax-band.is-visible .band-content .btn,
.contact.is-visible .contact-grid,
.team.is-visible .team-copy p,
.areas.is-visible .chip-list {
  transition-delay: 360ms;
}

.contact.is-visible .quote-form {
  transition-delay: 520ms;
}

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

  h1 {
    max-width: 700px;
    font-size: clamp(2.85rem, 8vw, 4.4rem);
  }

  .hero-actions .btn {
    min-height: 74px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.45rem, 10vw, 3.55rem);
  }

  .hero-actions .btn {
    min-height: 68px;
    padding: 0 26px;
    font-size: 1.08rem;
  }
}
