:root {
  --charcoal: #323232;
  --charcoal-deep: #242424;
  --white: #ffffff;
  --blue: #2570d9;
  --blue-bright: #3a8bff;
  --gold: #d79a21;
  --sand: #dede9a;
  --ink: #171717;
  --muted: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f1ea;
  color: var(--ink);
  font-family: "Nunito Sans", sans-serif;
}

body.splash-active {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a,
button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top center, rgba(37, 112, 217, 0.18), transparent 28%),
    radial-gradient(circle at 70% 30%, rgba(215, 154, 33, 0.2), transparent 24%),
    var(--charcoal);
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-inner {
  text-align: center;
}

.splash-logo {
  width: min(100%, 22rem);
  margin: 0 auto;
  animation: splashRise 850ms ease;
}

.splash-tag {
  margin: 1rem 0 0;
  color: var(--white);
  font-family: "Oswald", sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.06em;
  animation: splashFade 1200ms ease;
}

.masthead {
  position: relative;
  background: var(--charcoal);
  padding: 2rem 1rem 0.75rem;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.site-logo {
  width: min(100%, 20rem);
  object-fit: contain;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2.1rem;
  padding: 0 0 1.1rem;
}

.primary-nav a,
.nav-dropdown-toggle {
  color: var(--white);
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: #d7d7d7;
}

.curriculum-menu {
  position: absolute;
  left: 50%;
  top: calc(100% - 0.2rem);
  transform: translateX(-50%);
  width: min(37rem, calc(100% - 2rem));
  background: rgba(255, 255, 255, 0.98);
  border-radius: 0.85rem;
  padding: 0.85rem 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  z-index: 10;
}

.curriculum-menu a {
  display: block;
  padding: 0.78rem 1.5rem;
  text-decoration: none;
  color: var(--blue);
  font-size: 0.97rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.curriculum-menu a:hover,
.curriculum-menu a:focus-visible {
  background: rgba(37, 112, 217, 0.08);
}

.hero-slider {
  position: relative;
  min-height: 44rem;
  overflow: hidden;
  background: #111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img,
.slide-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  object-fit: cover;
}

.slide-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.18) 35%, rgba(0, 0, 0, 0.22) 100%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 4px
    );
}

.slide-copy {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  padding: 14rem 1.5rem 7rem;
  margin-left: clamp(1rem, 10vw, 21rem);
  color: var(--white);
}

.slide-kicker,
.section-heading p,
.overview-label {
  margin: 0;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.02em;
}

.slide-kicker {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
}

.slide-copy h1,
.section-heading h2 {
  margin: 1rem 0 0;
  font-family: "Nunito Sans", sans-serif;
  font-size: clamp(3.6rem, 8vw, 5.3rem);
  line-height: 0.95;
  font-weight: 800;
}

.cta-button,
.install-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0.9rem 1.7rem;
  margin-top: 2rem;
  border-radius: 0.25rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.cta-button {
  color: var(--blue);
  background: var(--white);
}

.install-link {
  color: var(--white);
  background: var(--blue);
}

.slider-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 0.65rem;
  transform: translateX(-50%);
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.dot.is-active {
  background: var(--white);
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: -3rem auto 0;
  position: relative;
  z-index: 3;
}

.overview-card {
  background: rgba(50, 50, 50, 0.95);
  color: var(--white);
  border-radius: 1rem;
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}

.overview-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.2rem;
}

.overview-card span:last-child {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
}

.install-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1.5rem;
  align-items: center;
  width: min(1180px, calc(100% - 2rem));
  margin: 1.4rem auto 0;
  padding: 1.4rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(37, 112, 217, 0.96), rgba(19, 61, 121, 0.98));
  color: var(--white);
  box-shadow: 0 20px 50px rgba(26, 65, 126, 0.28);
}

.install-label {
  margin: 0;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.install-banner h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.05;
}

.install-copy p:last-child {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  line-height: 1.6;
}

.install-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
}

.install-link-featured {
  min-width: 14rem;
  margin-top: 0;
  color: var(--blue);
  background: var(--white);
  font-size: 1.05rem;
}

.install-help {
  margin: 0;
  text-align: right;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.4;
}

.ios-tip {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  width: min(22rem, calc(100% - 2rem));
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(50, 50, 50, 0.97);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.ios-tip p {
  margin: 0;
  line-height: 1.5;
}

.ios-tip-close {
  margin-top: 0.85rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  color: var(--blue);
  background: var(--white);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
}

.content-block {
  width: min(1220px, calc(100% - 2rem));
  margin: 3rem auto 0;
}

.section-heading h2 {
  color: #454545;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.section-heading p {
  color: #515151;
  font-size: 1rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 2rem 1rem;
  background: var(--sand);
}

.program-card {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.program-card:hover,
.program-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.program-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.program-copy {
  min-height: 15rem;
  padding: 1rem 0.85rem;
  border: 2px dotted rgba(0, 0, 0, 0.4);
  border-top: 0;
}

.program-copy h3,
.pathway-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.program-copy p {
  margin: 0.9rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
}

.alt-block {
  padding-bottom: 3rem;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.6rem;
}

.pathway-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pathway-card:hover,
.pathway-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

.pathway-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pathway-card h3 {
  padding: 1rem;
  color: #2c2c2c;
}

.action-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

@media (max-width: 1080px) {
  .program-grid,
  .pathway-grid,
  .overview-strip,
  .install-banner {
    grid-template-columns: 1fr 1fr;
  }

  .slide-copy {
    margin-left: 2rem;
    padding-top: 12rem;
  }
}

@media (max-width: 760px) {
  .masthead {
    padding-top: 1.4rem;
  }

  .hero-slider {
    min-height: 36rem;
  }

  .slide-copy {
    margin-left: 0;
    padding: 11rem 1rem 5rem;
  }

  .slide-copy h1 {
    font-size: clamp(2.9rem, 12vw, 4rem);
  }

  .overview-strip,
  .program-grid,
  .pathway-grid,
  .install-banner {
    grid-template-columns: 1fr;
  }

  .curriculum-menu {
    width: calc(100% - 1rem);
  }

  .install-actions {
    justify-items: stretch;
  }

  .install-help {
    text-align: left;
  }

  .ios-tip {
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@keyframes splashRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
