:root {
  --blue: #0f244a;
  --blue-800: #122d5d;
  --orange: #fe8007;
  --orange-700: #d76500;
  --ink: #172033;
  --muted: #647084;
  --line: #dbe2ec;
  --mist: #f4f7fb;
  --shadow-soft: 0 14px 32px rgba(15, 36, 74, 0.1);
  --shadow-strong: 0 22px 58px rgba(8, 21, 47, 0.28);
  --radius: 8px;
  --header-height: 78px;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(254, 128, 7, 0.55);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--orange);
  color: #111827;
  font-weight: 800;
  padding: 0.75rem 1rem;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(219, 226, 236, 0.75);
  backdrop-filter: blur(10px);
  transition: box-shadow 220ms ease, background-color 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(15, 36, 74, 0.09);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 148px;
  height: 50px;
  overflow: hidden;
}

.brand img {
  width: 100%;
  height: auto;
  max-width: none;
  transform: scale(1.72);
  transform-origin: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: #25324a;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--orange);
  transition: transform 180ms ease;
}

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

.nav-cta {
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 36, 74, 0.16);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.nav-links .nav-cta {
  padding: 0.75rem 1.5rem;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--blue-800);
  box-shadow: 0 10px 26px rgba(15, 36, 74, 0.2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 36, 74, 0.15);
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Hero and scroll-controlled glass doors */
.hero {
  --door-left-shift: 0%;
  --door-right-shift: 0%;
  --door-panel-opacity: 0.64;
  --door-text-opacity: 0;
  --door-text-y: 18px;
  position: relative;
  min-height: 145svh;
  overflow: clip;
  background:
    linear-gradient(135deg, rgba(254, 128, 7, 0.16), transparent 35%),
    linear-gradient(180deg, #08152f 0%, #0f244a 54%, #13213c 100%);
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 78%);
  pointer-events: none;
}

.hero__sticky {
  position: sticky;
  top: var(--header-height);
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  padding: 3rem 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  gap: 5rem;
}

.hero__copy {
  position: relative;
  z-index: 12;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 4.5rem;
  line-height: 1.04;
  font-weight: 900;
}

.hero__subtitle {
  max-width: 650px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.25rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 850;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--orange);
  color: #101827;
  box-shadow: 0 12px 28px rgba(254, 128, 7, 0.22);
}

.button--primary:hover {
  background: #ff9433;
  box-shadow: 0 16px 34px rgba(254, 128, 7, 0.28);
}

.button--large {
  min-height: 56px;
  padding: 1rem 1.55rem;
}

.door-stage {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  justify-self: end;
  overflow: visible;
  isolation: isolate;
}

.door-viewport {
  position: relative;
  min-height: 420px;
  height: min(56svh, 540px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.03)),
    #e8edf4;
  box-shadow: var(--shadow-strong);
  contain: layout paint;
}

.door-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(15, 36, 74, 0.1), transparent 48%),
    repeating-linear-gradient(90deg, rgba(15, 36, 74, 0.08) 0 1px, transparent 1px 82px);
  pointer-events: none;
}

.door-reveal {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(69%, 335px);
  padding: 1.32rem;
  border: 1px solid rgba(15, 36, 74, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 28px rgba(15, 36, 74, 0.08);
  opacity: var(--door-text-opacity);
  transform: translate3d(-50%, calc(-50% + var(--door-text-y)), 0);
  transition: opacity 160ms linear, transform 160ms ease;
  will-change: transform, opacity;
  pointer-events: none;
}

.door-reveal__label {
  margin: 0 0 0.6rem;
  color: var(--orange-700);
  font-size: 0.84rem;
  font-weight: 850;
}

.door-reveal h2 {
  margin: 0;
  color: var(--blue);
  font-size: 1.54rem;
  line-height: 1.12;
  font-weight: 900;
}

.door-reveal p:not(.door-reveal__label) {
  margin: 0.8rem 0 0;
  color: #526179;
  font-size: 1rem;
  line-height: 1.45;
}

.door-system {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.door-track {
  position: absolute;
  left: 5%;
  right: 5%;
  z-index: 5;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.75), rgba(15, 36, 74, 0.18), rgba(255, 255, 255, 0.65));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.door-track--top {
  top: 7%;
  height: 12px;
}

.door-track--bottom {
  bottom: 7%;
  height: 8px;
  opacity: 0.55;
}

.door-sensor {
  position: absolute;
  top: 3.2%;
  left: 50%;
  z-index: 7;
  width: 72px;
  height: 22px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #c7d0dc);
  box-shadow: 0 8px 18px rgba(15, 36, 74, 0.2);
}

.door-sensor::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 16px rgba(254, 128, 7, 0.8);
}

.door-panel {
  position: absolute;
  top: 9.5%;
  bottom: 9.5%;
  z-index: 6;
  width: 45.5%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.7), rgba(225, 244, 255, 0.22) 28%, rgba(255, 255, 255, 0.4) 52%, rgba(175, 217, 240, 0.2)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 70px);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.32),
    inset 0 0 0 1px rgba(15, 36, 74, 0.08),
    0 14px 28px rgba(15, 36, 74, 0.16);
  opacity: var(--door-panel-opacity);
  backdrop-filter: blur(3px) saturate(110%);
  transition: opacity 120ms linear;
  will-change: transform, opacity;
}

.door-panel--left {
  left: 5%;
  transform: translate3d(var(--door-left-shift), 0, 0);
}

.door-panel--right {
  right: 5%;
  transform: translate3d(var(--door-right-shift), 0, 0);
}

.door-panel__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(15, 36, 74, 0.26);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.44);
}

.door-panel--left .door-panel__edge {
  right: 0;
}

.door-panel--right .door-panel__edge {
  left: 0;
}

.door-panel__shine {
  position: absolute;
  top: -15%;
  width: 14%;
  height: 130%;
  transform: rotate(13deg);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.05));
  opacity: 0.5;
}

.door-panel__shine--one {
  left: 18%;
}

.door-panel__shine--two {
  right: 20%;
  width: 7%;
  opacity: 0.36;
}

.door-center-line {
  position: absolute;
  top: 9.5%;
  bottom: 9.5%;
  left: 50%;
  z-index: 8;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(15, 36, 74, 0.42);
  opacity: calc(var(--door-panel-opacity) - 0.08);
}

.door-shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 5%;
  z-index: 3;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 36, 74, 0.2), rgba(15, 36, 74, 0) 70%);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  z-index: 2;
  width: 2px;
  height: 52px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.scroll-cue::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 22px;
  border-radius: inherit;
  background: var(--orange);
  animation: scrollPulse 1.6s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  35% {
    opacity: 1;
  }

  100% {
    transform: translateY(78px);
    opacity: 0;
  }
}

/* Main content sections */
.section {
  padding: 7rem 0;
}

.section,
.final-cta,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

.section--light {
  background: #ffffff;
}

.section--dark {
  background:
    linear-gradient(135deg, rgba(254, 128, 7, 0.12), transparent 38%),
    #101827;
  color: #ffffff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-heading h2,
.final-cta h2 {
  margin: 0;
  color: var(--blue);
  font-size: 3rem;
  line-height: 1.12;
  font-weight: 900;
}

.section-heading p:not(.eyebrow),
.final-cta p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading--invert h2,
.section-heading--invert p:not(.eyebrow) {
  color: #ffffff;
}

.section-heading--invert p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.mobile-carousel {
  position: relative;
}

.carousel-button {
  display: none;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.benefit-card,
.service-card {
  border-radius: var(--radius);
}

.benefit-card {
  min-height: 210px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  contain: layout paint;
}

.card-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(254, 128, 7, 0.12);
}

.card-mark::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(254, 128, 7, 0.1);
  pointer-events: none;
}

.benefit-card h3,
.service-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--blue);
}

.benefit-card p,
.service-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  position: relative;
  min-height: 330px;
  overflow: clip;
  padding: 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(4px);
  transition: transform 180ms ease, box-shadow 180ms ease;
  contain: layout paint;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.24), transparent 35%),
    radial-gradient(circle at 80% 15%, rgba(254, 128, 7, 0.18), transparent 32%);
  opacity: 0.78;
  pointer-events: none;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 1.65rem;
  right: 1.65rem;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--orange), rgba(254, 128, 7, 0));
  opacity: 0.65;
  pointer-events: none;
}

.service-card__icon,
.service-card__number,
.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
}

.service-card__icon {
  display: inline-grid;
  position: relative;
  width: 54px;
  height: 54px;
  margin-bottom: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 24px rgba(0, 0, 0, 0.14);
}

.service-card__icon::before,
.service-card__icon::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.service-card__icon--sale::before {
  width: 24px;
  height: 28px;
  border-left: 2px solid rgba(255, 255, 255, 0.78);
  border-right: 2px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(90deg, transparent 47%, rgba(254, 128, 7, 0.9) 47%, rgba(254, 128, 7, 0.9) 53%, transparent 53%);
}

.service-card__icon--sale::after {
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.72);
}

.service-card__icon--install::before {
  width: 25px;
  height: 13px;
  border-left: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: translateY(-2px) rotate(-45deg);
}

.service-card__icon--install::after {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.service-card__icon--care::before {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.service-card__icon--care::after {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.service-card__number {
  position: absolute;
  top: 1.45rem;
  right: 1.55rem;
  display: inline-flex;
  margin: 0;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card h3 {
  color: #ffffff;
}

.service-card p {
  color: rgba(255, 255, 255, 0.72);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  }
}

.section--works {
  background:
    linear-gradient(135deg, rgba(254, 128, 7, 0.08), transparent 36%),
    #f5f8fc;
  content-visibility: visible;
}

.works-heading {
  max-width: 760px;
}

.works-heading h2 {
  color: var(--blue);
}

.works-carousel {
  position: relative;
}

.works-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  gap: 1rem;
  overflow-x: auto;
  overflow-y: clip;
  overscroll-behavior-x: contain;
  overscroll-behavior-inline: contain;
  overscroll-behavior-y: auto;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
  padding: 0.25rem 0 1rem;
}

.works-grid::-webkit-scrollbar {
  display: none;
}

.work-card {
  position: relative;
  height: 260px;
  margin: 0;
  overflow: clip;
  border: 1px solid rgba(219, 226, 236, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  touch-action: manipulation;
  contain: layout paint;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-drag: none;
}

.js .works-carousel .carousel-button {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(15, 36, 74, 0.94);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 36, 74, 0.22);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.js .works-carousel .carousel-button[hidden] {
  display: none;
}

.works-carousel .carousel-button--prev {
  left: -1.25rem;
}

.works-carousel .carousel-button--next {
  right: -1.25rem;
}

.works-carousel .carousel-button span {
  color: var(--orange);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-1px);
}

.works-carousel .carousel-button:disabled {
  opacity: 0.34;
  cursor: default;
  box-shadow: none;
}

.works-carousel .carousel-button:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .works-carousel .carousel-button:hover:not(:disabled) {
    background: rgba(15, 36, 74, 1);
    box-shadow: 0 16px 34px rgba(15, 36, 74, 0.26);
    transform: translateY(-50%) scale(1.04);
  }
}

/* Final conversion block */
.final-cta {
  padding: 7rem 0;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(254, 128, 7, 0.18), transparent 40%),
    linear-gradient(180deg, var(--blue) 0%, #0b172c 100%);
}

.final-cta__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.final-cta h2 {
  color: #ffffff;
  max-width: 780px;
}

.final-cta p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.16rem;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 800;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 0.95rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field select {
  cursor: pointer;
}

.form-field input:focus,
.form-field select:focus {
  border-color: rgba(254, 128, 7, 0.8);
  box-shadow: 0 0 0 4px rgba(254, 128, 7, 0.16);
  outline: none;
}

.form-field.is-invalid input,
.form-field.is-invalid select {
  border-color: #ffb076;
  box-shadow: 0 0 0 4px rgba(254, 128, 7, 0.15);
}

.field-error {
  min-height: 1.15rem;
  margin: 0;
  color: #ffd8bd;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.form-field--other[hidden] {
  display: none;
}

.form-consent {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.35rem;
}

.consent-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
  cursor: pointer;
}

.consent-check input {
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
  width: 22px;
  height: 22px;
  margin: 0.05rem 0 0;
  opacity: 0;
  cursor: pointer;
}

.consent-box {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-top: 0.05rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.consent-box::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #101827;
  border-bottom: 2px solid #101827;
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg);
}

.consent-check input:checked + .consent-box {
  border-color: rgba(254, 128, 7, 0.95);
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(254, 128, 7, 0.14);
}

.consent-check input:checked + .consent-box::after {
  opacity: 1;
}

.consent-check input:focus-visible + .consent-box {
  outline: 3px solid rgba(254, 128, 7, 0.55);
  outline-offset: 3px;
}

.form-consent.is-invalid .consent-box {
  border-color: #ffb076;
  box-shadow: 0 0 0 4px rgba(254, 128, 7, 0.15);
}

.consent-check a {
  color: #ffffff;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(254, 128, 7, 0.85);
  text-underline-offset: 3px;
}

.consent-check a:hover {
  color: #ffd8bd;
}

.quote-form__submit,
.form-status {
  grid-column: 1 / -1;
}

.quote-form__submit {
  justify-self: start;
  margin-top: 0.2rem;
  cursor: pointer;
}

.quote-form__submit:disabled {
  cursor: progress;
  opacity: 0.76;
  transform: none;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: #d7ffe5;
  font-size: 0.94rem;
  font-weight: 850;
}

.form-status.is-error {
  color: #ffd8bd;
}

/* Legal pages */
.legal-main {
  background: #f7f9fc;
}

.legal-hero {
  padding: 7rem 0 4rem;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(254, 128, 7, 0.16), transparent 38%),
    linear-gradient(180deg, #08152f 0%, var(--blue) 100%);
}

.legal-hero__inner {
  max-width: 900px;
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 3.6rem;
  line-height: 1.08;
  font-weight: 900;
}

.legal-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.legal-content {
  padding: 5rem 0 6rem;
}

.legal-card {
  display: grid;
  gap: 2rem;
  max-width: 960px;
  padding: 2.2rem;
  border: 1px solid rgba(219, 226, 236, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.legal-section {
  display: grid;
  gap: 0.65rem;
}

.legal-section h2 {
  margin: 0;
  color: var(--blue);
  font-size: 1.32rem;
  line-height: 1.25;
}

.legal-section p,
.legal-section li {
  margin: 0;
  color: #536176;
}

.legal-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.15rem;
}

.legal-section a {
  color: var(--blue);
  font-weight: 800;
}

.legal-section a:hover {
  color: var(--orange-700);
}

/* Footer */
.site-footer {
  padding: 4.5rem 0 0;
  background: #ffffff;
  color: #334155;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.8fr 0.7fr;
  gap: 2rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(210px, 100%);
  height: auto;
  overflow: visible;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-footer h2 {
  margin: 0 0 0.85rem;
  color: var(--blue);
  font-size: 0.98rem;
  line-height: 1.3;
}

.site-footer p,
.site-footer ul {
  margin: 0;
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #334155;
}

.site-footer a:hover {
  color: var(--orange-700);
}

.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 1rem;
  text-align: center;
  color: #69758a;
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

/* Subtle entrance animations */
.js [data-animate] {
  opacity: 1;
  transform: translateY(16px);
  transition: transform 420ms ease;
}

.js [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .service-card[data-animate] {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

/* Responsive layout */
@media (max-width: 1120px) {
  .hero h1 {
    font-size: 3.85rem;
  }

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

  .service-card {
    min-height: 300px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
  }

  .nav {
    height: var(--header-height);
  }

  .brand img {
    width: 100%;
  }

  .brand {
    width: 118px;
    height: 40px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0.2rem;
    max-height: calc(100svh - var(--header-height) - 24px);
    padding: 0.9rem;
    overflow: auto;
    border: 1px solid rgba(15, 36, 74, 0.12);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 36, 74, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 0.85rem 0.9rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 0.35rem;
  }

  .nav-links .nav-cta {
    padding: 0.85rem 1.1rem;
  }

  .hero {
    min-height: 150svh;
  }

  .hero__sticky {
    padding: 1.35rem 0;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero__subtitle {
    font-size: 1.05rem;
    margin-top: 0.95rem;
  }

  .hero__actions {
    margin-top: 1.25rem;
  }

  .door-stage {
    justify-self: stretch;
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .door-viewport {
    min-height: 300px;
    height: 38svh;
    max-height: 390px;
  }

  .door-panel,
  .service-card,
  .quote-form,
  .carousel-button {
    backdrop-filter: none;
  }

  .door-reveal {
    padding: 1.14rem;
    width: min(70%, 285px);
  }

  .door-reveal h2 {
    font-size: 1.24rem;
    max-width: 100%;
  }

  .door-reveal p:not(.door-reveal__label) {
    max-width: 100%;
    font-size: 0.9rem;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 5rem 0;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .section-heading h2,
  .works-heading h2,
  .final-cta h2 {
    font-size: 2.2rem;
  }

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

  .service-grid,
  .benefit-grid,
  .works-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 0.9rem;
    overflow-x: auto;
    overflow-y: clip;
    overscroll-behavior-x: contain;
    overscroll-behavior-inline: contain;
    overscroll-behavior-y: auto;
    scroll-behavior: smooth;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(254, 128, 7, 0.55) transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    padding: 0.15rem 0 0.95rem;
    margin-bottom: -0.35rem;
  }

  .works-grid {
    scrollbar-width: none;
  }

  .js .carousel-button {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(15, 36, 74, 0.92);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 36, 74, 0.22);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  }

  .js .carousel-button[hidden] {
    display: none;
  }

  .carousel-button--prev {
    left: -0.55rem;
  }

  .carousel-button--next {
    right: -0.55rem;
  }

  .carousel-button span {
    color: var(--orange);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-1px);
  }

  .section--dark .carousel-button {
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  }

  .carousel-button:disabled {
    opacity: 0.34;
    cursor: default;
    box-shadow: none;
  }

  .carousel-button:active:not(:disabled) {
    transform: translateY(-50%) scale(0.96);
  }

  @media (hover: hover) and (pointer: fine) {
    .carousel-button:hover:not(:disabled) {
      background: rgba(15, 36, 74, 1);
      box-shadow: 0 12px 28px rgba(15, 36, 74, 0.26);
      transform: translateY(-50%) scale(1.04);
    }

    .section--dark .carousel-button:hover:not(:disabled) {
      background: rgba(255, 255, 255, 0.18);
    }
  }

  .service-grid::-webkit-scrollbar,
  .benefit-grid::-webkit-scrollbar {
    height: 4px;
  }

  .service-grid::-webkit-scrollbar-thumb,
  .benefit-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(254, 128, 7, 0.55);
  }

  .service-grid > *,
  .benefit-grid > * {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-drag: none;
  }

  .work-card,
  .work-card img {
    touch-action: manipulation;
    user-select: none;
    -webkit-user-drag: none;
  }

  .work-card {
    height: 240px;
  }

  .works-carousel .carousel-button--prev {
    left: -0.55rem;
  }

  .works-carousel .carousel-button--next {
    right: -0.55rem;
  }

  .service-grid > .service-card,
  .benefit-grid > .benefit-card {
    padding-inline: 3rem;
  }

  .service-card {
    min-height: 260px;
  }

  .benefit-card {
    min-height: 190px;
  }

  .final-cta__inner,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .quote-form {
    gap: 0.6rem;
    padding: 0.82rem;
  }

  .form-field {
    gap: 0.26rem;
  }

  .form-consent {
    gap: 0.25rem;
  }

  .consent-check {
    gap: 0.6rem;
    font-size: 0.84rem;
    line-height: 1.38;
  }

  .form-field input,
  .form-field select {
    min-height: 48px;
    padding: 0.66rem 0.85rem;
  }

  .field-error {
    min-height: 0.82rem;
    font-size: 0.78rem;
  }

  .field-error:empty {
    display: none;
  }

  .quote-form__submit {
    justify-self: stretch;
  }

  .legal-hero {
    padding: 5.5rem 0 3rem;
  }

  .legal-hero h1 {
    font-size: 2.45rem;
  }

  .legal-content {
    padding: 3.5rem 0 4.5rem;
  }

  .legal-card {
    padding: 1.45rem;
    gap: 1.55rem;
  }
}

@media (max-width: 560px) {
  .container,
  .nav,
  .hero__inner {
    width: min(100% - 28px, 1120px);
  }

  .hero h1 {
    font-size: 2.28rem;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .brand {
    width: 112px;
    height: 38px;
  }

  .door-viewport {
    height: 27svh;
    min-height: 220px;
  }

  .door-reveal h2 {
    font-size: 1.08rem;
  }

  .door-reveal p:not(.door-reveal__label) {
    font-size: 0.84rem;
    margin-top: 0.55rem;
  }

  .door-reveal__label {
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
  }

  .door-sensor {
    width: 56px;
  }

  .section-heading h2,
  .works-heading h2,
  .final-cta h2 {
    font-size: 1.95rem;
  }

  .benefit-card {
    min-height: 168px;
    padding: 1.25rem 3rem;
  }

  .footer-logo {
    max-width: 180px;
  }

  .final-cta {
    padding: 5rem 0;
  }

  .quote-form {
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .work-card {
    height: 220px;
  }

  .form-field input,
  .form-field select {
    min-height: 46px;
    padding: 0.62rem 0.8rem;
  }

  .legal-hero h1 {
    font-size: 2.05rem;
  }

  .legal-card {
    padding: 1.15rem;
  }
}

@media (max-height: 700px) and (max-width: 900px) {
  .hero h1 {
    font-size: 2.05rem;
  }

  .hero__subtitle {
    font-size: 0.96rem;
  }

  .hero__actions {
    margin-top: 0.9rem;
  }

  .door-viewport {
    min-height: 240px;
    height: 30svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-animate] {
    opacity: 1;
    transform: none;
  }
}
