:root {
  --blue: #2547a0;
  --ink: #212020;
  --white: #ffffff;
  --header-h: 108px;
  --font: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content: min(1440px, calc(100% - 32px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#OurServices,
#AboutUs,
#ContactUs {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--blue);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue);
}

.header-inner {
  width: var(--content);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.logo { min-width: 0; }

.logo img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: #2b2b2b;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav a.header-cta {
  color: var(--white);
  font-weight: 600;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle > span:first-child,
.menu-toggle > span:first-child::before,
.menu-toggle > span:first-child::after {
  display: block;
  height: 3px;
  background: #2a4eaa;
  position: relative;
}

.menu-toggle > span:first-child::before,
.menu-toggle > span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.menu-toggle > span:first-child::before { top: -9px; }
.menu-toggle > span:first-child::after { top: 9px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  border: 0;
  border-radius: 0;
  padding: 0.95rem 1.45rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

.btn-light {
  background: var(--white);
  color: var(--blue);
}

.header-cta { flex: none; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: #202020;
}

.hero-slides,
.hero-slides img {
  position: absolute;
  inset: 0;
}

.hero-slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease;
}

.hero-slides img.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slides img.is-incoming {
  z-index: 2;
}

.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(30, 30, 30, 0.38);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: var(--content);
  padding: calc(var(--header-h) + 2rem) 0 4rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9.2vw, 8.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.hero p {
  margin: 1.1rem 0 0;
  font-size: clamp(1.15rem, 1.9vw, 1.7rem);
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides img { transition: none; }
}

.wrap { width: var(--content); margin: 0 auto; }

.services {
  padding: 5.5rem 0 4.5rem;
}

.services-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
}

.services h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2.5rem, 4.7vw, 4.24rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.carousel-nav {
  display: flex;
  gap: 0.7rem;
  flex: none;
}

.work-carousel {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.carousel-viewport {
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.45s ease;
}

.carousel-card {
  flex: 0 0 calc((100% - 4rem) / 3);
  min-width: 0;
}

.carousel-card img {
  width: 100%;
  aspect-ratio: 3 / 3.7;
  object-fit: cover;
  display: block;
  background: #eee;
}

.carousel-card h2 {
  margin: 0.85rem 0 0;
  color: var(--blue);
  font-size: 1.35rem;
  font-weight: 700;
}

.carousel-btn {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: rgba(45, 45, 45, 0.72);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.story-band {
  background: #202020;
}

.cta {
  background: var(--blue);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  padding: 4.2rem 0 8.5rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 3.5rem;
  align-items: center;
}

.cta img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

.cta h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.8rem, 5vw, 4.24rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.cta p {
  margin: 0 0 1.15rem;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.45;
}

.partners {
  background: #202020;
  color: var(--white);
  padding: 4.2rem 0 4.8rem;
  text-align: center;
}

.partners h1 {
  margin: 0 0 2.2rem;
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.2rem 2rem;
  align-items: center;
  justify-items: center;
}

.logo-grid img {
  display: block;
  max-width: min(190px, 100%);
  max-height: 96px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.contact {
  position: relative;
  color: var(--white);
  background: #2547a0 url("/images/contact-pattern.svg") center / cover no-repeat;
  padding: 4.8rem 0 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2.5rem 3rem;
  align-items: start;
}

.contact-details h2 {
  margin: 0 0 1.6rem;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact p { margin: 0 0 1rem; }

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.contact-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin-top: 0.28rem;
  fill: currentColor;
}

.contact-details a { color: var(--white); }

.socials {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 2.8rem 0 0;
  padding-left: calc(1.15rem + 0.7rem);
}

.contact-line:has(+ .socials) { margin-bottom: 0; }

.socials a {
  display: flex;
  width: 2rem;
  height: 2rem;
}

.socials svg {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-form-col {
  min-width: 0;
}

.contact p.copyright {
  margin: 1.5rem 0 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.contact-form {
  background: #2f5cbf;
  color: #fff;
  padding: 2rem 1.6rem 2.2rem;
  border-radius: 0;
}

.project {
  padding: 2.2rem 0 1rem;
}

.projects-main > .project:last-of-type {
  padding-bottom: 3.6rem;
}

.project h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 500;
}

.project-rule {
  border: 0;
  border-top: 3px solid #111;
  margin: 0.85rem 0 1.1rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.project-gallery button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.project-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.projects-main { padding-top: calc(var(--header-h) + 1.4rem); }

.lightbox[hidden] { display: none; }

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
}

.field { margin: 0 0 1.15rem; }

.field > span,
.field legend {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.req { font-weight: 700; }

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

label { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8c8c8;
  background: #fff;
  font: inherit;
  padding: 0.7rem 0.75rem;
  color: #222;
}

textarea { min-height: 140px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #1b3884;
  outline-offset: 1px;
}

fieldset {
  border: 0;
  margin: 0 0 1.15rem;
  padding: 0;
}

.contact-form .btn {
  margin-top: 0.4rem;
  background: #18316f;
}

.btn:hover,
.btn:focus-visible {
  background: #202020;
  color: var(--white);
}

.contact-form .recaptcha-note {
  margin: 0.9rem 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.contact-form .recaptcha-note a {
  color: inherit;
  text-decoration: underline;
}

.grecaptcha-badge {
  visibility: hidden !important;
  pointer-events: none !important;
}

.form-status {
  min-height: 1.4em;
  margin: 0 0 0.8rem;
}

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

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.88);
  display: grid;
  place-items: center;
  padding: 3.5rem 4.75rem;
}

.lightbox img {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 7rem);
  object-fit: contain;
}

.lightbox-close { color: #fff; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: rgba(45, 45, 45, 0.78);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-nav[hidden] { display: none; }

.call-fab {
  display: none;
}

@media (max-width: 980px) {
  .cta-grid,
  .logo-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .carousel-card { flex-basis: calc((100% - 2rem) / 2); }

  .project-gallery { grid-template-columns: repeat(3, 1fr); }

  .cta { clip-path: none; padding-bottom: 4rem; }
}

@media (max-width: 760px) {
  :root { --header-h: 84px; }

  .logo img { height: 52px; max-width: calc(100vw - 96px); }

  .menu-toggle { display: block; flex: none; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--blue);
    padding: 0.4rem 0 0.8rem;
  }

  .nav.open { display: flex; }

  .nav a {
    display: block;
    width: 100%;
    padding: 0.85rem 1.4rem;
  }

  .nav a.header-cta {
    width: auto;
    margin: 0.7rem 1.4rem 0.35rem;
  }

  .carousel-card { flex-basis: 100%; }

  .services { display: grid; }

  .services-head { display: contents; }

  .services h1 { margin-bottom: 1.4rem; }

  .work-carousel { order: 2; min-width: 0; width: 100%; }

  .partners h1 { font-size: 2.15rem; }

  .carousel-nav {
    order: 3;
    justify-content: flex-end;
    margin-top: 1.4rem;
  }

  .name-row { grid-template-columns: 1fr; }

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

  .contact { padding-bottom: 1.6rem; }

  .contact-form {
    order: 2;
    min-width: 0;
    width: 100%;
    padding: 1.5rem 1.1rem 1.7rem;
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.6rem;
  }

  .contact-details,
  .contact-form-col { display: contents; }

  .contact-details h2 { order: 1; margin-bottom: 0; }

  .contact-lines { order: 3; }

  .contact-lines .contact-line:last-child { margin-bottom: 0; }

  .contact p.copyright {
    order: 4;
    margin: 0;
    text-align: center;
  }

  .call-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 60;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2a4eaa;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  }

  .call-fab svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
  }

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