:root {
  --navy: #06213d;
  --navy-2: #0b3159;
  --gold: #f4a000;
  --gold-2: #ffd24a;
  --ink: #111827;
  --muted: #5d6a78;
  --line: #d9e0e8;
  --paper: #f7f8f8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(6, 33, 61, 0.12);
  backdrop-filter: blur(18px);
}

.brand img {
  display: block;
  width: 92px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(6, 33, 61, 0.16);
}

nav {
  display: flex;
  gap: 28px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-cta,
.primary-button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.header-cta,
.primary-button {
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 16px 34px rgba(244, 160, 0, 0.28);
}

.header-cta:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  padding: 148px clamp(22px, 6vw, 84px) 76px;
  overflow: hidden;
  background: var(--navy);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 18, 34, 0.92) 0%, rgba(6, 33, 61, 0.78) 38%, rgba(6, 33, 61, 0.28) 72%, rgba(6, 33, 61, 0.1) 100%),
    linear-gradient(0deg, rgba(3, 18, 34, 0.72), rgba(3, 18, 34, 0.04) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.secondary-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.hero-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 26px 70px rgba(3, 18, 34, 0.36);
  backdrop-filter: blur(18px);
  animation: form-attention 1.05s ease-in-out 3;
}

@keyframes form-attention {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 26px 70px rgba(3, 18, 34, 0.36);
  }

  50% {
    border-color: rgba(255, 210, 74, 0.8);
    box-shadow: 0 26px 70px rgba(3, 18, 34, 0.36), 0 0 0 7px rgba(255, 210, 74, 0.2);
  }
}

.hero-form h2 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.12;
  text-align: center;
}

.form-alert {
  display: none;
  margin: -2px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 160, 0, 0.35);
  border-radius: 6px;
  color: var(--navy);
  background: #fff7dd;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.form-alert.is-visible {
  display: block;
}

.hero-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-form input,
.hero-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(6, 33, 61, 0.18);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.hero-form input:focus,
.hero-form select:focus {
  outline: 3px solid rgba(244, 160, 0, 0.22);
  border-color: var(--gold);
}

.hero-form button {
  width: 100%;
  margin-top: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
}

.hero-form.form-nudge {
  animation: form-nudge 1.05s ease-in-out 3;
}

@keyframes form-nudge {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 26px 70px rgba(3, 18, 34, 0.36);
  }

  50% {
    border-color: rgba(255, 210, 74, 0.9);
    box-shadow: 0 26px 70px rgba(3, 18, 34, 0.36), 0 0 0 8px rgba(255, 210, 74, 0.24);
  }
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 18px clamp(22px, 6vw, 84px);
  background: #eef3f6;
}

.proof-strip > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px;
  padding: 30px 24px 32px;
  text-align: center;
  border: 1px solid rgba(6, 33, 61, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(6, 33, 61, 0.06);
}

.proof-illustration {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border: 6px solid #0a2034;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ffffff 0 54%, #e9fbff 55% 62%, #069fbd 63% 100%);
  box-shadow: 0 0 0 5px rgba(6, 33, 61, 0.1);
}

.proof-illustration svg {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: transparent;
  fill: none;
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.proof-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--navy);
  background: #fff3cf;
  font-size: 0.78rem;
  font-weight: 800;
}

.proof-strip strong,
.feature-list strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.25;
}

.proof-strip strong,
.proof-strip p {
  margin-left: 0;
  margin-right: 0;
}

.proof-strip p {
  max-width: 300px;
  padding-bottom: 0;
}

.proof-strip p,
.feature-list span {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.proof-strip p {
  margin-right: 0;
  margin-left: 0;
}

.section,
.feature-band,
.contact {
  padding: clamp(72px, 9vw, 128px) clamp(22px, 6vw, 84px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.solution-grid article,
.steps div {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.solution-grid article {
  overflow: hidden;
}

.solution-grid article > img,
.project-hover-gallery,
.project-media-gallery {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.solution-grid article > img {
  object-fit: cover;
  object-position: center;
}

.project-hover-gallery,
.project-media-gallery {
  position: relative;
  overflow: hidden;
  background: var(--line);
}

.project-hover-gallery img,
.project-media-gallery img,
.project-media-gallery video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
}

.project-hover-gallery img:first-child,
.project-media-gallery img {
  opacity: 1;
}

.project-media-gallery video {
  opacity: 0;
}

.project-media-gallery.is-playing img {
  opacity: 0;
}

.project-media-gallery.is-playing video {
  opacity: 1;
}

.solution-grid article:hover .project-hover-gallery img,
.solution-grid article:focus-within .project-hover-gallery img {
  animation: residential-gallery 3.6s infinite;
}

.solution-grid article:hover .project-hover-gallery img:nth-child(2),
.solution-grid article:focus-within .project-hover-gallery img:nth-child(2) {
  animation-delay: 1.2s;
}

.solution-grid article:hover .project-hover-gallery img:nth-child(3),
.solution-grid article:focus-within .project-hover-gallery img:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes residential-gallery {
  0%,
  28% {
    opacity: 1;
  }

  36%,
  100% {
    opacity: 0;
  }
}

.solution-grid article > span,
.solution-grid article > h3,
.solution-grid article > p {
  margin-left: 28px;
  margin-right: 28px;
}

.solution-grid span,
.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--navy);
  background: #fff3cf;
  font-weight: 800;
}

.solution-grid span {
  margin-top: 24px;
}

.steps div {
  padding: 28px;
}

h3 {
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.2;
}

.solution-grid p,
.steps p,
.feature-copy p,
.contact p,
footer p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
  background: var(--navy);
}

.feature-band h2,
.feature-band .feature-copy p {
  color: var(--white);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list div {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateX(34px);
}

.feature-list strong {
  color: var(--white);
}

.feature-list span {
  color: rgba(255, 255, 255, 0.72);
}

.feature-list.is-visible div {
  animation: feature-card-in 720ms ease forwards;
}

.feature-list.is-visible div:nth-child(2) {
  animation-delay: 180ms;
}

.feature-list.is-visible div:nth-child(3) {
  animation-delay: 360ms;
}

@keyframes feature-card-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.contact {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 18, 34, 0.88) 0%, rgba(6, 33, 61, 0.78) 45%, rgba(6, 33, 61, 0.28) 100%),
    url("assets/contact-bg.jpeg") center / cover no-repeat;
}

.contact div {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.primary-button.dark {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.contact h2,
.contact p {
  color: var(--white);
}

.modal-open {
  overflow: hidden;
}

.state-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}

.state-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.state-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 18, 34, 0.66);
  opacity: 0;
  transition: opacity 220ms ease;
}

.state-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto 22px;
  padding: clamp(28px, 5vw, 46px);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 26px 70px rgba(3, 18, 34, 0.36);
  transform: translateY(calc(100% + 30px));
  transition: transform 260ms ease;
}

.state-modal.is-open .state-modal-backdrop {
  opacity: 1;
}

.state-modal.is-open .state-dialog {
  transform: translateY(0);
}

.state-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: #eef3f6;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.state-modal-close:hover,
.state-modal-close:focus-visible {
  color: var(--white);
  background: var(--navy);
  outline: none;
}

.state-dialog h2 {
  max-width: 580px;
  margin-bottom: 14px;
  padding-right: 30px;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
}

.state-modal-copy {
  margin-bottom: 26px;
  color: var(--muted);
  line-height: 1.55;
}

.state-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.state-option {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 22px;
  border: 1px solid rgba(6, 33, 61, 0.12);
  border-radius: 10px;
  color: var(--navy);
  background: #f7f9fb;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.state-option:hover,
.state-option:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: #fff7dd;
  outline: none;
}

.state-option strong {
  color: var(--navy);
  font-size: 1.15rem;
}

.state-option span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 130px minmax(280px, 1fr) minmax(240px, 0.85fr) minmax(210px, 0.75fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
  padding: clamp(30px, 4vw, 46px) clamp(22px, 5vw, 64px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 104px;
  height: auto;
  border-radius: 8px;
}

.footer-brand {
  display: grid;
  justify-items: start;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.2;
}

.site-footer p,
.site-footer address,
.site-footer li,
.social-link {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.site-footer address + address {
  margin-top: 18px;
}

.site-footer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-principles {
  display: grid;
  gap: 16px;
}

.footer-addresses {
  display: grid;
  gap: 0;
}

.footer-contact {
  justify-self: end;
  max-width: 240px;
}

.footer-contact p {
  margin-bottom: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(6, 33, 61, 0.16);
  border-radius: 6px;
  color: var(--navy);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: #fff7dd;
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

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

  .hero-form {
    max-width: 520px;
  }

  .proof-strip,
  .solution-grid,
  .steps,
  .feature-band,
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    justify-self: start;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand img {
    width: 78px;
  }

  .header-cta {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 96vh;
    padding-top: 124px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(3, 18, 34, 0.95), rgba(6, 33, 61, 0.72)),
      linear-gradient(0deg, rgba(3, 18, 34, 0.76), rgba(3, 18, 34, 0.08));
  }

  .proof-strip,
  .solution-grid,
  .steps,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .solution-grid article,
  .steps div {
    min-height: auto;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .state-dialog {
    width: 100%;
    margin: 0;
    padding: 30px 20px 22px;
    border-radius: 18px 18px 0 0;
  }

  .state-options {
    grid-template-columns: 1fr;
  }

  .state-option {
    min-height: 98px;
  }
}
