/* ===== High Mount College – theme ===== */
:root {
  --ink-900: #111114;
  --ink-800: #1e1f23;
  --ink-700: #2c2d32;
  --maroon-800: #5c0014;
  --maroon-700: #8a011e;
  --red-500: #b0102e;
  --red-400: #d23a52;
  --grey-500: #909499;
  --silver-300: #d4d7db;
  --light: #f4f4f5;
  --ink: #1f2024;
  --muted: #62656b;
  --line: #e2e3e6;
  --white: #fff;
  --serif: "Sora", system-ui, sans-serif;
  --accent-font: "Instrument Serif", Georgia, serif;
  --display: "Sora", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(17, 17, 20, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 0.6em; color: var(--ink-800); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red-500); color: var(--white); }
.btn--primary:hover { background: var(--maroon-700); }
.btn--outline { border-color: var(--silver-300); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--maroon-700); border-color: var(--white); }
.btn--dark { background: var(--maroon-700); color: var(--white); width: 100%; }
.btn--dark:hover { background: var(--red-500); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 17, 20, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(176, 16, 46, 0.25);
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 62px; width: auto; transition: height 0.25s; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
.brand__text strong {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff, var(--silver-300) 60%, var(--grey-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.brand__text small {
  display: block;
  margin-top: 3px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9ccd1;
  white-space: nowrap;
}
.header.is-scrolled .brand img { height: 50px; }
.nav { display: flex; gap: 32px; }
.nav--left { justify-content: flex-end; }
.nav--right { justify-content: flex-start; }
.nav a, .mobile-nav a {
  color: #e6e7ea;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red-500);
  transition: width 0.25s;
}
.nav a:hover { color: var(--silver-300); }
.nav a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  justify-self: end;
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--silver-300); margin: 6px 0; transition: transform 0.25s, opacity 0.25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  --header-h: 85px;
  min-height: 560px;
  min-height: max(560px, calc(100vh - var(--header-h)));
  min-height: max(560px, calc(100svh - var(--header-h)));
  padding: 48px 0 110px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(138, 1, 30, 0.45), transparent 60%),
    linear-gradient(160deg, var(--maroon-700) 0%, var(--ink-900) 75%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/shield.png") center 42% / 380px auto no-repeat;
  opacity: 0.06;
  filter: grayscale(1) brightness(2);
}
.hero__mountains { position: absolute; left: 0; bottom: 0; width: 100%; height: 45%; }
.slides { position: relative; width: min(860px, 100% - 120px); display: grid; }
.slide {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.7s, transform 0.7s, visibility 0.7s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.slide h1, .slide h2 { color: var(--white); font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 4.2rem); margin-bottom: 0.4em; }
.slide p { max-width: 640px; color: #e3e5e8; margin: 0 0 1.8em; }
.eyebrow {
  font-family: var(--display);
  color: var(--silver-300) !important;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1em !important;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.15);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.slider-arrow:hover { background: var(--red-500); border-color: var(--red-500); color: var(--white); }
.slider-arrow--prev { left: 3%; }
.slider-arrow--next { right: 3%; }
.slider-dots { position: absolute; bottom: 28px; display: flex; gap: 8px; }
.slider-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s, background 0.3s;
}
.slider-dots button.is-active { width: 28px; border-radius: 6px; background: var(--red-500); }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--tint { background: var(--light); }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.4rem); position: relative; padding-bottom: 18px; }
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--red-500);
}
.center .section-title::after, .section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-sub { color: var(--muted); margin: -4px 0 48px; }
.lead { font-size: 1.12rem; color: var(--ink); }
.welcome p { color: var(--muted); }
.welcome .lead { color: var(--ink); }
.signature {
  font-family: var(--display);
  color: var(--maroon-700) !important;
  letter-spacing: 0.2em;
  margin-top: 28px;
}

/* ===== Programme cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(17, 17, 20, 0.16); }
.card__banner {
  height: 150px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.card__banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100 L0 70 L80 30 L150 65 L230 10 L310 60 L400 35 L400 100Z' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.card__banner span {
  font-family: var(--display);
  color: var(--silver-300);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}
.card__banner--1 { background: linear-gradient(135deg, var(--maroon-700), var(--ink-900)); }
.card__banner--2 { background: linear-gradient(135deg, var(--red-500), var(--ink-800)); }
.card__banner--3 { background: linear-gradient(135deg, var(--grey-500), var(--ink-700)); }
.card__banner--4 { background: linear-gradient(135deg, #5f6268, var(--ink-800)); }
.card__banner--4 span { color: var(--white); }
.card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.25rem; }
.card__body p { color: var(--muted); margin: 0 0 18px; flex: 1; }
.card__link { color: var(--red-500); font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.card__link:hover { color: var(--maroon-700); }

/* ===== Stats ===== */
.stats {
  background: linear-gradient(90deg, var(--ink-900) 0%, var(--ink-800) 45%, var(--maroon-800) 100%);
  color: var(--white);
  padding: 48px 0;
}
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--silver-300); }
.stat span { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #c9ccd1; }

/* ===== Subjects ===== */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.tab {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 26px;
  border: 2px solid var(--maroon-700);
  background: transparent;
  color: var(--maroon-700);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab.is-active, .tab:hover { background: var(--maroon-700); color: var(--white); }
.tab-panel { display: none; animation: fade 0.4s; }
.tab-panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.subjects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  gap: 14px;
}
.subjects li {
  background: var(--light);
  border-left: 4px solid var(--red-500);
  padding: 14px 18px;
  font-weight: 700;
  color: var(--ink-800);
  transition: background 0.2s, color 0.2s;
}
.subjects li:hover { background: var(--maroon-700); color: var(--white); }

.support { margin-top: 64px; }
.support__title { text-align: center; font-size: 1.5rem; margin-bottom: 28px; }
.support__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.support__item {
  border: 1px solid var(--line);
  border-top: 3px solid var(--red-500);
  padding: 22px;
  border-radius: var(--radius);
}
.support__item strong { display: block; font-family: var(--serif); color: var(--ink-800); font-size: 1.1rem; margin-bottom: 4px; }
.support__item span { color: var(--muted); font-size: 0.95rem; }

/* ===== Features (courses) ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.feature {
  background: var(--white);
  padding: 32px 26px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.feature:hover { transform: translateY(-5px); }
.feature--accent { background: var(--maroon-700); }
.feature--accent h3 { color: var(--white); }
.feature--accent p { color: #f1d9dd !important; }
.feature__icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--maroon-700);
  border: 2px solid var(--grey-500);
}
.feature--accent .feature__icon { background: var(--white); border-color: var(--white); }
.feature__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--silver-300); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature--accent .feature__icon svg { stroke: var(--maroon-700); }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ===== Lesson times ===== */
.hours__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.hours p { color: var(--muted); }
.hours .lead { color: var(--ink); }
.hours .btn { margin-top: 12px; }
.timetable { display: grid; gap: 16px; }
.slot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  align-items: baseline;
}
.slot h3 { margin: 0; font-size: 1.15rem; }
.slot__time { margin: 0; font-weight: 700; color: var(--maroon-700) !important; white-space: nowrap; }
.slot p:last-child { grid-column: 1 / -1; margin: 0; }
.slot--highlight { background: var(--ink-800); border-color: var(--ink-800); }
.slot--highlight h3 { color: var(--white); }
.slot--highlight .slot__time { color: var(--silver-300) !important; }
.slot--highlight p:last-child { color: #c9ccd1; }

/* ===== CTA ===== */
.cta {
  background:
    linear-gradient(rgba(17, 17, 20, 0.88), rgba(17, 17, 20, 0.88)),
    linear-gradient(135deg, var(--red-500), var(--maroon-700));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.cta h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta p { color: #c9ccd1; margin: 0 0 28px; }

/* ===== Contact ===== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.contact-list li { color: var(--muted); padding-left: 16px; border-left: 3px solid var(--red-500); }
.contact-list strong {
  display: block;
  color: var(--ink-800);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-list a { color: var(--red-500); text-decoration: none; font-weight: 700; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 280px; border: 0; }

.enquiry {
  background: var(--light);
  padding: 36px;
  border-radius: var(--radius);
  border-top: 4px solid var(--red-500);
  display: grid;
  gap: 16px;
}
.enquiry h3 { margin: 0; font-size: 1.5rem; }
.form-note { margin: -8px 0 4px; color: var(--muted); font-size: 0.9rem; }
.enquiry label { display: grid; gap: 6px; font-weight: 700; font-size: 0.85rem; color: var(--ink-800); }
.enquiry input, .enquiry select, .enquiry textarea {
  font: inherit;
  font-weight: 400;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus {
  outline: 2px solid var(--red-500);
  outline-offset: 1px;
}

/* ===== Footer ===== */
.footer { background: var(--ink-900); color: #c3c6cb; padding-top: 64px; font-size: 0.92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 48px; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__logo { height: 96px; width: auto; flex-shrink: 0; }
.footer__brand strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--white); line-height: 1.2; }
.footer__brand small { display: block; margin-top: 6px; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver-300); }
.footer h4 { color: var(--silver-300); font-family: var(--display); letter-spacing: 0.1em; font-size: 0.95rem; margin-bottom: 16px; }
.footer a, .footer span { display: block; text-decoration: none; margin-bottom: 6px; }
.footer a:hover { color: var(--silver-300); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 20px 16px;
  font-size: 0.82rem;
}
.footer__bottom span { display: inline; }

/* ===== WhatsApp button ===== */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--maroon-700), var(--ink-900));
  border: 2px solid var(--red-500);
  color: var(--silver-300);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 60;
  transition: transform 0.2s, background 0.25s, color 0.25s;
}
.wa-float:hover { transform: scale(1.08); background: var(--red-500); color: var(--white); }
.wa-float svg { width: 30px; height: 30px; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .header__inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 72px; }
  .hero { --header-h: 73px; }
  .nav { display: none; }
  .brand { justify-self: start; }
  .brand .brand__emblem { height: 50px; }
  .header.is-scrolled .brand img.brand__emblem { height: 44px; }
  .menu-toggle { display: block; }
  .mobile-nav {
    display: grid;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s;
    background: var(--ink-900);
  }
  .mobile-nav.is-open { max-height: calc(100svh - 60px); overflow-y: auto; }
  .mobile-nav a { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .hours__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
  .hero::before { background-size: 240px auto; }
  .slides { width: calc(100% - 32px); }
  .slider-arrow { display: none; }
  .slot { grid-template-columns: 1fr; }
  .slot__time { white-space: normal; }
  .enquiry { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================
   Modern styling & animation layer
   ===================================================== */

/* Accent words: red italic serif with a moving shimmer */
.accent {
  font-family: var(--accent-font);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  background: linear-gradient(100deg, var(--red-500) 0%, var(--red-400) 30%, #f3b6c0 50%, var(--red-400) 70%, var(--red-500) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
  padding-right: 0.06em;
}
@keyframes shimmer { to { background-position: -250% 0; } }
.hero .accent, .cta .accent, .why .accent {
  background-image: linear-gradient(100deg, #b9bcc1 0%, #ffffff 30%, #e9ebee 50%, #ffffff 70%, #b9bcc1 100%);
}

.section-title { font-weight: 800; }
.eyebrow, .signature, .card__banner span, .footer h4 { font-weight: 600; }
.stat strong { font-weight: 800; letter-spacing: -0.03em; }

/* Pill buttons with light sweep */
.btn { border-radius: 999px; position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.btn:hover::before { transform: translateX(120%); }
.btn--primary { box-shadow: 0 8px 24px rgba(176, 16, 46, 0.35); }
.btn--primary:hover { box-shadow: 0 12px 30px rgba(176, 16, 46, 0.5); }
.tab { border-radius: 999px; }

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink-900);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader img { width: min(300px, 70vw); animation: breathe 1.6s ease-in-out infinite; }
.preloader__bar { width: 160px; height: 3px; background: rgba(255, 255, 255, 0.12); border-radius: 3px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 40%; background: var(--red-500); animation: loadbar 1.1s ease-in-out infinite; }
body:not(.is-loading) .preloader { opacity: 0; visibility: hidden; }
@keyframes breathe { 50% { transform: scale(1.05); filter: drop-shadow(0 0 24px rgba(176, 16, 46, 0.45)); } }
@keyframes loadbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 100;
  background: linear-gradient(90deg, var(--maroon-700), var(--silver-300));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* Hero: drifting glow blobs + particles */
.hero { isolation: isolate; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: -1;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob--1 { width: 460px; height: 460px; background: #8a011e; top: -120px; left: -100px; }
.blob--2 { width: 380px; height: 380px; background: #6d7076; bottom: -140px; right: -60px; opacity: 0.35; animation-duration: 22s; }
.blob--3 { width: 300px; height: 300px; background: #5c0014; top: 30%; left: 55%; animation-duration: 15s; }
@keyframes drift {
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-40px, 70px) scale(0.95); }
  100% { transform: translate(30px, -30px) scale(1.05); }
}
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__mountains { transition: transform 0.2s linear; }

/* Hero headline: word-by-word rise */
.split .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; }
.split .word > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i) * 80ms + 150ms); }
.slide.is-active .split .word > span { transform: none; }
.slide .eyebrow, .slide > p, .slide .hero__actions { opacity: 0; transform: translateY(18px); transition: opacity 0.7s, transform 0.7s; }
.slide.is-active .eyebrow { opacity: 1; transform: none; transition-delay: 0.05s; }
.slide.is-active > p:not(.eyebrow) { opacity: 1; transform: none; transition-delay: 0.55s; }
.slide.is-active .hero__actions { opacity: 1; transform: none; transition-delay: 0.75s; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--silver-300);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Ticker */
.ticker {
  background: var(--maroon-700);
  color: var(--white);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}
.ticker__track { display: inline-flex; animation: marquee 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { padding: 0 28px; position: relative; }
.ticker span::after { content: "\2726"; position: absolute; right: -8px; color: var(--grey-500); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Scroll reveal variants with stagger */
.reveal { transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0ms); }
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--zoom { transform: scale(0.92); }
.section-title.reveal::after { width: 0; transition: width 0.8s 0.3s ease; }
.section-title.reveal.is-visible::after { width: 60px; }

/* 3D tilt cards */
.tilt { transition: transform 0.15s ease-out, box-shadow 0.25s !important; transition-delay: 0ms !important; }

/* Feature icons: bounce and glow on hover */
.feature__icon { transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.3s; }
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.12); box-shadow: 0 0 0 8px rgba(176, 16, 46, 0.15); }

/* Card banner shine */
.card__banner::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
}
.card:hover .card__banner::before { left: 130%; }

/* Subjects pop */
.subjects li { transition: background 0.25s, color 0.25s, transform 0.25s; border-radius: 0 6px 6px 0; }
.subjects li:hover { transform: translateX(6px); }
.tab-panel.is-active .subjects li { animation: pop 0.5s both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.96); } }

/* Working-learner slot pulse */
.slot--highlight { position: relative; }
.slot--highlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 2px solid var(--red-500);
  animation: ring 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ring { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.04); } }

/* WhatsApp pulse */
.wa-float { isolation: isolate; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--silver-300);
  pointer-events: none;
  z-index: -1;
  animation: wa 2s ease-out infinite;
}
@keyframes wa { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }

/* Animated gradient CTA */
.cta {
  background: linear-gradient(120deg, var(--ink-900), var(--maroon-700), #5c0014, var(--ink-900));
  background-size: 300% 300%;
  animation: gradientShift 14s ease infinite;
}
@keyframes gradientShift { 50% { background-position: 100% 50%; } }

/* Icons */
.ico { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

.contact-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-left: 0;
  padding-left: 0;
}
.contact-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--maroon-700);
  color: var(--white);
  font-size: 1.3rem;
  box-shadow: 0 0 0 5px rgba(176, 16, 46, 0.18);
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.3s;
}
.contact-list li:hover .contact-icon { transform: rotate(-10deg) scale(1.1); }

.footer .footer__row { display: flex; gap: 10px; align-items: flex-start; }
.footer__row .ico { color: var(--silver-300); margin-top: 0.3em; }
.footer__row span { display: inline; margin: 0; }

@media (max-width: 600px) {
  .blob { filter: blur(50px); }
  .blob--1 { width: 280px; height: 280px; }
  .blob--2 { width: 240px; height: 240px; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .split .word > span, .slide .eyebrow, .slide > p, .slide .hero__actions { transform: none !important; opacity: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .preloader { display: none; }
}

.nowrap { white-space: nowrap; }

/* =====================================================
   Small phones (down to 240px, e.g. Samsung Galaxy Pocket)
   ===================================================== */
@media (max-width: 600px) {
  .hero { padding: 40px 0 72px; }
  .slide h1, .slide h2 { font-size: clamp(1.5rem, 8.2vw, 2.4rem); }
  .slide p { font-size: 0.95rem; }
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.18em; }
  .slider-dots { bottom: 24px; }
  .brand { min-width: 0; }
  .brand__text { min-width: 0; }
  .stat strong { font-size: clamp(1.4rem, 7vw, 2rem); }
}

@media (max-width: 600px) and (min-width: 280px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .stats__grid .stat:first-child { grid-column: 1 / -1; }
  .stats__grid .stat:last-child strong { font-size: clamp(1.05rem, 5.4vw, 1.6rem); padding-top: 0.25em; }
  .stat span { font-size: 0.68rem; letter-spacing: 0.08em; display: block; }
  .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .subjects li { padding: 12px 12px; font-size: 0.88rem; line-height: 1.3; }
}

@media (max-width: 420px) {
  .hero__actions { flex-direction: column; align-items: stretch; width: min(100%, 260px); margin-inline: auto; }
  .hero__actions .btn { text-align: center; }
  .section-sub { margin-bottom: 36px; }
  .tab { padding: 10px 18px; font-size: 0.78rem; }
  .enquiry { padding: 22px 18px; }
  .feature { padding: 26px 20px; }
}

@media (max-width: 360px) {
  .section { padding: 52px 0; }
  .container { width: calc(100% - 24px); }
  .header__inner { min-height: 60px; gap: 10px; }
  .hero { --header-h: 61px; padding: 28px 0 56px; }
  .brand { gap: 8px; }
  .brand .brand__emblem, .header.is-scrolled .brand img.brand__emblem { height: 38px; }
  .brand__text strong { font-size: 0.95rem; }
  .brand__text small { font-size: 0.5rem; letter-spacing: 0.1em; }
  .menu-toggle { padding: 6px; }
  .menu-toggle span { width: 22px; }
  .mobile-nav a { padding: 12px; font-size: 0.8rem; }
  .slide p { font-size: 0.85rem; line-height: 1.55; margin-bottom: 1.2em; }
  .btn { padding: 0.75em 1.2em; font-size: 0.72rem; }
  .section-title { font-size: 1.5rem; }
  .card__banner { height: 110px; }
  .card__body { padding: 18px 18px 22px; }
  .contact-list li { gap: 12px; }
  .contact-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .contact-list li > div { min-width: 0; overflow-wrap: anywhere; }
  .slot { padding: 16px; }
  .ticker { font-size: 0.78rem; padding: 12px 0; }
  .wa-float { width: 46px; height: 46px; right: 12px; bottom: 12px; }
  .wa-float svg { width: 24px; height: 24px; }
  .footer { padding-top: 44px; }
}

/* Tiny screens: 240–300px wide (Galaxy Pocket) */
@media (max-width: 300px) {
  body { font-size: 14px; }
  .header__inner { min-height: 52px; }
  .hero { --header-h: 53px; padding: 18px 0 44px; }
  .brand .brand__emblem, .header.is-scrolled .brand img.brand__emblem { height: 30px; }
  .brand__text strong { font-size: 0.8rem; }
  .brand__text small { display: none; }
  .eyebrow { font-size: 0.58rem; letter-spacing: 0.12em; margin-bottom: 0.6em !important; }
  .slide h1, .slide h2 { font-size: 1.3rem; margin-bottom: 0.35em; }
  .slide p { font-size: 0.78rem; margin-bottom: 1em; }
  .hero__actions { gap: 8px; }
  .btn { padding: 0.65em 1em; font-size: 0.66rem; letter-spacing: 0.08em; }
  .slider-dots { bottom: 14px; }
  .section-title { font-size: 1.3rem; }
  .lead { font-size: 0.98rem; }
  .subjects li { padding: 10px 12px; }
  .tab { padding: 8px 12px; font-size: 0.68rem; }
  .enquiry { padding: 18px 14px; }
}

/* Short screens (small phones, landscape): trim the hero so it still fits */
@media (max-width: 960px) and (max-height: 420px) {
  .slide > p:not(.eyebrow) { display: none; }
  .hero { padding-top: 16px; padding-bottom: 40px; }
}

/* =====================================================
   Why enrol with us
   ===================================================== */
.why {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(138, 1, 30, 0.45), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(138, 1, 30, 0.25), transparent 50%),
    var(--ink-900);
  color: #c9ccd1;
}
.why .section-title { color: var(--white); }
.why .section-sub { color: #a9adb3; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 22px;
}
.why-card {
  position: relative;
  padding: 30px 28px 28px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.35s, border-color 0.35s, background 0.35s;
}
.why-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(var(--red-500), var(--maroon-800));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(176, 16, 46, 0.5);
  background: linear-gradient(160deg, rgba(138, 1, 30, 0.28), rgba(255, 255, 255, 0.03));
}
.why-card:hover::after { transform: scaleY(1); }
.why-card__num {
  position: absolute;
  top: 14px; right: 20px;
  font-family: var(--accent-font);
  font-style: italic;
  font-size: 3rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  transition: color 0.35s;
}
.why-card:hover .why-card__num { color: rgba(210, 58, 82, 0.45); }
.why-card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--maroon-700);
  box-shadow: 0 8px 20px rgba(138, 1, 30, 0.35);
  margin-bottom: 18px;
  transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.why-card:hover .why-card__icon { transform: rotate(-8deg) scale(1.08); }
.why-card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { color: var(--white); font-size: 1.12rem; margin-bottom: 0.45em; }
.why-card p { margin: 0; font-size: 0.95rem; line-height: 1.65; }
.why__cta { text-align: center; margin-top: 44px; }

@media (max-width: 360px) {
  .why-card { padding: 24px 20px 22px; }
  .why-card__num { font-size: 2.4rem; }
}
