/* Aeonik — local OTF (ensure you have a web license for your use case) */
@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* No separate SemiBold cut — approximate `600` with Medium */
@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Medium.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Hero artwork: dedicated full-bleed image (heroimage.png) */

:root {
  /* From design */
  --color-teal: #157a71;
  --color-teal-dark: #10655e;
  --color-footer: rgba(1, 61, 61, 1);
  --color-heading-blue: #2f4f7c;
  --color-heading-accent: #1a7268;
  --color-muted-line: #d4d8dd;
  --color-body: #1d1d1d;
  --color-stats-title: #157a71;
  --color-stat-icon: #6d7f92;
  --color-stat-icon-accent: #157a71;
  --color-stat-text: #2f4f7c;
  --color-stats-surface: #ffffff;
  --font: "Aeonik", system-ui, -apple-system, sans-serif;
  /* Single-screen layout (hero + stats overlap + footer = 100vh) */
  --footer-h: clamp(4.25rem, 12vh, 6rem);
  --stats-box-width: min(96%, 1320px);
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--color-body);
  background: #2a3930;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  background-color: #2a3930;
  background-image: url("assets/heroimage.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

/* —— Hero (content over full-page photo) —— */
.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: transparent;
}

.hero__scene {
  display: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(0.5rem, 1.4vh, 1rem) clamp(1rem, 3vw, 2.25rem)
    clamp(0.35rem, 1vh, 0.75rem);
}

.hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.brand {
  display: block;
  line-height: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.14));
}

.brand__logo {
  display: block;
  width: clamp(120px, 22vw, 200px);
  height: auto;
  max-height: clamp(48px, 9vh, 72px);
  object-fit: contain;
}

/* Headline + CTA: upper area of hero (below logo), not vertically centred */
.hero__content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: clamp(0.5rem, 1.5vh, 0.85rem);
  padding: clamp(1.25rem, 4vh, 2.5rem) 0 0;
}

.hero__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.15rem, 0.45vh, 0.35rem);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.35rem, 7.8vh, 4.5rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.hero__title-line {
  display: block;
}

.hero__title-line--blue {
  color: var(--color-heading-blue);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.45), 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero__title-line--green {
  color: var(--color-heading-accent);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.4), 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero__sub {
  margin: 0;
  font-size: clamp(1.2rem, 3vh, 1.85rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-heading-blue);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
  max-width: 24em;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: clamp(0.25rem, 0.8vh, 0.5rem);
  padding: clamp(0.75rem, 1.8vh, 1rem) clamp(1.5rem, 3.5vw, 2rem);
  border-radius: 12px;
  background: var(--color-teal);
  color: #fff;
  font-weight: 900;
  font-size: clamp(1.2rem, 3vh, 1.85rem);
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 22px rgba(12, 88, 80, 0.35);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.cta:hover {
  background: var(--color-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 88, 80, 0.42);
}

.cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cta__icon {
  flex-shrink: 0;
  width: clamp(1.35rem, 3.2vh, 1.75rem);
  height: clamp(1.35rem, 3.2vh, 1.75rem);
}

/* —— Stats: white card on top of hero image at bottom —— */
.stats {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 0 clamp(0.75rem, 2vw, 1.5rem) clamp(0.5rem, 1.5vh, 1rem);
  background: transparent;
}

.stats__card {
  width: var(--stats-box-width);
  max-width: var(--stats-box-width);
  margin: 0 auto;
  background: var(--color-stats-surface);
  border-radius: clamp(18px, 2.8vh, 28px);
  padding: clamp(0.85rem, 2vh, 1.35rem) clamp(1rem, 2.5vw, 2rem)
    clamp(0.85rem, 2vh, 1.25rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--color-muted-line);
}

.stats__heading {
  margin: 0 0 clamp(0.5rem, 1.4vh, 0.85rem);
  text-align: center;
  font-size: clamp(1rem, 2.35vh, 1.3rem);
  font-weight: 700;
  color: var(--color-stats-title);
  letter-spacing: 0.02em;
}

.stats__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: stretch;
  gap: 0;
}

.stats__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 1.1vw, 0.75rem);
  padding: clamp(0.35rem, 1vh, 0.65rem) clamp(0.45rem, 1.2vw, 0.9rem);
  border-right: 1px solid var(--color-muted-line);
}

.stats__item:last-child {
  border-right: none;
}

.stats__icon {
  flex-shrink: 0;
  color: var(--color-stat-icon);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats__item--chart .stats__icon,
.stats__item--star .stats__icon {
  color: var(--color-stat-icon-accent);
}

.stats__icon svg,
.stats__icon-svg {
  display: block;
  width: clamp(40px, 6.2vh, 58px);
  height: clamp(40px, 6.2vh, 58px);
}

.stats__item--academic .stats__icon {
  color: var(--color-stat-icon);
}

.stats__icon-img--school {
  object-fit: contain;
}

.stats__icon--chart {
  display: block;
  width: clamp(40px, 6.2vh, 58px);
  height: clamp(40px, 6.2vh, 58px);
  flex-shrink: 0;
  background-color: var(--color-stat-icon-accent);
  -webkit-mask-image: url("assets/stats-chart-icon.png");
  mask-image: url("assets/stats-chart-icon.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.stats__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  text-align: left;
}

.stats__value {
  font-size: clamp(1.55rem, 3.9vh, 2.4rem);
  font-weight: 700;
  color: var(--color-stat-text);
  line-height: 1.05;
  white-space: nowrap;
}

.stats__label {
  font-size: clamp(0.75rem, 1.6vh, 0.95rem);
  font-weight: 500;
  color: var(--color-stat-text);
  line-height: 1.3;
  max-width: 13em;
}

/* —— Footer (partner bar — below hero image) —— */
.footer {
  flex: 0 0 var(--footer-h);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  background: var(--color-footer);
  color: #fff;
  padding: clamp(0.5rem, 1.2vh, 0.85rem) clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  border-radius: clamp(14px, 2.2vh, 22px) clamp(14px, 2.2vh, 22px) 0 0;
}

.footer__inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2.85rem, 2vw, 1.5rem);
}

.footer__label {
  margin: 0;
  font-size: clamp(1rem, 2.5vh, 1.75rem);
  font-weight: 400;
  white-space: nowrap;
}

.footer__rule {
  flex-shrink: 0;
  width: 1px;
  height: clamp(44px, 8vh, 60px);
  background: rgba(255, 255, 255, 0.45);
}

.footer__logo {
  display: block;
  height: clamp(40px, 7.5vh, 58px);
  width: auto;
  max-width: min(320px, 48vw);
  object-fit: contain;
  flex-shrink: 0;
}

/* Short viewports: tighten further so nothing scrolls */
@media (max-height: 720px) {
  .hero__title {
    font-size: clamp(1.9rem, 6.5vh, 3.35rem);
  }

  .hero__sub {
    font-size: clamp(1.1rem, 2.7vh, 1.55rem);
  }

  .stats__value {
    font-size: clamp(1.25rem, 3vh, 1.85rem);
  }

  .stats__label {
    font-size: clamp(0.68rem, 1.4vh, 0.85rem);
  }

  .stats__icon svg {
    width: clamp(32px, 5vh, 44px);
    height: clamp(32px, 5vh, 44px);
  }
}

@media (max-width: 640px) {
  .footer__inner {
    gap: 0.65rem;
  }

  .footer__label {
    font-size: 0.92rem;
  }

  .footer__logo {
    height: clamp(34px, 6vh, 48px);
  }

  .footer__rule {
    height: clamp(36px, 6.5vh, 48px);
  }
}
