:root {
  --ink: #1c2430;
  --muted: #5a6574;
  --paper: #eef2f5;
  --snow: #f7f9fb;
  --stone: #2a3544;
  --pine: #1f6f63;
  --pine-deep: #145248;
  --glacier: #7eb8b0;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --hero-veil: linear-gradient(
    180deg,
    rgb(28 36 48 / 0.28) 0%,
    rgb(28 36 48 / 0.42) 45%,
    rgb(28 36 48 / 0.78) 100%
  );
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background:
    radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--glacier) 35%, transparent), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, color-mix(in srgb, var(--pine) 12%, transparent), transparent 50%),
    linear-gradient(180deg, var(--snow), var(--paper) 40%, var(--snow));
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4f7f8;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 8vh, 5.5rem);
  animation: rise-in 0.9s var(--ease) both;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.25);
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 14ch;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.support {
  margin: 0 0 1.6rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: color-mix(in srgb, #f4f7f8 88%, #9bb);
  line-height: 1.5;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

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

.btn--primary {
  background: var(--pine);
  color: #f4fbf9;
  border: 1px solid transparent;
}

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

.btn--ghost {
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.35);
  color: #f4f7f8;
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgb(255 255 255 / 0.16);
  border-color: rgb(255 255 255 / 0.55);
}

/* —— Sections —— */
.section {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.section__intro {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.section__intro h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Academies: list, not cards */
.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.track-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(10px);
  animation: rise-in 0.7s var(--ease) both;
}

.track-list li:nth-child(1) { animation-delay: 0.05s; }
.track-list li:nth-child(2) { animation-delay: 0.1s; }
.track-list li:nth-child(3) { animation-delay: 0.15s; }
.track-list li:nth-child(4) { animation-delay: 0.2s; }
.track-list li:nth-child(5) { animation-delay: 0.25s; }
.track-list li:nth-child(6) { animation-delay: 0.3s; }
.track-list li:nth-child(7) { animation-delay: 0.35s; }
.track-list li:nth-child(8) { animation-delay: 0.4s; }
.track-list li:nth-child(9) { animation-delay: 0.45s; }

.track-list__name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.track-list__meta {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.academies__note {
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.academies__note strong {
  color: var(--pine-deep);
  font-weight: 600;
}

/* Method */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.steps li {
  display: grid;
  gap: 0.4rem;
  padding-left: 0;
  max-width: 38rem;
  counter-increment: step;
}

.steps {
  counter-reset: step;
}

.steps h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.steps h3::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  margin-right: 0.65rem;
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  padding-left: 2.55rem;
}

/* Footer */
.footer {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.footer__line,
.footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__line {
  margin-bottom: 0.85rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (max-width: 640px) {
  .track-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .track-list__meta {
    text-align: left;
  }

  .hero__content {
    width: min(var(--max), calc(100% - 2rem));
  }

  .section {
    width: min(var(--max), calc(100% - 2rem));
  }

  .footer {
    width: min(var(--max), calc(100% - 2rem));
  }

  .steps p {
    padding-left: 0;
  }
}

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

  .hero__image,
  .hero__content,
  .track-list li {
    animation: none !important;
  }

  .btn:hover {
    transform: none;
  }
}
