:root {
  --navy: #223f6b;
  --navy-dark: #142a49;
  --navy-deep: #0b1c34;
  --orange: #f49f0f;
  --green: #4fbb37;
  --pink: #e51c6f;
  --ink: #142238;
  --muted: #667085;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --line: rgba(34, 63, 107, 0.13);
  --display: "RB", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  --body: "RB", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  --shadow: 0 24px 70px rgba(20, 42, 73, 0.16);
  /*
   * Every photo carries this: a blue base along the bottom that thins out on
   * the way up. The ramp is long and multi-stop so the caption stays readable
   * over a bright picture without the hard band a two-stop gradient leaves.
   */
  --photo-scrim: linear-gradient(
    0deg,
    rgba(11, 30, 56, 0.86) 0%,
    rgba(11, 30, 56, 0.64) 16%,
    rgba(11, 30, 56, 0.32) 38%,
    rgba(11, 30, 56, 0.1) 56%,
    rgba(11, 30, 56, 0) 74%
  );
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}

main > section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

::selection {
  color: var(--paper);
  background: var(--pink);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #edf1f6;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #edf1f6;
  border-radius: 20px;
  background: var(--navy);
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  gap: 18px;
  color: var(--paper);
  background: var(--navy-deep);
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.page-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.page-loader p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.loader-mark {
  position: relative;
  display: grid;
  width: 210px;
  height: 110px;
  margin: auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
}

.loader-mark img {
  position: relative;
  z-index: 1;
  width: 162px;
  height: auto;
}

.loader-mark i {
  position: absolute;
  inset: -1px;
  border-top: 3px solid var(--orange);
  border-right: 3px solid transparent;
  border-radius: 32px;
  animation: loaderSpin 0.85s linear infinite;
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1001;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--green));
}

.cursor-glow {
  position: fixed;
  z-index: 100;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(244, 159, 15, 0.7);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
}

.cursor-glow.is-active {
  width: 54px;
  height: 54px;
  border-color: rgba(229, 28, 111, 0.55);
}

.section {
  padding: 120px 0;
}

.section-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  border-radius: 9px;
  background: currentColor;
  content: "";
}

.eyebrow.dark {
  color: var(--navy);
}

.section-intro {
  margin-bottom: 64px;
}

.section-intro h2,
.faq-intro h2 {
  margin: 16px 0 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.16;
  word-spacing: 0.05em;
}

.section-intro h2 span,
.faq-intro h2 span {
  color: var(--pink);
}

.section-intro p,
.faq-intro > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.split-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.72fr;
  gap: 80px;
  align-items: end;
}

.split-intro p {
  margin: 0 0 8px;
}

.centered {
  max-width: 830px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.centered .eyebrow {
  justify-content: center;
}

.centered p {
  max-width: 650px;
  margin: 22px auto 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 88px;
  padding: 16px clamp(24px, 4.5vw, 72px);
  color: var(--paper);
  transition: min-height 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  min-height: 72px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 35px rgba(14, 34, 60, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: var(--paper);
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(10, 27, 51, 0.25);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.brand-mark span {
  color: var(--orange);
}

.site-header:not(.is-scrolled) .brand-mark {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 800;
}

.brand-copy small {
  margin-top: 4px;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.64;
  text-transform: uppercase;
}

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

.desktop-nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.87rem;
  font-weight: 600;
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  border-radius: 10px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  opacity: 1;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
}

.header-login,
.header-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.83rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.header-login {
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
}

.header-login:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.header-login svg {
  width: 18px;
}

.header-action svg {
  width: 17px;
}

.site-header.is-scrolled .header-login {
  color: var(--navy);
  border-color: rgba(34, 63, 107, 0.18);
}

.site-header.is-scrolled .header-login:hover {
  background: rgba(34, 63, 107, 0.07);
}

.site-header.is-scrolled .header-action {
  color: var(--paper);
  background: var(--navy);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  border-radius: 5px;
  background: currentColor;
  transition: transform 0.3s ease;
}

.site-header.is-scrolled .nav-toggle {
  border-color: var(--line);
  background: var(--paper);
}

.menu-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  align-content: center;
  padding: 110px 32px 40px;
  color: var(--paper);
  background:
    radial-gradient(circle at 85% 15%, rgba(229, 28, 111, 0.3), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(79, 187, 55, 0.2), transparent 30%),
    var(--navy-deep);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.menu-open .mobile-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--display);
  font-size: clamp(1.8rem, 8vw, 3rem);
  font-weight: 700;
}

.mobile-menu nav span {
  color: var(--orange);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding: 150px clamp(24px, 7vw, 118px) 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-overlay,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background: var(--navy-deep);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 23, 45, 0.96) 0%, rgba(20, 45, 79, 0.84) 37%, rgba(20, 45, 79, 0.28) 69%, rgba(8, 23, 45, 0.15) 100%),
    linear-gradient(0deg, rgba(8, 23, 45, 0.56), transparent 45%);
}

.hero-grid {
  z-index: 1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(to right, black, transparent 76%);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(760px, 59vw);
  color: var(--paper);
}

.hero-eyebrow {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  animation: heroEnter 0.8s 1.5s var(--ease) both;
}

.hero-eyebrow::before {
  display: none;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(79, 187, 55, 0.6);
  animation: pulse 1.7s infinite;
}

.hero h1 {
  max-width: 760px;
  margin: 30px 0 34px;
  font-family: var(--display);
  /*
   * The headline is capped so both of its lines fit their own row at every
   * width: "a stronger future." is the longest thing it ever has to hold, and
   * the sentence is meant to read as two lines, never three.
   */
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  font-weight: 800;
  letter-spacing: 0.012em;
  /* The lines used to almost touch. This leaves the headline room to breathe. */
  line-height: 1.15;
  /* A light nudge only: the display face already carries generous side bearings. */
  word-spacing: 0.03em;
  animation: heroEnter 0.9s 1.62s var(--ease) both;
}

/* Arabic sits taller than Latin once diacritics are drawn, so it needs more. */
html[dir="rtl"] .hero h1 {
  /*
   * Arabic glyphs must stay joined, so letter tracking is left alone. The word gap
   * is only nudged: Arabic words already read as separate blocks, and the wide
   * setting the Latin headline wants pulls this one apart.
   */
  letter-spacing: normal;
  line-height: 1.5;
  word-spacing: 0.06em;
}

/* Each half of the sentence keeps its own row; neither may break in two. */
.hero-line {
  display: inline-block;
  white-space: nowrap;
}

.changing-word {
  position: relative;
  display: inline-block;
  color: var(--orange);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.changing-word::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  content: "";
  opacity: 0.8;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 0.8s 2.2s var(--ease) forwards;
}

.changing-word.is-changing {
  opacity: 0;
  transform: translateY(10px);
}

.hero-content > p {
  max-width: 600px;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.8;
  animation: heroEnter 0.9s 1.74s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: heroEnter 0.9s 1.86s var(--ease) both;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button svg {
  width: 19px;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--navy-deep);
  background: var(--orange);
  box-shadow: 0 18px 35px rgba(244, 159, 15, 0.25);
}

.button-primary:hover {
  box-shadow: 0 23px 45px rgba(244, 159, 15, 0.38);
}

.button-ghost {
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.play-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.12);
}

/* On the orange primary button a translucent white disc disappears, so the
   play mark gets a solid navy disc instead. */
.button-primary .play-icon {
  color: var(--orange);
  background: var(--navy-deep);
}

.play-icon svg {
  width: 16px;
}

.glass-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  color: var(--paper);
  background: rgba(13, 33, 59, 0.55);
  box-shadow: 0 20px 50px rgba(7, 19, 36, 0.26);
  backdrop-filter: blur(18px);
}

.hero-note {
  top: 29%;
  right: 5.5%;
  animation: cardIn 0.8s 2s var(--ease) both, cardFloat 5s 2.8s ease-in-out infinite;
}

.note-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 13px;
  color: var(--paper);
  background: var(--green);
}

.note-icon svg {
  width: 24px;
}

.glass-card strong,
.glass-card span {
  display: block;
}

.glass-card strong {
  font-family: var(--display);
  font-size: 0.9rem;
}

.glass-card div > span,
.glass-card small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
}

.hero-rating {
  right: 10%;
  bottom: 19%;
  animation: cardIn 0.8s 2.15s var(--ease) both, cardFloat 5.4s 3s ease-in-out infinite reverse;
}

.rating-avatars {
  display: flex;
  padding-left: 8px;
}

.rating-avatars span {
  display: grid;
  width: 33px;
  height: 33px;
  margin-left: -8px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  color: var(--paper);
  background: var(--pink);
  font-size: 0.58rem;
  font-weight: 800;
}

.rating-avatars span:nth-child(2) {
  background: var(--orange);
}

.rating-avatars span:nth-child(3) {
  background: var(--green);
}

.hero-orbit {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit::after {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px var(--orange);
  content: "";
}

.orbit-one {
  top: 11%;
  right: -9%;
  width: 590px;
  height: 590px;
  animation: orbitSpin 22s linear infinite;
}

.orbit-two {
  right: 6%;
  bottom: -30%;
  width: 480px;
  height: 480px;
  border-style: dashed;
  animation: orbitSpin 28s linear infinite reverse;
}

.orbit-two::after {
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.floating-shape {
  position: absolute;
  z-index: 3;
  display: block;
  pointer-events: none;
  animation: shapeFloat 7s ease-in-out infinite;
}

.shape-orange {
  top: 19%;
  left: 56%;
  width: 24px;
  height: 24px;
  border: 5px solid var(--orange);
  border-radius: 6px;
  transform: rotate(20deg);
}

.shape-green {
  right: 4%;
  bottom: 38%;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--green);
  animation-delay: -2s;
}

.shape-pink {
  top: 46%;
  right: 31%;
  width: 0;
  height: 0;
  border-right: 10px solid transparent;
  border-bottom: 18px solid var(--pink);
  border-left: 10px solid transparent;
  animation-delay: -4s;
}

.signal-bar {
  overflow: hidden;
  padding: 19px 0;
  color: var(--paper);
  background: var(--navy-deep);
}

.signal-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marquee 28s linear infinite;
}

.signal-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.signal-track i {
  font-style: normal;
}

.signal-track .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.orange { background: var(--orange); }
.dot.green { background: var(--green); }
.dot.pink { background: var(--pink); }
.signal-track .spark { color: rgba(255, 255, 255, 0.35); }

.vision-section {
  position: relative;
  background:
    radial-gradient(circle at 10% 20%, rgba(244, 159, 15, 0.09), transparent 26%),
    linear-gradient(180deg, #fff, #f8fafd);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.story-card {
  position: relative;
  display: grid;
  min-height: 350px;
  align-content: space-between;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 20px 55px rgba(34, 63, 107, 0.08);
  transform: perspective(900px) rotateX(var(--tilt-x, 0)) rotateY(var(--tilt-y, 0));
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.story-card::after {
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border: 42px solid rgba(34, 63, 107, 0.05);
  border-radius: 50%;
  content: "";
}

.story-card:hover {
  box-shadow: var(--shadow);
}

.story-mission {
  color: var(--paper);
  border-color: transparent;
  background: var(--navy);
}

.story-mission::after {
  border-color: rgba(255, 255, 255, 0.07);
}

.card-number {
  position: absolute;
  top: 30px;
  right: 34px;
  color: rgba(34, 63, 107, 0.2);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.story-mission .card-number {
  color: rgba(255, 255, 255, 0.3);
}

/* Pinned with a physical offset, so it needs mirroring by hand for Arabic. */
html[dir="rtl"] .card-number {
  right: auto;
  left: 34px;
}

html[dir="rtl"] .vision-slider-controls {
  right: auto;
  left: 34px;
}

/*
 * A phone number is Latin digits and reads left to right in Arabic too.
 * Without this the RTL run turns "+961 79 42 79 40" into "40 79 42 79 961+".
 */
[data-contact-link="primary_phone"] {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

.story-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 20px;
  color: var(--navy);
  background: rgba(244, 159, 15, 0.18);
}

.story-mission .story-icon {
  color: var(--paper);
  background: var(--pink);
}

.story-icon svg {
  width: 30px;
}

/* Eyebrow label sits on the icon's line instead of on top of the heading */
.story-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.story-card div > span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-card h3 {
  max-width: 460px;
  margin: 0 0 14px;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: 0.018em;
  line-height: 1.16;
  word-spacing: 0.04em;
}

.story-mission h3 {
  color: var(--paper);
}

.story-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.story-mission p {
  color: rgba(255, 255, 255, 0.67);
}

.vision-photo {
  position: relative;
  grid-column: 1 / -1;
  height: 480px;
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.vision-photo::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--photo-scrim);
  content: "";
}

.vision-slides {
  position: absolute;
  inset: 0;
}

.vision-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.8s var(--ease);
}

.vision-slide.is-active {
  opacity: 1;
}

.vision-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.vision-photo:hover img {
  transform: scale(1.04);
}

.vision-photo figcaption {
  position: absolute;
  right: 34px;
  bottom: 30px;
  left: 34px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  /* Room kept clear on the right for the slider controls on the same row. */
  padding-inline-end: 190px;
  color: var(--paper);
}

.vision-caption-lead {
  display: grid;
  gap: 2px;
}

.vision-photo figcaption strong {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.vision-photo figcaption span {
  color: rgba(255, 255, 255, 0.65);
}

/* The "Who we are" sentence, moved off the intro row and onto the photo. */
.vision-caption-note {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.95;
}

.vision-slider-controls {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vision-slider-controls > button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(11, 28, 52, 0.36);
  backdrop-filter: blur(10px);
}

.vision-slider-controls > button svg {
  width: 17px;
  height: 17px;
}

/* Previous and next point the way the language runs, not the way Latin does. */
html[dir="rtl"] .vision-slider-controls > button svg {
  transform: scaleX(-1);
}

.vision-slider-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.vision-slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.vision-slider-dots button.is-active {
  width: 24px;
  background: var(--orange);
}

.approach-section {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--navy-deep);
}

.approach-section::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  opacity: 0.28;
}

.approach-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
}

.glow-one {
  top: -180px;
  right: -100px;
  background: var(--pink);
}

.glow-two {
  bottom: -220px;
  left: -100px;
  background: var(--green);
}

.approach-section .section-shell {
  position: relative;
}

/*
 * The approach intro runs the pair the other way round to the light sections:
 * the label above is white and the heading under it carries the orange.
 */
.light .eyebrow {
  color: var(--paper);
}

.light h2,
.light h2 span {
  color: var(--orange);
}

.light p {
  color: rgba(255, 255, 255, 0.58);
}

.approach-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 22px;
}

.path-line {
  position: absolute;
  z-index: 0;
  top: 67px;
  right: 12%;
  left: 12%;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.12);
}

.path-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s 0.25s var(--ease);
}

.approach-path.is-visible .path-line span {
  transform: scaleX(1);
}

/*
 * A column, so the four "Watch this step" buttons line up with each other no
 * matter how many lines each description runs to: the text block takes the space
 * it needs and the button is pushed to the bottom of every column alike.
 */
.approach-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 0 12px 10px;
  text-align: center;
}

.approach-step p {
  flex: 1 0 auto;
}

.step-node {
  display: grid;
  width: 92px;
  height: 92px;
  margin: 0 auto 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  color: rgba(255, 255, 255, 0.75);
  /* 6% white over --navy-deep, made solid so the path line passes behind the
     node instead of showing through it. */
  background: #1a2a40;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.16);
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.approach-step.active .step-node {
  color: var(--navy-deep);
  background: var(--orange);
  transform: translateY(-8px) rotate(-3deg);
}

.approach-step:nth-of-type(3).active .step-node {
  color: var(--paper);
  background: var(--pink);
}

.approach-step:nth-of-type(4).active .step-node {
  color: var(--paper);
  background: var(--green);
}

.step-node svg {
  width: 36px;
}

.approach-step > span {
  color: var(--orange);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.approach-step h3 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-size: 1.55rem;
}

.approach-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.7;
}

/*
 * The play button under a step. It reads as a quiet pill until the step is
 * hovered or is the one the path is currently highlighting, when the ring around
 * the triangle lights up in that step's own colour.
 */
.step-watch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 7px 16px 7px 7px;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease,
    transform 0.3s ease;
}

html[dir="rtl"] .step-watch {
  padding: 7px 7px 7px 16px;
}

.step-watch-play {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-deep);
  background: var(--orange);
  transition: background 0.3s ease;
}

html[dir="rtl"] .step-watch-play svg {
  /* The triangle points the way the language reads. */
  transform: scaleX(-1);
}

/* A soft pulse that only runs on the step the path is lighting up. */
.step-watch-play::after {
  position: absolute;
  inset: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--orange);
  content: "";
  opacity: 0;
}

.approach-step.active .step-watch-play::after,
.approach-step.is-auto-active .step-watch-play::after {
  animation: stepWatchPulse 2.2s var(--ease) infinite;
}

.step-watch-play svg {
  width: 14px;
  fill: currentColor;
  stroke: none;
}

.step-watch:hover,
.step-watch:focus-visible {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

@keyframes stepWatchPulse {
  0% { opacity: 0.55; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.9); }
  100% { opacity: 0; transform: scale(1.9); }
}

@media (prefers-reduced-motion: reduce) {
  .approach-step.active .step-watch-play::after,
  .approach-step.is-auto-active .step-watch-play::after {
    animation: none;
  }
}

/* ── The step video player ───────────────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 30px;
  visibility: hidden;
  opacity: 0;
  background: rgba(5, 15, 29, 0.94);
  backdrop-filter: blur(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.video-modal-inner {
  position: relative;
  width: min(980px, 94vw);
  transform: scale(0.94);
  transition: transform 0.4s var(--ease);
}

.video-modal.is-open .video-modal-inner {
  transform: scale(1);
}

.video-modal-head {
  margin: 0 0 16px;
  /* Kept clear of the close button sitting on the same row. */
  padding-inline-end: 62px;
  color: var(--paper);
}

.video-modal-step {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.video-modal-title {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.video-modal-frame {
  position: relative;
  overflow: hidden;
  /* The player keeps the 16:9 of the source clip at every width. */
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

/*
 * A vertical clip (a YouTube Short) would sit letterboxed inside the 16:9 box, so
 * it gets a 9:16 player instead. The width is derived from the height left over
 * after the heading, which keeps the whole player on screen on a phone.
 */
.video-modal.is-portrait .video-modal-inner {
  width: min(430px, 92vw);
}

.video-modal.is-portrait .video-modal-frame {
  aspect-ratio: 9 / 16;
  width: min(100%, calc((100vh - 210px) * 9 / 16));
  width: min(100%, calc((100dvh - 210px) * 9 / 16));
  margin-inline: auto;
}

.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.8rem;
}

html[dir="rtl"] .video-modal-close {
  right: auto;
  left: 0;
}

.programs-section {
  background: var(--soft);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.program-card {
  position: relative;
  min-height: 620px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 16px 50px rgba(34, 63, 107, 0.08);
  transform: perspective(1000px) rotateX(var(--tilt-x, 0)) rotateY(var(--tilt-y, 0));
  transition: box-shadow 0.3s ease, transform 0.18s ease;
}

.program-card:hover {
  box-shadow: var(--shadow);
}

.program-top {
  display: flex;
  align-items: center;
}

.program-label {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(34, 63, 107, 0.07);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.program-visual {
  position: relative;
  display: grid;
  height: 225px;
  margin: 22px 0 28px;
  place-items: center;
  border-radius: 23px;
  overflow: hidden;
  background: var(--navy);
}

.program-visual img {
  width: 100%;
  height: 100%;
  grid-area: 1 / 1;
  object-fit: cover;
}

/* A soft floor under the photo so the badge stays readable on any image. */
.program-visual::after {
  position: absolute;
  inset: 0;
  background: var(--photo-scrim);
  content: "";
}

.visual-grade {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 12px;
  /* A grade range is a number, so it keeps reading 1-12 in Arabic too. */
  direction: ltr;
  color: var(--paper);
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  text-shadow: 0 4px 18px rgba(7, 19, 36, 0.45);
}

html[dir="rtl"] .visual-grade {
  right: auto;
  left: 18px;
}

/* Anchored to the same corner as the grade badge, so all three cards agree. */
.visual-symbol {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: var(--paper);
  background: var(--pink);
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  box-shadow: 0 15px 35px rgba(7, 19, 36, 0.3);
}

html[dir="rtl"] .visual-symbol {
  right: auto;
  left: 16px;
}

.program-activities .visual-symbol {
  color: var(--navy);
  background: var(--orange);
}

.program-copy > span {
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.program-copy h3 {
  margin: 9px 0 13px;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  letter-spacing: 0.018em;
  line-height: 1.32;
  word-spacing: 0.04em;
}

.program-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.program-copy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-copy li {
  position: relative;
  padding-left: 20px;
  color: #48566a;
  font-size: 0.86rem;
}

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

.stats-section {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  color: var(--paper);
  background: var(--pink);
}

.stats-pattern {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.05) 19px 20px),
    radial-gradient(circle at 90% 20%, rgba(244, 159, 15, 0.45), transparent 25%);
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr repeat(var(--stat-count, 4), 1fr);
  gap: 20px;
  align-items: center;
}

.stats-heading .eyebrow {
  color: var(--paper);
  opacity: 0.68;
}

.stats-heading h2 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  letter-spacing: 0;
  line-height: 1.18;
}

.stat-item {
  padding: 10px 24px;
  /* Logical, so the divider moves to the other side of the cell in Arabic. */
  border-inline-start: 1px solid rgba(255, 255, 255, 0.26);
}

/*
 * A number and its sign are one unit and always read left to right, in Arabic
 * as well - otherwise RTL flips "92%" into "%92". The sign is sized in em so it
 * tracks the number instead of staying at a fixed 1.1rem while the digits scale.
 */
.stat-item strong {
  display: flex;
  align-items: baseline;
  direction: ltr;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  /* The digits were nearly touching at this size; they read as one number with
     a little air between them. */
  letter-spacing: -0.005em;
  line-height: 1;
}

html[dir="rtl"] .stat-item strong {
  justify-content: flex-end;
}

.stat-item sup {
  margin: 0;
  /*
   * Measured from the digits themselves, so "12 +" and "92 %" keep the same air
   * at every screen size.
   */
  margin-inline-start: 0.5em;
  align-self: flex-start;
  color: var(--orange);
  font-size: 0.33em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: normal;
  transform: translateY(0.35em);
}

.stat-item p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reviews-section {
  background: var(--soft);
}

.review-slider {
  margin-top: 46px;
}

/* Two cards per view; extra reviews sit off to the side and are paged into view. */
.review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(50% - 11px);
  gap: 22px;
  padding-bottom: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.review-track::-webkit-scrollbar {
  display: none;
}

.review-track:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 6px;
  border-radius: 26px;
}

.review-track.is-single {
  grid-auto-columns: min(100%, 620px);
  justify-content: center;
}

.review-track > .review-card {
  scroll-snap-align: start;
}

.review-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}

.review-controls[hidden] {
  display: none;
}

.review-nav {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.review-nav svg {
  width: 20px;
  height: 20px;
}

.review-nav:hover:not(:disabled) {
  color: var(--paper);
  border-color: var(--navy);
  background: var(--navy);
  transform: translateY(-2px);
}

.review-nav:disabled {
  cursor: default;
  opacity: 0.35;
}

html[dir="rtl"] .review-nav svg {
  transform: scaleX(-1);
}

.review-progress {
  min-width: 62px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(20, 42, 73, 0.07);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.review-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

/* Five stars with the filled part clipped to the exact score: the two rows sit on top
   of each other, and the coloured one is cut to a percentage width. Used for the hero
   card, the reviews heading, and each review card, so one score looks the same
   everywhere it appears. */
.star-meter {
  position: relative;
  display: inline-block;
  color: rgba(34, 63, 107, 0.2);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.star-meter-base,
.star-meter-fill {
  display: block;
}

.star-meter-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: var(--orange);
}

html[dir="rtl"] .star-meter-fill {
  right: 0;
  left: auto;
}

.review-stars {
  font-size: 1.05rem;
}

/* The hero card keeps its small stars beside the number. */
.star-meter-inline {
  font-size: 0.65rem;
  letter-spacing: -0.08em;
  vertical-align: 0.15em;
}

.reviews-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.reviews-score strong {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--navy);
}

/* Scoped to the caption only: a bare ".reviews-score span" would also catch the two
   spans the star meter is built from and repaint them. */
.reviews-score-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.review-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.8;
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.review-card footer strong {
  font-family: var(--display);
  font-size: 1rem;
}

.review-card footer small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/*
 * Plain paper. The faint 70px grid that used to sit here met the tinted band of
 * the reviews above it as a hard edge, and the ruled panel read as a stray
 * rectangle pasted under the last review rather than the top of a new section.
 */
.team-section {
  background: var(--paper);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.team-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 45px rgba(34, 63, 107, 0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.team-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-9px);
}

.team-portrait {
  position: relative;
  display: grid;
  height: 250px;
  place-items: center;
  border-radius: 20px;
  overflow: hidden;
}

.team-portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.team-card:hover .team-portrait-image {
  transform: scale(1.05);
}

.portrait-one { background: #fce3b8; }
.portrait-two { background: #dbe6f7; }
.portrait-three { background: #f8d5e5; }

.portrait-initials {
  position: relative;
  z-index: 2;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 12px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: var(--paper);
  background: var(--orange);
  box-shadow: 0 18px 40px rgba(34, 63, 107, 0.2);
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 800;
  transition: transform 0.4s var(--ease);
}

.portrait-two .portrait-initials { background: var(--navy); }
.portrait-three .portrait-initials { background: var(--pink); }

.team-card:hover .portrait-initials {
  transform: scale(1.07) rotate(-5deg);
}

.portrait-shape {
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px dashed rgba(34, 63, 107, 0.24);
  border-radius: 42% 58% 60% 40% / 55% 42% 58% 45%;
  animation: orbitSpin 14s linear infinite;
}

.team-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 4px 12px;
}

/* min-width on a flex item defaults to auto, which refuses to shrink below the
   longest word. Without this a name like "Ghaida Geography" pushes into the link. */
.team-info > div {
  min-width: 0;
}

.team-info h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.team-info p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

/*
 * The affordance that says "this card opens". An arrow rather than a word, so it
 * reads the same in both languages, and it is filled in at rest rather than only
 * on hover, because a touch screen never hovers.
 */
.team-open {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: var(--paper);
  background: var(--navy);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease);
}

.team-open svg {
  width: 17px;
  height: 17px;
}

/* The arrow points the way the language runs. */
html[dir="rtl"] .team-open svg {
  transform: scaleX(-1);
}

.team-card:hover .team-open,
.team-card:focus-visible .team-open {
  color: var(--navy);
  background: var(--orange);
  transform: translateX(3px);
}

html[dir="rtl"] .team-card:hover .team-open,
html[dir="rtl"] .team-card:focus-visible .team-open {
  transform: translateX(-3px);
}

.team-specialty {
  display: block;
  margin: 0 4px 5px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--pink);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-join {
  display: flex;
  min-height: 398px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  color: var(--paper);
  border-color: transparent;
  background: var(--navy);
}

.join-orbit {
  display: grid;
  width: 130px;
  height: 130px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  animation: orbitSpin 18s linear infinite;
}

.join-orbit span {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--orange);
  font-size: 2.4rem;
  animation: orbitSpin 18s linear infinite reverse;
}

.team-join div:last-child > span {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.team-join h3 {
  margin: 10px 0 22px;
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1.35;
}

.team-join a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.86rem;
  font-weight: 700;
}

/* Before the first teacher is added, the "join us" card stands alone and wide. */
.team-grid.is-join-only {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
  margin-inline: auto;
}

.team-grid.is-join-only .team-join {
  min-height: 0;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  padding: 48px 56px;
}

.team-grid.is-join-only .team-join > div:last-child {
  flex: 1;
  min-width: 0;
}

.team-grid.is-join-only .team-join h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.team-grid.is-join-only .team-join a {
  font-size: 1rem;
}

@media (max-width: 580px) {
  .team-grid.is-join-only .team-join {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding: 32px 26px;
  }
}

.gallery-section {
  background: var(--soft);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-template-rows: 280px 250px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  background: var(--navy);
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  background: var(--photo-scrim);
  content: "";
  transition: background 0.35s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item > span {
  position: absolute;
  right: 20px;
  bottom: 17px;
  left: 20px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: var(--paper);
  text-align: left;
}

.gallery-item b {
  font-family: var(--display);
  font-size: 1rem;
}

.gallery-item i {
  font-size: 0.68rem;
  font-style: normal;
  opacity: 0.65;
}

.gallery-wide {
  grid-row: 1 / 3;
}

.gallery-wide img {
  object-position: center;
}

.gallery-tall {
  grid-row: 1 / 3;
}

.gallery-tall img {
  object-position: 63% center;
}

.gallery-crop-one img {
  object-position: 75% center;
}

.gallery-crop-two img {
  object-position: 24% center;
}

.gallery-quote {
  display: none;
  padding: 28px;
  border-radius: 24px;
  color: var(--paper);
  background: var(--pink);
}

.gallery-quote > span {
  color: var(--orange);
  font-family: var(--display);
  font-size: 4rem;
  line-height: 0.7;
}

.gallery-quote blockquote {
  margin: 18px 0;
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.4;
}

.gallery-quote cite {
  font-size: 0.7rem;
  font-style: normal;
  opacity: 0.68;
}

.partners-section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  /*
   * Opted out of the content-visibility skipping every other section gets.
   * While a section is skipped the browser renders nothing inside it: the
   * strip cannot be measured to build the loop, and the animation does not
   * run. This section holds three logos, so always rendering it costs
   * nothing and the strip is free to travel without stopping.
   */
  content-visibility: visible;
}

.partners-section p {
  margin: 0 0 44px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

/*
 * The logos travel on their own in one endless row. The direction follows the
 * language: in English they drift to the left, in Arabic to the right, so the
 * strip always moves the way the page reads. index.js duplicates the row, and
 * half a track's worth of travel lands exactly on the copy - hence the seam-free
 * loop. The edges fade out so logos appear and leave instead of being cut off.
 */
.partner-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 9%, black 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 9%, black 91%, transparent);
}

.partner-logos {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  align-items: center;
  gap: 72px;
  color: var(--navy);
  filter: grayscale(1);
  opacity: 0.72;
}

/* Too few logos to fill the window: they simply sit centred and still. */
.partner-logos:not(.is-marquee) {
  margin-inline: auto;
}

.partner-logos.is-marquee {
  animation: partnerScroll var(--marquee-duration, 40s) linear infinite;
}

/* Reading direction decides which way the row travels. */
html[dir="rtl"] .partner-logos {
  --marquee-direction: -1;
}

/*
 * Resting a pointer on the strip holds it still to read a logo. Guarded by
 * hover capability because a touch screen leaves :hover stuck on whatever was
 * last tapped or dragged across - which parked the loop and kept it parked.
 */
@media (hover: hover) {
  .partner-marquee:hover .partner-logos.is-marquee {
    animation-play-state: paused;
  }
}

@keyframes partnerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% * var(--marquee-direction, 1))); }
}

@media (prefers-reduced-motion: reduce) {
  .partner-logos.is-marquee {
    animation: none;
  }
}

.partner-logos > span,
.partner-logos > a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  white-space: nowrap;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.partner-logos > span:hover,
.partner-logos > a:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-3px);
}

.partner-logos img {
  width: auto;
  max-width: 270px;
  height: 96px;
  border-radius: 14px;
  object-fit: contain;
}

.partner-logos > span > span,
.partner-logos > a > span {
  display: inline;
}

.partner-mark {
  display: block;
  width: 38px;
  height: 38px;
  background: var(--orange);
}

.mark-one { border-radius: 50% 50% 8px 50%; }
.mark-two { border-radius: 7px; transform: rotate(45deg); background: var(--pink); }
.mark-three { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--green); }
.mark-four { border: 7px solid var(--navy); border-radius: 50%; background: transparent; }
.mark-five { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }

.faq-section {
  background: var(--paper);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 95px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 120px;
}

.faq-intro h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.faq-intro > p {
  margin: 24px 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
}

.text-link span {
  color: var(--pink);
  transition: transform 0.25s ease;
}

.text-link:hover span {
  transform: translate(4px, -4px);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.faq-item button span {
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}

.faq-item button i {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft);
}

.faq-item button i::before,
.faq-item button i::after {
  position: absolute;
  top: 16px;
  left: 10px;
  width: 14px;
  height: 2px;
  border-radius: 5px;
  background: var(--navy);
  content: "";
  transition: transform 0.3s ease;
}

.faq-item button i::after {
  transform: rotate(90deg);
}

.faq-item.open button i {
  background: var(--orange);
}

.faq-item.open button i::after {
  transform: rotate(0);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq-answer p {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  overflow: hidden;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-answer p {
  padding: 0 55px 25px 0;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  color: var(--paper);
  background: var(--green);
}

.contact-section::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 42, 73, 0.16), transparent 45%);
  content: "";
}

.contact-art span {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
}

.contact-art span:nth-child(1) {
  top: -160px;
  right: 5%;
  width: 370px;
  height: 370px;
  border: 65px solid rgba(255, 255, 255, 0.12);
}

.contact-art span:nth-child(2) {
  right: 23%;
  bottom: -55px;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: var(--orange);
  transform: rotate(20deg);
}

.contact-art span:nth-child(3) {
  top: 30px;
  right: 38%;
  width: 35px;
  height: 35px;
  background: var(--pink);
}

.contact-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.contact-inner .eyebrow {
  color: var(--paper);
  opacity: 0.65;
}

.contact-inner h2 {
  margin: 13px 0 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.7vw, 4.7rem);
  letter-spacing: 0.015em;
  line-height: 1.16;
  word-spacing: 0.05em;
}

.contact-actions {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.button-light {
  color: var(--navy);
  background: var(--paper);
  box-shadow: 0 20px 40px rgba(20, 42, 73, 0.2);
}

.site-footer {
  padding: 80px 0 28px;
  color: var(--paper);
  background: var(--navy-deep);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  padding-bottom: 60px;
}

.brand-light .brand-copy strong {
  color: var(--paper);
}

.footer-brand > p {
  max-width: 410px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, 0.52);
}

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

.social-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--paper);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

/*
 * The brand marks are solid glyphs, so they take the row's colour as a fill. The
 * global svg rule paints outlines, which would erase them completely.
 */
.social-links a svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

.social-links a:hover {
  color: var(--navy);
  border-color: var(--orange);
  background: var(--orange);
  transform: translateY(-4px);
}

.social-links a[hidden] {
  display: none;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-links h3 {
  margin: 0 0 9px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-links a,
.footer-links p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.86rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--paper);
}

/* "Core Program" is one name - it should not break across two lines. */
.footer-programs a {
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.72rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom div {
  display: flex;
  gap: 22px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 30px;
  visibility: hidden;
  opacity: 0;
  background: rgba(5, 15, 29, 0.94);
  backdrop-filter: blur(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.lightbox figure {
  width: min(1100px, 92vw);
  margin: 0;
  transform: scale(0.94);
  transition: transform 0.4s var(--ease);
}

.lightbox.is-open figure {
  transform: scale(1);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 20px;
}

.lightbox figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.8rem;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.09); }
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes underlineGrow {
  to { transform: scaleX(1); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(79, 187, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 187, 55, 0); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardFloat {
  50% { translate: 0 -10px; }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes shapeFloat {
  50% { translate: 0 -18px; rotate: 14deg; }
}

@keyframes scrollLine {
  50%, 100% { transform: translateX(100%); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-content {
    width: min(720px, 72vw);
  }

  .hero-note {
    top: 24%;
  }

  .hero-rating {
    right: 5%;
  }

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

  .program-card:last-child {
    grid-column: 1 / -1;
    min-height: 560px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-heading {
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }

  .stats-heading h2 br {
    display: none;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-portrait {
    height: 290px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 340px 260px 260px;
  }

  .gallery-wide {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gallery-tall {
    grid-row: 2 / 4;
  }

  .faq-layout {
    gap: 55px;
  }
}

@media (max-width: 820px) {
  .review-track {
    grid-auto-columns: 100%;
  }

  .section {
    padding: 90px 0;
  }

  .section-shell {
    width: min(100% - 32px, 680px);
  }

  .split-intro,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-intro {
    margin-bottom: 45px;
  }

  .split-intro p {
    max-width: 600px;
  }

  .hero {
    min-height: 850px;
    align-items: end;
    padding: 140px 24px 110px;
  }

  .hero-media img {
    object-position: 67% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(8, 23, 45, 0.98) 0%, rgba(15, 36, 66, 0.82) 53%, rgba(15, 36, 66, 0.22) 100%),
      linear-gradient(90deg, rgba(8, 23, 45, 0.5), transparent);
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.8vw, 4.5rem);
  }

  .hero-note {
    top: 17%;
    right: 22px;
  }

  .hero-rating {
    display: none;
  }

  .shape-orange {
    left: 15%;
  }

  .shape-pink {
    top: 32%;
    right: 25%;
  }

  .orbit-one {
    top: 0;
    right: -50%;
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }

  .vision-photo {
    grid-column: auto;
    height: 410px;
  }

  .approach-path {
    grid-template-columns: 1fr 1fr;
    gap: 50px 20px;
  }

  .path-line {
    display: none;
  }

  /*
   * Stacked, the programs make a very long scroll, so on a narrow screen they
   * become one swipeable row instead. A card rests in the middle of the window
   * with the one before and the one after showing at either margin, so it is
   * plain at a glance that the row carries on both ways.
   */
  .program-grid {
    /*
     * The row breaks out of the section gutter to run the whole width of the
     * screen. Inside the gutter the margin either side of a centred card is
     * almost entirely eaten by the column gap - about ten pixels on a small
     * phone, too thin to read as another card - so the row looked like a lone
     * card floating in space. At full width the neighbours show properly and
     * the centred card comes out wider than it was before.
     */
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    /*
     * The gutter is half the leftover screen, so the first and last card can
     * each reach the middle of the window too. Without it the row stops with
     * them jammed against the edge. Sized in vw against the full-width row, so
     * card and gutter always add up to one screen.
     */
    padding-inline: 14vw;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 72vw;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .program-grid::-webkit-scrollbar {
    display: none;
  }

  .program-card:last-child {
    grid-column: auto;
  }

  .program-card {
    min-height: auto;
    padding: 20px;
    border-radius: 24px;
    scroll-snap-align: center;
  }

  .program-visual {
    height: 165px;
    margin: 16px 0 20px;
    border-radius: 18px;
  }

  .program-copy h3 {
    margin: 8px 0 10px;
    font-size: 1.2rem;
  }

  .program-copy p {
    margin: 0 0 14px;
    font-size: 0.86rem;
  }

  .program-copy li {
    font-size: 0.82rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    min-height: 120px;
  }

  .partner-logos {
    gap: 52px;
  }

  .partner-logos img {
    height: 74px;
    max-width: 200px;
  }

  .faq-intro {
    position: static;
    margin-bottom: 35px;
  }

  .contact-inner {
    display: grid;
  }

  .contact-actions {
    justify-items: start;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 55px;
  }
}

@media (max-width: 580px) {
  .page-loader {
    gap: 14px;
  }

  .loader-mark {
    width: 126px;
    height: 72px;
    border-radius: 24px;
  }

  .loader-mark img {
    width: 92px;
  }

  .loader-mark i {
    border-radius: 24px;
  }

  .page-loader p {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .site-header {
    min-height: 92px;
    padding: 30px 16px 12px;
    grid-template-columns: 1fr auto auto;
    column-gap: 10px;
  }

  /* Once the bar has a background it hugs the top again */
  .site-header.is-scrolled {
    min-height: 72px;
    padding: 12px 16px;
  }

  /* Keep the log in button in the bar, right next to the menu toggle */
  .header-actions {
    display: flex;
    gap: 8px;
  }

  /* Only the call to action drops out; the language pill sits beside Log in. */
  .header-actions .header-action {
    display: none;
  }

  .header-actions .language-switch {
    min-width: 32px;
    min-height: 32px;
    padding: 0 8px;
  }

  .header-login {
    gap: 7px;
    padding: 9px 13px;
    font-size: 0.74rem;
  }

  .header-login svg {
    width: 15px;
  }

  .brand-logo {
    height: 22px;
  }

  .site-header.is-scrolled .brand-logo {
    height: 19px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .hero {
    min-height: 820px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-note {
    top: 118px;
    right: 18px;
    transform: scale(0.82);
    transform-origin: right top;
  }

  /* Lift the admissions badge away from the floating grade card */
  .hero h1 {
    margin-top: 62px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .vision-grid {
    gap: 16px;
  }

  /* Let the vision/mission cards size to their text instead of a tall fixed box */
  .story-card {
    min-height: 0;
    gap: 18px;
    padding: 24px 22px;
    border-radius: 24px;
  }

  .story-card::after {
    right: -70px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    border-width: 30px;
  }

  .card-number {
    top: 22px;
    right: 22px;
  }

  html[dir="rtl"] .card-number {
    right: auto;
    left: 22px;
  }

  .story-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .story-icon svg {
    width: 24px;
  }

  .story-head {
    gap: 12px;
  }

  .story-card h3 {
    margin: 0 0 10px;
    font-size: 1.42rem;
  }

  .story-card p {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  /*
   * Over a photo this narrow the paragraph had no readable background left. On a
   * phone the caption comes off the image and sits under it on solid navy: the
   * picture keeps its own band at the top, the words get a plain surface.
   */
  .vision-photo {
    display: grid;
    grid-template-rows: 232px auto;
    height: auto;
    border-radius: 22px;
    background: var(--navy-deep);
  }

  .vision-slides {
    position: relative;
    grid-row: 1;
  }

  /*
   * The scrim exists to darken the foot of the picture for the caption that used
   * to lie on it. With the caption on its own panel it only left a smoky wedge
   * above that panel, so the photo is shown plain.
   */
  .vision-photo::after {
    display: none;
  }

  .vision-photo figcaption {
    position: static;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 17px 18px 20px;
    padding-inline-end: 18px;
  }

  .vision-photo figcaption strong {
    font-size: 1.45rem;
  }

  .vision-caption-note {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    line-height: 1.75;
  }

  .vision-slider-controls {
    bottom: auto;
    top: 22px;
  }

  html[dir="rtl"] .vision-slider-controls {
    top: 22px;
  }

  .approach-path {
    grid-template-columns: 1fr;
  }

  .approach-step {
    display: grid;
    grid-template-columns: 75px 1fr;
    column-gap: 20px;
    text-align: start;
  }

  .step-node {
    grid-row: 1 / 5;
    width: 75px;
    height: 75px;
    margin: 0;
    border-radius: 23px;
  }

  .approach-step > span {
    align-self: end;
  }

  .approach-step h3 {
    margin-top: 2px;
  }

  /*
   * One number per row left most of the pink band empty. On a phone the four
   * figures sit as a 2x2 set of tiles under the heading instead, which reads as
   * a group and keeps the section a single screen tall.
   */
  .stats-section {
    padding: 58px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
  }

  .stats-heading {
    margin-bottom: 4px;
  }

  .stats-heading h2 {
    margin-top: 10px;
    font-size: 1.85rem;
  }

  .stat-item {
    min-height: 0;
    padding: 18px 16px;
    /* Replaces the divider rule, which has nothing to divide in a tile. */
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
  }

  .stat-item strong {
    font-size: 2.05rem;
  }

  .stat-item p {
    margin-top: 7px;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    line-height: 1.5;
  }

  .program-grid {
    padding-inline: 17vw;
    grid-auto-columns: 66vw;
  }

  /*
   * One full-width card per teacher made each face nearly a whole screen tall.
   * Two compact cards per row keeps the same information at a size the section
   * can actually be scanned at.
   */
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .team-card {
    padding: 10px;
    border-radius: 20px;
  }

  .team-portrait {
    height: 152px;
    border-radius: 15px;
  }

  .portrait-initials {
    width: 78px;
    height: 78px;
    border-width: 7px;
    font-size: 1.4rem;
  }

  .portrait-shape {
    width: 132px;
    height: 132px;
  }

  .team-info {
    gap: 8px;
    padding: 12px 2px 8px;
  }

  .team-info h3 {
    font-size: 0.88rem;
  }

  .team-info p {
    font-size: 0.71rem;
  }

  .team-open {
    width: 29px;
    height: 29px;
  }

  .team-open svg {
    width: 14px;
    height: 14px;
  }

  .team-specialty {
    margin: 0 2px 3px;
    padding-top: 9px;
    font-size: 0.6rem;
  }

  /* The join card has no portrait, so it reads better across the full row. */
  .team-join {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 22px;
  }

  .join-orbit {
    width: 96px;
    height: 96px;
    margin-bottom: 18px;
  }

  .join-orbit span {
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
  }

  .team-join h3 {
    margin: 8px 0 16px;
    font-size: 1.25rem;
  }

  .team-join a {
    padding-top: 14px;
  }

  /*
   * Four 270px photos in a single column made the gallery the longest scroll on
   * the page. It becomes a small mosaic instead: a wide lead image with the rest
   * paired underneath, which shows the same set in under half the height.
   */
  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: 152px;
    gap: 10px;
  }

  .gallery-item {
    grid-column: auto;
    grid-row: auto;
    border-radius: 18px;
  }

  /* Whatever the admin panel sends, the first image leads the mosaic. */
  .gallery-item:first-child {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  /* A stacked caption fits the narrower tile better than a spread-out row. */
  .gallery-item > span {
    right: 13px;
    bottom: 11px;
    left: 13px;
    display: grid;
    gap: 1px;
    justify-items: start;
  }

  html[dir="rtl"] .gallery-item > span {
    justify-items: end;
  }

  .gallery-item b {
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .gallery-item:first-child b {
    font-size: 1.05rem;
  }

  .gallery-item i {
    font-size: 0.6rem;
  }

  .partner-logos {
    gap: 30px;
  }

  .partner-logos img {
    height: 46px;
    max-width: 130px;
    border-radius: 10px;
  }

  .partner-logos > span,
  .partner-logos > a {
    gap: 9px;
    font-size: 0.88rem;
  }

  .partner-mark {
    width: 26px;
    height: 26px;
  }

  /* The whole FAQ block tightened up: shorter rows, smaller type, smaller sign. */
  .faq-intro h2 {
    font-size: 1.9rem;
  }

  .faq-intro > p {
    margin: 16px 0;
    font-size: 0.9rem;
  }

  .faq-intro {
    margin-bottom: 26px;
  }

  .faq-item button {
    gap: 14px;
    padding: 17px 0;
  }

  .faq-item button span {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .faq-item button i {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
  }

  .faq-item button i::before,
  .faq-item button i::after {
    top: 12.5px;
    left: 7.5px;
    width: 12px;
  }

  .faq-answer p {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .faq-item.open .faq-answer p {
    padding: 0 0 18px;
  }

  .video-modal {
    padding: 18px 16px;
  }

  .video-modal.is-portrait .video-modal-frame {
    width: min(100%, calc((100vh - 170px) * 9 / 16));
    width: min(100%, calc((100dvh - 170px) * 9 / 16));
    border-radius: 18px;
  }

  /* Without the forced break the heading reads "…a learning / plan that fits." */
  .contact-break {
    display: none;
  }

  .contact-section {
    padding: 75px 0;
  }

  .contact-art span:nth-child(2),
  .contact-art span:nth-child(3) {
    opacity: 0.35;
  }

  /*
   * The phone footer is stripped to what the rest of the page does not already
   * say: how to reach the center, the social buttons, and the legal line. The
   * logo and tagline are the top of the same screen, and the two link columns
   * only repeat the mobile menu.
   */
  .site-footer {
    padding: 44px 0 24px;
  }

  /*
   * Visit and the social buttons share one row: the contact details take the
   * space they need and the buttons stack two by two next to them, so the whole
   * footer is one short block instead of two stacked ones.
   */
  .footer-main {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 22px;
    padding-bottom: 30px;
  }

  .footer-brand {
    order: 2;
    /* Dropped past the "Visit" heading so the buttons start with the details. */
    margin-top: 26px;
  }

  .footer-links {
    order: 1;
  }

  .social-links {
    display: grid;
    grid-template-columns: repeat(2, 42px);
    gap: 9px;
  }

  /*
   * Scoped through .footer-links, otherwise the base ".footer-links div" rule is
   * the more specific of the two and puts the columns straight back.
   */
  .footer-brand .brand,
  .footer-brand > p,
  .footer-links .footer-explore,
  .footer-links .footer-programs,
  .footer-bottom .footer-login {
    display: none;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  /*
   * Terms sits with "Back to top" on one line, and the copyright takes the last
   * line on its own, centred.
   */
  .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    text-align: center;
  }

  .footer-bottom div,
  .footer-bottom > a {
    order: 1;
  }

  .footer-bottom p {
    order: 2;
    flex: 0 0 100%;
  }

  .cursor-glow {
    display: none;
  }
}

@media (hover: none) {
  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Language controls and Arabic layout */
/*
 * One compact tap: the pill shows only the language currently in use and the
 * click swaps it. The divider and the long "العربية"/"English" label stay in the
 * markup so the script can keep writing to them, but they are not drawn.
 */
.language-switch {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.language-switch i,
.language-switch [data-language-label] {
  display: none;
}

.language-switch:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.site-header.is-scrolled .language-switch {
  color: var(--navy);
  border-color: rgba(34, 63, 107, 0.17);
  background: rgba(34, 63, 107, 0.05);
}

html[dir="rtl"] body {
  font-family: var(--body);
  text-align: right;
}

html[dir="rtl"] .brand-copy strong,
html[dir="rtl"] .brand-copy small,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .glass-card strong,
html[dir="rtl"] .footer-links h3 {
  font-family: var(--display);
}

html[dir="rtl"] .brand-copy small,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .approach-step > span,
html[dir="rtl"] .footer-links h3 {
  letter-spacing: 0;
}

/*
 * Every remaining label that carries Latin tracking.
 *
 * The tracking is there for the English uppercase cut ("CORE PROGRAM"), but
 * Arabic is a joined script: any positive letter-spacing severs the ligatures
 * and the word arrives as loose, disconnected glyphs. Reset every one of them
 * together so a new label cannot pick up the fault on its own.
 *
 * Deliberately not listed: .star-meter (glyph rating, not words),
 * .card-number, .mobile-menu nav span and .language-switch, whose contents
 * stay Latin digits or a single letter in both languages.
 */
html[dir="rtl"] .page-loader p,
html[dir="rtl"] .signal-track span,
html[dir="rtl"] .story-card div > span,
html[dir="rtl"] .step-watch,
html[dir="rtl"] .video-modal-step,
html[dir="rtl"] .program-label,
html[dir="rtl"] .program-copy > span,
html[dir="rtl"] .stat-item p,
html[dir="rtl"] .review-progress,
html[dir="rtl"] .review-card footer small,
html[dir="rtl"] .team-specialty,
html[dir="rtl"] .team-join div:last-child > span,
html[dir="rtl"] .partners-section p,
html[dir="rtl"] .teacher-modal-facts dt {
  letter-spacing: 0;
}

/* Arabic glyphs carry taller ascenders and diacritics, so the display headings
   and the slideshow caption need more leading than the Latin cut. */
html[dir="rtl"] .section-intro h2,
html[dir="rtl"] .faq-intro h2 {
  /* Arabic is a joined script: negative tracking would pull the letterforms apart. */
  letter-spacing: normal;
  line-height: 1.4;
  word-spacing: normal;
}

html[dir="rtl"] .vision-photo figcaption strong {
  line-height: 1.45;
}

html[dir="rtl"] .vision-caption-note {
  line-height: 2.1;
}

html[dir="rtl"] .stats-heading h2,
html[dir="rtl"] .contact-inner h2 {
  letter-spacing: normal;
  line-height: 1.4;
  word-spacing: normal;
}

html[dir="rtl"] .story-card h3 {
  letter-spacing: normal;
  line-height: 1.45;
  word-spacing: normal;
}

html[dir="rtl"] .program-copy h3,
html[dir="rtl"] .team-join h3 {
  letter-spacing: normal;
  line-height: 1.55;
  word-spacing: normal;
}

html[dir="rtl"] .desktop-nav a::after {
  transform-origin: right;
}

html[dir="rtl"] .header-action svg,
html[dir="rtl"] .button-primary > svg,
html[dir="rtl"] .button-light > svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(8, 23, 45, 0.96) 0%, rgba(20, 45, 79, 0.84) 37%, rgba(20, 45, 79, 0.28) 69%, rgba(8, 23, 45, 0.15) 100%),
    linear-gradient(0deg, rgba(8, 23, 45, 0.56), transparent 45%);
}

html[dir="rtl"] .hero-grid {
  mask-image: linear-gradient(to left, black, transparent 76%);
}

html[dir="rtl"] .changing-word::after {
  transform-origin: right;
}

html[dir="rtl"] .hero-note {
  right: auto;
  left: 5.5%;
}

html[dir="rtl"] .hero-rating {
  right: auto;
  left: 10%;
}

html[dir="rtl"] .rating-avatars {
  padding-right: 8px;
  padding-left: 0;
}

html[dir="rtl"] .rating-avatars span {
  margin-right: -8px;
  margin-left: 0;
}

html[dir="rtl"] .program-copy li {
  padding-right: 18px;
  padding-left: 0;
  line-height: 1.9;
}

html[dir="rtl"] .program-copy li::before {
  right: 0;
  left: auto;
}

html[dir="rtl"] .gallery-quote > span {
  right: auto;
  left: 20px;
}

html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .contact-inner {
  direction: rtl;
}

html[dir="rtl"] .lightbox-close {
  right: auto;
  left: 30px;
}

@media (max-width: 1100px) {
  html[dir="rtl"] .hero-note {
    right: auto;
    left: 5%;
  }

  html[dir="rtl"] .hero-rating {
    right: auto;
    left: 5%;
  }
}

@media (max-width: 820px) {
  html[dir="rtl"] .hero-note {
    right: auto;
    left: 22px;
  }
}

@media (max-width: 580px) {
  html[dir="rtl"] .hero-note {
    right: auto;
    left: 18px;
    transform-origin: left top;
  }

}

/* ── Brand Logo ───────────────────────────────────────────── */
.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  transition: opacity 0.35s ease;
}

.site-header.is-scrolled .brand-logo {
  height: 28px;
}

/* Transparent header (over hero): show white, hide color */
.site-header:not(.is-scrolled) .brand-logo-color {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* Scrolled header: show color, hide white */
.site-header.is-scrolled .brand-logo-white {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* Footer logo – always white, no mark/copy wrappers needed */
.footer-brand .brand-logo {
  height: 36px;
  margin-bottom: 4px;
}

/* Remove old brand-mark + brand-copy spacing from .brand when using logo */
.brand:has(.brand-logo) {
  gap: 0;
}

/* ── Approach step active animation glow ──────────────────── */
.approach-step.is-auto-active .step-node {
  color: var(--paper);
  background: #E51C6F;
  transform: translateY(-8px) rotate(-3deg);
}

/* ── Teacher Info Modal ────────────────────────────────────── */
.teacher-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 28, 52, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease), visibility 0.32s var(--ease);
}

.teacher-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.teacher-modal-inner {
  position: relative;
  display: flex;
  width: min(520px, 100%);
  flex-direction: column;
  gap: 28px;
  max-height: calc(100svh - 48px);
  padding: 40px 36px 36px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(10, 27, 51, 0.32);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.38s var(--ease);
}

.teacher-modal.is-open .teacher-modal-inner {
  transform: translateY(0) scale(1);
}

.teacher-modal-close {
  position: absolute;
  top: 18px;
  /* Logical, so the button follows the panel's own corner in Arabic. */
  inset-inline-end: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.teacher-modal-close:hover {
  background: var(--navy);
  color: var(--paper);
}

.teacher-modal-portrait {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--pink));
  flex-shrink: 0;
}

.teacher-modal-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
}

.teacher-modal-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-modal-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Portrait, name and subjects read as one block at the top of the panel. */
.teacher-modal-header {
  display: flex;
  align-items: center;
  gap: 18px;
  /* The close button sits in this corner, so the heading stops short of it. */
  padding-inline-end: 46px;
}

.teacher-modal-heading {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.teacher-modal-name {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.teacher-modal-subjects {
  margin: 0;
  color: var(--orange);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Arabic does not read as uppercase, and the wide tracking breaks its joins. */
html[dir="rtl"] .teacher-modal-subjects {
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
}

/*
 * The profile itself: one label/value row per fact. The panel can grow past the
 * viewport on a long list of certifications, so the body scrolls inside the card
 * instead of pushing the close button off the screen.
 */
.teacher-modal-facts {
  display: grid;
  margin: 0 0 22px;
  gap: 1px;
  border-top: 1px solid var(--line);
}

.teacher-modal-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

/* A display of its own beats the browser default for [hidden], so say it again. */
.teacher-modal-facts > div[hidden],
.teacher-modal-video[hidden] {
  display: none;
}

.teacher-modal-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.teacher-modal-facts dd {
  margin: 0;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.teacher-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* The one action the panel offers, in the site's navy. */
.teacher-modal-video {
  color: var(--paper);
  background: var(--navy);
  box-shadow: 0 16px 32px rgba(34, 63, 107, 0.22);
}

.teacher-modal-video:hover {
  background: var(--navy-dark);
}

.teacher-modal-video svg {
  width: 17px;
}

/* Team cards – make them look clickable */
.team-card:not(.team-join) {
  cursor: pointer;
}

.team-card:not(.team-join):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .teacher-modal-inner {
    padding: 32px 22px 24px;
  }

  .teacher-modal-name {
    font-size: 1.25rem;
  }

  .teacher-modal-header {
    gap: 14px;
  }

  /* Two columns leave no room for the value on a narrow phone. */
  .teacher-modal-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}

/* ── Teacher of the month ─────────────────────────────────────────────────
 * Chosen by the admin for each month. The card leads the team list, wears a
 * gold frame and a crown on the corner of the portrait, and the first time the
 * section scrolls into view, fireworks go up behind it (see index.js).
 */
.team-section {
  position: relative;
}

.team-fireworks {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.team-card.is-teacher-of-month {
  position: relative;
  z-index: 1;
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #ffd166, var(--orange) 45%, #ffe7a3 70%, var(--orange)) border-box;
  border-width: 2px;
  box-shadow: 0 18px 50px rgba(244, 159, 15, 0.28);
}

.team-crown {
  position: absolute;
  top: -22px;
  left: -16px;
  z-index: 4;
  width: 78px;
  height: 59px;
  transform: rotate(-24deg);
  filter: drop-shadow(0 6px 10px rgba(20, 42, 73, 0.28));
  pointer-events: none;
}

html[dir="rtl"] .team-crown {
  right: -16px;
  left: auto;
  transform: rotate(24deg);
}

.team-crown svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #ffc233;
}

.team-crown .crown-body {
  fill: #ffc233;
  stroke: #d98500;
  stroke-width: 2;
  stroke-linejoin: round;
}

.team-crown .crown-band {
  fill: #e08a00;
}

.team-crown circle {
  fill: var(--pink);
  stroke: #fff;
  stroke-width: 1.5;
}

.team-month-ribbon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--navy-deep);
  background: linear-gradient(90deg, #ffd166, var(--orange), #ffd166);
  background-size: 200% 100%;
  box-shadow: 0 8px 20px rgba(244, 159, 15, 0.35);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  animation: monthRibbonShine 3.2s linear infinite;
}

html[dir="rtl"] .team-month-ribbon {
  letter-spacing: 0;
}

/* The fanfare, played when the fireworks start. */
.team-card.is-celebrating {
  animation: monthCardCheer 1.1s var(--ease);
}

.team-card.is-celebrating .team-crown {
  animation: monthCrownDrop 0.9s 0.15s var(--ease) backwards;
}

.team-card.is-teacher-of-month::after {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(255, 194, 51, 0.6);
}

.team-card.is-celebrating::after {
  animation: monthGlowPulse 1.6s 0.3s ease-out 3;
}

@keyframes monthCardCheer {
  0% { transform: scale(1); }
  30% { transform: scale(1.06) rotate(-1.5deg); }
  55% { transform: scale(0.98) rotate(1deg); }
  100% { transform: scale(1); }
}

@keyframes monthCrownDrop {
  0% { opacity: 0; transform: translateY(-60px) rotate(-60deg) scale(0.4); }
  60% { opacity: 1; transform: translateY(4px) rotate(-18deg) scale(1.15); }
  100% { transform: rotate(-24deg) scale(1); }
}

html[dir="rtl"] .team-card.is-celebrating .team-crown {
  animation-name: monthCrownDropRtl;
}

@keyframes monthCrownDropRtl {
  0% { opacity: 0; transform: translateY(-60px) rotate(60deg) scale(0.4); }
  60% { opacity: 1; transform: translateY(4px) rotate(18deg) scale(1.15); }
  100% { transform: rotate(24deg) scale(1); }
}

@keyframes monthGlowPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 194, 51, 0.6); }
  100% { box-shadow: 0 0 0 22px rgba(255, 194, 51, 0); }
}

@keyframes monthRibbonShine {
  to { background-position: -200% 0; }
}

@media (max-width: 640px) {
  .team-crown {
    top: -12px;
    left: -8px;
    width: 44px;
    height: 34px;
  }

  html[dir="rtl"] .team-crown {
    right: -8px;
  }

  .team-month-ribbon {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 5px 6px;
    font-size: 0.56rem;
    letter-spacing: 0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-month-ribbon {
    animation: none;
  }
}

/*
 * "This link is not valid" (404.php) reuses the hero above. The homepage holds
 * its entrance back until the page loader lifts; this page has no loader, so the
 * same entrance starts almost at once.
 */
.not-found-hero .hero-eyebrow {
  animation-delay: 0.1s;
}

.not-found-hero h1 {
  animation-delay: 0.2s;
}

.not-found-hero .hero-content > p {
  animation-delay: 0.3s;
}

.not-found-hero .hero-actions {
  animation-delay: 0.4s;
}

/* The headline's orange word with the pink underline. Its own class, because
   language.js fills every .changing-word with the homepage's rotating words. */
.not-found-word {
  position: relative;
  display: inline-block;
  color: var(--orange);
}

.not-found-word::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  content: "";
  opacity: 0.8;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 0.8s 0.8s var(--ease) forwards;
}

/* The hero is the whole page here; nothing white may show below it. */
body.not-found-page {
  background: var(--navy-deep);
}
