/* ==========================================================================
   Study Point Tuition Center
   Global stylesheet — Step 1: Header
   Brand colors sampled from the logo: blue #002F9C / green #03B401
   ========================================================================== */

:root {
  /* Brand */
  --blue-800: #00246f;
  --blue-700: #002f9c;
  --blue-600: #0b45b8;
  --blue-50: #eef3ff;
  --blue-25: #f7f9ff;

  --green-700: #056a04;
  --green-600: #067a05;
  --green-500: #03b401;
  --green-50: #ecfdf3;

  /* Neutrals */
  --ink: #0b1220;
  --body: #475569;
  --muted: #475569;
  --line: #e6ebf2;
  --line-soft: #eef2f7;
  --surface: #f8fafc;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Type */
  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Effects */
  --shadow-cta: 0 8px 20px rgba(6, 122, 5, 0.22);
  --shadow-header: 0 12px 32px rgba(11, 18, 32, 0.09);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Header metrics */
  --header-h: 84px;
  --header-h-scrolled: 72px;
  --mobile-header-h: 68px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue-700);
  color: #fff;
  font: 600 13px/1 var(--font-body);
  transform: translate(-50%, -160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: 4px;
}

body.menu-open {
  overflow: hidden;
}

/* Motto separator dot (used in the mobile drawer) */

.motto-dot {
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(3, 180, 1, 0.18);
}

/* --------------------------------------------------------------------------
   Main header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
  border-bottom-color: transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2.5vw, 2rem);
  height: var(--header-h);
}

/* Brand lockup */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  border-radius: var(--radius-md);
}

.brand__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__name {
  color: var(--blue-700);
  font: 800 23px/1 var(--font-head);
  letter-spacing: -0.02em;
}

.brand__sub {
  color: var(--muted);
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Desktop navigation */

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: #334155;
  font: 500 1rem/1 var(--font-body);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--green-500);
  transform: translateX(-50%);
  transition: width 0.22s var(--ease);
}

.nav__link:hover {
  color: var(--blue-700);
  background: var(--blue-25);
}

.nav__link:hover::after {
  width: 16px;
}

.nav__link.is-active {
  color: var(--blue-700);
  font-weight: 600;
}

.nav__link.is-active::after {
  width: 18px;
}

/* Actions */

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

.header__actions .btn {
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-md);
  font: 600 14.5px/1 var(--font-body);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--enquire {
  background: var(--green-600);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn--enquire:hover {
  background: var(--green-700);
  box-shadow: 0 12px 24px rgba(6, 122, 5, 0.28);
  transform: translateY(-1px);
}

.btn--enquire:active {
  box-shadow: 0 4px 12px rgba(6, 122, 5, 0.24);
  transform: translateY(0);
}

.btn--block {
  width: 100%;
}

/* Hamburger */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  background: var(--surface);
  border-color: #d6dee9;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease),
    top 0.28s var(--ease);
}

.nav-toggle__bars span:nth-child(1) {
  top: 0;
}

.nav-toggle__bars span:nth-child(2) {
  top: 6px;
}

.nav-toggle__bars span:nth-child(3) {
  top: 12px;
}

.nav-toggle.is-open .nav-toggle__bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}

.nav-toggle.is-open .nav-toggle__bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  transition: visibility 0s linear 0.32s;
}

.mobile-nav.is-open {
  visibility: visible;
  transition-delay: 0s;
}

.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 38, 0.48);
  opacity: 0;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: opacity 0.28s var(--ease);
}

.mobile-nav.is-open .mobile-nav__overlay {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(88vw, 380px);
  padding: calc(var(--mobile-header-h) + 22px) 24px 28px;
  background: #fff;
  box-shadow: -16px 0 48px rgba(11, 18, 32, 0.16);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
}

.mobile-nav__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font: 600 15.5px/1.2 var(--font-body);
  transition: color 0.2s var(--ease);
}

.mobile-nav__links a svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: #9aa7b8;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.mobile-nav__links a:hover,
.mobile-nav__links a[aria-current="page"] {
  color: var(--blue-700);
}

.mobile-nav__links a:hover svg {
  color: var(--green-500);
  transform: translateX(3px);
}

.mobile-nav__links a[aria-current="page"] svg {
  color: var(--green-600);
}

.mobile-nav__footer {
  display: grid;
  gap: 16px;
  margin-top: auto;
  padding-top: 28px;
}

.mobile-nav__motto {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 700 10.5px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mobile-nav__motto .motto-dot {
  box-shadow: none;
}

.mobile-nav__contact {
  display: grid;
  gap: 11px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.mobile-nav__contact a,
.mobile-nav__contact span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.mobile-nav__contact svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--blue-700);
}

@media (min-width: 1101px) {
  .mobile-nav {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Header — responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header__actions .btn {
    display: none;
  }

  .header__inner {
    height: var(--mobile-header-h);
    gap: 16px;
  }

  .brand__logo {
    width: 56px;
    height: 56px;
  }

  .brand__name {
    font-size: 20px;
  }

  .brand__sub {
    font-size: 10px;
    letter-spacing: 0.18em;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 10px;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
  }

  .brand__name {
    font-size: 19px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .mobile-nav__panel {
    width: min(92vw, 380px);
    padding-inline: 20px;
  }
}

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */

.page-hero {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2.75rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(60% 130% at 88% 0%, rgba(3, 180, 1, 0.07), transparent 60%),
    radial-gradient(55% 130% at 8% 10%, rgba(0, 47, 156, 0.07), transparent 60%), #fff;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #dde6ff;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
}

.page-hero h1 {
  margin-top: 12px;
  color: var(--ink);
  font: 800 2.5rem / 1.2 var(--font-head);
  letter-spacing: -0.03em;
}

.page-hero p:not(.home-kicker) {
  max-width: 56ch;
  margin-top: 14px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact {
  padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

/* Contact page: pull the hero and details card closer to the header */
.page-contact .page-hero {
  padding-top: clamp(2rem, 3.5vw, 2.5rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.25rem);
  border-bottom: 0;
}

.page-contact .page-hero p:not(.home-kicker) {
  max-width: none;
}

.page-contact .contact {
  padding-top: 7px;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}

.contact-card,
.map-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.06);
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.contact-info {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-info__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.contact-info__row:last-child {
  border-bottom: 0;
}

.contact-info__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
}

.contact-info__img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.contact-info__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contact-info__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 600 11px/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-info__value {
  color: var(--ink);
  font: 600 16px/1.35 var(--font-body);
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}

a.contact-info__value:hover {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-info__phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.contact-info__phone {
  display: inline-flex;
  align-items: center;
}

.contact-info__phone .contact-info__value {
  white-space: nowrap;
}

.contact-info__phone:hover .contact-info__value {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-info__value--plain {
  color: var(--body);
  font-weight: 500;
}

.contact-card__social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.contact-card__social-label {
  color: var(--muted);
  font: 600 11px/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-social {
  display: flex;
  gap: 10px;
}

.contact-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-social__link:hover {
  border-color: #c9d6f5;
  background: var(--blue-25);
  box-shadow: 0 8px 18px rgba(11, 18, 32, 0.08);
  transform: translateY(-2px);
}

.contact-social__link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Map card */

.map-card {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.map-card__frame {
  position: relative;
  margin-top: 22px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--blue-25);
}

.map-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card__place {
  position: absolute;
  z-index: 1;
  top: 6px;
  left: 6px;
  width: min(315px, calc(100% - 24px));
  padding: 17px 16px 16px;
  border: 1px solid #d9dde5;
  background: #fff;
  box-shadow: 0 2px 7px rgba(11, 18, 32, 0.22);
}

.map-card__place h3 {
  color: #202124;
  font: 600 17px/1.3 var(--font-body);
}

.map-card__place p {
  margin-top: 4px;
  color: #5f6368;
  font: 400 14px/1.4 var(--font-body);
}

.map-card__place a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font: 500 14px/1 var(--font-body);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.16);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.map-card__place a:hover {
  background: #1558b0;
  box-shadow: 0 2px 5px rgba(11, 18, 32, 0.22);
}

.map-card__place a svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.map-card__title {
  color: var(--ink);
  font: 800 clamp(1.2rem, 2vw, 1.45rem) / 1.2 var(--font-head);
  letter-spacing: -0.02em;
}

/* Other branches */

.branches {
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.branches__head {
  max-width: 56ch;
}

.branches__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-700);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.branches__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
}

.branches__title {
  margin-top: 12px;
  color: var(--ink);
  font: 800 2.5rem / 1.2 var(--font-head);
  letter-spacing: -0.025em;
}

.branches__text {
  margin-top: 10px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.branches__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.branch-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 14px 32px rgba(11, 18, 32, 0.05);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.branch-card:hover {
  border-color: #d7e2f8;
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.08);
  transform: translateY(-2px);
}

.branch-card__pin {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.branch-card:hover .branch-card__pin {
  background: var(--blue-700);
  color: var(--blue-50);
}

.branch-card__pin svg {
  width: 18px;
  height: 18px;
}

.branch-card__body {
  min-width: 0;
}

.branch-card__name {
  color: var(--ink);
  font: 800 18px/1.25 var(--font-head);
  letter-spacing: -0.015em;
}

.branch-card__area {
  margin-top: 4px;
  color: var(--body);
  font-size: 1rem;
}

.branch-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--ink);
  font: 700 13.5px/1 var(--font-body);
}

.branch-card__link img {
  width: 14px;
  height: 14px;
}

.branch-card__link:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.about {
  padding: clamp(2rem, 4vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  background-color: #fff;
  background-image: linear-gradient(rgba(35, 87, 145, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 87, 145, 0.08) 1px, transparent 1px);
  background-size: 84px 84px;
}

/* About page: mirror the contact page's vertical rhythm and grid gutter */
.page-about .page-hero {
  padding-top: clamp(2rem, 3.5vw, 2.5rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.25rem);
  border-bottom: 0;
}

.page-about .page-hero p:not(.home-kicker) {
  max-width: none;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.65;
}

.page-about .about {
  padding-top: 0;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 4vw, 4.5rem);
  align-items: center;
}

.about__media {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: clamp(14px, 2vw, 20px);
  background: #fff;
  box-shadow: 0 24px 56px rgba(11, 18, 32, 0.12);
}

.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.about__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

/* Brand card (logo + name) in place of a photo */
.about__media--brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  aspect-ratio: auto;
  min-height: 340px;
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
  background: radial-gradient(circle at 50% 38%, var(--blue-50) 0%, #fff 62%);
  text-align: center;
}

.about__logo {
  width: clamp(150px, 18vw, 210px);
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 47, 156, 0.14));
}

.about__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.about__brand-name {
  color: var(--blue-700);
  font: 800 clamp(1.9rem, 3vw, 2.4rem) / 1 var(--font-head);
  letter-spacing: -0.02em;
}

.about__brand-sub {
  color: var(--muted, #64748b);
  font: 700 13px / 1 var(--font-body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.about__brand-motto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font: 700 12px / 1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about__text {
  max-width: 62ch;
  margin-top: clamp(1rem, 1.5vw, 1.5rem);
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.about__accent {
  font-weight: 700;
}

.about__accent--blue {
  color: var(--blue-700);
}

.about__accent--green {
  color: var(--green-600);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: clamp(2rem, 3vw, 3rem) 0 0;
}

.about__stat {
  padding: clamp(1.15rem, 2vw, 1.5rem) clamp(1.25rem, 2vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 2px 5px rgba(11, 18, 32, 0.1);
}

.about__stat dt {
  color: var(--muted);
  font: 500 1rem/1.2 var(--font-body);
}

.about__stat dd {
  margin: 7px 0 0;
  color: var(--ink);
  font: 800 clamp(1.15rem, 2vw, 1.4rem) / 1.2 "Outfit", sans-serif;
  letter-spacing: -0.02em;
}

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 700px) {
  .branches__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .about {
    background-size: 56px 56px;
  }

  .about__grid {
    gap: 3.25rem;
  }

  .about__media {
    aspect-ratio: 4 / 3;
    padding: 14px;
  }

  /* Logo card: let it grow to fit its content instead of a fixed photo shape */
  .about__media--brand {
    aspect-ratio: auto;
    min-height: 0;
    gap: 14px;
    padding: 2rem 1.25rem;
  }

  .about__logo {
    width: clamp(120px, 38vw, 160px);
  }

  .about__brand-name {
    font-size: 1.75rem;
  }

  .about__brand-sub {
    font-size: 12px;
    letter-spacing: 0.22em;
  }

  .about__brand-motto {
    gap: 8px;
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .about__text {
    font-size: 1rem;
    line-height: 1.65;
  }

  .about__stats {
    gap: 1rem;
    margin-top: 2rem;
  }

  .about__stat {
    padding: 16px 18px;
  }

  .about__stat dt {
    font-size: 1rem;
  }

  .about__stat dd {
    font-size: 1rem;
  }

  .map-card__frame {
    aspect-ratio: auto;
    height: 430px;
  }

  .map-card__place {
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
  }
}

@media (max-width: 400px) {
  .contact-card {
    padding: 20px 16px;
  }

  .contact-info__row {
    gap: 10px;
  }

  .contact-info__icon {
    width: 32px;
    height: 32px;
  }

  .contact-info__img {
    width: 20px;
    height: 20px;
  }

  .contact-info__value {
    font-size: 15px;
  }
}

/* --------------------------------------------------------------------------
   Courses page
   -------------------------------------------------------------------------- */

/* Mirror the contact/about page rhythm */
.page-gallery .page-hero,
.page-faculty .page-hero,
.page-courses .page-hero {
  padding-top: clamp(2rem, 3.5vw, 2.5rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.25rem);
  border-bottom: 0;
}

.page-courses .page-hero p:not(.home-kicker) {
  max-width: none;
}

.page-courses .page-hero__eyebrow {
  border-color: #e0e4df;
  background: #fff;
  color: var(--ink);
}

.courses {
  padding: clamp(1.25rem, 3vw, 2rem) 0 0;
  background:
    radial-gradient(circle at 5% 12%, rgba(3, 180, 1, 0.055), transparent 24%),
    linear-gradient(180deg, #fbfcfb 0%, #fff 38%);
}

.courses__lower {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding: clamp(3rem, 6.5vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background: #fff;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid #e0e5df;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 20px 44px rgba(11, 18, 32, 0.065);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.course-card:hover {
  border-color: #cbd0ca;
  box-shadow: 0 26px 52px rgba(11, 18, 32, 0.095);
  transform: translateY(-3px);
}

.course-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 2.3 / 1;
  overflow: hidden;
  border-bottom: 1px solid #e5e8e4;
  background:
    radial-gradient(circle at 22% 28%, rgba(11, 18, 32, 0.045) 0 38px, transparent 39px),
    radial-gradient(circle at 82% 72%, rgba(11, 18, 32, 0.035) 0 56px, transparent 57px),
    linear-gradient(145deg, #f8f9f7, #eff1ee);
}

.course-card__visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s var(--ease);
}

.course-card:hover .course-card__visual img {
  transform: translateY(-3px) scale(1.04);
}

.course-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem);
}

.course-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
}

.course-card__tag {
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font: 700 10.5px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(5, 106, 4, 0.055);
}

.course-card__title {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  color: var(--ink);
  font: 800 clamp(1.35rem, 2.1vw, 1.6rem) / 1.15 var(--font-head);
  letter-spacing: -0.025em;
}

.course-card__text {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  max-width: 46ch;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.course-card__chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.course-card__chips li {
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4fff7, var(--green-50));
  color: var(--green-700);
  font: 600 12.5px/1.2 var(--font-body);
}

/* Also offered */


.courses__also-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font: 800 2.5rem / 1.2 var(--font-head);
  letter-spacing: -0.02em;
}

.course-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.course-mini {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.45rem, 2.7vw, 1.9rem);
  border: 1px solid #e0e5df;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(11, 18, 32, 0.035), transparent 34%),
    #fff;
  box-shadow: 0 16px 36px rgba(11, 18, 32, 0.055);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.course-mini:hover {
  border-color: #cbd0ca;
  box-shadow: 0 22px 44px rgba(11, 18, 32, 0.085);
  transform: translateY(-2px);
}

.about-why {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--surface);
}


.about-why__head h2 {
  margin-top: 12px;
  color: var(--ink);
  font: 800 2.5rem / 1.2 var(--font-head);
  letter-spacing: -0.04em;
}

.about-why__head p:not(.home-kicker) {
  margin-top: 14px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.about-why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

.about-why__item {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.4rem, 2.5vw, 1.75rem);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.about-why__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 16px 36px rgba(11, 18, 32, 0.055);
  transition: inset 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.about-why__item.is-visible {
  opacity: 1;
  transform: scale(1);
}

.about-why__item.is-visible:hover::before {
  inset: -10px 0;
  box-shadow: 0 20px 44px rgba(11, 18, 32, 0.09);
}

.about-why__item:nth-child(1) { transition-delay: 0s; }
.about-why__item:nth-child(2) { transition-delay: 0.12s; }
.about-why__item:nth-child(3) { transition-delay: 0.24s; }
.about-why__item:nth-child(4) { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .about-why__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.about-why__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.about-why__item.is-visible:hover .about-why__icon {
  background: var(--green-700);
  color: var(--green-50);
}

.about-why__icon svg {
  width: 34px;
  height: 34px;
}

.about-why__item h3 {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font: 800 1.08rem/1.3 var(--font-head);
}

.about-why__item p {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.about-why__item .home-text-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 14px;
}

@media (max-width: 900px) {
  .about-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-why__item:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .about-why__grid {
    grid-template-columns: 1fr;
  }

  .about-why__item:last-child {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .about-why__head h2 {
    font-size: 2rem;
  }
}

.course-mini--photo {
  padding: 0;
  overflow: hidden;
}

.course-mini__visual {
  width: 100%;
  aspect-ratio: 2.3 / 1;
  overflow: hidden;
}

.course-mini__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-mini__body {
  padding: clamp(1.45rem, 2.7vw, 1.9rem);
}

.course-mini--photo .course-mini__title {
  margin-top: 0;
}

.course-mini__number {
  padding: 7px 9px;
  border-radius: 9px;
  background: #f1f3f0;
  color: #70786f;
  font: 800 10px/1 var(--font-head);
  letter-spacing: 0.08em;
}

.course-mini__title {
  margin: 20px 0 0;
  color: var(--ink);
  font: 800 1.08rem/1.3 var(--font-head);
}

.course-mini__text {
  margin-top: 8px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.course-mini__note {
  margin-top: 18px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f1f3f0;
  color: var(--body);
  font: 600 12px/1.4 var(--font-body);
}

/* Enquiry call-to-action */

.courses__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 20px;
  background: var(--ink);
}

.courses__cta .home-kicker {
  color: #98b5ff;
}

.courses__cta-title {
  margin-top: 12px;
  color: #fff;
  font: 800 2.5rem / 1.2 var(--font-head);
  letter-spacing: -0.04em;
}

@media (max-width: 700px) {
  .courses__cta-title {
    font-size: 2rem;
  }
}

.courses__cta-text {
  margin-top: 12px;
  max-width: 64ch;
  color: #b8c2d2;
  font-size: 1rem;
  line-height: 1.65;
}

.courses__cta .btn {
  flex: none;
}

@media (max-width: 900px) {
  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-mini:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .courses__cta {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .course-mini-grid {
    grid-template-columns: 1fr;
  }

  .course-mini:last-child {
    grid-column: auto;
  }

  .courses__cta .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Achievements page
   -------------------------------------------------------------------------- */

/* Hero: editorial split with a compact highlights panel */

.page-achievements .page-hero {
  padding-top: clamp(2rem, 3.5vw, 2.5rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.25rem);
  border-bottom: 0;
}

.page-achievements .page-hero p:not(.home-kicker) {
  max-width: none;
}

.ach-hero {
  display: grid;
}

.ach-hero__lead {
  min-width: 0;
}

.ach-hero__aside {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fbfdff, #f4f8ff);
}

.ach-hero__aside-title {
  margin: 0;
  color: var(--blue-700);
  font: 700 10.5px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ach-hero__list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ach-hero__list li {
  position: relative;
  padding-left: 17px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.ach-hero__list li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
}

/* Slider card */

.achievements {
  padding: 7px 0 clamp(3rem, 6vw, 4.5rem);
}

.ach-slider {
  max-width: 1040px;
  margin-inline: auto;
}

.ach-card {
  overflow: hidden;
  border: 1px solid #e3e9f3;
  border-radius: clamp(16px, 2vw, 22px);
  background: #fff;
  box-shadow: 0 22px 55px rgba(11, 18, 32, 0.07);
}

.ach-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 2.4vw, 24px);
  border-bottom: 1px solid #eef2f8;
}

.ach-card__eyebrow {
  margin: 0;
  color: var(--muted);
  font: 700 10.5px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ach-card__count {
  margin: 0;
  color: var(--blue-700);
  font: 800 12px/1 var(--font-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.ach-slider__viewport {
  overflow: hidden;
  background: #f4f7ff;
  touch-action: pan-y;
}

.ach-slider__viewport:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: -2px;
}

.ach-slider__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}

.ach-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.ach-slide__figure {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.75fr);
  height: 100%;
  margin: 0;
}

.ach-slide__zoom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(280px, min(32vw, 50vh), 430px);
  padding: clamp(10px, 1.8vw, 20px);
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.ach-slide__zoom:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: -4px;
}

.ach-slide__img {
  display: block;
  flex: none;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(11, 18, 32, 0.15);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.ach-slide__hint {
  position: absolute;
  right: clamp(14px, 2vw, 22px);
  bottom: clamp(14px, 2vw, 22px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-700);
  font: 600 11.5px/1 var(--font-body);
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.12);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
}

.ach-slide__hint svg {
  width: 14px;
  height: 14px;
}

.ach-slide__zoom:hover .ach-slide__hint,
.ach-slide__zoom:focus-visible .ach-slide__hint {
  opacity: 1;
  transform: translateY(0);
}

.ach-slide__caption {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: clamp(20px, 2.8vw, 32px);
  border-left: 1px solid #eef2f8;
  background: #fff;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  text-align: left;
}

.ach-slide__caption-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ach-slide__title {
  color: var(--ink);
  font: 700 1rem/1.3 var(--font-head);
}

.ach-slide__caption-row {
  display: flex;
  align-items: center;
}

/* Controls */

.ach-card__foot {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(14px, 2vw, 20px);
  border-top: 1px solid #eef2f8;
  background: #fff;
}

.ach-slider__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
  color: var(--blue-700);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}

.ach-slider__arrow svg {
  width: 20px;
  height: 20px;
}

.ach-slider__arrow:hover {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: #fff;
  transform: translateY(-1px);
}

.ach-slider__arrow:active {
  transform: translateY(0);
}

.ach-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ach-slider__dot {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ach-slider__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid #b9c8ea;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.ach-slider__dot:hover::before {
  border-color: var(--blue-700);
}

.ach-slider__dot:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: -2px;
  border-radius: 999px;
}

.ach-slider__dot.is-active::before {
  width: 24px;
  border-color: var(--blue-700);
  background: var(--blue-700);
}

.ach-slider__status {
  margin-top: 10px;
  color: var(--muted);
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.ach-slider__closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 20px;
  background: var(--ink);
}

.ach-slider__closing .home-kicker {
  color: #98b5ff;
}

.ach-slider__closing-title {
  margin-top: 12px;
  color: #fff;
  font: 800 2.5rem / 1.2 var(--font-head);
  letter-spacing: -0.04em;
}

.ach-slider__closing-text {
  margin-top: 12px;
  max-width: 64ch;
  color: #b8c2d2;
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 700px) {
  .ach-slider__closing-title {
    font-size: 2rem;
  }

  .ach-slider__closing {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Lightbox */

body.is-lightbox-open {
  overflow: hidden;
}

.ach-lightbox {
  width: min(96vw, 1080px);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(4, 10, 24, 0.35);
}

.ach-lightbox::backdrop {
  background: rgba(7, 14, 30, 0.74);
  backdrop-filter: blur(3px);
}

.ach-lightbox__panel {
  display: flex;
  flex-direction: column;
  max-height: 94vh;
  padding: clamp(12px, 2vw, 18px);
}

.ach-lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
}

.ach-lightbox__count {
  color: var(--body);
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.08em;
}

.ach-lightbox__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.ach-lightbox__close svg {
  width: 18px;
  height: 18px;
}

.ach-lightbox__close:hover {
  border-color: #d7e2f8;
  background: #f1f5ff;
}

.ach-lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  padding: clamp(8px, 2vw, 16px);
  border-radius: 12px;
  background: #f7f9ff;
}

.ach-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
}

.ach-lightbox__arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--blue-700);
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.ach-lightbox__arrow svg {
  width: 19px;
  height: 19px;
}

.ach-lightbox__arrow:hover {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: #fff;
}

.ach-lightbox__arrow--prev {
  left: clamp(8px, 2vw, 16px);
}

.ach-lightbox__arrow--next {
  right: clamp(8px, 2vw, 16px);
}

.ach-lightbox__caption {
  max-width: 72ch;
  margin: 14px auto 0;
  padding: 0 6px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

@media (hover: none) {
  .ach-slide__hint {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .ach-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ach-hero__aside {
    max-width: 560px;
  }

  .ach-hero__list {
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
  }
}

@media (max-width: 760px) {
  .ach-slide__figure {
    grid-template-columns: 1fr;
  }

  .ach-slide__zoom {
    height: clamp(220px, 68vw, 400px);
    padding: 10px;
  }

  .ach-slide__caption {
    height: auto;
    min-height: 76px;
    border-top: 1px solid #eef2f8;
    border-left: 0;
    padding: 14px 16px;
    font-size: 1rem;
  }
}

@media (max-width: 700px) {
  .ach-card__foot {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    padding: 12px 14px;
  }

  .ach-slider__arrow {
    width: 40px;
    height: 40px;
  }

  .ach-lightbox__img {
    max-height: 64vh;
  }

  .ach-lightbox__arrow {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .ach-hero__list {
    grid-template-columns: 1fr;
  }

  .ach-slide__zoom {
    height: clamp(190px, 60vw, 300px);
  }

  .ach-slide__caption {
    min-height: 88px;
    font-size: 1rem;
  }

  .ach-slider__dots {
    gap: 1px;
  }

  .ach-lightbox__stage {
    padding: 6px;
  }

  .ach-lightbox__arrow--prev {
    left: 6px;
  }

  .ach-lightbox__arrow--next {
    right: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ach-slider__track,
  .ach-slide__hint,
  .ach-slider__arrow,
  .ach-slider__dot::before {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Shared page surface
   -------------------------------------------------------------------------- */

/* One background system for the inner pages: white with a faint grid,
   matching the About page treatment. */

.about,
.contact,
.faculty {
  background-color: #fff;
  background-image: linear-gradient(rgba(35, 87, 145, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 87, 145, 0.08) 1px, transparent 1px);
  background-size: 84px 84px;
}

/* Gallery page */
.gallery {
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(circle at 95% 8%, rgba(0, 47, 156, 0.05), transparent 26%),
    radial-gradient(circle at 5% 40%, rgba(3, 180, 1, 0.045), transparent 24%),
    #fff;
}

/* Filter buttons */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.gallery-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 700 0.95rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.gallery-filter__btn:hover {
  border-color: #c9d6f5;
}

.gallery-filter__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.75rem;
}

.gallery-filter__count:empty {
  display: none;
}

.gallery-filter__btn[aria-pressed="true"] {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 47, 156, 0.22);
}

.gallery-filter__btn[aria-pressed="true"] .gallery-filter__count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.gallery-filter__btn:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 2px;
}

/* Mixed-size grid */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 230px);
  grid-auto-flow: dense;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__item {
  position: relative;
  min-width: 0;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item[hidden] {
  display: none;
}

.gallery__item.is-showing {
  animation: gallery-in 0.45s var(--ease) both;
}

@keyframes gallery-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

.gallery__open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(11, 18, 32, 0.08);
  cursor: zoom-in;
}

.gallery__open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__open::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 20, 60, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.gallery__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: clamp(0.9rem, 2vw, 1.25rem);
  color: #fff;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.gallery__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-500);
  font: 700 0.7rem/1.2 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery__text {
  font: 800 clamp(0.95rem, 1.4vw, 1.1rem)/1.3 var(--font-head);
}

.gallery__open:hover img,
.gallery__open:focus-visible img {
  transform: scale(1.06);
}

.gallery__open:hover::after,
.gallery__open:focus-visible::after,
.gallery__open:hover .gallery__caption,
.gallery__open:focus-visible .gallery__caption {
  opacity: 1;
  transform: none;
}

.gallery__open:focus-visible {
  outline: 3px solid var(--blue-700);
  outline-offset: 3px;
}

/* Touch screens have no hover: always show the caption */
@media (hover: none) {
  .gallery__open::after,
  .gallery__caption {
    opacity: 1;
    transform: none;
  }
}

.gallery__empty {
  padding: 3rem 0;
  color: var(--body);
  text-align: center;
}

@media (max-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(140px, 30vw, 220px);
  }
}

@media (max-width: 480px) {
  .gallery__grid {
    grid-auto-rows: 130px;
  }

  .gallery__item--big {
    grid-row: span 2;
  }

  .gallery__tag {
    display: none;
  }
}

/* Photo viewer */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(3.5rem, 6vw, 4.5rem) clamp(0.75rem, 6vw, 5.5rem) clamp(5.5rem, 9vw, 6.5rem);
  border: 0;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(5, 12, 28, 0.92);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.lightbox__img.is-changing {
  animation: lightbox-in 0.35s var(--ease);
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}

.lightbox__bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(1rem, 6vw, 5.5rem) 24px;
}

.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 700 1rem/1.4 var(--font-head);
}

.lightbox__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-500);
  font: 700 0.7rem/1.2 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox__count {
  flex: none;
  color: rgba(255, 255, 255, 0.7);
  font: 600 0.9rem/1 var(--font-body);
}

.lightbox__btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

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

.lightbox__btn svg {
  width: 22px;
  height: 22px;
}

.lightbox__btn--prev {
  top: 50%;
  left: clamp(0.5rem, 2vw, 1.5rem);
  translate: 0 -50%;
}

.lightbox__btn--next {
  top: 50%;
  right: clamp(0.5rem, 2vw, 1.5rem);
  translate: 0 -50%;
}

.lightbox__btn--close {
  top: clamp(0.75rem, 2vw, 1.25rem);
  right: clamp(0.75rem, 2vw, 1.25rem);
}

@media (max-width: 600px) {
  .lightbox__btn--prev,
  .lightbox__btn--next {
    top: auto;
    bottom: 76px;
    translate: none;
  }

  .lightbox__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__item.is-showing,
  .lightbox__img.is-changing {
    animation: none;
  }

  .gallery__open img,
  .gallery__caption,
  .gallery__open::after {
    transition: none;
  }
}

/* Buttons */

.btn--outline {
  border: 1px solid #d7e1f1;
  background: #fff;
  color: var(--blue-700);
}

.btn--outline:hover {
  border-color: var(--blue-700);
  background: var(--blue-25);
}

/* --------------------------------------------------------------------------
   Motto: Dream, Believe, Achieve
   -------------------------------------------------------------------------- */

.motto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.25rem);
  padding: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 14px 32px rgba(11, 18, 32, 0.05);
}

.motto__step {
  min-width: 0;
}

.motto__word {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-700);
  font: 800 1rem / 1.2 var(--font-head);
  letter-spacing: -0.01em;
}

.motto__word::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}

.motto__text {
  display: block;
  margin-top: 8px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.motto-band {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 0;
}

/* --------------------------------------------------------------------------
   Home page
   -------------------------------------------------------------------------- */

.home-hero {
  padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #dde6ff;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
}

.home-hero h1 {
  margin-top: 20px;
  color: var(--ink);
  font: 800 clamp(2.1rem, 4.6vw, 3.2rem) / 1.1 var(--font-head);
  letter-spacing: -0.035em;
}

.home-hero h1 span {
  color: var(--blue-700);
}

.home-hero h1 span:nth-child(2) {
  color: var(--ink);
}

.home-hero h1 span:nth-child(3) {
  color: var(--green-600);
}

.home-hero__lead > p {
  max-width: 52ch;
  margin-top: 16px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.home-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--body);
  font-size: 13.5px;
}

.home-hero__facts li {
  position: relative;
  padding-left: 18px;
}

.home-hero__facts li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
}

.home-hero__media {
  position: relative;
}

.home-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.12);
}

.home-hero__badge {
  position: absolute;
  left: -12px;
  bottom: 22px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(11, 18, 32, 0.12);
}

.home-hero__badge strong {
  display: block;
  color: var(--blue-700);
  font: 800 1.05rem/1.25 var(--font-head);
}

.home-hero__badge span {
  color: var(--body);
  font-size: 12.5px;
}

.home-hero .motto {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

.home-section {
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
}

.home-section--tint {
  background: var(--surface);
}

.home-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.home-section__head h2 {
  color: var(--ink);
  font: 800 clamp(1.45rem, 2.6vw, 2rem) / 1.2 var(--font-head);
  letter-spacing: -0.025em;
}

.home-section__head p {
  max-width: 58ch;
  margin-top: 10px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: var(--blue-700);
  font: 700 14px/1 var(--font-body);
  white-space: nowrap;
}

.home-link:hover {
  color: var(--green-600);
}

.home-link svg {
  width: 16px;
  height: 16px;
}

.home-courses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-course {
  padding: clamp(1.25rem, 2.2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 12px 28px rgba(11, 18, 32, 0.05);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.home-course:hover {
  border-color: #cfe0ff;
  box-shadow: 0 18px 38px rgba(11, 18, 32, 0.09);
  transform: translateY(-2px);
}

.home-course__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #e7ecf5;
  border-radius: 13px;
  background: #fff;
}

.home-course__icon img {
  display: block;
  width: 24px;
  height: 24px;
}

.home-course h3 {
  margin-top: 14px;
  color: var(--ink);
  font: 700 1.04rem/1.3 var(--font-head);
}

.home-course p {
  margin-top: 8px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: home-step;
}

.home-step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--blue-50);
}

.home-step::before {
  counter-increment: home-step;
  content: counter(home-step, decimal-leading-zero);
  position: absolute;
  top: -12px;
  left: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blue-700);
  color: #fff;
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.06em;
}

.home-step h3 {
  color: var(--ink);
  font: 700 1.02rem/1.3 var(--font-head);
}

.home-step p {
  margin-top: 8px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.home-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}

.home-results h2 {
  color: var(--ink);
  font: 800 clamp(1.45rem, 2.6vw, 2rem) / 1.2 var(--font-head);
  letter-spacing: -0.025em;
}

.home-results p {
  max-width: 52ch;
  margin-top: 12px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.home-results .btn {
  margin-top: 22px;
}

.home-results img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 46px rgba(11, 18, 32, 0.12);
}

.home-visit {
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(135deg, var(--blue-25), #fff 62%);
}

.home-visit__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.home-visit h2 {
  color: var(--ink);
  font: 800 clamp(1.45rem, 2.6vw, 2rem) / 1.2 var(--font-head);
  letter-spacing: -0.025em;
}

.home-visit p {
  margin-top: 10px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.home-visit__contact {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 16px 36px rgba(11, 18, 32, 0.06);
}

.home-visit__contact a:not(.btn) {
  color: var(--blue-700);
  font: 600 15px/1.4 var(--font-body);
}

.home-visit__contact a:not(.btn):hover {
  color: var(--green-600);
}

.home-visit__contact .btn {
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Faculty page
   -------------------------------------------------------------------------- */

.faculty {
  padding: clamp(1.75rem, 3.5vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.faculty__head {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.faculty__head h2 {
  color: var(--ink);
  font: 800 clamp(1.45rem, 2.6vw, 2rem) / 1.2 var(--font-head);
  letter-spacing: -0.025em;
}

.faculty__head p {
  max-width: 60ch;
  margin-top: 10px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.faculty__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.faculty-card {
  grid-column: span 2;
  display: flex;
  gap: 16px;
  padding: clamp(1.25rem, 2.2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 12px 28px rgba(11, 18, 32, 0.05);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.faculty-card:hover {
  border-color: #cfe0ff;
  box-shadow: 0 18px 38px rgba(11, 18, 32, 0.09);
  transform: translateY(-2px);
}

.faculty-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.faculty-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.faculty-card__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid #dde6ff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-50), #fff);
  color: var(--blue-700);
  font: 800 15px/1 var(--font-head);
}

.faculty-card__body {
  min-width: 0;
}

.faculty-card__name {
  color: var(--ink);
  font: 700 1.04rem/1.3 var(--font-head);
}

.faculty-card__role {
  margin-top: 4px;
  color: var(--green-700);
  font: 600 12.8px/1.4 var(--font-body);
}

.faculty-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.faculty-card__meta li {
  padding: 5px 10px;
  border: 1px solid #e4ebfb;
  border-radius: 999px;
  background: var(--blue-25);
  color: var(--blue-700);
  font: 600 11.5px/1 var(--font-body);
}

.faculty-card__text {
  margin-top: 12px;
  color: var(--body);
  font-size: 13.6px;
  line-height: 1.65;
}

.faculty__note {
  max-width: 68ch;
  margin: clamp(1.25rem, 2.5vw, 1.75rem) auto 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive for the new sections
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .home-hero__inner,
  .home-results,
  .home-visit__inner {
    grid-template-columns: 1fr;
  }

  .home-hero__media {
    order: -1;
  }

  .home-hero__badge {
    left: 16px;
  }

  .home-courses,
  .home-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faculty__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faculty-card,
  .faculty-card:nth-child(4),
  .faculty-card:nth-child(5) {
    grid-column: auto;
  }

  .faculty-card:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .motto {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .motto__step {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
  }

  .motto__step:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .home-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-courses,
  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-hero__actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .faculty__grid {
    grid-template-columns: 1fr;
  }

  .faculty-card:nth-child(5) {
    grid-column: auto;
  }

  .home-visit__contact {
    width: 100%;
  }
}
/* --------------------------------------------------------------------------
   Home redesign
   -------------------------------------------------------------------------- */

.page-home main,
.page-faculty main {
  overflow: hidden;
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-700);
  font: 700 11px/1.2 var(--font-body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-kicker > span {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-500);
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font: 700 1rem/1.2 var(--font-body);
}

.home-text-link span {
  color: var(--green-600);
  font-size: 19px;
  transition: transform 0.2s var(--ease);
}

.home-text-link:hover {
  color: var(--blue-700);
}

.home-text-link:hover span {
  transform: translateX(3px);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.25rem, 7vw, 6.75rem) 0 clamp(3rem, 6vw, 5.5rem);
  background: linear-gradient(118deg, #f7faff 0%, #fff 58%, #f4fbf4 100%);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -110px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(0, 47, 156, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(0, 47, 156, 0.025), 0 0 0 110px rgba(3, 180, 1, 0.018);
}

.home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.home-hero__content h1 {
  max-width: 690px;
  margin-top: 18px;
  color: var(--ink);
  font: 800 clamp(2.55rem, 5.3vw, 4.8rem) / 1.02 var(--font-head);
  letter-spacing: -0.055em;
}

.home-hero__content h1 em {
  color: var(--blue-700);
  font-style: normal;
}

.home-hero__intro {
  max-width: 59ch;
  margin-top: 22px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.page-home .home-hero__actions {
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.home-hero__visual {
  position: relative;
  min-height: 520px;
}

.home-hero__visual > img {
  width: 100%;
  height: 520px;
  border-radius: 8px 80px 8px 8px;
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(11, 18, 32, 0.16);
}

.home-hero__visual::before {
  content: "";
  position: absolute;
  top: -17px;
  right: -17px;
  z-index: -1;
  width: 48%;
  height: 48%;
  border-radius: 0 90px 0 0;
  background: var(--green-500);
}

.home-hero__schedule {
  position: absolute;
  left: -30px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(11, 18, 32, 0.18);
  backdrop-filter: blur(8px);
}

.home-hero__schedule-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
}

.home-hero__schedule svg {
  width: 21px;
  height: 21px;
}

.home-hero__schedule span:last-child {
  display: grid;
}

.home-hero__schedule small {
  color: var(--muted);
  font-size: 11px;
}

.home-hero__schedule strong {
  color: var(--ink);
  font: 800 14px/1.35 var(--font-head);
}

.home-trust {
  padding: 0;
  background: var(--ink);
}

.home-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.home-trust__grid p {
  padding: 24px clamp(1.25rem, 3vw, 2.5rem);
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
}

.home-trust__grid p:first-child {
  padding-left: 0;
}

.home-trust__grid p:last-child {
  border-right: 0;
}

.home-trust__grid strong {
  display: block;
  color: #fff;
  font: 800 1rem/1.3 var(--font-head);
}

.home-programs,
.home-method,
.home-outcomes,
.home-contact,
.home-practice {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.home-practice__head {
  max-width: 640px;
}

.home-practice__head h2 {
  margin-top: 12px;
  color: var(--ink);
  font: 800 2.5rem / 1.2 var(--font-head);
  letter-spacing: -0.04em;
}

.home-practice__head p:not(.home-kicker) {
  margin-top: 14px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

/* Assessment & Support — infinity diagram
   Segment colours follow the brand: greens (left ring) flow into blues (right ring).
   One layout at every width (positions match the 1200x660 SVG viewBox).
   Desktop shows the text inside each segment; below 1100px the segments show icons
   and the selected item's text appears in the panel underneath (see main.js). */
.home-practice {
  --pc-1: #067a05;
  --pc-2: #056a04;
  --pc-3: #0a6e5c;
  --pc-4: #0b45b8;
  --pc-5: #002f9c;
  --pc-6: #00246f;
  --pc-active: var(--pc-1);
  --pc-bg: #fff;
  background: var(--pc-bg);
}

.home-practice[data-active="2"] { --pc-active: var(--pc-2); }
.home-practice[data-active="3"] { --pc-active: var(--pc-3); }
.home-practice[data-active="4"] { --pc-active: var(--pc-4); }
.home-practice[data-active="5"] { --pc-active: var(--pc-5); }
.home-practice[data-active="6"] { --pc-active: var(--pc-6); }

.home-practice__wheel {
  position: relative;
  max-width: 1000px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  aspect-ratio: 1200 / 660;
  container-type: inline-size;
}

.home-practice__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2cqw 3cqw rgba(0, 36, 111, 0.12));
}

.home-practice__cut {
  fill: var(--pc-bg);
  stroke: var(--pc-bg);
}

.home-practice__cut path {
  stroke-width: 14;
}

.home-practice__cut circle {
  stroke-width: 0;
}

.home-practice__seg {
  transition: fill-opacity 0.4s var(--ease), filter 0.25s var(--ease);
}

.home-practice__seg--1 { fill: var(--pc-1); }
.home-practice__seg--2 { fill: var(--pc-2); }
.home-practice__seg--3 { fill: var(--pc-3); }
.home-practice__seg--4 { fill: var(--pc-4); }
.home-practice__seg--5 { fill: var(--pc-5); }
.home-practice__seg--6 { fill: var(--pc-6); }

/* Centre brand badge */
.home-practice__brand {
  position: absolute;
  top: 25.758%;
  left: 36.667%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 26.667%;
  aspect-ratio: 1;
  border: 1.3cqw solid #e9eef6;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2.2cqw 4cqw rgba(11, 18, 32, 0.16), inset 0 2px 6px rgba(11, 18, 32, 0.06);
  text-align: center;
}

.home-practice__brand img {
  width: 30%;
  height: auto;
  margin-bottom: 6%;
}

.home-practice__brand-name {
  margin: 0;
  color: var(--blue-700);
  font: 800 clamp(0.8rem, 2.6cqw, 2.1rem)/1.05 var(--font-head);
  letter-spacing: -0.03em;
}

.home-practice__brand-sub {
  margin: 0.4cqw 0 0;
  color: var(--green-600);
  font: 700 clamp(0.5rem, 0.9cqw, 0.78rem)/1.2 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-practice__dots {
  display: flex;
  gap: max(3px, 0.55cqw);
  margin-top: 10%;
}

.home-practice__dots i {
  width: max(4px, 0.75cqw);
  height: max(4px, 0.75cqw);
  border-radius: 50%;
  background: var(--pc-1);
}

.home-practice__dots i:nth-child(2) { background: var(--pc-2); }
.home-practice__dots i:nth-child(3) { background: var(--pc-3); }
.home-practice__dots i:nth-child(4) { background: var(--pc-4); }
.home-practice__dots i:nth-child(5) { background: var(--pc-5); }
.home-practice__dots i:nth-child(6) { background: var(--pc-6); }

/* Segment text */
.home-practice__grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-practice__item {
  position: absolute;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.8cqw;
  align-items: center;
  align-content: center;
  color: #fff;
}

.home-practice__item--1 { --pc: var(--pc-1); top: 7.58%;  left: 17.92%; width: 19.58%; height: 21.97%; }
.home-practice__item--2 { --pc: var(--pc-2); top: 33.64%; left: 4%;     width: 12.67%; height: 32.73%; }
.home-practice__item--3 { --pc: var(--pc-3); top: 70.45%; left: 17.92%; width: 19.58%; height: 21.97%; }
.home-practice__item--4 { --pc: var(--pc-4); top: 7.58%;  left: 62.5%;  width: 19.58%; height: 21.97%; }
.home-practice__item--5 { --pc: var(--pc-5); top: 33.64%; left: 83.33%; width: 12.67%; height: 32.73%; }
/* Parents Progress Meeting sits a little higher so its last line stays inside the ring */
.home-practice__item--6 { --pc: var(--pc-6); top: 68.48%; left: 63.33%; width: 18.75%; height: 22.73%; }

.home-practice__icon {
  display: grid;
  place-items: center;
  width: clamp(26px, 2.5cqw, 32px);
  height: clamp(26px, 2.5cqw, 32px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.home-practice__icon svg {
  width: 55%;
  height: 55%;
}

.home-practice__item h3 {
  margin: 0;
  color: #fff;
  font: 800 1rem/1.2 var(--font-head);
}

.home-practice__item p {
  grid-column: 1 / -1;
  margin: 0.7cqw 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.35;
}

.home-practice__panel,
.home-practice__pager {
  display: none;
}

@media (min-width: 1100px) and (hover: hover) {
  .home-practice__wheel:has(.home-practice__item--1:hover) .home-practice__seg--1,
  .home-practice__wheel:has(.home-practice__item--2:hover) .home-practice__seg--2,
  .home-practice__wheel:has(.home-practice__item--3:hover) .home-practice__seg--3,
  .home-practice__wheel:has(.home-practice__item--4:hover) .home-practice__seg--4,
  .home-practice__wheel:has(.home-practice__item--5:hover) .home-practice__seg--5,
  .home-practice__wheel:has(.home-practice__item--6:hover) .home-practice__seg--6 {
    filter: brightness(1.15);
  }

  .home-practice__icon {
    transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
  }

  .home-practice__item:hover .home-practice__icon {
    transform: scale(1.15) rotate(-8deg);
    background: rgba(255, 255, 255, 0.28);
  }
}

/* Mobile / tablet: same rings, icons in the segments, details in the panel below */
@media (max-width: 1099px) {
  .home-practice.has-panel .home-practice__item {
    grid-template-columns: 1fr;
    place-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* Text stays in the page for screen readers; the panel shows it visually */
  .home-practice.has-panel .home-practice__item h3,
  .home-practice.has-panel .home-practice__item p {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .home-practice.has-panel .home-practice__icon {
    width: clamp(28px, 8cqw, 54px);
    height: clamp(28px, 8cqw, 54px);
    background: rgba(255, 255, 255, 0.18);
    transition:
      transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3),
      background-color 0.35s var(--ease),
      color 0.35s var(--ease),
      box-shadow 0.35s var(--ease);
  }

  .home-practice[data-active] .home-practice__seg {
    fill-opacity: 0.55;
  }

  .home-practice[data-active="1"] .home-practice__seg--1,
  .home-practice[data-active="2"] .home-practice__seg--2,
  .home-practice[data-active="3"] .home-practice__seg--3,
  .home-practice[data-active="4"] .home-practice__seg--4,
  .home-practice[data-active="5"] .home-practice__seg--5,
  .home-practice[data-active="6"] .home-practice__seg--6 {
    fill-opacity: 1;
  }

  .home-practice[data-active="1"] .home-practice__item--1 .home-practice__icon,
  .home-practice[data-active="2"] .home-practice__item--2 .home-practice__icon,
  .home-practice[data-active="3"] .home-practice__item--3 .home-practice__icon,
  .home-practice[data-active="4"] .home-practice__item--4 .home-practice__icon,
  .home-practice[data-active="5"] .home-practice__item--5 .home-practice__icon,
  .home-practice[data-active="6"] .home-practice__item--6 .home-practice__icon {
    background: #fff;
    color: var(--pc);
    transform: scale(1.18);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  }

  .home-practice.has-panel .home-practice__panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    max-width: 560px;
    min-height: 124px;
    margin: 1.5rem auto 0;
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--pc-active);
    box-shadow: 0 14px 30px rgba(0, 36, 111, 0.16);
    color: #fff;
    transition: background-color 0.4s var(--ease);
  }

  .home-practice__panel-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
  }

  .home-practice__panel-icon svg {
    width: 55%;
    height: 55%;
  }

  .home-practice__panel-title {
    margin: 0;
    color: #fff;
    font: 800 1.05rem/1.25 var(--font-head);
  }

  .home-practice__panel-text {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .home-practice__panel-icon,
  .home-practice__panel-body {
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .home-practice__panel.is-swapping .home-practice__panel-icon,
  .home-practice__panel.is-swapping .home-practice__panel-body {
    opacity: 0;
    transform: translateY(6px);
  }

  .home-practice.has-panel .home-practice__pager {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 10px;
  }

  .home-practice__pager button {
    width: 24px;
    height: 24px;
    padding: 8px;
    border: 0;
    border-radius: 12px;
    background: #cbd5e1;
    background-clip: content-box;
    cursor: pointer;
    transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
  }

  .home-practice__pager button[aria-pressed="true"] {
    width: 40px;
    background-color: var(--pc-active);
  }

  .home-practice__pager button:focus-visible {
    outline: 2px solid var(--blue-700);
    outline-offset: 0;
  }
}

@media (max-width: 699px) {
  .home-practice__brand-sub {
    display: none;
  }
}

@media (max-width: 700px) {
  .home-practice__head h2 {
    font-size: 2rem;
  }
}

/* Motion
   Entrance: the badge pops in, then each segment flies in from outside and swings into
   place like a chart assembling, then its text slides in.
   Ambient: the colour dots in the badge ripple gently. */
@media (prefers-reduced-motion: no-preference) {
  .home-practice__seg {
    transform-box: view-box;
  }

  .home-practice__seg--1 { --d: 0.25s; --fx: -90px;  --fy: -300px; --fr: -40deg; transform-origin: 325px 330px; }
  .home-practice__seg--2 { --d: 0.4s;  --fx: -330px; --fy: 30px;   --fr: -40deg; transform-origin: 325px 330px; }
  .home-practice__seg--3 { --d: 0.55s; --fx: -90px;  --fy: 300px;  --fr: -40deg; transform-origin: 325px 330px; }
  .home-practice__seg--4 { --d: 0.7s;  --fx: 90px;   --fy: -300px; --fr: 40deg;  transform-origin: 875px 330px; }
  .home-practice__seg--5 { --d: 0.85s; --fx: 330px;  --fy: -30px;  --fr: 40deg;  transform-origin: 875px 330px; }
  .home-practice__seg--6 { --d: 1s;    --fx: 90px;   --fy: 300px;  --fr: 40deg;  transform-origin: 875px 330px; }

  .home-practice.is-animated .home-practice__seg {
    opacity: 0;
    transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(0.55);
    transition:
      opacity 0.45s var(--ease) var(--d),
      transform 1s cubic-bezier(0.2, 0.85, 0.25, 1.08) var(--d),
      fill-opacity 0.4s var(--ease),
      filter 0.25s var(--ease);
  }

  .home-practice.is-animated .home-practice__brand {
    opacity: 0;
    transform: scale(0.3) rotate(-120deg);
    transition:
      opacity 0.4s var(--ease),
      transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.25);
  }

  .home-practice__item--1 { --t: 0.85s; --ix: -40px; --iy: -50px; }
  .home-practice__item--2 { --t: 1s;    --ix: -60px; --iy: 0px; }
  .home-practice__item--3 { --t: 1.15s; --ix: -40px; --iy: 50px; }
  .home-practice__item--4 { --t: 1.3s;  --ix: 40px;  --iy: -50px; }
  .home-practice__item--5 { --t: 1.45s; --ix: 60px;  --iy: 0px; }
  .home-practice__item--6 { --t: 1.6s;  --ix: 40px;  --iy: 50px; }

  .home-practice.is-animated .home-practice__item {
    opacity: 0;
    transform: translate(var(--ix), var(--iy)) scale(0.85);
    transition:
      opacity 0.5s var(--ease) var(--t),
      transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.15) var(--t);
  }

  .home-practice.is-animated .home-practice__panel,
  .home-practice.is-animated .home-practice__pager {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.5s var(--ease) 1.8s,
      transform 0.6s var(--ease) 1.8s,
      background-color 0.4s var(--ease);
  }

  /* White dividers and holes appear as the pieces land, so they don't cut across them mid-flight */
  .home-practice.is-animated .home-practice__cut {
    opacity: 0;
    transition: opacity 0.5s var(--ease) 1.3s;
  }

  .home-practice.is-visible .home-practice__cut,
  .home-practice.is-visible .home-practice__seg,
  .home-practice.is-visible .home-practice__brand,
  .home-practice.is-visible .home-practice__item,
  .home-practice.is-visible .home-practice__panel,
  .home-practice.is-visible .home-practice__pager {
    opacity: 1;
    transform: none;
  }

  .home-practice__dots i {
    animation: pp-dot 2.4s ease-in-out infinite;
  }

  .home-practice__dots i:nth-child(2) { animation-delay: 0.15s; }
  .home-practice__dots i:nth-child(3) { animation-delay: 0.3s; }
  .home-practice__dots i:nth-child(4) { animation-delay: 0.45s; }
  .home-practice__dots i:nth-child(5) { animation-delay: 0.6s; }
  .home-practice__dots i:nth-child(6) { animation-delay: 0.75s; }
}

@keyframes pp-dot {
  0%, 60%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-40%) scale(1.25); }
}

/* The Difference We've Made (Home) — tinted cards standing on 3D podiums */
.home-impact {
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(4rem, 8vw, 7rem);
  background: #fff;
}

.home-impact__head {
  max-width: 640px;
}

.home-impact__head h2 {
  margin-top: 12px;
  color: var(--ink);
  font: 800 2.5rem / 1.2 var(--font-head);
  letter-spacing: -0.04em;
}

.home-impact__head p:not(.home-kicker) {
  margin-top: 14px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.home-impact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.home-impact__item {
  --c: var(--green-600);
  display: flex;
  flex-direction: column;
}

.home-impact__item--2 { --c: var(--blue-600); }
.home-impact__item--3 { --c: #0a6e5c; }

.home-impact__card {
  position: relative;
  flex: 1;
  padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.4rem, 2.4vw, 1.9rem) 88px;
  border-radius: 16px 96px 0 0;
  background: color-mix(in srgb, var(--c) 13%, #fff);
}

.home-impact__num {
  position: absolute;
  top: 18px;
  right: 30px;
  color: color-mix(in srgb, var(--c) 30%, #fff);
  font: 800 3.2rem/1 var(--font-head);
  letter-spacing: -0.04em;
}

.home-impact__card h3 {
  position: relative;
  max-width: 82%;
  margin: 0;
  color: var(--ink);
  font: 800 1.15rem/1.3 var(--font-head);
}

.home-impact__figure {
  display: block;
  margin-bottom: 4px;
  color: var(--c);
  font-size: 2.4rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.home-impact__card p {
  margin-top: 12px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.6;
}

.home-impact__card .home-text-link {
  margin-top: 16px;
  color: var(--c);
}

/* Podium: a cylinder drawn with an elliptical top and a shaded body */
.home-impact__podium {
  position: relative;
  z-index: 1;
  height: 48px;
  margin: 0 -6px;
  border-radius: 0 0 50% 50% / 0 0 22px 22px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c) 70%, #000) 0%,
    var(--c) 28%,
    color-mix(in srgb, var(--c) 80%, #fff) 50%,
    var(--c) 72%,
    color-mix(in srgb, var(--c) 70%, #000) 100%
  );
}

.home-impact__podium::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 72%, #fff);
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.12);
}

.home-impact__podium::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 6%;
  right: 6%;
  z-index: -1;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 18, 32, 0.22), transparent);
}

.home-impact__icon {
  position: absolute;
  top: -58px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--c);
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.16);
  translate: -50% 0;
}

.home-impact__icon svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 900px) {
  .home-impact__grid {
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
    row-gap: 3.5rem;
  }
}

@media (max-width: 700px) {
  .home-impact__head h2 {
    font-size: 2rem;
  }
}

/* Motion: podiums rise, then each card slides up onto its podium and the icon drops in */
@media (prefers-reduced-motion: no-preference) {
  .home-impact__item--1 { --t: 0s; }
  .home-impact__item--2 { --t: 0.18s; }
  .home-impact__item--3 { --t: 0.36s; }

  .home-impact.is-animated .home-impact__podium {
    opacity: 0;
    transform: scaleX(0.6) translateY(20px);
    transition:
      opacity 0.5s var(--ease) var(--t),
      transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) var(--t);
  }

  .home-impact.is-animated .home-impact__card {
    opacity: 0;
    transform: translateY(60px);
    transition:
      opacity 0.6s var(--ease) calc(var(--t) + 0.3s),
      transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.1) calc(var(--t) + 0.3s);
  }

  .home-impact.is-animated .home-impact__icon {
    opacity: 0;
    transform: translateY(-30px) scale(0.6);
    transition:
      opacity 0.4s var(--ease) calc(var(--t) + 0.8s),
      transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--t) + 0.8s);
  }

  .home-impact.is-visible .home-impact__podium,
  .home-impact.is-visible .home-impact__card,
  .home-impact.is-visible .home-impact__icon {
    opacity: 1;
    transform: none;
  }

  .home-impact__card {
    transition: box-shadow 0.3s var(--ease);
  }
}

/* About: From the Director's desk */
.about-director {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: #fff;
}

.about-director__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.about-director__media {
  position: relative;
  margin: 0 0 0 18px;
}

/* Green corner bracket, as on the Home hero */
.about-director__media::before {
  content: "";
  position: absolute;
  left: -18px;
  bottom: -18px;
  width: 200px;
  height: 200px;
  border-left: 12px solid var(--green-500);
  border-bottom: 12px solid var(--green-500);
  border-radius: 0 0 0 28px;
}

.about-director__photo {
  position: relative;
  aspect-ratio: 6 / 7;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, #dfe8ff 0%, #e9f9ea 100%);
  box-shadow: 0 22px 48px rgba(11, 18, 32, 0.12);
}

.about-director__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.about-director__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #94a3b8;
  font: 600 0.95rem/1.2 var(--font-body);
}

.about-director__placeholder svg {
  width: 38%;
  height: auto;
  color: #b8c6ea;
}

.about-director__badge {
  position: absolute;
  right: -28px;
  bottom: 36px;
  padding: 14px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(11, 18, 32, 0.14);
}

.about-director__badge strong {
  display: block;
  color: var(--ink);
  font: 800 1.05rem/1.3 var(--font-head);
}

.about-director__badge span {
  display: block;
  margin-top: 2px;
  color: var(--body);
  font-size: 0.85rem;
}

.about-director__quote {
  position: relative;
  margin-top: 18px;
  color: var(--ink);
  font: 700 clamp(1.4rem, 2.4vw, 1.9rem) / 1.4 var(--font-head);
  letter-spacing: -0.025em;
}

.about-director__quote::before {
  content: "\201C";
  position: absolute;
  top: -0.35em;
  left: -0.55em;
  color: var(--green-500);
  font: 800 4.5em/1 var(--font-head);
  opacity: 0.22;
  pointer-events: none;
}

.about-director__text {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.7;
}

.about-director__text strong {
  color: var(--ink);
}

.about-director__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.about-director__facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.about-director__facts span {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
}

.about-director__facts svg {
  width: 20px;
  height: 20px;
}

.about-director__facts p {
  margin: 0;
  color: var(--body);
  font-size: 0.85rem;
  line-height: 1.35;
}

.about-director__facts strong {
  display: block;
  color: var(--ink);
  font: 800 0.95rem/1.3 var(--font-head);
}

@media (max-width: 1000px) {
  .about-director__facts {
    grid-template-columns: 1fr;
  }
}

.about-director__sign {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.about-director__signature {
  color: var(--blue-700);
  font: italic 800 1.7rem/1 var(--font-head);
  letter-spacing: -0.04em;
  transform: rotate(-4deg);
}

.about-director__sign p {
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--line);
  color: var(--body);
  font-size: 0.9rem;
  line-height: 1.5;
}

.about-director__sign strong {
  display: block;
  color: var(--ink);
  font: 800 1.05rem/1.3 var(--font-head);
}

@media (max-width: 900px) {
  .about-director__grid {
    grid-template-columns: 1fr;
  }

  .about-director__media {
    width: min(calc(100% - 18px), 380px);
    margin: 0 0 0 18px;
  }

  .about-director__badge {
    right: 12px;
    bottom: 24px;
  }

  .about-director__quote {
    padding-top: 0.9em;
  }

  .about-director__quote::before {
    top: -0.15em;
    left: -0.05em;
    font-size: 3em;
  }
}

/* Courses: "View details" link on each board card */
.course-card__more {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 16px;
  color: var(--blue-700);
  font-size: 0.95rem;
}

.course-card__more span {
  transition: transform 0.2s var(--ease);
}

.course-card__more:hover span {
  transform: translateX(4px);
}

/* Courses: board details with ICSE / CBSE / State Board tabs */
.board-details {
  margin-top: 0;
  scroll-margin-top: calc(var(--header-h-scrolled) + 16px);
}

.board-details__title {
  margin-top: 12px;
  color: var(--ink);
  font: 800 clamp(1.75rem, 3vw, 2.25rem) / 1.2 var(--font-head);
  letter-spacing: -0.035em;
}

.board-tabs {
  display: inline-flex;
  gap: 6px;
  max-width: 100%;
  margin-top: 0;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  scrollbar-width: none;
}

.board-tabs__tab {
  flex: none;
  padding: 12px 24px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #64748b;
  font: 800 1rem/1 var(--font-head);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.board-tabs__tab:hover {
  color: var(--ink);
}

.board-tabs__tab[aria-selected="true"] {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 47, 156, 0.25);
}

.board-tabs__tab:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 2px;
}

.board-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.06);
  scroll-margin-top: calc(var(--header-h-scrolled) + 16px);
}

.board-panel[hidden] {
  display: none;
}

.board-panel.is-entering {
  animation: board-panel-in 0.35s var(--ease);
}

@keyframes board-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.board-panel__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.board-panel__side {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.board-panel__media {
  width: 100%;
  margin: 0 0 24px;
  overflow: hidden;
  aspect-ratio: 23 / 10;
  border-radius: 14px;
  background: var(--surface);
}

.board-panel__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-panel.is-entering .board-panel__media img {
  animation: board-img-in 0.6s var(--ease);
}

@keyframes board-img-in {
  from { opacity: 0.4; transform: scale(1.06); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .board-panel.is-entering .board-panel__media img {
    animation: none;
  }
}

.board-panel__title {
  color: var(--ink);
  font: 800 clamp(1.5rem, 2.4vw, 1.9rem) / 1.2 var(--font-head);
  letter-spacing: -0.035em;
}

.board-panel__text {
  margin-top: 10px;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
}

.board-panel__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 24px 0 0;
}

.board-panel__facts div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.board-panel__facts dt {
  color: #64748b;
  font: 700 0.72rem/1.2 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-panel__facts dd {
  margin: 6px 0 0;
  color: var(--ink);
  font: 800 1.1rem/1.25 var(--font-head);
}

.board-panel__cta {
  margin-top: 28px;
}

.board-panel__label {
  color: var(--ink);
  font: 800 1rem/1.3 var(--font-head);
}

.board-panel__label + ul {
  margin-top: 12px;
}

.board-panel__subjects + .board-panel__label {
  margin-top: 26px;
}

.board-panel__subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.board-panel__subjects li {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  font: 700 0.9rem/1.2 var(--font-body);
}

.board-panel__list {
  padding: 0;
  list-style: none;
}

.board-panel__list li {
  position: relative;
  padding: 7px 0 7px 32px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.5;
}

.board-panel__list li::before {
  content: "\2713";
  position: absolute;
  top: 7px;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  font: 800 0.75rem/1 var(--font-body);
}

@media (max-width: 900px) {
  .board-panel {
    grid-template-columns: 1fr;
  }

  .board-panel__side {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .board-tabs {
    display: flex;
  }

  .board-tabs__tab {
    flex: 1;
    padding: 12px 10px;
    font-size: 0.95rem;
  }


}

@media (prefers-reduced-motion: reduce) {
  .board-panel.is-entering {
    animation: none;
  }
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.62fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.faculty-team__heading {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.home-section-heading h2,
.home-method__content h2,
.home-outcomes h2,
.home-contact h2,
.faculty-team__heading h2,
.faculty-contact h2 {
  margin-top: 12px;
  color: var(--ink);
  font: 800 2.5rem / 1.2 var(--font-head);
  letter-spacing: -0.04em;
}

@media (max-width: 700px) {
  .home-section-heading h2,
  .home-method__content h2,
  .home-outcomes h2,
  .home-contact h2,
  .faculty-team__heading h2,
  .faculty-contact h2,
  .branches__title,
  .courses__also-title,
  .page-hero h1 {
    font-size: 2rem;
  }
}

.home-section-heading > p,
.faculty-team__heading p:not(.home-kicker) {
  margin-top: 14px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.home-programs__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.home-program {
  position: relative;
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  min-height: 132px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.home-program--large {
  grid-column: span 3;
  min-height: 180px;
  padding: 30px;
  background: linear-gradient(145deg, #f8faff, #fff);
}

.home-program:hover {
  border-color: #ccd8ea;
  box-shadow: 0 18px 42px rgba(11, 18, 32, 0.09);
  transform: translateY(-4px);
}

.home-program__number {
  position: absolute;
  top: 16px;
  right: 18px;
  color: #a1adbd;
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.08em;
}

.home-program__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 15px;
  background: var(--surface);
}

.home-program--large .home-program__icon {
  width: 76px;
  height: 76px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(11, 18, 32, 0.07);
}

.home-program__monogram {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: #fff;
  font: 800 11px/1 var(--font-head);
  letter-spacing: -0.02em;
}

.home-program__content {
  display: grid;
  gap: 5px;
}

.home-program__content strong {
  color: var(--ink);
  font: 700 clamp(0.98rem, 1.8vw, 1.2rem) / 1.3 var(--font-head);
}

.home-program__content small {
  color: var(--muted);
  font-size: 12.5px;
}

.home-program__arrow {
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: var(--blue-700);
  font-size: 20px;
}

.home-method {
  background: var(--surface);
}

.home-method__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
}

.home-method__visual {
  position: relative;
  z-index: 0;
}

.home-method__visual::before {
  content: "";
  position: absolute;
  top: -17px;
  left: -17px;
  z-index: -1;
  width: 48%;
  height: 48%;
  border-radius: 90px 0 0 0;
  background: var(--green-500);
}

.home-method__visual > img {
  width: 100%;
  height: clamp(420px, 50vw, 590px);
  border-radius: 70px 8px 8px;
  object-fit: cover;
  object-position: center;
}

.home-method__visual > p {
  position: absolute;
  right: -28px;
  bottom: 28px;
  display: grid;
  max-width: 240px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(11, 18, 32, 0.16);
}

.home-method__visual > p strong {
  color: var(--ink);
  font: 700 1rem/1.4 var(--font-head);
}

.home-method__visual > p span {
  color: var(--body);
  font-size: 1rem;
}

.home-method__steps {
  display: grid;
  gap: 0;
  margin: 30px 0 26px;
  padding: 0;
  list-style: none;
}

.home-method__steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: baseline;
  gap: 18px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.home-method__steps li > span {
  color: var(--green-600);
  font: 800 1rem/1.5 var(--font-head);
}

.home-method__steps h3 {
  color: var(--ink);
  font: 700 1rem/1.35 var(--font-head);
}

.home-method__steps p {
  margin-top: 5px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.home-method > .container .home-text-link,
.home-method > .container .home-text-link span {
  font-size: 1rem;
}

.home-outcomes {
  padding-bottom: 0;
}

.home-outcomes__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 20px;
  background: linear-gradient(120deg, var(--blue-25), #f1fff2);
}

.home-outcomes__link,
.home-outcomes__link span {
  font-size: 1rem;
}

.home-outcomes__link {
  margin-top: 18px;
}

.home-outcomes__inner > div {
  max-width: 660px;
}

.home-outcomes__inner > div > p:last-child,
.home-contact__card > div > p:last-child,
.faculty-contact__card > div > p:last-child {
  margin-top: 12px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.home-contact__card,
.faculty-contact__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 20px;
  background: var(--ink);
}

.home-contact__card .home-kicker,
.faculty-contact__card .home-kicker {
  color: #98b5ff;
}

.home-contact__card h2,
.faculty-contact__card h2 {
  color: #fff;
}

.home-contact__card > div > p:last-child,
.faculty-contact__card > div > p:last-child {
  max-width: 64ch;
  color: #b8c2d2;
}

.home-contact__actions {
  display: grid;
  justify-items: center;
  gap: 13px;
}

.home-contact__actions > a:last-child {
  color: #d5def0;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Faculty redesign
   -------------------------------------------------------------------------- */

.faculty-hero {
  padding: clamp(3.25rem, 7vw, 6.5rem) 0;
  background: #f7faff;
}

.faculty-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
}

.faculty-hero__content h1 {
  margin-top: 18px;
  color: var(--ink);
  font: 800 2.5rem / 1.2 var(--font-head);
  letter-spacing: -0.052em;
}

.faculty-hero__content h1 em {
  color: var(--blue-700);
  font-style: normal;
}

.faculty-hero__content > p:not(.home-kicker) {
  max-width: 56ch;
  margin-top: 22px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.faculty-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.faculty-hero__visual {
  position: relative;
  padding: 0 0 24px 24px;
}

.faculty-hero__visual::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58%;
  height: 68%;
  border-radius: 18px;
  background: var(--green-500);
}

.faculty-hero__visual img {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 28px 64px rgba(11, 18, 32, 0.16);
}

.faculty-values {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.faculty-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.faculty-values__grid > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 28px clamp(1rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
}

.faculty-values__grid > div:first-child {
  padding-left: 0;
}

.faculty-values__grid > div:last-child {
  border-right: 0;
}

.faculty-values__grid span {
  color: var(--green-600);
  font: 800 1rem/1.5 var(--font-head);
}

.faculty-values__grid p {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.faculty-values__grid strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font: 700 1rem/1.35 var(--font-head);
}

.faculty-team {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.faculty-team__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faculty-profile {
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 18, 32, 0.055);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faculty-profile:hover {
  box-shadow: 0 20px 46px rgba(11, 18, 32, 0.1);
  transform: translateY(-4px);
}

.faculty-profile__avatar {
  position: relative;
  display: grid;
  place-items: center;
  height: 230px;
  overflow: hidden;
  background: var(--surface);
}

.faculty-profile__avatar img {
  width: 168px;
  height: 200px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
}

/* Zoom inside the frame to hide borders baked into some source photos */
.faculty-profile__avatar--trim img {
  border-radius: 0;
  clip-path: inset(4.55% round 12.7px);
  transform: scale(1.1);
}

.faculty-profile__content {
  padding: 24px;
}

.faculty-profile__subject {
  color: var(--blue-700);
  font: 700 11px/1.35 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faculty-profile h3 {
  margin-top: 7px;
  color: var(--ink);
  font: 800 1.18rem/1.3 var(--font-head);
}

.faculty-profile__content > p {
  min-height: 66px;
  margin-top: 10px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.faculty-profile__content ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 17px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}

.faculty-profile__content li {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font: 700 10.5px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(5, 106, 4, 0.055);
}

/* "Years teaching" always starts its own line, on every card.
   A zero-height ::after fills a full row just before it. Row spacing comes
   from each tag's bottom margin (not row-gap), so that empty row adds no
   extra space; the ul's negative bottom margin removes the last tag's margin. */
.faculty-profile__content ul {
  row-gap: 0;
  margin-bottom: -7px;
}

.faculty-profile__content ul > li {
  margin-bottom: 7px;
}

.faculty-profile__content ul::after {
  content: "";
  flex-basis: 100%;
  order: 1;
  height: 0;
}

.faculty-profile__content li.faculty-profile__exp {
  order: 2;
}

/* Degrees keep their real capitalisation (B.Ed, not B.ED) */
.faculty-profile__content li.faculty-profile__qual {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.faculty-contact {
  padding: 0 0 clamp(4rem, 8vw, 7rem);
}

@media (max-width: 1000px) {
  .home-hero__grid,
  .faculty-hero__grid,
  .home-method__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero__content,
  .faculty-hero__content,
  .home-method__content {
    min-width: 0;
  }

  .home-hero__visual,
  .faculty-hero__visual {
    width: min(100%, 760px);
  }

  .home-hero__visual {
    min-height: 460px;
  }

  .home-hero__visual > img,
  .faculty-hero__visual img {
    height: 460px;
  }

  .home-programs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-program,
  .home-program--large {
    grid-column: auto;
  }

  .home-program:last-child {
    grid-column: 1 / -1;
  }

  .home-method__visual {
    width: min(100% - 28px, 760px);
  }

  .faculty-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faculty-profile {
    grid-column: auto;
  }

  /* Odd number of cards: stretch the last one so the row isn't half empty */
  .faculty-profile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .page-home .home-hero,
  .faculty-hero {
    padding: 2.5rem 0 3.25rem;
  }

  .home-hero__content h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .faculty-hero__content h1 {
    font-size: 2rem;
  }

  .page-home .home-hero__actions,
  .faculty-hero__actions {
    align-items: flex-start;
  }

  .home-hero__visual {
    min-height: 350px;
  }

  .home-hero__visual > img,
  .faculty-hero__visual img {
    height: 350px;
  }

  .home-hero__visual > img {
    border-radius: 8px 48px 8px 8px;
  }

  .home-hero__schedule {
    left: 14px;
    bottom: -22px;
  }

  .home-trust__grid,
  .faculty-values__grid,
  .home-section-heading,
  .faculty-team__heading,
  .home-contact__card,
  .faculty-contact__card {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-trust__grid p,
  .home-trust__grid p:first-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .home-trust__grid p:last-child {
    border-bottom: 0;
  }

  .home-programs,
  .home-method,
  .home-outcomes,
  .home-contact,
  .faculty-team {
    padding: 3.75rem 0;
  }

  .home-section-heading,
  .faculty-team__heading {
    gap: 14px;
  }

  .home-programs__grid,
  .faculty-team__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-program:last-child,
  .faculty-profile:last-child {
    grid-column: auto;
  }

  .home-program,
  .home-program--large {
    min-height: 130px;
    padding: 22px;
  }

  .home-method__visual > img {
    height: 390px;
    border-radius: 44px 8px 8px;
  }

  .home-method__visual > p {
    right: -20px;
  }

  .home-outcomes__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .faculty-hero__visual {
    padding-left: 14px;
  }

  .faculty-values__grid > div,
  .faculty-values__grid > div:first-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .faculty-values__grid > div:last-child {
    border-bottom: 0;
  }

  .faculty-contact {
    padding-bottom: 3.75rem;
  }
}

@media (max-width: 480px) {
  .home-hero__visual,
  .faculty-hero__visual {
    margin-top: 8px;
  }

  .home-hero__visual,
  .home-hero__visual > img,
  .faculty-hero__visual img {
    min-height: 300px;
    height: 300px;
  }

  .home-hero__schedule {
    min-width: 0;
    padding: 11px 14px;
  }

  .home-method__visual {
    width: calc(100% - 18px);
  }

  .home-method__visual > p {
    right: -18px;
    bottom: 18px;
  }

  .home-contact__card,
  .faculty-contact__card,
  .home-outcomes__inner {
    padding: 24px;
  }

  .home-contact__actions,
  .home-contact__actions .btn,
  .faculty-contact__card .btn {
    width: 100%;
  }

}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  flex-shrink: 0;
  margin-top: auto;
  background: #f1f5f9;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #cfe0f5;
}

.footer__main {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1.4fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}

.footer__motto {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: var(--ink);
  font: 700 1rem/1.4 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__motto .motto-dot {
  box-shadow: none;
}

.footer__blurb {
  max-width: 34ch;
  margin-top: 12px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer__social a:hover {
  border-color: #c9d6f5;
  background: var(--blue-25);
  box-shadow: 0 8px 18px rgba(11, 18, 32, 0.1);
  transform: translateY(-2px);
}

.footer__social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer__title {
  margin: 4px 0 0;
  color: var(--ink);
  font: 700 1rem/1 var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__title::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--green-500);
}

.footer__links,
.footer__contact {
  display: grid;
  gap: 11px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 1rem;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer__links a:hover {
  color: var(--blue-700);
  transform: translateX(2px);
}

.footer__links a:hover::before {
  background: var(--green-500);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--blue-700);
}

.footer__contact a:hover {
  color: var(--blue-700);
}

.footer__phones {
  display: grid;
  gap: 4px;
}

.footer__bottom {
  border-top: 1px solid var(--line);
  background: #f6f9fc;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.footer__bottom p {
  color: var(--body);
  font-size: 1rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
}

.footer__credit {
  color: var(--muted, #64748b);
  font-size: 0.9rem;
}

.footer__credit::before {
  content: "\00b7";
  margin-right: 10px;
  color: #b6c0ce;
}

/* Desktop: copyright left, ReachKite credit centred, "Back to top" right */
@media (min-width: 1024px) {
  .footer__bottom-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .footer__legal {
    display: contents;
  }

  .footer__legal > span:first-child {
    grid-column: 1;
    justify-self: start;
  }

  .footer__credit {
    grid-column: 2;
    justify-self: center;
  }

  .footer__credit::before {
    content: none;
  }

  .footer__top-link {
    grid-column: 3;
    justify-self: end;
  }
}

.footer__credit a {
  color: var(--body);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__credit a:hover,
.footer__credit a:focus-visible {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .footer__legal {
    display: block;
    width: 100%;
  }

  .footer__credit {
    display: block;
    margin-top: 4px;
  }

  .footer__credit::before {
    content: none;
  }
}

/* Text for screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-700);
  font: 600 1rem/1 var(--font-body);
}

.footer__top-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.footer__top-link:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 1023px) {
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer__bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Site-wide scroll reveal (classes added by main.js; nothing is hidden
   without JavaScript or when the visitor prefers reduced motion)
   -------------------------------------------------------------------------- */

main {
  overflow-x: clip;
}

/* Hidden state: applied instantly (no transition) so nothing fades out first */
.reveal {
  opacity: 0;
  transition: none;
}

.reveal--up {
  transform: translate3d(0, 40px, 0);
}

.reveal--left {
  transform: translate3d(-36px, 0, 0);
}

.reveal--right {
  transform: translate3d(36px, 0, 0);
}

.reveal--zoom {
  transform: translate3d(0, 20px, 0) scale(0.94);
}

/* Shown state: this is where the animation happens */
.reveal.is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0s),
    transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) var(--rd, 0s);
}

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

/* Set by the small script in each page's <head>; removed by main.js once the
   reveal animations are ready (or after 2.5s as a safety net). */
.reveal-pending main {
  visibility: hidden;
}

/* --------------------------------------------------------------------------
   Announcement bar (filled from the API by main.js; hidden when empty)
   -------------------------------------------------------------------------- */
.announce-bar {
  display: flex;
  align-items: stretch;
  background: var(--blue-700);
  color: #fff;
  font: 500 14px/1.4 var(--font-body);
}

.announce-bar__label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 18px;
  background: var(--green-500);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.announce-bar__label::after {
  content: "";
  position: absolute;
  top: 0;
  right: -14px;
  border-style: solid;
  border-width: 21px 0 21px 14px;
  border-color: transparent transparent transparent var(--green-500);
}

.announce-bar__label svg {
  width: 20px;
  height: 20px;
  animation: announce-pulse 1.6s ease-in-out infinite;
}

.announce-bar__viewport {
  display: flex;
  flex: 1;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.announce-bar__track {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  animation: announce-scroll var(--announce-duration, 35s) linear infinite;
}

.announce-bar:hover .announce-bar__track,
.announce-bar:focus-within .announce-bar__track {
  animation-play-state: paused;
}

.announce-bar__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.announce-bar__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  white-space: nowrap;
}

.announce-bar__list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd34d;
}

.announce-bar__list a {
  color: #ffd34d;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes announce-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes announce-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@media (max-width: 700px) {
  .announce-bar { font-size: 13px; }
  .announce-bar__label { padding: 9px 12px; }
  .announce-bar__label span { display: none; }
  .announce-bar__label::after { right: -12px; border-width: 20px 0 20px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .announce-bar__track,
  .announce-bar__label svg { animation: none; }
  .announce-bar__viewport { overflow-x: auto; }
}

/* --------------------------------------------------------------------------
   Study materials promo (courses page)
   -------------------------------------------------------------------------- */
.study-promo {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(118deg, var(--blue-25) 0%, #fff 60%, var(--green-50) 100%);
}

.study-promo__title {
  margin-top: 12px;
  color: var(--ink);
  font: 800 2.25rem / 1.2 var(--font-head);
  letter-spacing: -0.03em;
}

.study-promo__text {
  margin: 12px 0 24px;
  max-width: 52ch;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.study-promo .btn svg {
  width: 18px;
  height: 18px;
}

.study-promo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.study-promo__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 47, 156, 0.18);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.study-promo__tile--green {
  background: var(--green-600);
  box-shadow: 0 16px 34px rgba(6, 122, 5, 0.18);
}

.study-promo__tile:hover,
.study-promo__tile:focus-visible {
  transform: translateY(-4px);
}

.study-promo__icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.study-promo__icon svg {
  width: 50px;
  height: 50px;
}

.study-promo__label {
  margin-top: 10px;
  font: 700 13px / 1.2 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .study-promo {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .study-promo__title {
    font-size: 1.75rem;
  }

  .study-promo__icon {
    width: 60px;
    height: 60px;
  }

  .study-promo__icon svg {
    width: 32px;
    height: 32px;
  }
}

/* --------------------------------------------------------------------------
   Study materials page
   -------------------------------------------------------------------------- */
.study-materials {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.study-materials__status[hidden],
.study-materials__grid[hidden] {
  display: none;
}

.study-materials__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--body);
  font-size: 1rem;
  text-align: center;
}

.study-materials__spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--blue-50);
  border-top-color: var(--blue-700);
  border-radius: 50%;
  animation: study-spin 0.8s linear infinite;
}

@keyframes study-spin {
  to { transform: rotate(360deg); }
}

.study-materials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.study-card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 18, 32, 0.055);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.study-card:hover,
.study-card:focus-visible {
  border-color: var(--blue-700);
  box-shadow: 0 20px 46px rgba(11, 18, 32, 0.1);
  transform: translateY(-4px);
}

.study-card__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-700);
}

.study-materials__grid li:nth-child(even) .study-card__icon {
  background: var(--green-50);
  color: var(--green-600);
}

.study-card__icon svg {
  width: 28px;
  height: 28px;
}

.study-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.study-card__name {
  color: var(--ink);
  font: 800 1.15rem / 1.3 var(--font-head);
  overflow-wrap: anywhere;
}

.study-card__hint {
  color: var(--blue-700);
  font: 700 12px / 1.3 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.study-card__arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--muted, #6b7686);
}

@media (prefers-reduced-motion: reduce) {
  .study-materials__spinner { animation: none; }
}

/* --------------------------------------------------------------------------
   404 page
   -------------------------------------------------------------------------- */
.notfound {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  background: radial-gradient(circle at 50% 20%, var(--blue-50) 0%, #fff 55%);
  text-align: center;
}

.notfound__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notfound__code {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1vw, 0.75rem);
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  color: var(--blue-700);
  font: 800 clamp(5.5rem, 16vw, 9.5rem) / 1 var(--font-head);
  letter-spacing: -0.04em;
}

.notfound__zero {
  display: grid;
  place-items: center;
  width: 0.92em;
  height: 0.92em;
  border: 0.07em solid var(--green-500);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 47, 156, 0.14);
}

.notfound__zero img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.notfound .home-kicker {
  justify-content: center;
}

.notfound h1 {
  max-width: 18ch;
  margin-top: 12px;
  color: var(--ink);
  font: 800 clamp(2rem, 4.5vw, 3rem) / 1.15 var(--font-head);
  letter-spacing: -0.03em;
}

.notfound__text {
  max-width: 52ch;
  margin: 16px auto 0;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.65;
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
  margin-top: 30px;
}

.notfound__link {
  color: var(--blue-700);
  font-weight: 700;
}

.notfound__link:hover,
.notfound__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.notfound__quick {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  width: min(100%, 640px);
}

.notfound__quick p {
  margin: 0 0 14px;
  color: var(--muted, #64748b);
  font: 700 12px / 1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.notfound__quick ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notfound__quick a {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.notfound__quick a:hover,
.notfound__quick a:focus-visible {
  border-color: var(--blue-700);
  color: var(--blue-700);
}
