:root {
  --ink: #1a2e35;
  --ink-soft: #4a646c;
  --deep: #0f3d4a;
  --leaf: #5a9e3a;
  --leaf-soft: #e8f4df;
  --coral: #e85d4c;
  --coral-deep: #d44838;
  --sand: #f7f1e8;
  --cream: #fbf8f3;
  --white: #ffffff;
  --line: rgba(26, 46, 53, 0.1);
  --shadow: 0 18px 40px rgba(15, 61, 74, 0.1);
  --font-display: "Literata", Georgia, serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --radius: 10px;
  --space: clamp(1.25rem, 3.5vw, 2.75rem);
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--cream);
}

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

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

address {
  font-style: normal;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--deep);
}

h1 {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  max-width: 16ch;
  color: var(--white);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  max-width: 20ch;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

p {
  margin: 0 0 1rem;
}

figure {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--deep);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
}

.logo {
  width: 3.1rem;
  height: auto;
  border-radius: 8px;
}

.logo--footer {
  width: 3.25rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--deep);
}

.nav-toggle {
  display: grid;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  place-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--deep);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--coral);
}

.nav-cta {
  display: inline-flex;
  padding: 0.55rem 1rem;
  background: var(--coral);
  color: var(--white) !important;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--coral-deep);
}

@media (max-width: 899px) {
  .nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    inset: 0 0 auto 0;
    top: 100%;
    padding: 1.25rem var(--space) 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
  }
}

.hero {
  position: relative;
  min-height: min(92vh, 48rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  animation: kenburns 20s ease-out forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(15, 61, 74, 0.82) 0%,
      rgba(15, 61, 74, 0.55) 45%,
      rgba(15, 61, 74, 0.25) 100%
    ),
    linear-gradient(180deg, transparent 35%, rgba(15, 61, 74, 0.55) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(5.5rem, 14vh, 8rem) var(--space) clamp(2.75rem, 7vh, 4.5rem);
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  color: var(--white);
}

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 0.98;
  margin: 0 0 0.9rem;
  letter-spacing: -0.03em;
  max-width: 11ch;
  opacity: 0;
  transform: translateY(1.2rem);
  animation: rise 0.85s ease forwards 0.12s;
}

.hero h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
  letter-spacing: 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(1.2rem);
  animation: rise 0.85s ease forwards 0.28s;
}

.lede {
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(1.2rem);
  animation: rise 0.85s ease forwards 0.42s;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.6rem;
  opacity: 0;
  transform: translateY(1.2rem);
  animation: rise 0.85s ease forwards 0.56s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  font-size: 0.96rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--coral-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.band {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.9);
  padding: 2rem var(--space);
}

.intro-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 860px) {
  .intro-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
  }
}

.intro-text {
  margin: 0;
  font-size: 1.12rem;
  max-width: 48ch;
}

.intro-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.intro-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--white);
  line-height: 1.1;
}

.intro-stats span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: clamp(3.75rem, 8vw, 6.5rem) var(--space);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2.25rem;
}

.eyebrow {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.65rem;
}

.section-lede {
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.text-link {
  font-weight: 700;
  color: var(--leaf);
}

.text-link:hover {
  color: var(--deep);
}

.about {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(90, 158, 58, 0.1), transparent 60%),
    var(--cream);
}

.about-layout {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 860px) {
  .about-layout {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
  }
}

.about-copy p {
  color: var(--ink-soft);
  max-width: 42ch;
}

.about-visual {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-visual img {
  width: 100%;
  height: clamp(17rem, 42vw, 28rem);
  object-fit: cover;
  transition: transform 0.7s ease;
}

.about-visual:hover img {
  transform: scale(1.03);
}

.programs {
  background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
}

.program-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .program-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .program-card {
    grid-column: span 2;
  }

  .program-card--wide {
    grid-column: span 3;
  }

  .program-card--wide:last-child {
    grid-column: 4 / span 3;
  }
}

.program-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(15, 61, 74, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

.program-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.program-age {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf);
}

.program-body p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.approach {
  background: var(--white);
}

.pillar-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 700px) {
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pillar:nth-child(4),
  .pillar:nth-child(5) {
    grid-column: span 1;
  }
}

.pillar {
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pillar:hover {
  border-color: rgba(90, 158, 58, 0.35);
  transform: translateY(-2px);
}

.pillar img {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.85rem;
}

.pillar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.campus {
  background:
    linear-gradient(180deg, var(--leaf-soft) 0%, var(--cream) 100%);
}

.campus-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .campus-layout {
    grid-template-columns: 1.1fr 1fr;
    gap: 3.25rem;
  }
}

.campus-visual {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.campus-visual img {
  width: 100%;
  height: clamp(16rem, 38vw, 24rem);
  object-fit: cover;
}

.campus-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.campus-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.campus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--leaf);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 800px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .gallery img:first-child {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
    aspect-ratio: auto;
  }
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(0.9rem) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.3s ease;
}

.gallery img.is-visible {
  opacity: 1;
  transform: none;
}

.gallery img:hover {
  filter: saturate(1.08) contrast(1.02);
}

.videos {
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
}

.video-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.video-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 61, 74, 0.06);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--deep);
  display: block;
}

.video-card figcaption {
  padding: 0.9rem 1.1rem 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.teachers {
  background: var(--sand);
}

.team-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .team-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
  }
}

.team-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.team-strip img.is-visible {
  opacity: 1;
  transform: none;
}

.contact {
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(232, 93, 76, 0.08), transparent 55%),
    var(--cream);
}

.contact-layout {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.contact-details {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-details li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.contact-details img {
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.15rem;
}

.contact-details strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.contact-details a,
.contact-details span,
.contact-details address {
  color: var(--ink-soft);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
}

.form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  color: var(--deep);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(232, 93, 76, 0.35);
  border-color: var(--coral);
  background: var(--white);
}

.contact-form .btn {
  margin-top: 0.35rem;
  justify-self: start;
}

.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.75rem var(--space) 1.75rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  margin: 0 0 0.2rem;
}

.footer-tag {
  margin: 0;
  font-size: 0.95rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.footer-label {
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-cols a,
.footer-cols p {
  display: block;
  margin: 0 0 0.4rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-cols a:hover {
  color: var(--white);
}

.footer-copy {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes kenburns {
  to {
    transform: scale(1);
  }
}

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

  .brand-hero,
  .hero h1,
  .lede,
  .cta-row,
  .reveal,
  .gallery img,
  .team-strip img,
  .hero-media img {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
