/* Layout: a bright white-and-blue page where people come first. Photos sit in real 3D (a turning carousel of
   faces, tilting programme tiles, a fan of teacher portraits) on frosted-glass surfaces, while blue ribbons and
   faded language elements drift behind the content from the top of the page to the bottom. Yellow comes only from the
   Erican T-shirts in the photos. */
:root {
  color-scheme: light;
  --bg: #f3f7ff;             /* white with a breath of blue */
  --white: #ffffff;
  --ink: #0f1a45;            /* deep navy for text */
  --mute: #55608f;
  --blue: #2757ff;           /* the working blue: buttons, links, numbers */
  --blue-deep: #1a2fa6;
  --sky: #d7e6ff;
  --indigo: #221e73;         /* Erican logo indigo */
  --dot: #ed212a;            /* the red dot from the logo */
  --glass: rgba(255, 255, 255, 0.68);
  --glass-edge: rgba(255, 255, 255, 0.96);
  --line: rgba(39, 87, 255, 0.16);
  --shadow: 0 26px 60px -26px rgba(26, 47, 166, 0.42);

  --font: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --g: clamp(16px, 4vw, 48px);
  --r: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background-color: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 88% -8%, #cfe0ff 0%, rgba(207, 224, 255, 0) 62%),
    radial-gradient(900px 640px at -12% 34%, #e2ecff 0%, rgba(226, 236, 255, 0) 60%),
    radial-gradient(1000px 700px at 100% 78%, #dbe8ff 0%, rgba(219, 232, 255, 0) 60%);
  background-attachment: fixed;
  font: 500 1.0625rem/1.55 var(--font); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
main { overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
i, em { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
::selection { background: var(--blue); color: #fff; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }
.wrap {
  width: 100%; max-width: calc(1240px + 2 * var(--g)); margin-inline: auto;
  padding-left: max(var(--g), env(safe-area-inset-left, 0px));
  padding-right: max(var(--g), env(safe-area-inset-right, 0px));
}

/* ---------- shared pieces ---------- */
.glass {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 26px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
.chip {
  display: inline-flex; align-items: center; gap: 9px; width: fit-content; padding: 8px 15px 8px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 10px 26px -14px rgba(26, 47, 166, 0.5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 0.82rem; font-weight: 700; color: var(--blue-deep);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.h2 { font-size: clamp(2.1rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; word-spacing: 0.05em; text-wrap: balance; max-width: 15em; }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--mute); max-width: 38em; text-wrap: pretty; }
.grad { background: linear-gradient(100deg, var(--blue) 0%, #5d97ff 55%, var(--blue-deep) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--blue); }
.head { display: grid; gap: 16px; margin-bottom: clamp(34px, 5vw, 60px); }
.head--center { justify-items: center; text-align: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; white-space: nowrap;
  box-shadow: 0 16px 30px -14px rgba(39, 87, 255, 0.85); transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.35s;
}
.btn:hover { transform: translateY(-3px); background: var(--blue-deep); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.9rem; }
.btn--glass { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn--glass:hover { background: #fff; }
.btn--white { background: #fff; color: var(--blue-deep); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.5); }
.btn--white:hover { background: var(--sky); }
.btn--line { background: transparent; border: 2px solid rgba(255, 255, 255, 0.7); box-shadow: none; }
.btn--line:hover { background: rgba(255, 255, 255, 0.16); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.actions--left { justify-content: flex-start; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: clamp(26px, 3.4vw, 44px); font-size: 0.92rem; font-weight: 700; }
.also span { color: var(--mute); margin-right: 6px; }
.also a { text-decoration: none; padding: 11px 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); color: var(--blue-deep); box-shadow: 0 10px 26px -16px rgba(26, 47, 166, 0.5); transition: background 0.2s, transform 0.3s var(--ease); }
.also a:hover { background: #fff; transform: translateY(-2px); }

/* ---------- nav ---------- */
/* A full-width bar with square edges. Nearly see-through at the top of the page, so it blends into the
   hero; once the page scrolls it stays fixed and turns to a solid frosted white. */
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.25); border-bottom: 1px solid rgba(255, 255, 255, 0);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.8); border-bottom-color: var(--line); box-shadow: 0 14px 40px -26px rgba(26, 47, 166, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.nav__bar {
  width: 100%; max-width: calc(1240px + 2 * var(--g)); margin-inline: auto; height: 72px;
  padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: 20px; transition: height 0.4s var(--ease);
}
.nav.is-stuck .nav__bar { height: 62px; }
.nav__logo { flex: none; border-radius: 5px; overflow: hidden; }
.nav__logo img { height: 42px; width: auto; }
.nav__links { display: flex; gap: clamp(16px, 2.8vw, 40px); margin-inline: auto; }
.nav__links a { position: relative; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding-block: 10px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
/* The logo is the biggest thing in the bar; the button is kept smaller than it in both height and width. The
   invisible ::before keeps the button comfortably tappable even though it looks small. */
.nav__bar .btn { position: relative; min-height: 29px; padding: 0 13px; font-size: 0.68rem; border-radius: 6px; letter-spacing: 0.04em; box-shadow: 0 10px 18px -12px rgba(39, 87, 255, 0.85); }
.nav__bar .btn::before { content: ""; position: absolute; inset: -8px -3px; }
.nav__menu { display: none; width: 44px; height: 44px; position: relative; }
.nav__menu span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.nav__menu span:first-child { top: 17px; }
.nav__menu span:last-child { top: 25px; }
.nav__menu[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: rgba(243, 247, 255, 0.97); padding-top: calc(env(safe-area-inset-top, 0px) + 92px); }
.menu__in { display: grid; }
.menu__in a { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; padding-block: 12px; }
.menu__in a:last-child { color: var(--blue); }

/* ---------- hero ---------- */
/* The first screen is a cinema-wide picture of teachers and students. The picture is pinned to the right edge
   at its natural shape; the people stand in its right two thirds and the empty wall on its left fades out into
   the page, which is where the headline sits. The height is capped (46% of the width, 740px at most) so the
   people never grow wide enough to run under the text. */
.hero {
  position: relative; display: grid; align-items: center;
  height: max(520px, min(100vh, 46vw, 740px)); height: max(520px, min(100svh, 46vw, 740px));
  padding-top: calc(env(safe-area-inset-top, 0px) + 72px); padding-bottom: clamp(70px, 6.5vw, 110px);
}
.hero__media {
  position: absolute; top: 0; right: 0; bottom: 0; aspect-ratio: 2560 / 1440; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 15%, #000 29%), linear-gradient(180deg, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 15%, #000 29%), linear-gradient(180deg, #000 74%, transparent 100%);
  mask-composite: intersect;
}
/* a light veil at the top keeps the see-through menu readable over the picture */
.hero__media::after { content: ""; position: absolute; inset: 0 0 auto; height: 26%; z-index: 3; background: linear-gradient(180deg, rgba(243, 247, 255, 0.8), rgba(243, 247, 255, 0)); }
/* a little spare picture above and to the right, so it can drift without showing an edge */
.hero__pan { position: absolute; inset: -5% -1.2% 0 0; will-change: transform; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-on { opacity: 1; z-index: 2; }
.hero__slide.is-prev { opacity: 1; z-index: 1; transition: none; }
.hero__slide img, .hero__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; transform-origin: 72% 55%; }
/* the moving version of a picture lies on top of it and appears once it is ready to play */
.hero__clip { z-index: 1; opacity: 0; transition: opacity 0.6s ease; }
.hero__clip.is-ready { opacity: 1; }
.hero__in { position: relative; z-index: 4; }
.hero__copy { position: relative; display: grid; justify-items: start; gap: clamp(12px, 1.6vw, 22px); max-width: min(560px, 33vw); }
/* a soft pool of the page colour behind the words, so the moving ribbon never crosses them at full strength */
.hero__copy::before { content: ""; position: absolute; inset: -14% -18%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(243, 247, 255, 0.92) 50%, rgba(243, 247, 255, 0)); }
.hero__title { font-size: clamp(2.3rem, 4.2vw, 4.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; word-spacing: 0.05em; }
.hero__title .grad { display: block; background-image: linear-gradient(100deg, var(--blue-deep) 0%, var(--blue) 55%, #4a82ff 100%); }
.hero .lede { max-width: 30em; color: #3d4878; }
.hero .actions { margin-top: 6px; flex-wrap: nowrap; min-width: 0; }
/* over the picture, bottom right: pause and three progress bars, then the caption of the current picture */
.hero__bar { position: absolute; left: 0; right: 0; bottom: clamp(70px, 6.5vw, 110px); z-index: 4; display: flex; align-items: center; justify-content: flex-end; gap: 12px; pointer-events: none; }
.hero__bar > * { pointer-events: auto; }
.hero__ctrl { display: flex; align-items: center; gap: 6px; padding: 5px 16px 5px 6px; border-radius: 999px; }
.hero__toggle { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); margin-right: 4px; transition: background 0.25s; }
.hero__toggle:hover { background: var(--blue-deep); }
.hero__toggle i { width: 11px; height: 12px; border-inline: 3.5px solid currentColor; }
.hero.is-userpaused .hero__toggle i { width: 0; height: 0; border-block: 7px solid transparent; border-left: 11px solid currentColor; border-right: 0; margin-left: 3px; }
.hero__dot { width: 40px; padding-block: 18px; }
.hero__dot i { display: block; position: relative; height: 4px; border-radius: 4px; background: rgba(15, 26, 69, 0.2); overflow: hidden; }
.hero__dot i::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-on i::after { animation: fill var(--hold, 6.5s) linear forwards; }
.hero.is-paused .hero__dot.is-on i::after { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }
.hero__cap { display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 22px; border-radius: 22px; text-decoration: none; color: var(--mute); font-size: 0.9rem; font-weight: 600; animation: cap 0.7s var(--ease) both; transition: background 0.25s; }
.hero__cap:hover { background: #fff; }
.hero__cap b { display: block; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.hero__cap em { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 1.2rem; font-weight: 800; transition: transform 0.4s var(--ease); }
.hero__cap:hover em { transform: translateX(4px); }
@keyframes cap { from { opacity: 0; transform: translateY(12px); } }

/* ---------- people: the turning carousel of faces ---------- */
.people { padding-block: clamp(20px, 3vw, 44px) clamp(10px, 2vw, 30px); text-align: center; }
.people .head { margin-bottom: 0; }
.people .ring { margin-top: clamp(-34px, -2vw, -10px); }
.ring {
  --w: clamp(150px, 17.5vw, 250px); --gap: clamp(14px, 2.2vw, 34px); --R: calc((var(--w) + var(--gap)) * 12 / 6.2832);
  position: relative; height: calc(var(--w) * 1.25 + 96px);
  perspective: 1500px; perspective-origin: 50% 30%; cursor: grab; touch-action: pan-y; user-select: none;
}
.ring.is-drag { cursor: grabbing; }
.ring__spin { position: absolute; left: 50%; top: calc(var(--w) * 0.625 + 26px); width: 0; height: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--R) * -1)) rotateX(-6deg) rotateY(var(--rot, 0deg)); }
.ring__card {
  position: absolute; left: calc(var(--w) / -2); top: calc(var(--w) * -0.625); width: var(--w); aspect-ratio: 4 / 5;
  border-radius: 26px; overflow: hidden; background: #fff; border: 5px solid #fff; box-shadow: var(--shadow);
  transform: rotateY(calc(var(--i, 0) * 30deg)) translateZ(var(--R)); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.ring__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; border-radius: 20px; }
/* optional clip of the same portrait coming to life; it fades in over the picture once it has loaded */
.ring__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.ring__clip.is-ready { opacity: 1; }
.ring__card figcaption { position: absolute; z-index: 1; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); font-size: 0.72rem; font-weight: 800; color: var(--blue-deep); }
.ring__hint { padding-block: 6px 18px; font-size: 0.8rem; font-weight: 700; color: var(--mute); }

/* ---------- facts ---------- */
/* the four cards tuck up into the soft lower edge of the opening picture */
.facts { position: relative; z-index: 2; margin-top: clamp(-64px, -4.5vw, -28px); padding-block: 0 clamp(50px, 7vw, 100px); }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.facts__grid > div { padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 6px; align-content: start; min-width: 0; }
.facts dd { font-size: clamp(1.9rem, 3.8vw, 3.1rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts dt { font-weight: 600; color: var(--mute); }

/* ---------- a message from the Principal ---------- */
.desk { padding-block: clamp(50px, 7vw, 100px) clamp(30px, 5vw, 70px); }
.desk .head { margin-bottom: clamp(34px, 5vw, 70px); }
.desk__logo { height: 38px; width: auto; border-radius: 4px; }
.desk__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5.4vw, 90px); align-items: start; }
/* The figure is a little taller than it is wide: the ring fills the bottom square and the head rises above it. */
/* On wide screens the portrait stays in view beside the message while it is read. */
.desk__photo { position: sticky; top: 104px; width: min(100%, 460px); aspect-ratio: 880 / 950; justify-self: center; margin-bottom: 26px; }
.desk__disc { position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #e5e0d8;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.92), 0 0 0 10px rgba(39, 87, 255, 0.24), 0 54px 90px -42px rgba(26, 47, 166, 0.7); }
.desk__disc img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.desk__pop { position: absolute; left: 0; top: 0; width: 100%; height: auto; pointer-events: none; }
.desk__halo { position: absolute; left: -7%; right: -7%; bottom: -7%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(39, 87, 255, 0) 0deg, rgba(39, 87, 255, 0.6) 80deg, rgba(39, 87, 255, 0) 170deg, rgba(93, 151, 255, 0.55) 260deg, rgba(39, 87, 255, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: deskspin 20s linear infinite; }
@keyframes deskspin { to { transform: rotate(360deg); } }
.desk__photo figcaption { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); padding: 10px 20px; border-radius: 16px; text-align: center; white-space: nowrap; font-weight: 800; line-height: 1.25; color: var(--blue-deep); }
.desk__photo figcaption small { display: block; font-weight: 600; font-size: 0.8rem; color: var(--mute); }
.desk__text { display: grid; gap: 18px; max-width: 41em; font-size: clamp(1.02rem, 1.22vw, 1.13rem); line-height: 1.66; font-weight: 600; }
.desk__hi { font-size: clamp(1.3rem, 2.1vw, 1.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; color: var(--blue-deep); }
.desk__sign { display: grid; gap: 2px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.desk__sign b { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.desk__sign span { font-size: 0.92rem; font-weight: 600; color: var(--mute); }
@media (max-width: 860px) {
  .desk__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .desk__photo { position: relative; top: auto; width: min(76%, 330px); margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .desk__halo { animation: none; } }

/* ---------- programmes: big tiles, big titles ---------- */
.progs { padding-block: clamp(50px, 7vw, 100px); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); perspective: 1700px; }
.tile {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 36px; overflow: hidden; isolation: isolate;
  color: #fff; text-decoration: none; background: var(--blue-deep); box-shadow: var(--shadow);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
}
.tile:hover { box-shadow: 0 44px 80px -30px rgba(26, 47, 166, 0.65); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.3s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 22, 74, 0) 34%, rgba(13, 22, 74, 0.36) 58%, rgba(13, 22, 74, 0.9) 100%); }
.tile__top { position: absolute; left: clamp(16px, 2vw, 26px); top: clamp(16px, 2vw, 26px); right: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tile__top b, .tile__top em { padding: 8px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; }
.tile__top b { background: #fff; color: var(--blue-deep); }
.tile__top em { background: rgba(13, 22, 74, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tile__text { position: absolute; left: clamp(18px, 2.4vw, 32px); right: clamp(84px, 9vw, 110px); bottom: clamp(18px, 2.4vw, 30px); display: grid; gap: 8px; }
.tile__text strong { font-size: clamp(2rem, 4.4vw, 3.7rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; word-spacing: 0.05em; text-wrap: balance; }
.tile__text span { font-size: clamp(0.98rem, 1.3vw, 1.14rem); line-height: 1.4; opacity: 0.94; max-width: 26em; }
.tile__go { position: absolute; right: clamp(16px, 2vw, 28px); bottom: clamp(18px, 2.4vw, 30px); width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; transition: transform 0.4s var(--ease), background 0.25s, color 0.25s; }
.tile:hover .tile__go { transform: translateX(6px); background: var(--blue); color: #fff; }
.tile--ask { background: linear-gradient(140deg, #3d6bff 0%, var(--blue) 40%, var(--blue-deep) 100%); }
.tile--ask::after { background: radial-gradient(60% 70% at 85% 10%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 70%); }
.tile--ask::before { content: ""; position: absolute; right: -12%; top: -18%; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.07), 0 0 0 100px rgba(255, 255, 255, 0.05); z-index: -1; }

/* ---------- teachers ---------- */
.teachers { padding-block: clamp(60px, 8vw, 120px); }
.teachers__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.teachers__copy { display: grid; gap: 18px; }
.points { display: grid; gap: 12px; margin-top: 8px; }
.points li { display: grid; gap: 2px; padding: 16px 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 14px 34px -22px rgba(26, 47, 166, 0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.points b { font-weight: 800; }
.points span { color: var(--mute); font-size: 0.98rem; }
/* four large teacher portraits in a staggered 3D collage, so every face is fully visible */
.fan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); padding-bottom: 44px; perspective: 1500px; }
.fan__card {
  position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; border: 6px solid #fff; background: #fff; box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
}
.fan__card img { width: 100%; height: 100%; object-fit: cover; border-radius: 23px; }
.fan__card:nth-child(1) { transform: rotateY(9deg) rotate(-2deg); }
.fan__card:nth-child(2) { transform: translateY(44px) rotateY(-9deg) rotate(2deg); }
.fan__card:nth-child(3) { transform: rotateY(9deg) rotate(1.5deg); }
.fan__card:nth-child(4) { transform: translateY(44px) rotateY(-9deg) rotate(-1.5deg); }
.fan__card:hover { transform: translateZ(70px) scale(1.03); z-index: 3; box-shadow: 0 50px 90px -34px rgba(26, 47, 166, 0.7); }
.fan__card:nth-child(even):hover { transform: translateY(44px) translateZ(70px) scale(1.03); }
.wide { position: relative; margin-top: clamp(40px, 6vw, 80px); perspective: 1400px; }
.wide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 38px; box-shadow: 0 50px 100px -44px rgba(26, 47, 166, 0.7); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease); }
.wide figcaption { position: absolute; left: clamp(14px, 2.4vw, 30px); bottom: clamp(14px, 2.4vw, 30px); padding: 12px 20px; border-radius: 999px; font-weight: 800; color: var(--blue-deep); }

/* ---------- students ---------- */
.students { padding-block: clamp(60px, 8vw, 120px); }
.students .head { margin-bottom: clamp(20px, 3vw, 36px); }
.wide--flush { margin-top: 0; }

/* ---------- life ---------- */
.life { padding-block: clamp(60px, 8vw, 120px); }
.lifegrid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-auto-rows: clamp(210px, 23vw, 320px); gap: clamp(12px, 1.6vw, 20px); }
.ltile { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--sky); }
.ltile--a { grid-row: span 2; }
.ltile--d { grid-column: span 2; }
.ltile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.ltile:hover img { transform: scale(1.05); }
.ltile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 22, 74, 0) 50%, rgba(13, 22, 74, 0.78) 100%); }
.ltile figcaption { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; color: #fff; font-size: 0.98rem; }
.ltile figcaption b { display: block; font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }

/* ---------- voices ---------- */
.voices { padding-block: clamp(60px, 8vw, 120px); }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.quotes blockquote { display: grid; gap: 22px; align-content: space-between; padding: clamp(22px, 3vw, 36px); border-radius: 30px; }
.quotes p { font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 700; line-height: 1.38; letter-spacing: -0.02em; }
.quotes p::before { content: "“"; display: block; font-size: 3.4rem; line-height: 0.7; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.quotes footer { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 18px); color: var(--mute); font-weight: 600; }
.quotes footer img { flex: none; width: clamp(64px, 6vw, 84px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 14px 28px -14px rgba(26, 47, 166, 0.6); }
.quotes footer b { display: block; color: var(--ink); font-weight: 800; font-size: 1.08em; }

/* ---------- centres ---------- */
.centres { padding-block: clamp(60px, 8vw, 120px); }
.centres__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 1.8vw, 24px); align-items: stretch; }
/* Erican KLCC, the featured centre: the reception video on top and a solid blue panel below with the name in large
   type, so it is clearly the main card of the section. */
.visit { display: grid; grid-template-rows: minmax(0, 1fr) auto; border-radius: 36px; overflow: hidden; color: #fff; background: linear-gradient(140deg, #3767ff 0%, var(--blue) 34%, var(--blue-deep) 100%); box-shadow: 0 50px 90px -46px rgba(26, 47, 166, 0.85); }
.visit__media { position: relative; min-height: clamp(240px, 26vw, 360px); background: var(--indigo); }
.visit video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit__toggle { position: absolute; right: 14px; top: 14px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.82); font-size: 0.8rem; font-weight: 800; color: var(--blue-deep); }
.visit__info { display: grid; gap: 10px; padding: clamp(22px, 2.6vw, 36px); }
.visit__tag { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.visit__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85); }
.visit__name { font-size: clamp(2.3rem, 4.2vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.visit__addr { max-width: 30em; color: rgba(255, 255, 255, 0.9); }
.visit__go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 10px; }
.visit__tel { display: grid; font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.visit__tel small { font-size: 0.78rem; font-weight: 700; letter-spacing: 0; color: rgba(255, 255, 255, 0.74); }
.visit__tel:hover { text-decoration: underline; }
.clist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.clist li { display: grid; gap: 2px; align-content: center; padding: 18px 22px; border-radius: 22px; }
.clist b { font-size: 1.16rem; font-weight: 800; letter-spacing: -0.03em; }
.clist span { color: var(--mute); font-size: 0.92rem; }
.clist em { margin-top: 6px; font-weight: 800; color: var(--blue); user-select: all; }
.clist .clist__all { display: block; padding: 0; }
.clist__all a { position: relative; display: grid; gap: 2px; align-content: center; height: 100%; padding: 18px 64px 18px 22px; border-radius: 22px; border: 2px dashed rgba(39, 87, 255, 0.34); color: var(--blue-deep); text-decoration: none; transition: background 0.25s, border-color 0.25s; }
.clist__all a:hover { background: rgba(255, 255, 255, 0.7); border-color: var(--blue); }
.clist__all i { position: absolute; right: 18px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; transition: transform 0.35s var(--ease); }
.clist__all a:hover i { transform: translateX(4px); }

/* ---------- hello ---------- */
.hello { padding-block: clamp(40px, 6vw, 90px) clamp(60px, 8vw, 110px); }
.hello__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 46px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #3767ff 0%, var(--blue) 30%, var(--blue-deep) 78%, var(--indigo) 100%); box-shadow: 0 60px 110px -50px rgba(26, 47, 166, 0.85); }
.hello__copy { display: grid; gap: 20px; align-content: center; padding: clamp(28px, 5vw, 72px); }
.hello .h2 { color: #fff; }
.hello .lede { color: rgba(255, 255, 255, 0.88); }
.hello__lines { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.hello__lines dt { font-size: 0.84rem; font-weight: 700; color: rgba(255, 255, 255, 0.72); }
.hello__lines dd { font-weight: 800; user-select: all; }
.hello__photo { position: relative; min-height: 320px; }
.hello__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- footer ---------- */
.foot { padding-block: 30px 34px; font-size: 0.92rem; color: var(--mute); }
.foot__cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 30px 24px; padding-block: 34px; border-top: 1px solid var(--line); }
.foot__brand { display: grid; gap: 14px; align-content: start; }
.foot__brand img { width: 140px; border-radius: 6px; }
.foot__brand p { max-width: 28ch; }
.foot nav { display: grid; gap: 9px; align-content: start; }
.foot h3 { font-size: 0.92rem; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.foot nav a { text-decoration: none; width: fit-content; }
.foot nav a:hover { color: var(--blue); }
.foot__base { font-size: 0.8rem; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- WhatsApp button ---------- */
/* Fixed to the bottom right on every screen. Sits below the top bar and the phone menu, so an open menu covers it.
   On devices with a mouse the label slides out on hover or keyboard focus. */
.wa {
  position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 40;
  display: flex; align-items: center; height: 58px; min-width: 58px; border-radius: 999px;
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 18px 34px -14px rgba(13, 122, 62, 0.9), 0 4px 12px -4px rgba(15, 26, 69, 0.3);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); animation: wa 2.8s ease-out 1.5s infinite; pointer-events: none; }
.wa svg { flex: none; width: 58px; height: 58px; padding: 14px; fill: currentColor; }
.wa span { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 0.95rem; font-weight: 800; color: #06361c; transition: max-width 0.45s var(--ease), padding 0.45s var(--ease); }
.wa:hover { transform: translateY(-3px); }
.wa:focus-visible { outline-color: #0b7a3b; border-radius: 999px; }
@media (hover: hover) {
  .wa:hover span, .wa:focus-visible span { max-width: 150px; padding-right: 22px; }
}
@keyframes wa { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }

/* ---------- responsive ---------- */
/* phones and tablets: the picture sits on top, the headline below it */
@media (max-width: 1100px) {
  .hero { --mh: min(clamp(260px, 86vw, 560px), 62vh); display: block; height: auto; padding: 0 0 clamp(40px, 8vw, 64px); }
  @supports (height: 1svh) { .hero { --mh: min(clamp(260px, 86vw, 560px), 62svh); } }
  .hero__media {
    position: relative; inset: auto; width: 100%; height: var(--mh); aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-composite: add;
  }
  .hero__in { margin-top: -6px; }
  .hero__copy { max-width: 620px; }
  .hero__title { font-size: clamp(2.3rem, 6vw, 3.6rem); }
  .hero .actions { flex-wrap: wrap; }
  .hero__bar { bottom: auto; top: calc(var(--mh) - 62px); }
  .hero__caps { display: none; }
  .facts { margin-top: 0; }
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__bar .btn { margin-left: auto; }
  .nav__menu { display: block; }
  .nav__bar { gap: 12px; }
  .nav__menu { margin-right: -8px; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teachers__grid, .centres__grid, .hello__panel { grid-template-columns: minmax(0, 1fr); }
  .fan { padding-bottom: 30px; }
  .fan .fan__card:nth-child(n) { transform: none; }
  .fan .fan__card:nth-child(even) { transform: translateY(26px); }
  .visit__media { min-height: 0; aspect-ratio: 16 / 10; }
  .hello__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .lifegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 40vw, 300px); }
  .ltile--a { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .tiles, .students__grid, .quotes { grid-template-columns: minmax(0, 1fr); }
  .tile { aspect-ratio: 5 / 4; border-radius: 30px; }
  .tile__text strong { font-size: clamp(2rem, 9.4vw, 2.7rem); }
  .tile__go { width: 50px; height: 50px; }
  .clist { grid-template-columns: minmax(0, 1fr); }
  .ring { --w: clamp(150px, 46vw, 200px); --gap: 16px; }
  .hero .actions .btn { width: 100%; }
  .hero .actions { width: 100%; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
  .hello__panel { border-radius: 34px; }
  .wide img { border-radius: 28px; }
  .visit { border-radius: 30px; }
  .wa { right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); height: 54px; min-width: 54px; }
  .wa svg { width: 54px; height: 54px; padding: 13px; }
  .foot { padding-bottom: 86px; }   /* room for the WhatsApp button at the very end of the page */
  .foot__base { padding-right: 64px; }
}
/* very narrow phones: keep logo, button and menu on one line, the logo still the largest */
@media (max-width: 359px) {
  .nav__bar { gap: 8px; }
  .nav__logo img { height: 36px; }
  .nav__bar .btn { min-height: 28px; padding: 0 10px; font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

/* ---------- Site menu: drop-down groups (all pages) ---------- */
.nav__item { position: relative; display: flex; align-items: center; height: 100%; }
.nav__item > a, .nav__item > button { position: relative; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding-block: 10px; white-space: nowrap; }
.nav__item > button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav__item:hover > button::after, .nav__item:hover > a::after, .nav__item > [aria-current]::after { transform: scaleX(1); }
.nav__links { align-self: stretch; }
.nav__drop {
  position: absolute; top: calc(100% - 8px); left: 50%; --x: -50%; padding: 14px; border-radius: 16px;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 5), auto); gap: 2px 10px;
  background: rgba(255, 255, 255, 0.97); border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(26, 47, 166, 0.6);
  opacity: 0; visibility: hidden; transform: translate(var(--x), 8px); transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0.25s;
}
/* The first menu opens from its own left edge and the last ones from their right edge, so a two-column list never leaves the screen. */
.nav__item:first-child .nav__drop { left: -22px; --x: 0px; }
.nav__item:nth-last-child(-n+2) .nav__drop { left: auto; right: -22px; --x: 0px; }
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop, .nav__item.is-open .nav__drop { opacity: 1; visibility: visible; transform: translate(var(--x), 0); }
.nav__links .nav__drop a { display: flex; align-items: center; gap: 11px; padding: 10px 16px 10px 12px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; text-transform: none; white-space: nowrap; }
.nav__links .nav__drop a::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(39, 87, 255, 0.12); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.nav__links .nav__drop a::after { display: none; }
.nav__links .nav__drop a:hover { background: rgba(39, 87, 255, 0.08); color: var(--blue-deep); }
.nav__links .nav__drop a:hover::before { transform: scale(1.25); box-shadow: 0 0 0 5px rgba(39, 87, 255, 0.2); }
.nav__drop small { display: block; padding: 10px 12px 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.menu { overflow-y: auto; padding-bottom: 110px; }
.menu__in details { border-bottom: 1px solid var(--line); }
.menu__in summary { display: flex; justify-content: space-between; align-items: center; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.04em; padding-block: 13px; cursor: pointer; list-style: none; }
.menu__in summary::-webkit-details-marker { display: none; }
.menu__in summary::after { content: "+"; font-weight: 600; color: var(--blue); }
.menu__in details[open] summary::after { content: "–"; }
.menu__in details a { display: block; font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; padding-block: 9px; color: var(--mute); }
.menu__in details a:last-child { color: var(--mute); padding-bottom: 18px; }
.menu__in > a { font-size: 1.7rem; padding-block: 13px; border-bottom: 1px solid var(--line); }
.menu__in > a:last-child { border-bottom: 0; }

/* ---------- Inner pages ---------- */
.page { padding-top: calc(env(safe-area-inset-top, 0px) + 72px); }
.sec { padding-block: clamp(36px, 5vw, 72px); }
.sec--tight { padding-block: clamp(18px, 2.6vw, 36px); }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }

/* opening block: headline on the left, one large picture on the right */
.phero { padding-block: clamp(28px, 4.4vw, 64px) clamp(20px, 3vw, 44px); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4.4vw, 70px); align-items: center; }
.phero__copy { display: grid; gap: clamp(14px, 1.6vw, 22px); justify-items: start; }
.phero h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; word-spacing: 0.05em; text-wrap: balance; }
.phero__media { position: relative; perspective: 1400px; }
.phero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 38px; box-shadow: 0 50px 100px -44px rgba(26, 47, 166, 0.75); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease); }
.phero__media figcaption { position: absolute; left: -14px; bottom: 26px; padding: 12px 18px; border-radius: 18px; font-weight: 800; color: var(--blue-deep); max-width: 80%; }
.phero__media figcaption small { display: block; font-size: 0.8rem; font-weight: 600; color: var(--mute); }
.phero--plain .phero__grid { grid-template-columns: minmax(0, 1fr); }
.phero--plain .phero__copy { justify-items: center; text-align: center; margin-inline: auto; max-width: 900px; }
.phero--person .phero__media img { aspect-ratio: 4 / 5; object-position: 50% 0; background: linear-gradient(160deg, #e6efff 0%, #bcd3ff 100%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.84rem; font-weight: 700; color: var(--mute); }
.crumbs a { text-decoration: none; color: var(--blue-deep); }
.crumbs a::after { content: "/"; margin-left: 8px; color: var(--mute); font-weight: 500; }

/* reading text */
.prose { display: grid; gap: 1.05em; max-width: 46em; font-size: clamp(1.02rem, 1.25vw, 1.14rem); line-height: 1.62; color: #2a3566; }
.prose h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); margin-top: 0.5em; text-wrap: balance; }
.prose h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-top: 0.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { display: grid; gap: 0.5em; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li::before { content: ""; position: absolute; left: 0.2em; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 2.2em; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: 0.1em; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--blue); color: #fff; font-size: 0.82em; font-weight: 800; display: grid; place-items: center; }
.prose a { color: var(--blue); font-weight: 700; text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--ink); font-weight: 800; }
.prose--wide { max-width: none; }
.panel { padding: clamp(22px, 3.4vw, 46px); border-radius: 34px; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 54px); align-items: start; }
.cols2--form { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.note { padding: 14px 18px; border-radius: 16px; background: rgba(39, 87, 255, 0.08); border: 1px dashed rgba(39, 87, 255, 0.4); font-size: 0.92rem; font-weight: 600; color: var(--blue-deep); }

/* picture beside text */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4.4vw, 70px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 34px; box-shadow: 0 44px 90px -44px rgba(26, 47, 166, 0.7); }
.split__body { display: grid; gap: 16px; justify-items: start; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: grid; gap: 8px; align-content: start; padding: clamp(20px, 2.4vw, 30px); border-radius: 26px; }
.card > i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 6px; box-shadow: 0 14px 24px -12px rgba(39, 87, 255, 0.9); }
.card h3 { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.card p { color: var(--mute); font-size: 0.98rem; line-height: 1.5; }
.card--link { text-decoration: none; transition: transform 0.4s var(--ease), background 0.2s; }
.card--link:hover { transform: translateY(-4px); background: #fff; }
.card--link b { color: var(--blue); font-weight: 800; margin-top: 4px; }
.card--photo { padding: 0; overflow: hidden; }
.card--photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card--photo > div { display: grid; gap: 8px; padding: 18px 22px 24px; }

/* numbered steps */
.steps { display: grid; gap: 14px; counter-reset: s; }
.steps li { position: relative; counter-increment: s; padding: 22px 24px 22px 86px; border-radius: 24px; display: grid; gap: 4px; }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 20px; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(140deg, #4a7bff, var(--blue-deep)); color: #fff; font-size: 1.3rem; font-weight: 800; display: grid; place-items: center; }
.steps b { font-size: 1.16rem; font-weight: 800; letter-spacing: -0.02em; }
.steps span { color: var(--mute); }

/* tables */
.tblwrap { overflow-x: auto; border-radius: 24px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 460px; }
.tbl th, .tbl td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.tbl td:last-child, .tbl th:last-child { text-align: right; font-weight: 800; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl--plain td:last-child, .tbl--plain th:last-child { text-align: left; font-weight: inherit; color: inherit; }
.day { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.day li { padding: 14px 16px; border-radius: 18px; display: grid; gap: 2px; }
.day small { font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }
.day b { font-weight: 800; letter-spacing: -0.02em; }
.day li.is-break { background: transparent; border: 1px dashed var(--line); box-shadow: none; color: var(--mute); }

/* questions and answers */
.faq { display: grid; gap: 10px; max-width: 900px; margin-inline: auto; }
.faq details { border-radius: 22px; padding: 0 22px; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-block: 18px; font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--mute); max-width: 44em; }

/* online payment block */
.pay { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); border-radius: 38px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #3767ff 0%, var(--blue) 34%, var(--blue-deep) 100%); box-shadow: 0 50px 100px -50px rgba(26, 47, 166, 0.9); scroll-margin-top: 90px; }
.pay__main { display: grid; gap: 16px; padding: clamp(24px, 4vw, 54px); align-content: center; }
.pay__main p { color: rgba(255, 255, 255, 0.88); max-width: 34em; }
.pay__form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-top: 6px; }
.pay__amt { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; flex: 1 1 200px; }
.pay__amt input { width: 100%; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.2rem; font-weight: 800; color: var(--ink); background: transparent; }
.pay__side { display: grid; gap: 10px; align-content: center; padding: clamp(24px, 3.4vw, 44px); background: rgba(13, 22, 74, 0.28); }
.pay__side b { font-weight: 800; }
.pay__side span { color: rgba(255, 255, 255, 0.84); font-size: 0.95rem; }
.pay__wallets { display: flex; flex-wrap: wrap; gap: 6px; }
.pay__wallets em { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 0.82rem; font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.plan { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.6vw, 32px); border-radius: 28px; }
.plan small { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.plan h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.plan strong { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; color: var(--blue-deep); line-height: 1; }
.plan ul { display: grid; gap: 6px; color: var(--mute); font-size: 0.96rem; margin-bottom: 8px; }
.plan .btn { justify-self: start; }

/* closing band */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(26px, 4vw, 54px); border-radius: 38px; color: #fff; background: linear-gradient(135deg, #3767ff 0%, var(--blue) 30%, var(--blue-deep) 78%, var(--indigo) 100%); box-shadow: 0 50px 100px -50px rgba(26, 47, 166, 0.9); }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.cta p { color: rgba(255, 255, 255, 0.88); margin-top: 10px; max-width: 36em; }

/* photo grids */
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.gal figure { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.gal img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal figure:hover img { transform: scale(1.05); }
.gal figure.is-tall { grid-row: span 2; }
.gal figure.is-tall img { aspect-ratio: auto; }
.gal figcaption { position: absolute; left: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px; font-size: 0.86rem; font-weight: 800; color: var(--blue-deep); }

/* forms */
.form { display: grid; gap: 22px; padding: clamp(22px, 3.6vw, 48px); border-radius: 34px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.form legend { padding: 0; font-size: 1.24rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 700; }
.field small { font-weight: 500; color: var(--mute); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid rgba(39, 87, 255, 0.22); background: rgba(255, 255, 255, 0.9); font: inherit; font-weight: 600; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(39, 87, 255, 0.16); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(39, 87, 255, 0.22); background: rgba(255, 255, 255, 0.9); font-weight: 700; font-size: 0.94rem; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts label:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.opts label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.checks { display: grid; gap: 10px; }
.checks label { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 0.94rem; font-weight: 500; color: #2a3566; }
.checks input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); }
.form__done { display: none; }
.form.is-sent .form__done { display: block; }

/* centres */
.centre { display: grid; gap: 10px; align-content: start; padding: clamp(20px, 2.4vw, 30px); border-radius: 28px; }
.centre small { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.centre h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.centre address { font-style: normal; color: var(--mute); }
.centre dl { display: grid; gap: 4px; font-weight: 700; }
.centre dl div { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.centre dt { color: var(--mute); font-weight: 600; min-width: 46px; }
.centre a:not(.btn) { color: var(--blue-deep); text-underline-offset: 3px; }
.centre--main { grid-column: span 2; color: #fff; background: linear-gradient(140deg, #3767ff 0%, var(--blue) 34%, var(--blue-deep) 100%); border: 0; }
.centre--main small, .centre--main address, .centre--main dt { color: rgba(255, 255, 255, 0.8); }
.centre--main a:not(.btn) { color: #fff; }
.centre--main h3 { font-size: clamp(2rem, 3.6vw, 3rem); }

/* founder */
.founder { position: relative; border-radius: 38px; overflow: hidden; background: linear-gradient(165deg, #eaf1ff 0%, #b9d0ff 100%); box-shadow: 0 50px 100px -44px rgba(26, 47, 166, 0.7); aspect-ratio: 4 / 5; }
.founder img { position: absolute; left: 50%; top: 5%; width: 62%; transform: translateX(-50%); }
.founder figcaption { position: absolute; left: 18px; bottom: 18px; padding: 12px 18px; border-radius: 18px; font-weight: 800; color: var(--blue-deep); }
.founder figcaption small { display: block; font-weight: 600; color: var(--mute); font-size: 0.82rem; }
.pull { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--blue-deep); text-wrap: balance; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.post { display: grid; grid-template-rows: auto 1fr; border-radius: 28px; overflow: hidden; text-decoration: none; transition: transform 0.4s var(--ease), background 0.2s; }
.post:hover { transform: translateY(-4px); background: #fff; }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post > div { display: grid; gap: 8px; align-content: start; padding: 18px 22px 24px; }
.post small { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.post h3 { font-size: 1.16rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.22; }
.post p { color: var(--mute); font-size: 0.94rem; line-height: 1.45; }
.article { max-width: 780px; margin-inline: auto; }
.article__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 34px; box-shadow: 0 44px 90px -44px rgba(26, 47, 166, 0.7); margin-bottom: clamp(24px, 3vw, 40px); }

/* online tests (the quiz itself is drawn by Quiz and Survey Master inside this frame) */
.test { max-width: 860px; margin-inline: auto; display: grid; gap: 16px; }
.test__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.test__q { padding: clamp(20px, 2.6vw, 30px); border-radius: 26px; display: grid; gap: 14px; }
.test__q h3 { font-size: 1.14rem; font-weight: 800; letter-spacing: -0.02em; }
.test__q .opts { display: grid; gap: 8px; }
.test__q .opts label { border-radius: 16px; justify-content: flex-start; }
.audio { display: grid; gap: 10px; padding: 20px 24px; border-radius: 24px; }
.audio audio { width: 100%; }
.qr { display: grid; place-items: center; text-align: center; gap: 6px; aspect-ratio: 1; max-width: 240px; border-radius: 24px; border: 2px dashed rgba(39, 87, 255, 0.4); color: var(--mute); font-size: 0.86rem; font-weight: 600; padding: 18px; }

@media (max-width: 980px) {
  .phero__grid, .split, .cols2, .cols2--form, .pay, .cta { grid-template-columns: minmax(0, 1fr); }
  .split--flip > :first-child { order: 0; }
  .phero__media figcaption { left: 12px; }
  .cards, .cards--4, .plans, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta .btn { justify-self: start; }
}
@media (max-width: 700px) {
  .cards, .cards--2, .cards--4, .plans, .posts, .form__row, .form__row--3 { grid-template-columns: minmax(0, 1fr); }
  .centre--main { grid-column: auto; }
  .phero__media img, .split__img img, .founder { border-radius: 28px; }
  .pay, .cta, .panel, .form { border-radius: 28px; }
  .steps li { padding: 74px 20px 20px; }
  .steps li::before { left: 20px; top: 18px; }
  .phero .actions .btn { width: 100%; }
  .phero .actions { width: 100%; }
}

.cards--1 { grid-template-columns: minmax(0, 1fr); }
.facts-inline .facts__grid, .sec .facts__grid { margin: 0; }
