.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-9);
}
.section--tight { padding-block: var(--space-8); }
.section--surface { background: var(--surface); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.section__title { position: relative; }
.section__title::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin-top: var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--brand-500);
}
.section__title--plain::after { content: none; }

.header svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }

.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--header-ink);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 0 10px rgba(0, 0, 0, .25);
  background: linear-gradient(90deg,
    #063F3A 0%,
    #063F3A 45%,
    #0A423D 48.9%,
    #144A45 52.9%,
    #235651 56.8%,
    #376561 60.7%,
    #4F7773 64.6%,
    #688B88 68.6%,
    #829F9C 72.5%,
    #9DB3B1 76.4%,
    #B6C7C6 80.4%,
    #CED9D8 84.3%,
    #E2E8E8 88.2%,
    #F1F4F4 92.1%,
    #FBFCFC 96.1%,
    #FFFFFF 100%);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  transition: background var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              height var(--dur-base) var(--ease);
}
.header.is-scrolled {
  height: 110px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07), var(--shadow-2);
}

.header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 12px;
  background: linear-gradient(to right,
    #8DE4DA 0% 25%,
    #4FD1C5 25% 50%,
    #14B8AC 50% 75%,
    #0B8377 75% 100%);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.header__nav { margin-inline: auto; }
.header__tools {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.header__divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, .22);
  margin-inline: var(--space-2);
}

.header__stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.header__mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--brand-900);
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.92) contrast(1.04) brightness(.92);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s var(--ease);
  will-change: opacity, transform;
}
.hero__slide.is-active {
  opacity: 1;
  animation: kenburns 15s var(--ease) forwards;
}

@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(1.4%, -1.6%, 0); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(6, 40, 37, .48) 0%, rgba(6, 40, 37, .12) 26%, transparent 52%, rgba(6, 40, 37, .34) 100%),
    rgba(6, 63, 58, .12);
}

.grid {
  display: grid;
  gap: var(--space-5);
}
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding-block: var(--space-8) 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--brand-500);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: var(--space-7) var(--space-6);
  padding-bottom: var(--space-8);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--footer-ink-muted);
}

@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .header__nav { display: none; }

  .header__tools { margin-inline-start: auto; }
}

@media (max-width: 640px) {
  :root { --header-h: 100px; }
  .logo__img { height: 62px; }
  .header.is-scrolled { height: 86px; }
  .section { padding-block: var(--space-8); }
  .grid--4,
  .grid--3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .header__divider { display: none; }
}
