:root {
  --black: #131313;
  --ink: #1c1c1c;
  --silver-50: #eef1f0;
  --silver-100: #d4d4d4;
  --silver-200: #b8b8b8;
  --silver-400: #7f8280;
  --silver-600: #4f5054;
  --soft: #f6f7f6;

  --green-900: #0b2d1c;
  --green-700: #14421f;
  --green-600: #286a3a;
  --green-500: #3c9e51;
  --green-300: #9bc1a3;
  --sage: #8ba497;

  --red: #ad0020;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(19, 19, 19, 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--soft);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary {
  background: var(--green-600);
  color: #fff;
}
.btn-primary:hover { background: var(--green-500); }

.btn-outline {
  border-color: var(--green-600);
  color: var(--green-900);
}
.btn-outline:hover { background: var(--green-600); color: #fff; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 241, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(19, 19, 19, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo { height: 44px; width: auto; }

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--green-900);
}
.brand-accent { color: var(--green-600); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-list a:not(.btn)::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--green-500);
  transition: width 0.2s ease;
}
.nav-list a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--green-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(160deg, var(--silver-100) 0%, var(--silver-50) 45%, var(--soft) 100%);
  color: var(--black);
  padding: clamp(80px, 12vh, 150px) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 158, 81, 0.18), transparent 70%);
  pointer-events: none;
}

#hexCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-text { position: relative; }

.hero-kicker {
  display: inline-block;
  color: var(--green-600);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 18px;
  background: rgba(60, 158, 81, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero-accent { color: var(--green-600); }

.hero-sub {
  margin-top: 22px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--silver-600);
}

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

/* hero illustration */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.student-halo {
  position: absolute;
  width: min(380px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 158, 81, 0.20), rgba(60, 158, 81, 0) 68%);
  pointer-events: none;
}
.student-img {
  position: relative;
  width: min(320px, 78%);
  filter: drop-shadow(0 18px 30px rgba(11, 45, 28, 0.18));
}

/* ============ SECTIONS ============ */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: #fff; }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head.centered { margin-inline: auto; text-align: center; }
.eyebrow {
  color: var(--green-500);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--green-900);
}
.section-sub { margin-top: 14px; color: var(--silver-400); }

.about-text {
  max-width: 820px;
  font-size: 1.08rem;
  color: #333;
}
.about-text p + p { margin-top: 16px; }

/* ============ VIDEO ============ */
.video { background: #fff; }
.video-frame {
  max-width: 860px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(11, 45, 28, 0.92), rgba(20, 66, 31, 0.85)),
    var(--green-900);
  color: #fff;
}
.btn-play {
  background: var(--red);
  color: #fff;
  padding: 14px 26px;
  font-size: 1rem;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(173, 0, 32, 0.35);
}
.btn-play:hover { background: #c40026; transform: translateY(-2px) scale(1.02); }

/* ============ VALUES ============ */
.values { background: var(--green-900); }
.values .eyebrow { color: var(--green-300); }
.values .section-title { color: #fff; }
.values .section-sub { color: var(--silver-200); }

.value-card {
  background: #14421f;
  border: 1px solid rgba(155, 193, 163, 0.18);
}
.value-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.value-card h3::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--green-500);
  margin-bottom: 14px;
}
.value-card p { color: var(--green-300); }

/* ============ CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.value-card, .service-card, .partner-card, .school-card {
  padding: 30px;
  border-radius: var(--radius);
}

.service-card, .partner-card, .school-card {
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(19, 19, 19, 0.06);
}

.service-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-600);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.service-card h3, .partner-card h3, .school-card h3 {
  color: var(--green-900);
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.service-card p, .partner-card p { color: #4a4a4a; }

.tick-list { margin-top: 14px; display: grid; gap: 8px; }
.tick-list li {
  position: relative;
  padding-left: 22px;
  color: #4a4a4a;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green-500);
  border-bottom: 2px solid var(--green-500);
  transform: rotate(-45deg);
}

.services-closing {
  margin-top: 42px;
  max-width: 760px;
  font-weight: 600;
  color: var(--green-700);
}

/* ============ PARTNERS ============ */
.partners { background: var(--silver-50); }
.partner-logo {
  height: 90px;
  margin-bottom: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--green-700);
  background:
    linear-gradient(135deg, var(--silver-100), #fff);
  border: 1px dashed var(--sage);
}

/* ============ SCHOOLS ============ */
.schools { background: #fff; }
.school-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: 130px;
}
.link-arrow {
  color: var(--green-600);
  font-weight: 700;
  font-size: 0.92rem;
}
.link-arrow:hover { color: var(--green-500); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--black);
  color: var(--silver-200);
  padding: clamp(64px, 8vw, 96px) 0 32px;
}

.footer-quote {
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.6;
  color: #fff;
}

.footer-tagline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin-bottom: 48px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--green-300);
}
.footer-tagline span:last-child { color: var(--green-500); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-block: 40px;
  border-top: 1px solid rgba(212, 212, 212, 0.15);
}

.footer-logo { height: 56px; margin-bottom: 14px; }
.footer-col h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.footer-col p { margin-bottom: 8px; }
.footer-col a { color: var(--green-300); }
.footer-col a:hover { color: var(--green-500); }

.social-link { display: inline-flex; align-items: center; gap: 8px; }

.footer-links { display: grid; gap: 8px; }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 212, 212, 0.15);
  text-align: center;
  font-size: 0.85rem;
  color: var(--silver-400);
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .student-img { width: min(230px, 62%); margin-inline: auto; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--silver-50);
    border-bottom: 1px solid rgba(19, 19, 19, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.open { max-height: 480px; }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 4%;
  }
  .nav-list .btn { margin-top: 8px; margin-left: 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}