.section {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  background: #111512;
  color: #fff;
}

.background {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
}

.background img {
  object-fit: cover;
  object-position: center 46%;
}

.overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0.3));
}

.content {
  display: flex;
  width: min(1440px, calc(100% - 112px));
  min-height: 100svh;
  flex-direction: column;
  margin-inline: auto;
  padding-block: clamp(96px, 9vw, 128px) clamp(34px, 5vw, 70px);
}

.brand,
.eyebrow,
.actions {
  font-family: var(--font-school-mono), "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.15em;
}

.brand {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.hero {
  max-width: 850px;
  margin-block: auto;
  padding-block: 54px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #e5c692;
  font-size: 11px;
  font-weight: 500;
}

.hero h2,
.approach h3 {
  margin: 0;
  font-family: var(--font-school-serif), Georgia, serif;
  font-weight: 400;
  text-wrap: balance;
}

.hero h2 {
  max-width: 850px;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.91;
  letter-spacing: -0.06em;
}

.intro {
  max-width: 510px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
}

.bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.approach {
  max-width: 700px;
}

.approach .eyebrow {
  margin-bottom: 12px;
}

.approach h3 {
  font-size: clamp(30px, 3.25vw, 48px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.description {
  max-width: 600px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 22px;
  font-size: 10px;
  font-weight: 500;
}

.actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  transition: color 180ms ease;
}

.actions a:hover {
  color: #e5c692;
}

.actions a:focus-visible {
  border-radius: 2px;
  outline: 2px solid #e5c692;
  outline-offset: 5px;
}

.themes {
  display: flex;
  max-width: 380px;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.themes li {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-school-mono), "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.09em;
}

.reveal {
  opacity: 1;
  transform: none;
}

.section[data-entered="true"] .background img {
  animation: school-story-background 1400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section[data-entered="true"] .reveal {
  animation: school-story-reveal 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section[data-entered="true"] [data-order="1"] { animation-delay: 80ms; }
.section[data-entered="true"] [data-order="2"] { animation-delay: 180ms; }
.section[data-entered="true"] [data-order="3"] { animation-delay: 280ms; }
.section[data-entered="true"] [data-order="4"] { animation-delay: 380ms; }
.section[data-entered="true"] [data-order="5"] { animation-delay: 480ms; }
.section[data-entered="true"] [data-order="6"] { animation-delay: 580ms; }
.section[data-entered="true"] [data-order="7"] { animation-delay: 680ms; }
.section[data-entered="true"] [data-order="8"] { animation-delay: 780ms; }
.section[data-entered="true"] [data-order="9"] { animation-delay: 880ms; }

@keyframes school-story-background {
  from {
    opacity: 0.75;
    transform: scale(1.05);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes school-story-reveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .content {
    width: calc(100% - 64px);
  }

  .bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .themes {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .section,
  .content {
    min-height: 100svh;
  }

  .content {
    width: calc(100% - 40px);
    padding-block: 96px 30px;
  }

  .background img {
    object-position: 56% center;
  }

  .overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.22)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.08) 78%);
  }

  .hero {
    padding-block: 42px;
  }

  .hero h2 {
    font-size: clamp(43px, 12vw, 66px);
  }

  .intro {
    max-width: 420px;
    margin-top: 18px;
    font-size: 15px;
  }

  .bottom {
    gap: 20px;
  }

  .approach h3 {
    font-size: clamp(29px, 8vw, 40px);
  }

  .description {
    margin-top: 12px;
    font-size: 13px;
  }

  .actions {
    gap: 4px 18px;
    margin-top: 12px;
    font-size: 9px;
  }

  .themes {
    gap: 6px;
  }

  .themes li {
    padding: 8px 10px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section[data-entered="true"] .background img,
  .section[data-entered="true"] .reveal {
    animation: none;
  }
}
