/* ============ Design tokens ============ */
:root {
  --red: #83162b;
  --red-dark: #5a0e1d;
  --brick: #a13232;
  --yellow: #ffd76a;
  --orange: #f2a93b;
  --cream: #fffaf6;
  --cream-2: #f4ece5;
  --card: #ffffff;
  --ink: #1f1919;
  --muted: #5e5e5e;
  --line: #ebe2da;
  --footer: #221e1e;

  --font-body: "Barlow", system-ui, sans-serif;
  --font-head: "Geologica", system-ui, sans-serif;
  --font-logo: "Kanit", "Barlow", sans-serif;

  --radius: 16px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Logo ============ */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; text-decoration: none; }
.logo__word {
  font-family: var(--font-logo);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo__o {
  position: relative;
  display: inline-block;
  width: 0.56em;
  height: 0.56em;
  margin: 0 0.02em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffc766, var(--orange) 60%, #e08b25);
  vertical-align: -0.02em;
}
/* little sparks above the "o" */
.logo__o::before,
.logo__o::after {
  content: "";
  position: absolute;
  width: 0.09em;
  height: 0.22em;
  border-radius: 0.05em;
  background: var(--orange);
  top: -0.3em;
}
.logo__o::before { left: 0.08em; transform: rotate(-30deg); }
.logo__o::after  { right: 0.08em; transform: rotate(30deg); }
.logo__tag {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.5em;
}
.logo img { height: 100%; width: auto; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: calc(var(--container) - 16px);
  z-index: 50;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 14px 0 20px;
}
.nav__logo { display: flex; align-items: center; text-decoration: none; }
.nav__logo .logo__word { font-size: 20px; color: var(--brick); }
/* the ¡ and ! hang below the letters, so nudge down to line "vamos" up with the menu text */
.nav__logo img { height: 18px; transform: translateY(2px); }
.nav__links { display: none; gap: 22px; }
.nav__links a,
.nav__menu a {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}
.nav__links a { position: relative; font-size: 15px; font-weight: 500; }
.nav__links a:hover,
.nav__menu a:hover,
.nav__links a.is-active,
.nav__menu a.is-active { color: var(--brick); }
/* underline under the current section's link */
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--brick);
  opacity: 0; transform: scaleX(0.4);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__links a.is-active::after { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .nav__links a::after { transition: none; }
}

.nav__right { display: flex; align-items: center; gap: 6px; }
.nav__cta {
  background: var(--brick); color: #fff;
  padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.nav__cta:hover { background: var(--red); transform: translateY(-1px); }
.nav__cta[hidden] { display: none; }

.nav__toggle {
  width: 40px; height: 40px;
  border: 0; background: none;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.nav__toggle span {
  display: block; width: 16px; height: 1.5px; background: var(--brick);
  transition: transform 0.25s, opacity 0.25s;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav__menu {
  display: grid;
  gap: 4px;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.nav.is-open .nav__menu { max-height: 480px; padding: 8px 24px 28px; }
.nav__menu a { font-size: 22px; letter-spacing: 0.04em; padding: 8px 0; }

@media (min-width: 1100px) {
  .nav__links { display: flex; }
  .nav__toggle, .nav__menu { display: none; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--red) 4%, var(--red-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 120px 0 90px;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hero__text { will-change: opacity, transform; }
.hero__logo .logo__word { font-size: clamp(64px, 13vw, 120px); color: #fbeee4; }
.hero__logo .logo__tag { font-size: clamp(11px, 1.6vw, 15px); color: #ffe7b0; }
.hero__logo img { max-height: 160px; max-width: 100%; margin: 0 auto; }
.hero__desc {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  color: #fff4ef;
}
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero__prompt {
  margin: 32px 0 12px;
  color: var(--yellow);
  font-weight: 700;
  font-size: 16px;
}
.hero__mark {
  position: absolute;
  font-family: var(--font-logo);
  font-weight: 700;
  color: rgba(255, 235, 230, 0.3);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.hero__mark--excl { font-size: 260px; top: -10px; right: 2%; transform: translateY(var(--py, 0)) rotate(12deg); }
.hero__mark--inv  { font-size: 240px; bottom: -10px; left: 1%; transform: translateY(var(--py, 0)) rotate(-14deg); }

/* photo columns (auto-scrolling) */
.hero__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  height: 360px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  transform: translateY(var(--py, 0));
  will-change: transform;
}
.hero__col:nth-child(2) { margin-top: -70px; }
.hero__track { animation: colUp 46s linear infinite; }
.hero__col:nth-child(2) .hero__track { animation-duration: 54s; animation-direction: reverse; }
.hero__col:nth-child(3) .hero__track { animation-duration: 50s; }
.hero__cols:hover .hero__track { animation-play-state: paused; }
.hero__tile {
  margin-bottom: 14px; /* margin (not gap) keeps the -50% loop seamless */
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(60, 0, 15, 0.25);
}
.hero__tile:nth-child(3n + 2) { aspect-ratio: 1 / 1; }
.hero__tile img { width: 100%; height: 100%; object-fit: cover; }
.hero .ph {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0 12px, rgba(255,255,255,0.05) 12px 24px);
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  min-height: 0;
}
@keyframes colUp { to { transform: translateY(-50%); } }

/* entrance */
.hero__text > * { animation: fadeUp 0.8s cubic-bezier(.2,.7,.2,1) both; }
.hero__text > :nth-child(2) { animation-delay: 0.12s; }
.hero__text > :nth-child(3) { animation-delay: 0.24s; }
.hero__text > :nth-child(4) { animation-delay: 0.36s; }
.hero__text > :nth-child(5) { animation-delay: 0.44s; }
.hero__cols { animation: fadeIn 1.2s 0.3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }
@keyframes fadeIn { from { opacity: 0; } }

@media (min-width: 900px) {
  .hero { text-align: left; padding: 110px 0 100px; min-height: min(860px, 100svh); display: flex; align-items: center; }
  .hero__inner { grid-template-columns: 1fr 1.1fr; }
  .hero__desc { margin-left: 0; }
  .hero__ctas, .hero .socials { justify-content: flex-start; }
  .hero__cols { height: min(640px, 78svh); }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 22px rgba(60, 0, 15, 0.3); }
.btn--primary:hover { box-shadow: 0 12px 28px rgba(60, 0, 15, 0.4); }
.btn--primary span { transition: transform 0.2s; }
.btn--primary:hover span { transform: translateX(3px); }
.btn--ghost { color: #fff; border: 2px solid rgba(255, 255, 255, 0.55); padding: 12px 22px; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

@media (prefers-reduced-motion: reduce) {
  .hero__track, .hero__text > *, .hero__cols { animation: none; }
}

/* ============ Socials ============ */
.socials { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.social {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #222;
  display: grid; place-items: center;
  border: 2px solid rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.social:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); }
.social svg, .social img { width: 26px; height: 26px; }
.social img { object-fit: contain; }
.social--zalo span {
  font-size: 13px; font-weight: 600;
  background: #fff; border: 2px solid #555; border-radius: 12px 12px 12px 3px;
  padding: 2px 5px; line-height: 1;
}

/* ============ Stats ============ */
.stats {
  position: relative;
  margin-top: -30px;
  background: var(--yellow);
  border-radius: 28px 28px 0 0;
  padding: 56px 0;
  z-index: 2;
}
.stats__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.stat {
  text-align: center;
  padding: 8px 20px;
}
.stat + .stat { border-left: 1px solid rgba(31, 25, 25, 0.18); }
.stat__num {
  display: block;
  font-size: clamp(52px, 7vw, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 10px;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brick);
}

/* ============ Sections ============ */
.section { padding: 110px 0 40px; }
.section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 48px);
  line-height: 1.2;
  text-align: center;
  margin: 0 0 12px;
  white-space: pre-line;
}
.section__subtitle {
  text-align: center;
  font-size: clamp(17px, 2vw, 20px);
  margin: 0 auto 40px;
  max-width: 760px;
}
.section__title + :not(.section__subtitle) { margin-top: 48px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Timeline ============ */
.timeline {
  --line-x: 15px;              /* where the vertical line sits */
  position: relative;
  list-style: none;
  margin: 0; padding: 8px 0;
}
.timeline::before,
.timeline__fill {
  content: "";
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--line-x) - 1.5px);
  width: 3px; border-radius: 3px;
}
.timeline::before { background: #e4ddcb; }
.timeline__fill {
  background: linear-gradient(var(--red), var(--brick));
  transform: scaleY(0);
  transform-origin: top;
}

.tl-item { position: relative; padding-left: 48px; margin-bottom: 20px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; top: 26px; left: calc(var(--line-x) - 9px);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cream); border: 3px solid #d9d1bc;
  z-index: 1;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.tl-item::after {             /* short connector from dot to card */
  content: "";
  position: absolute; top: 34px; left: calc(var(--line-x) + 9px);
  width: 24px; height: 2px;
  background: #e4ddcb;
  transition: background 0.3s;
}
.tl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 2px 4px rgba(60, 40, 20, 0.04), 0 10px 28px rgba(60, 40, 20, 0.06);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.tl-year {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: var(--brick);
  margin: 0 0 8px;
}
.tl-card p { margin: 0; font-size: 17px; line-height: 1.5; }
.tl-card mark {
  background: #fff1d0;
  color: var(--brick);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
}

/* reached by the red line */
.tl-item.is-active .tl-dot {
  background: var(--red); border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--red);
  animation: dotPulse 0.9s ease-out 1;
}
.tl-item.is-active::after { background: var(--red); }
.tl-item.is-active .tl-card {
  border-color: rgba(131, 22, 43, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(60, 40, 20, 0.05), 0 16px 36px rgba(161, 50, 50, 0.1);
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 2px var(--red), 0 0 0 0 rgba(131, 22, 43, 0.5); }
  100% { box-shadow: 0 0 0 2px var(--red), 0 0 0 14px rgba(131, 22, 43, 0); }
}

/* slide in from the side */
.tl-item.reveal { transform: translateX(40px); }
.tl-item.reveal.is-visible { transform: none; }

@media (min-width: 768px) {
  .timeline { --line-x: 50%; }
  .tl-item { width: 50%; padding-left: 0; }
  .tl-item + .tl-item { margin-top: -40px; }
  .tl-item--left { padding-right: 44px; text-align: right; }
  .tl-item--left.reveal { transform: translateX(-40px); }
  .tl-item--left .tl-dot { left: auto; right: -9px; }
  .tl-item--left::after { left: auto; right: 9px; width: 35px; }
  .tl-item--right { margin-left: 50%; padding-left: 44px; }
  .tl-item--right .tl-dot { left: -9px; }
  .tl-item--right::after { left: 9px; width: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-item.is-active .tl-dot { animation: none; }
  .tl-item.reveal { transform: none; }
}

/* ============ Teachers: credential chips ============ */
.cred { position: relative; text-align: center; margin-bottom: 40px; }
.cred__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cred__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.cred__chip:hover { transform: translateY(-2px); border-color: #d9d1bc; }
.cred__chip.is-active { background: var(--ink); color: #fbeee4; border-color: var(--ink); }
.cred__icon { width: 20px; height: 20px; color: var(--orange); display: inline-flex; }
.cred__icon svg { width: 100%; height: 100%; }
/* hover card with the chip's description */
.cred__pop {
  position: absolute; top: 0; left: 0; z-index: 20;
  width: min(320px, 100%);
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(60, 40, 20, 0.06), 0 18px 40px rgba(60, 40, 20, 0.14);
  text-align: left;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  pointer-events: none;
}
.cred__pop::before {               /* little arrow pointing up at the chip */
  content: "";
  position: absolute; top: -7px; left: calc(var(--ax, 50%) - 6px);
  width: 12px; height: 12px;
  background: var(--card);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.cred__pop.is-shown {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.cred__pop-title { margin: 0 0 6px; font-weight: 700; font-size: 15px; color: var(--brick); }
.cred__pop-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }

/* ============ Teachers: profile row ============ */
.teachers { position: relative; }
.teachers__nav { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  color: var(--brick); font-size: 24px; line-height: 1;
  display: grid; place-items: center; padding-bottom: 3px;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.round-btn:hover:not(:disabled) { background: var(--brick); color: #fff; }
.round-btn:disabled { opacity: 0.35; cursor: default; }
.teachers__track {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 0 16px;
  margin-right: -24px;          /* run to the edge so the next card peeks in */
  padding-right: 24px;
}
.teachers__track::-webkit-scrollbar { display: none; }

.tcard {
  flex: 0 0 clamp(240px, 26vw, 280px);
  display: flex; flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);   /* a border, not a shadow: the scrolling row would clip a shadow */
}
.tcard__photo { aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--cream-2); }
.tcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform 0.6s ease; }
.tcard:hover .tcard__photo img { transform: scale(1.05); }
.tcard__body { padding: 16px 18px 20px; }
.tcard__name { font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.2; margin: 0; }
.tcard__badge {
  display: inline-block; margin-top: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: #f9e6e0; color: var(--brick);
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.tcard__creds { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.tcard__creds li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; color: #3d3535; }
.tcard__creds li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
}

@media (max-width: 600px) {
  .cred__chips {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scrollbar-width: none;
    margin: 0 -16px; padding: 2px 16px 4px;
  }
  .cred__chips::-webkit-scrollbar { display: none; }
  .cred__chip { flex: none; font-size: 14px; padding: 8px 14px; }
  .teachers__nav { display: none; }
  .tcard { flex-basis: 78vw; }
  .teachers__track { margin-right: -16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .teachers__track { scroll-behavior: auto; }
  .tcard:hover .tcard__photo img { transform: none; }
}

/* ============ Gallery ============ */
.gallery { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item {                  /* white frame around each screenshot */
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  cursor: zoom-in;
  box-shadow: 0 2px 4px rgba(60, 40, 20, 0.04), 0 10px 28px rgba(60, 40, 20, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.gallery__frame {
  position: relative;
  aspect-ratio: 4 / 3;          /* screenshots are wide — less gets cropped than 1:1 */
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: inset 0 0 0 1px rgba(31, 25, 25, 0.06);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery__frame::after {          /* dark fade on hover */
  content: "";
  position: absolute; inset: 0;
  background: rgba(31, 25, 25, 0.35);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery__item:hover,
.gallery__item:focus-visible {
  transform: translateY(-4px);
  border-color: #e0d4c9;
  box-shadow: 0 4px 8px rgba(60, 40, 20, 0.05), 0 18px 40px rgba(60, 40, 20, 0.14);
}
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.07); }
.gallery__item:hover .gallery__frame::after,
.gallery__item:focus-visible .gallery__frame::after { opacity: 1; }
.gallery__zoom {
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 1;
}
.gallery__zoom svg { width: 22px; height: 22px; }
.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery__item.is-hidden { display: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: rgba(20, 14, 14, 0.92);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s ease, visibility 0s; }
.lightbox img {
  max-width: min(92vw, 1200px); max-height: 86vh;
  width: auto; height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__count {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 15px; letter-spacing: 0.04em;
}
.lightbox .slider-btn { background: rgba(255, 255, 255, 0.16); }
.lightbox .slider-btn:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__close {
  position: absolute; top: 14px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.16); color: #fff;
  font-size: 24px; line-height: 1;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }
body.has-lightbox { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .gallery__item, .gallery__item img { transition: none; }
  .gallery__item:hover, .gallery__item:hover img { transform: none; }
}
.gallery__more { display: flex; justify-content: center; margin-top: -20px; position: relative; }
.btn-dark {
  background: #333; color: #fff; border: 0;
  padding: 10px 16px; border-radius: 8px; font-size: 15px; font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.btn-dark:hover { background: #111; }
.btn-dark[hidden] { display: none; }

/* image placeholder when a file is missing */
.ph {
  width: 100%; height: 100%;
  min-height: 120px;
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #ece7da 0 12px, #e5dfd0 12px 24px);
  color: #8a7f68; font-size: 14px; text-align: center; padding: 12px;
}

/* ============ Program ============ */
.program__panel { margin-top: 28px; }
.program__panel.is-switching { animation: fadeIn 0.35s ease; }
.program__pending {
  margin: 20px 0 0; padding: 22px; border: 1px dashed var(--line); border-radius: 16px;
  text-align: center; color: var(--muted);
}
.program__body { display: grid; gap: 24px; margin-top: 20px; align-items: start; }
@media (min-width: 860px) { .program__body { grid-template-columns: 1.6fr 1fr; } }

/* roadmap: 4 steps rising from A1 to B2 */
.roadmap { margin-top: 40px; }
.roadmap__title { margin: 0 0 20px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.roadmap__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.step { display: flex; flex-direction: column; gap: 8px; border-radius: 18px; }
.roadmap__steps--plain { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.step__block {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  padding: 18px 20px; border-radius: 16px;
  background: var(--step); color: #fff;
  transition: box-shadow 0.25s;
}
.step--1 .step__block { min-height: 110px; }
.step--2 .step__block { min-height: 150px; }
.step--3 .step__block { min-height: 190px; }
.step--4 .step__block { min-height: 230px; }
.step.is-current .step__block { box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--step); }
.step__name { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1; }
.step__meta { display: flex; flex-direction: column; margin-top: 6px; }
.step__levels { font-weight: 600; font-size: 15px; }
.step__freq { font-size: 13px; opacity: 0.85; }
/* level tabs: a horizontal timeline under each step (dot · code · months) */
.step__list { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 6px; }
.step__list::before {           /* the timeline line, running on through the gaps between steps */
  content: ""; position: absolute; top: 15px; left: -7px; right: -7px;
  height: 2px; background: var(--line);
}
.step--1 .step__list::before { left: 25%; }
.step--4 .step__list::before { right: 25%; }
.step__lv {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 10px; border: 0; border-radius: 12px; background: none;
  color: var(--ink); font: inherit; text-align: center;
  transition: background 0.2s;
}
.step__dot {
  width: 14px; height: 14px; margin-bottom: 8px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--step);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.step__lv strong { font-size: 16px; }
.step__months { font-size: 13px; color: var(--muted); white-space: nowrap; }
.step__lv:hover { background: var(--cream-2); }
.step__lv.is-active .step__dot { background: var(--step); transform: scale(1.25); box-shadow: 0 0 0 4px var(--cream); }
.step__lv.is-active strong { color: var(--step); }
.step__lv.is-active .step__months { color: var(--ink); font-weight: 600; }

/* header card of the chosen level */
.program__panel { --step: var(--brick); }
.level-head {
  display: grid; gap: 20px 32px;
  background: var(--card);
  border: 1px solid var(--line); border-left: 6px solid var(--step); border-radius: 16px;
  padding: 22px 26px;
}
@media (min-width: 860px) { .level-head { grid-template-columns: 1fr auto; align-items: center; } }
.level-head__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.level-head__code { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 1.1; color: var(--step); }
.level-head__summary { margin: 10px 0 0; max-width: 640px; font-size: 16px; line-height: 1.55; }
.level-head__stats { display: grid; gap: 14px; min-width: 210px; }
@media (min-width: 860px) { .level-head__stats { padding-left: 28px; border-left: 1px solid var(--line); } }
.level-head__stat { display: flex; align-items: center; gap: 12px; }
.level-head__icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--cream-2); color: var(--step);
}
.level-head__icon svg { width: 18px; height: 18px; }
.level-head__value { font-weight: 700; font-size: 17px; line-height: 1.2; }
.level-head__label { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .roadmap__steps { grid-template-columns: 1fr 1fr; }
  .step .step__block { min-height: 0; }
  .step .step__list::before { left: 25%; right: 25%; }   /* steps no longer sit in one row */
}
@media (max-width: 600px) {
  .roadmap__steps { grid-template-columns: 1fr; gap: 12px; }
  .step__block { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 16px; }
  .step__name { font-size: 28px; }
  .step__meta { margin-top: 0; text-align: right; }
  .level-head { padding: 18px; }
  .level-head__code { font-size: 28px; }
  .level-head__stats { grid-template-columns: repeat(3, 1fr); gap: 10px; min-width: 0; }
  .level-head__stat { flex-direction: column; align-items: flex-start; gap: 6px; }
  .level-head__value { font-size: 15px; }
  .level-head__label { font-size: 12px; }
}
.program__units { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.unit {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px;
}
.unit__n {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--cream-2); color: var(--brick);
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
}
.unit__theme { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.3; }
.unit__content { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.program__grammar { background: var(--red); color: #fff; border-radius: 20px; padding: 24px; }
@media (min-width: 860px) { .program__grammar { position: sticky; top: 90px; } }
.program__grammar h3 { margin: 0 0 14px; font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.program__grammar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.program__grammar li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: #f6e6e6; }
.program__grammar li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
}
@media (max-width: 600px) {
  .unit { padding: 14px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .program__panel.is-switching { animation: none; }
}

/* ============ Schedule ============ */
.schedule { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .schedule { grid-template-columns: 1fr 1fr; } }
.course {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(60, 40, 20, 0.04), 0 10px 28px rgba(60, 40, 20, 0.06);
}
.course__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--cream-2);
  padding: 18px 24px;
}
.course__name { color: var(--brick); font-weight: 700; font-size: 20px; }
.course__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.course__more { font-size: 14px; font-weight: 500; color: var(--brick); text-decoration: underline; text-underline-offset: 3px; }
.course__more:hover { color: var(--red); }
.course__label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.course__rows { padding: 6px 12px 10px; }
.course__row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 12px;
  border-radius: 12px;
  transition: background 0.2s;
}
.course__row + .course__row { border-top: 1px dashed var(--line); }
.course__row:hover { background: var(--cream); }
.course__code { color: var(--ink); font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.course__when { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 16px; color: var(--muted); }
.course__when span { display: inline-flex; align-items: center; gap: 6px; }
.course__when svg { width: 16px; height: 16px; color: var(--orange); flex: none; }
.course__date {
  flex: none;
  font-weight: 700; font-size: 17px;
  color: var(--brick);
  background: #fff1d0;
  border: 1px solid #ffe19a;
  padding: 8px 14px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* ============ Feedback quote cards ============ */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.quote {
  display: flex; flex-direction: column;
  background: var(--card); border-radius: 20px;
  padding: 26px 24px 20px;
  box-shadow: 0 2px 4px rgba(60, 40, 20, 0.04), 0 10px 28px rgba(60, 40, 20, 0.08);
}
.quote__mark { font: 700 64px/0.6 Georgia, serif; color: var(--orange); height: 28px; }
.quote__text { flex: 1; margin: 10px 0 22px; font-size: 19px; line-height: 1.5; }
.quote__foot { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote__av {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #f9e6e0; color: var(--brick);
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
}
.quote__who { flex: 1; min-width: 0; }
.quote__name { font-weight: 600; font-size: 15px; }
.quote__meta { font-size: 13px; color: var(--muted); line-height: 1.4; }
.quote__proof {
  flex: none; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--brick); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.quote__proof:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
@media (max-width: 600px) {
  /* swipe row instead of a long stack of cards */
  .quotes {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-right: -16px; padding: 4px 16px 16px 0;
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 82vw; scroll-snap-align: start; }
  .quote__text { font-size: 17px; }
}

/* slider arrows (used by the lightbox) */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.35); color: #fff;
  font-size: 26px; line-height: 1; display: grid; place-items: center; padding-bottom: 3px;
}
.slider-btn:hover { background: rgba(0, 0, 0, 0.55); }
.slider-btn--prev { left: 14px; }
.slider-btn--next { right: 14px; }

/* ============ Workshop slider ============ */
.workshop { margin-top: 48px; overflow: hidden; }
.workshop__track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee 40s linear infinite;
}
.workshop:hover .workshop__track { animation-play-state: paused; }
.workshop__item {
  width: min(460px, 80vw);
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-2);
  flex: none;
}
.workshop__item img { width: 100%; height: 100%; object-fit: cover; }
.workshop__caption { text-align: center; font-size: 22px; margin: 28px 0 60px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .workshop { overflow-x: auto; }
  .workshop__track { animation: none; }
}

/* ============ Footer ============ */
.footer { background: var(--footer); color: #fff; text-align: center; padding: 70px 0 30px; }
.footer__logo { font-family: var(--font-logo); font-weight: 700; font-size: 42px; line-height: 1; }
.footer__logo img { height: 72px; margin: 0 auto; }
.footer__contact { margin-top: 44px; }
.footer__title { font-weight: 600; margin: 0 0 8px; }
.footer__text { color: #cfc8c8; margin: 0 0 22px; }
.footer .social { border-color: rgba(255, 255, 255, 0.2); }
.footer__bottom {
  margin-top: 38px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #bdb6b6; font-size: 14px;
}
.footer__bottom p { margin: 2px 0; }
@media (min-width: 768px) {
  .footer { text-align: left; padding-top: 56px; }
  .footer__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 48px; }
  .footer__logo img { height: 88px; margin: 0; }
  .footer__contact { margin-top: 0; }
  .footer .socials { justify-content: flex-start; }
  .footer__bottom { grid-column: 1 / -1; margin-top: 44px; }
}

/* ============ Mobile ============ */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 120px 0 90px; }
  .hero__mark--excl { font-size: 170px; }
  .hero__mark--inv { font-size: 160px; }
  .stat { padding: 8px 10px; }
  .section { padding-top: 80px; }
  .tl-card p, .course__code { font-size: 16px; }
  .tl-card { padding: 18px 20px; }
  .tl-year { font-size: 24px; }
  .course__head { padding: 16px 18px; }
  .course__name { font-size: 18px; }
  .course__rows { padding: 4px 8px 8px; }
  .course__row { padding: 14px 10px; }
  .course__when { font-size: 15px; gap: 4px 14px; }
  .course__date { font-size: 15px; padding: 6px 12px; }
  .workshop__caption { font-size: 18px; }
}
