:root {
  --ink: #060b3f;
  --ink-soft: #0b1458;
  --paper: #f4f6fb;
  --white: #fffdf9;
  --muted: #687084;
  --line: #dbe1ef;
  --gold: #d8bd73;
  --gold-bright: #f1dda0;
  --blue: #19b9f2;
  --shadow: 0 24px 70px rgba(6, 11, 63, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

img {
  display: block;
  width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(6, 11, 63, 0.94);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-text {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 0 10px rgba(25, 185, 242, 0.28));
}

.nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: rgba(255, 253, 249, 0.76);
  font-size: 13px;
  font-weight: 650;
}

.nav a:hover,
.footer-links a:hover {
  color: var(--gold);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.header-cta,
.button-primary {
  background: var(--white);
  color: var(--ink);
}

.button-secondary {
  border-color: rgba(255, 253, 249, 0.28);
  color: var(--white);
}

.button-light {
  border-color: rgba(255, 253, 249, 0.28);
  color: var(--white);
}

.button-primary:hover,
.header-cta:hover {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink);
}

.button-secondary:hover,
.button-light:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: inherit;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(44px, 6vw, 78px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(6, 11, 63, 0.99) 0%, rgba(6, 11, 63, 0.96) 46%, rgba(6, 11, 63, 0.9) 100%),
    radial-gradient(circle at 82% 18%, rgba(25, 185, 242, 0.22), transparent 32%),
    radial-gradient(circle at 14% 88%, rgba(216, 189, 115, 0.18), transparent 32%);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1.18;
}

.hero-lede {
  max-width: 560px;
  color: rgba(255, 253, 249, 0.76);
  font-size: clamp(17px, 2vw, 21px);
}

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

.hero-media {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img {
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(300px, calc(100% - 48px));
  padding: 20px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.hero-note strong,
.hero-note span {
  display: block;
}

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

.hero-note span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1120px;
  margin: -48px auto 0;
  padding: 0 clamp(18px, 5vw, 32px);
  position: relative;
  z-index: 2;
}

.stats div {
  min-height: 112px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-size: clamp(23px, 3vw, 38px);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.section-pad {
  padding: clamp(76px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.section-kicker {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.intro p,
.section-head p,
.why-copy p,
.quote p,
.process-grid p,
.service-grid p {
  color: var(--muted);
}

.dark {
  background: var(--ink);
  color: var(--white);
}

.dark .section-head p,
.dark .service-grid p,
.dark .process-grid p {
  color: rgba(255, 253, 249, 0.64);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.45fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 42px;
}

.section-head.compact {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-grid article {
  position: relative;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
}

.service-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.service-grid img {
  height: 280px;
  object-fit: cover;
}

.service-grid h3,
.service-grid p {
  padding-left: 22px;
  padding-right: 22px;
}

.service-grid h3 {
  padding-top: 22px;
}

.service-grid p {
  padding-bottom: 26px;
}

.filters {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.filter {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.filter.active {
  background: var(--ink);
  color: var(--white);
}

.filter:not(.active):hover {
  color: var(--blue);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  background: rgba(6, 11, 63, 0.82);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 253, 249, 0.14);
}

.process-grid div {
  min-height: 250px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--ink-soft);
}

.process-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.why {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 0.75fr);
  gap: clamp(30px, 7vw, 84px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.why-media img {
  height: min(72vh, 650px);
  min-height: 430px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  color: var(--ink-soft);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--gold), var(--blue));
  box-shadow: inset 0 0 0 7px rgba(255, 253, 249, 0.55);
}

.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 36px;
  align-items: center;
  margin: 0 clamp(18px, 5vw, 72px) clamp(68px, 8vw, 100px);
  padding: clamp(32px, 6vw, 62px);
  background:
    linear-gradient(135deg, rgba(6, 11, 63, 0.99), rgba(8, 18, 82, 0.94)),
    linear-gradient(45deg, transparent 0 48%, rgba(25, 185, 242, 0.24) 49% 51%, transparent 52%);
  color: var(--white);
}

.quote h2 {
  max-width: 720px;
}

.quote p {
  max-width: 680px;
  color: rgba(255, 253, 249, 0.7);
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 253, 249, 0.16);
}

.contact-link {
  color: var(--gold);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-link[href^="tel"] {
  color: var(--blue);
  font-size: 20px;
}

.contact-card span {
  color: rgba(255, 253, 249, 0.66);
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: var(--white);
}

.footer p {
  margin: 0;
  color: rgba(255, 253, 249, 0.65);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: rgba(255, 253, 249, 0.74);
  font-size: 13px;
  font-weight: 750;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 18;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(216, 189, 115, 0.5);
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  box-shadow: 0 14px 34px rgba(6, 11, 63, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--ink);
}

.back-to-top span {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.project-modal {
  width: min(1040px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.project-modal img {
  max-height: calc(100vh - 118px);
  object-fit: contain;
  background: #020528;
}

.project-modal h3 {
  margin: 0;
  padding: 18px 22px 22px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 18px 22px;
    background: rgba(6, 11, 63, 0.98);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero,
  .intro-grid,
  .section-head,
  .section-head.compact,
  .why,
  .quote,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .hero-media img {
    min-height: 460px;
  }

  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .filters {
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 72px;
    padding: 12px 16px;
  }
  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-text {
    font-size: 12px;
  }

  .nav {
    top: 72px;
  }

  h1 {
    font-size: 44px;
  }

  .hero {
    padding: 48px 16px 52px;
  }

  .hero-actions,
  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .button,
  .filter {
    width: 100%;
  }

  .hero-media,
  .hero-media img {
    min-height: 390px;
  }

  .hero-note {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .stats {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding: 0;
  }

  .section-pad {
    padding: 68px 16px;
  }

  .service-grid img {
    height: 230px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .why-media img {
    min-height: 320px;
    height: 420px;
  }

  .quote {
    margin: 0 16px 58px;
    padding: 28px 20px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

