:root {
  color-scheme: light;
  --white: #ffffff;
  --blue-50: #eef8ff;
  --blue-100: #d6edff;
  --blue-300: #77bdf7;
  --blue-500: #1878d3;
  --blue-700: #075bbd;
  --navy: #061b41;
  --muted: #4f6687;
  --line: rgba(12, 89, 179, 0.16);
  --shadow: 0 24px 62px rgba(7, 75, 152, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(232, 246, 255, 0.78), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, #f8fcff 52%, #ffffff 100%);
  color: var(--navy);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero-actions,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  position: relative;
  width: 40px;
  height: 36px;
  flex: 0 0 auto;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 23px;
  height: 33px;
  border: 3px solid var(--blue-700);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
}

.brand-mark::before {
  left: 5px;
  transform: rotate(-45deg);
  transform-origin: 50% 100%;
}

.brand-mark::after {
  right: 5px;
  transform: rotate(45deg);
  transform-origin: 50% 100%;
}

.nav {
  gap: 28px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue-700);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.nav-cta {
  padding: 0 25px;
  background: linear-gradient(180deg, #0878e7, #005bc8);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(0, 91, 200, 0.28);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  align-items: center;
  gap: 42px;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 116px);
  margin: 0 auto;
  padding: 54px 0 70px;
}

.hero::after {
  content: "";
  position: absolute;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  bottom: 0;
  height: 68px;
  background:
    radial-gradient(90% 70px at 50% 0, transparent 64%, #0d6bd0 65%, #0d6bd0 70%, transparent 71%),
    radial-gradient(86% 70px at 50% 6px, transparent 64%, rgba(13, 107, 208, 0.3) 65%, transparent 68%);
  pointer-events: none;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(52px, 7.1vw, 98px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 580px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  padding: 0 24px;
}

.button-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--white);
  box-shadow: 0 18px 34px rgba(24, 120, 211, 0.25);
}

.email-line {
  display: inline-flex;
  margin-top: 20px;
  color: var(--blue-700);
  font-size: 17px;
  font-weight: 600;
}

.hero-visual {
  min-height: 520px;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 34px 42px rgba(6, 77, 151, 0.16));
}

.mission-band,
.endeavors,
.focus,
.contact {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.mission-band {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: -8px;
  padding: 22px 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(8, 33, 67, 0.09);
  backdrop-filter: blur(16px);
}

.mission-icon {
  width: 76px;
  height: 76px;
  justify-self: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 44%, rgba(24, 120, 211, 0.24) 45%),
    radial-gradient(circle at 50% 38%, var(--white), var(--blue-100));
  border: 1px solid var(--line);
}

.mission-copy {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 30px;
  align-items: center;
}

.mission-band h2,
.section-heading h2,
.contact h2,
.focus h3 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.mission-band h2 {
  color: var(--blue-700);
  font-size: clamp(23px, 3vw, 33px);
  line-height: 1.22;
}

.section-heading h2,
.contact h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.mission-band p,
.section-heading p,
.endeavor-card p,
.contact p,
.focus article p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.mission-band p {
  margin: 0;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.endeavors {
  padding: 72px 0 32px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 360px;
  margin: 0;
}

.endeavor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.endeavor-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 248, 255, 0.7)),
    radial-gradient(circle at 78% 12%, rgba(119, 189, 247, 0.28), transparent 10rem);
  box-shadow: 0 18px 42px rgba(8, 33, 67, 0.07);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.endeavor-card:hover,
.endeavor-card:focus-visible {
  border-color: rgba(7, 91, 189, 0.34);
  box-shadow: 0 24px 52px rgba(8, 33, 67, 0.11);
  transform: translateY(-2px);
}

.endeavor-card span {
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
}

.endeavor-card h3 {
  margin: auto 0 12px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.12;
}

.endeavor-card p {
  margin: 0;
}

.focus {
  padding: 48px 0;
}

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

.focus article {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 24px;
  min-height: 132px;
  padding: 0 28px;
  border-right: 1px solid var(--line);
}

.focus article:first-child {
  padding-left: 0;
}

.focus article:last-child {
  border-right: 0;
  padding-right: 0;
}

.focus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
}

.focus h3 {
  grid-column: 2;
  margin: 4px 0 8px;
  font-size: 25px;
  line-height: 1.1;
}

.focus article p {
  grid-column: 2;
  margin: 0;
}

.contact {
  padding: 28px 0 76px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(8, 33, 67, 0.09);
  backdrop-filter: blur(16px);
}

.contact-panel p {
  max-width: 620px;
  margin: 12px 0 0;
}

footer {
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .brand span:last-child {
    max-width: 190px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding-top: 58px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 0;
    height: 380px;
  }

  .mission-band,
  .mission-copy,
  .focus article {
    grid-template-columns: 1fr;
  }

  .mission-band p {
    padding-left: 0;
    border-left: 0;
  }

  .section-heading,
  .contact-panel,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .focus article,
  .focus article:first-child,
  .focus article:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }

  .focus article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .mission-band,
  .focus,
  .contact,
  footer {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    gap: 12px;
    margin-top: 10px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-copy h1 {
    font-size: 47px;
  }

  .button {
    width: 100%;
  }

  .email-line {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-visual,
  .hero-visual img {
    height: 320px;
  }

  .mission-band {
    padding: 22px;
  }
}
