:root {
  --ink: #132033;
  --muted: #526071;
  --line: rgba(19, 32, 51, 0.12);
  --paper: #ffffff;
  --soft: #f4f6f2;
  --navy: #19283f;
  --green: #1f766d;
  --gold: #d6a52f;
  --coral: #d96f4f;
  --sky: #dcebf0;
  --shadow: 0 24px 70px rgba(19, 32, 51, 0.14);
  --container: 1180px;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body::selection {
  background: rgba(31, 118, 109, 0.22);
}

a {
  color: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 490px;
  padding: 28px 24px 72px;
  color: #fff;
  background: url("assets/team-hero-balanced.webp") center 32% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 28, 46, 0.94) 0%, rgba(15, 28, 46, 0.82) 42%, rgba(15, 28, 46, 0.34) 100%);
}

.nav,
.hero-grid,
.section {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.nav {
  position: relative;
  z-index: 2;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  text-decoration: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 42px;
  padding-top: 18px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero .eyebrow {
  font-size: 1.17rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.18;
}

.hero-text {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  background: var(--gold);
  color: #142032;
  box-shadow: 0 16px 34px rgba(214, 165, 47, 0.24);
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
  position: absolute;
  top: 74px;
  right: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  z-index: 3;
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  width: min(100%, 216px);
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-facts div {
  display: grid;
  gap: 5px;
  padding: 13px;
  background: rgba(14, 26, 43, 0.58);
}

.hero-facts span,
.contact-box span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-facts strong {
  font-size: 0.78rem;
  line-height: 1.3;
}

.section {
  padding: 104px 24px 0;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 36px;
}

.intro-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--muted);
}

.intro-layout p,
.split-copy p,
.program-card p,
.apply-copy p,
.promise-list p,
.check-item p {
  margin: 0;
}

.program {
  padding-bottom: 8px;
}

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

.program-card {
  min-height: 292px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(19, 32, 51, 0.08);
}

.card-number {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--green);
  font-weight: 800;
}

.program-card h3 {
  margin-bottom: 14px;
}

.program-card p {
  color: var(--muted);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
  gap: 52px;
  align-items: center;
}

.split-copy p {
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.checklist {
  display: grid;
  gap: 14px;
}

.check-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-left: 4px solid var(--green);
  background: var(--soft);
}

.check-item span {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 5px solid var(--gold);
  border-radius: 50%;
  background: #fff;
}

.check-item p {
  font-weight: 700;
  line-height: 1.45;
}

.promise-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 46px;
  padding: 44px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(25, 40, 63, 0.96), rgba(31, 118, 109, 0.86)),
    linear-gradient(90deg, var(--navy), var(--green));
  color: #fff;
}

.promise-list {
  display: grid;
  gap: 14px;
}

.promise-list p {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.45;
}

.promise-list p:last-child {
  border-bottom: 0;
}

.apply {
  padding-bottom: 104px;
}

.apply-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86)),
    linear-gradient(135deg, var(--sky), rgba(214, 165, 47, 0.2));
}

.apply-copy p {
  max-width: 690px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.contact-box {
  display: grid;
  gap: 10px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.contact-box span {
  color: rgba(255, 255, 255, 0.64);
}

.contact-box strong {
  font-size: 1.35rem;
}

.contact-box a:not(.button) {
  color: rgba(255, 255, 255, 0.88);
  text-decoration-color: rgba(214, 165, 47, 0.6);
  text-underline-offset: 4px;
}

.contact-box .button {
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 1020px) {
  .hero {
    min-height: auto;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(15, 28, 46, 0.96) 0%, rgba(15, 28, 46, 0.82) 100%);
  }

  .hero-grid,
  .split,
  .promise-band,
  .apply-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-facts {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-facts {
    position: static;
    justify-self: start;
    width: min(100%, 360px);
  }

  .hero-facts div {
    gap: 7px;
    padding: 22px;
  }

  .hero-facts strong {
    font-size: 1.05rem;
  }

  .hero-facts,
  .contact-box {
    max-width: 520px;
  }

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

@media (max-width: 720px) {
  .hero {
    padding: 20px 18px 56px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    gap: 12px 16px;
  }

  .hero-grid {
    padding-top: 20px;
    gap: 28px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.6rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .hero-text,
  .intro-layout,
  .split-copy p,
  .apply-copy p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .section {
    padding: 76px 18px 0;
  }

  .intro-layout,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: auto;
  }

  .promise-band,
  .apply-panel {
    padding: 26px;
  }

  .apply {
    padding-bottom: 76px;
  }
}

@media (max-width: 420px) {
  .hero,
  .section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-facts div,
  .program-card,
  .contact-box,
  .promise-band,
  .apply-panel {
    padding: 20px;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .hero .eyebrow {
    font-size: 0.92rem;
  }
}