@font-face {
  font-family: "TildaSans";
  src: url("./assets/fonts/TildaSans-VF.woff2") format("woff2");
  font-style: normal;
  font-weight: 250 1000;
  font-display: swap;
}

:root {
  --accent: #5795e3;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.7);
  --dark: #202020;
  --white: #ffffff;
  --container: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "TildaSans", Arial, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.container--narrow {
  width: min(calc(100% - 40px), 760px);
  text-align: center;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
    center / cover no-repeat url("./assets/hero.png");
}

.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__nav {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: min(calc(100% - 40px), 920px);
  transform: translateX(-50%);
}

.hero__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.hero__nav a:hover,
.hero__nav a:focus-visible {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.22);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 42px 20px;
  text-align: center;
  color: var(--white);
}

.hero h1 {
  margin: 0;
  padding: 24px 0 38px;
  font-size: clamp(30px, 8vw, 72px);
  line-height: 1.17;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.hero p {
  margin: 0;
  padding-bottom: 30px;
  font-size: clamp(14px, 2.5vw, 24px);
  line-height: 1.5;
  font-weight: 300;
}

.hero__arrow {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  animation: float 1.8s ease-in-out infinite;
}

.hero__arrow svg {
  width: 38px;
  height: 19px;
  fill: currentColor;
}

.section--spacious {
  padding: 210px 0;
}

.eyebrow,
.mission-label {
  margin: 0 0 25px;
  color: var(--accent);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  text-transform: uppercase;
}

.lead {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.45;
  letter-spacing: 0.45px;
}

.lead + .lead {
  margin-top: 1.5em;
}

.image-band {
  height: 70vh;
  min-height: 420px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.image-band--about {
  background-image: url("./assets/about-cover.png");
}

.image-band--work {
  background-image: url("./assets/work-cover.png");
}

.services-section {
  padding: 210px 0;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.services-section__intro {
  max-width: 860px;
  margin: 0 auto 48px;
  text-align: center;
}

.services-section__intro h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.23;
  font-weight: 600;
}

.services-section__lead {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.services-section__text {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.services-section__text + .services-section__text {
  margin-top: 18px;
}

.services-section__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px auto;
  padding: 0;
  list-style: none;
}

.services-section__features li {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(87, 149, 227, 0.1);
  color: #174886;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
}

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

.service-card {
  padding: 32px 30px;
  border: 1px solid rgba(87, 149, 227, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
}

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

.service-card__metrics {
  display: grid;
  gap: 10px;
  margin: 0;
}

.service-card__metrics div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(87, 149, 227, 0.14);
}

.service-card__metrics dt {
  color: #4c6b8f;
  font-size: 15px;
  line-height: 1.4;
}

.service-card__metrics dd {
  margin: 0;
  color: #17395e;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  text-align: right;
}

.section--mission-title {
  padding: 210px 0 0;
}

.section--mission-copy {
  padding: 45px 0 210px;
}

.mission-label {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.75;
}

.mission-copy {
  margin: 0;
  color: var(--muted);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
}

.grant-section {
  padding: 0 0 150px;
  scroll-margin-top: 32px;
}

.grant-card {
  padding: 56px;
  border: 1px solid rgba(87, 149, 227, 0.25);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(87, 149, 227, 0.06), rgba(87, 149, 227, 0.02)),
    #f7faff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.grant-card__header h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.23;
  font-weight: 600;
}

.grant-card__eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grant-card__content {
  margin-top: 28px;
}

.grant-card__content p,
.grant-card__support p {
  margin: 0;
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.65;
}

.grant-card__content p + p,
.grant-card__support p + p {
  margin-top: 18px;
}

.grant-card__support {
  margin-top: 36px;
  padding: 28px 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-left: 4px solid var(--accent);
}

.grant-card__support-title {
  color: var(--accent);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.grant-card__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.grant-card__links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(87, 149, 227, 0.22);
  color: #174886;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}

.grant-card__links a:hover,
.grant-card__links a:focus-visible {
  border-color: rgba(87, 149, 227, 0.55);
  background: #f2f7ff;
}

.contacts {
  padding: 150px 0;
  text-align: center;
  color: var(--white);
  background: var(--dark);
}

.contacts h2 {
  margin: 0 0 45px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.23;
  font-weight: 600;
}

.contacts p {
  margin: 0;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.5;
}

.support-note {
  padding: 26px 0 38px;
  background: #eef5ff;
  border-top: 1px solid rgba(87, 149, 227, 0.18);
}

.support-note p {
  margin: 0;
  color: #174886;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@media (max-width: 640px) {
  .hero__nav {
    top: 16px;
    gap: 8px;
    width: min(calc(100% - 24px), 920px);
  }

  .hero__nav a {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .section--spacious {
    padding: 120px 0;
  }

  .services-section {
    padding: 120px 0;
  }

  .services-section__features {
    justify-content: flex-start;
  }

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

  .service-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .service-card h3 {
    font-size: 22px;
  }

  .service-card p,
  .services-section__text {
    font-size: 16px;
  }

  .section--mission-title {
    padding-top: 120px;
  }

  .section--mission-copy {
    padding: 45px 0 120px;
  }

  .contacts {
    padding: 90px 0;
  }

  .support-note {
    padding: 20px 0 28px;
  }

  .support-note p {
    font-size: 14px;
    line-height: 1.55;
  }

  .grant-section {
    padding-bottom: 90px;
    scroll-margin-top: 20px;
  }

  .grant-card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .grant-card__support {
    padding: 22px 18px;
  }

  .grant-card__links {
    flex-direction: column;
  }

  .grant-card__links a {
    width: 100%;
  }

  .image-band {
    min-height: 320px;
    background-attachment: scroll;
  }
}
