:root {
  --brand: #009fe3;
  --brand-dark: #07383c;
  --text: #163342;
  --muted: #64748b;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #d9edf7;
  --shadow: 0 18px 42px rgba(7, 56, 60, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --shell: min(1180px, calc(100vw - 2rem));
  --font-sans: "Montserrat", sans-serif;
  --size-superb-xsmall: clamp(16px, 1rem + ((1vw - 3.2px) * 1), 16px);
  --size-superb-small: clamp(16px, 1rem + ((1vw - 3.2px) * 0.227), 18px);
  --size-superb-medium: clamp(18px, 1.125rem + ((1vw - 3.2px) * 0.227), 20px);
  --size-superb-large: clamp(24px, 1.5rem + ((1vw - 3.2px) * 0.909), 32px);
  --size-superb-xlarge: clamp(32px, 2rem + ((1vw - 3.2px) * 1.818), 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.227), 16px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
}

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

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

p {
  margin: 0;
  line-height: 1.5;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.5;
}

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

.section {
  padding: 4.75rem 0;
}

.section--divided {
  padding-top: 0;
}

.section--tinted {
  background: var(--surface-soft);
}

.publications.section {
  padding-bottom: 3.3rem;
}

.downloads.section {
  padding-top: 3.3rem;
}

.section-title {
  margin: 0 0 1rem;
  color: var(--brand);
  text-align: center;
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 800;
  line-height: 1.2;
}

.section-title--left {
  text-align: left;
}

.section-divider {
  width: 100%;
  height: 2px;
  margin: 0;
  border: 0;
  background: var(--brand);
  opacity: 1;
}

.section-divider--section-start {
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.section-divider--after-title {
  margin-bottom: clamp(2.1rem, 4vw, 3.4rem);
}

.section-intro {
  max-width: 58rem;
  margin: 0 auto 2.25rem;
  color: var(--muted);
  text-align: center;
}

.site-header {
  --header-hide-offset: 0px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-bottom: 6px solid rgba(7, 56, 60, 0.18);
  transform: translateY(calc(var(--header-hide-offset) * -1));
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.site-header.is-hidden {
  --header-hide-offset: calc(100% + 6px);
}

.shell--header {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1.25rem;
  min-height: 109px;
  padding: 0 0.7rem 0 0.35rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
}

.brand img {
  width: auto;
  height: 83px;
}

.site-header__meta {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  justify-self: start;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3rem;
  justify-self: end;
}

.site-nav a {
  color: #fff;
  font-weight: 800;
  font-size: 1.04rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 4rem 0 1.5rem;
}

.partners.section {
  padding-top: 1.75rem;
}

.hero__grid,
.case-study__grid,
.map-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 3vw, 3.25rem);
  align-items: stretch;
}

.hero__copy {
  max-width: none;
  padding-top: 0.65rem;
  display: flex;
  flex-direction: column;
}

.hero__media {
  display: flex;
  align-items: stretch;
  align-self: start;
  aspect-ratio: 1.08 / 1;
}

.hero__copy h1 {
  margin: 0 0 0.9rem;
  color: var(--brand);
  font-size: var(--size-superb-xlarge);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero__subtitle {
  margin-bottom: 1.85rem;
  color: var(--brand);
  font-size: var(--size-superb-small);
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
}

.hero__body {
  color: #444444;
  font-size: var(--size-superb-medium);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero__body strong {
  font-weight: 700;
}

.hero__body + .hero__body {
  margin-top: 1.95rem;
}

.hero__cta {
  margin-top: auto;
}

.hero__note {
  max-width: 42rem;
  margin-top: 1.85rem;
  color: #262626;
  font-size: 0.95rem;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.hero__note em {
  font-style: italic;
  font-weight: 400;
}

.hero__media img,
.case-study__cover img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero__media img {
  height: 100%;
  object-fit: cover;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.92rem 2.1rem;
  border-radius: 999px;
  font-size: var(--size-superb-small);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button--primary {
  margin-top: 1.3rem;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(0, 159, 227, 0.22);
}

.button--ghost {
  margin-top: 1.25rem;
  color: #fff;
  background: var(--brand);
}

.logo-loop {
  position: relative;
  overflow: hidden;
  margin-top: 1.85rem;
  padding: 0.75rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.logo-loop__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 3vw, 3.5rem);
  width: max-content;
  animation: logo-loop-scroll var(--logo-loop-duration, 36s) linear infinite;
  will-change: transform;
}

.logo-loop:hover .logo-loop__track {
  animation-play-state: paused;
}

.logo-loop__item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: clamp(180px, 15vw, 260px);
  height: 118px;
  transition: transform 0.22s ease;
}

.logo-loop__item:hover {
  transform: scale(1.04);
}

.logo-loop__item img {
  width: 100%;
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.partner-grid img {
  width: 100%;
  max-height: 78px;
  object-fit: contain;
  filter: saturate(0.95);
}

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

.service-card,
.download-card,
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.service-card,
.download-card {
  padding: 1.75rem;
}

.service-card img {
  width: min(320px, 100%);
  margin: 0 auto 1rem;
}

.service-card h3,
.download-card h3 {
  margin: 0 0 0.8rem;
  color: var(--brand);
  text-align: center;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.service-card h4 {
  margin: 1rem 0 0.55rem;
  color: var(--brand);
  font-size: 1rem;
  font-weight: 600;
}

.service-card p,
.download-card p {
  color: var(--muted);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.service-card p strong {
  color: var(--muted);
  font-weight: 700;
}

.service-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--brand-dark);
  font-size: 1.02rem;
  line-height: 1.55;
}

.service-card li + li {
  margin-top: 0.4rem;
}

.case-study__copy h3 {
  margin: 0 0 1rem;
  color: var(--brand-dark);
  font-size: 1.45rem;
  font-weight: 500;
}

.case-study__copy p + p {
  margin-top: 0.75rem;
}

.map-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-frame__overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 56, 60, 0.78);
  font-size: 0.78rem;
  line-height: 1.2;
}

#project-map {
  width: 100%;
  height: 400px;
}

.leaflet-container {
  font-family: var(--font-sans);
}

.custom-pin {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.18);
}

.custom-pin--cluster {
  width: 30px;
  height: 30px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.18), 0 8px 18px rgba(7, 56, 60, 0.16);
}

.custom-pin--cluster span {
  line-height: 1;
}

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

.team-card {
  padding: 2rem 1.75rem;
  text-align: center;
}

.team-card img {
  width: min(340px, 100%);
  margin: 0 auto 1.25rem;
}

.team-card h3 {
  margin: 0 0 0.65rem;
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 600;
}

.team-card p + p {
  margin-top: 0.5rem;
}

.slider {
  position: relative;
  width: 85%;
  margin: 0 auto;
}

.slider__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.slider__track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
}

.slider__slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
}

.slider__slide img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.slider__arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid #888;
  border-radius: 999px;
  background: #fff;
  color: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.slider__arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-top: 2px solid #50585c;
  border-right: 2px solid #50585c;
}

.slider__arrow--prev {
  left: 1rem;
}

.slider__arrow--prev::after {
  transform: rotate(-135deg);
}

.slider__arrow--next {
  right: 1rem;
}

.slider__arrow--next::after {
  transform: rotate(45deg);
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.slider__dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: #07383c;
  opacity: 0.35;
  cursor: pointer;
}

.slider__dots button.is-active {
  opacity: 1;
}

.marquee {
  overflow: hidden;
  margin-top: 1.5rem;
  padding: 0.5rem 0;
}

.marquee__track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.publication-card {
  display: flex;
  flex: 0 0 clamp(380px, 32vw, 520px);
  align-items: stretch;
  aspect-ratio: 0.92 / 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 22px 42px rgba(7, 56, 60, 0.16);
  background: #fff;
}

.publication-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}

.download-card {
  text-align: center;
}

.contact-band {
  padding: 4.75rem 0 1.25rem;
  background: var(--brand);
}

.contact-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 0.9rem;
  color: var(--brand);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}

.contact-card p {
  color: var(--muted);
  font-size: 1.1rem;
}

.contact-card p + p {
  margin-top: 0.55rem;
}

.contact-card a {
  color: inherit;
  font-weight: 400;
}

.site-footer {
  padding: 0.25rem 0 1.5rem;
  background: var(--brand);
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
}

.site-footer__copy p + p {
  margin-top: 0.55rem;
}

.site-footer__copy {
  align-self: end;
}

.site-footer__logo {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: end;
  justify-self: end;
}

.site-footer__logo img {
  width: 105px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes logo-loop-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(var(--logo-loop-distance, 0px) * -1));
  }
}

@media (max-width: 960px) {
  .hero__grid,
  .case-study__grid,
  .map-section__grid,
  .card-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .logo-loop__item {
    min-width: 200px;
    height: 104px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__logo img {
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3.6rem 0;
  }

  .shell--header {
    grid-template-columns: auto 1fr auto;
    min-height: 78px;
    gap: 1rem;
    padding: 0;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--brand);
    padding: 0.5rem 1rem 1rem;
  }

  .menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.95rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .brand img {
    height: 57px;
  }

  .site-header__meta {
    font-size: 0.78rem;
  }

  .hero {
    padding: 2.5rem 0 1rem;
  }

  .partners.section {
    padding-top: 1.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  .publications.section {
    padding-bottom: 2.8rem;
  }

  .downloads.section {
    padding-top: 2.8rem;
  }

  .section--divided {
    padding-top: 0;
  }

  .hero__grid {
    gap: 1.5rem;
  }

  .hero__copy {
    max-width: none;
    padding-top: 0;
  }

  .hero__copy h1 {
    font-size: clamp(2.5rem, 10vw, 3.35rem);
    line-height: 1.08;
  }

  .hero__subtitle {
    margin-bottom: 1.35rem;
    font-size: var(--size-superb-small);
  }

  .hero__body {
    font-size: 1rem;
    line-height: 1.48;
  }

  .hero__body + .hero__body {
    margin-top: 1.4rem;
  }

  .button--primary {
    margin-top: 1.7rem;
  }

  .hero__cta {
    margin-top: 0;
  }

  .hero__note {
    margin-top: 1.6rem;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .hero__copy {
    order: 1;
  }

  .hero__media {
    order: 2;
  }

  .partner-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .logo-loop {
    margin-top: 1.4rem;
    padding: 0.35rem 0;
  }

  .logo-loop__track {
    gap: 2rem;
  }

  .logo-loop__item {
    min-width: 150px;
    height: 84px;
  }

  .logo-loop__item img {
    max-height: 60px;
  }

  .section-divider--section-start {
    margin-bottom: 2.35rem;
  }

  .section-divider--after-title {
    margin-bottom: 1.85rem;
  }

  .map-frame__overlay {
    max-width: calc(100% - 2rem);
  }

  .portfolio .slider__slide img {
    aspect-ratio: 2 / 1;
    object-fit: contain;
  }

  .publication-card {
    flex-basis: 340px;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100vw - 1.25rem, 100%);
  }

  .brand img {
    height: 45px;
  }

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

  .logo-loop__item {
    min-width: 128px;
    height: 72px;
  }

  .logo-loop__item img {
    max-height: 52px;
  }

  .service-card,
  .download-card,
  .team-card,
  .contact-card {
    padding: 1.35rem;
  }

  .slider__arrow {
    top: auto;
    bottom: 4.2rem;
  }

  .publication-card {
    flex-basis: 280px;
    border-radius: 22px;
  }
}
