:root {
  --ink: #17202b;
  --muted: #5e584e;
  --paper: #f4efe6;
  --paper-2: #ebe2d2;
  --card: #fffaf3;
  --navy: #1868b8;
  --navy-deep: #124e8c;
  --gold: #d7a441;
  --gold-2: #f3d7a0;
  --clay: #e36f1e;
  --clay-2: #c45612;
  --line: rgba(23, 32, 43, 0.12);
  --shadow: 0 18px 40px rgba(23, 32, 43, 0.08);
  --nav-h: 4.8rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Heebo", "Arial Hebrew", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}
img, video { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold-2); color: var(--ink); }

.skip {
  position: absolute;
  right: 1rem;
  top: -4rem;
  background: white;
  color: var(--ink);
  padding: .4rem .7rem;
  z-index: 80;
}
.skip:focus { top: .6rem; }

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: var(--nav-h);
  padding: .7rem 5vw;
  background: rgba(24, 104, 184, .92);
}
.page-home .site-nav {
  background: linear-gradient(to bottom, rgba(18, 28, 40, .9), rgba(18, 28, 40, 0));
}
.page-home .site-nav.is-solid { background: rgba(18, 28, 40, .94); }
.brand {
  display: flex;
  align-items: center;
  color: white;
  font-weight: 800;
  text-decoration: none;
  line-height: 0;
}
.brand img {
  display: block;
  height: 3.35rem;
  width: auto;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .25rem .85rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
}
.nav-links a.is-active,
.nav-links a:hover { color: var(--gold-2); }
.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  padding: .35rem .8rem;
  font: inherit;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: var(--navy);
  color: white;
  overflow: hidden;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, .28) 0%, rgba(7, 17, 31, .08) 38%, rgba(7, 17, 31, .82) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: 0 8vw max(11vh, 6.4rem);
}
.hero-copy h1,
.hero-copy p { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hero-brand {
  margin: 0 0 .35rem;
  color: var(--gold-2);
  font-weight: 700;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  line-height: 1.05;
  font-weight: 800;
}
.hero-line {
  margin: .8rem 0 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 700;
}
.hero-kicker {
  margin: .2rem 0 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.15rem;
}
.hero-sub {
  max-width: 38rem;
  margin: .9rem 0 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .92);
}
.hero-tools { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; }
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .7);
  color: white;
  background: rgba(20, 90, 160, .28);
  text-decoration: none;
  border-radius: 999px;
  padding: .55rem .95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ghost:hover { background: rgba(255, 255, 255, .14); }

.section { padding: 5.2rem 7vw; scroll-margin-top: 5rem; }
.section-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
}
.section-title span {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 3.2rem 3px;
  background-position: right bottom;
  padding-bottom: .55rem;
}
.lead {
  max-width: 42rem;
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.15rem;
}
.prose { white-space: pre-wrap; }

.why { background: var(--paper); }
.reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  perspective: 1100px;
}
.reason {
  position: relative;
  overflow: hidden;
  min-height: 28rem;
  background: var(--navy);
  border-radius: 18px;
  padding: 0;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transform: translateY(0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.reason-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1);
  transition: transform .55s ease;
}
.reason-copy {
  position: absolute;
  z-index: 2;
  top: 22%;
  right: 0;
  bottom: 16%;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  text-align: center;
  color: #fff;
}
.reason-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: -28%;
  left: 0;
  background: linear-gradient(to bottom, rgba(18, 28, 40, 0) 0%, rgba(18, 28, 40, .22) 28%, rgba(18, 28, 40, .48) 62%, rgba(18, 28, 40, .55) 100%);
  pointer-events: none;
}
.reason::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .45) 50%, transparent 68%);
  transform: translateX(130%);
  pointer-events: none;
}
.reason h3 {
  margin: 0 0 .2rem;
  color: #fff;
  font-size: 1.32rem;
  line-height: 1.3;
  text-shadow: 0 1px 10px rgba(8, 16, 28, .55);
}
.reason p {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(8, 16, 28, .5);
}
.reason-num {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-2);
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(232, 196, 110, .9);
  transition: transform .35s ease, background .35s ease, color .35s ease;
}
.reason:hover {
  transform: translateY(-10px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: 0 22px 44px rgba(23, 32, 43, .14);
  border-color: rgba(215, 164, 65, .7);
}
.reason:hover .reason-photo { transform: scale(1.06); }
.reason:hover::after { animation: sheen .7s ease; }
.reason:hover .reason-num {
  animation: none;
  transform: scale(1.14) rotate(-14deg);
  background: var(--clay);
  color: white;
}
.reasons .reason:nth-child(2) .reason-num { animation-delay: .45s; }
.reasons .reason:nth-child(3) .reason-num { animation-delay: .9s; }
.reasons .reason:nth-child(4) .reason-num { animation-delay: 1.35s; }

.mission {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  color: #f7f4ee;
}
.mission::before {
  content: "";
  position: absolute;
  inset: -15%;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, .8) 50%, transparent 52%),
    radial-gradient(1px 1px at 28% 70%, rgba(255, 255, 255, .55) 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 46% 36%, rgba(240, 213, 154, .95) 50%, transparent 52%),
    radial-gradient(1px 1px at 63% 78%, rgba(255, 255, 255, .5) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 78% 24%, rgba(255, 255, 255, .7) 50%, transparent 52%),
    radial-gradient(1px 1px at 88% 62%, rgba(240, 213, 154, .8) 50%, transparent 52%),
    radial-gradient(1px 1px at 18% 88%, rgba(255, 255, 255, .45) 50%, transparent 52%);
  animation: drift 11s ease-in-out infinite alternate, twinkle 4.2s ease-in-out infinite;
}
.mission-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, .7fr) 1.4fr;
  gap: 2rem;
  align-items: center;
}
.mission-stat { position: relative; }
.mission-stat strong,
.mission-stat span { position: relative; z-index: 1; }
.mission-stat::before {
  content: "";
  position: absolute;
  width: 9.5rem;
  height: 9.5rem;
  border: 1px solid rgba(215, 164, 65, .35);
  border-top-color: var(--gold);
  border-radius: 50%;
  right: 8%;
  top: -.4rem;
  animation: spin 16s linear infinite;
}
.mission-stat::after {
  content: "";
  position: absolute;
  width: 12.2rem;
  height: 12.2rem;
  border: 1px dashed rgba(255, 255, 255, .28);
  border-radius: 50%;
  right: -6%;
  top: -1.5rem;
  animation: spin 26s linear infinite reverse;
}
.mission-stat strong {
  display: block;
  font-size: clamp(4.2rem, 9vw, 7rem);
  line-height: .9;
  color: var(--gold);
  font-weight: 800;
  animation: floaty 4.8s ease-in-out infinite;
}
.mission-stat span { display: block; margin-top: .7rem; font-size: 1.15rem; }
.mission .section-title span { background-image: linear-gradient(var(--gold), var(--gold)); }
.mission-copy { font-size: 1.12rem; color: rgba(247, 244, 238, .9); max-width: 42rem; }

.quotes { position: relative; overflow: hidden; background: var(--paper-2); }
.quotes::before {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 14% 30%, rgba(215, 164, 65, .7) 50%, transparent 52%),
    radial-gradient(1px 1px at 38% 72%, rgba(23, 32, 43, .28) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 70% 22%, rgba(215, 164, 65, .55) 50%, transparent 52%),
    radial-gradient(1px 1px at 86% 64%, rgba(23, 32, 43, .22) 50%, transparent 52%);
  animation: drift 14s ease-in-out infinite alternate;
}
.quote-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  perspective: 1100px;
}
.quote {
  position: relative;
  margin: 0;
  background: var(--card);
  border-radius: 18px;
  padding: 2.2rem 1.25rem 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transform: translateY(0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.quote::before {
  content: "״";
  position: absolute;
  top: .15rem;
  right: 1rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  transition: transform .35s ease, color .35s ease;
}
.quote:hover {
  transform: translateY(-12px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: 0 24px 48px rgba(23, 32, 43, .14);
  border-color: rgba(215, 164, 65, .65);
}
.quote:hover::before {
  transform: translateY(-8px) scale(1.18) rotate(-8deg);
  color: var(--clay);
}
.quote blockquote { margin: 0; white-space: pre-wrap; }
.quote figcaption {
  display: grid;
  margin-top: 1rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.quote figcaption span { color: var(--muted); }

.partners { background: var(--paper); padding: 2.4rem 7vw 1.8rem; }
.partners .lead { margin-bottom: .85rem; }
.logo-carousel {
  overflow: hidden;
  direction: ltr;
  padding: .35rem 0 .5rem;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.logo-track {
  display: flex;
  gap: .7rem;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: logo-marquee 55s linear infinite;
}
.logo-carousel:hover .logo-track { animation-play-state: paused; }
.logo-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .2rem;
  flex: 0 0 8.4rem;
  height: 4.7rem;
  margin: 0;
  padding: .4rem .55rem .35rem;
  background: white;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.logo-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 2.15rem;
  object-fit: contain;
}
.logo-card span {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.logo-card:hover {
  border-color: rgba(215, 164, 65, .7);
  box-shadow: 0 10px 22px rgba(23, 32, 43, .12);
}

.contact-band { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.15fr);
  gap: 2rem;
  align-items: start;
}
.contact-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
  font-size: 1.15rem;
}
.contact-points a {
  color: var(--clay-2);
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: 0 2px;
  transition: background-size .3s ease;
}
.contact-points li { transition: transform .25s ease; }
.contact-points li:hover { transform: translateX(8px); }
.contact-points a:hover { background-size: 100% 2px; }
.contact-option {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.contact-option .icon { width: 1.15rem; height: 1.15rem; flex: none; }
.form-card {
  display: grid;
  gap: .55rem;
  background: white;
  border-radius: 20px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.form-card:hover,
.form-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(23, 32, 43, .12);
}
.form-card label { font-weight: 700; }
input, textarea, select {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid rgba(23, 32, 43, .18);
  background: white;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
input:hover, textarea:hover, select:hover { border-color: rgba(215, 164, 65, .8); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(215, 164, 65, .22);
}
textarea { resize: vertical; }
.form-error { margin: 0; color: #8a2b1b; font-weight: 700; }
.button {
  display: inline-block;
  background: var(--clay);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: .8rem 1.3rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover {
  background: var(--clay-2);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 24px rgba(227, 111, 30, .38);
}
.button:active { transform: translateY(0) scale(.98); }
.form-card .button { justify-self: start; }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.page-main { padding: calc(var(--nav-h) + 2.4rem) 8vw 4rem; min-height: 70vh; }
.page-main h1 {
  margin: .2rem 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
}
.eyebrow { margin: 0; color: var(--clay-2); font-weight: 800; }
.page-copy { max-width: 44rem; font-size: 1.12rem; }
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.program-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 1.25rem 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.program-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--clay), var(--gold));
}
.program-index {
  display: block;
  margin-bottom: .35rem;
  color: var(--clay);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.program-card h2 { margin: 0 0 .55rem; font-size: 1.35rem; line-height: 1.3; }
.program-card p { margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.65; }
.program-card:hover {
  transform: translateY(-8px);
  border-color: rgba(215, 164, 65, .75);
  box-shadow: 0 18px 36px rgba(23, 32, 43, .12);
}
.journey-scroll { overflow-x: auto; margin-top: 1.6rem; padding-bottom: .6rem; }
.journey-track {
  --journey-cols: 4;
  display: grid;
  grid-template-columns: repeat(var(--journey-cols), minmax(15rem, 1fr));
  grid-template-rows: auto 7.6rem auto;
  width: max(100%, calc(var(--journey-cols) * 17rem));
  margin: 0;
  padding: .4rem 0 1rem;
  list-style: none;
}
.journey-track::before {
  content: "";
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: center;
  height: 4px;
  margin-inline: 5%;
  border-radius: 999px;
  background: linear-gradient(270deg, var(--clay), var(--navy));
  z-index: 0;
  pointer-events: none;
}
.journey-step {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / span 3;
  justify-items: center;
  text-align: center;
  z-index: 1;
}
.journey-copy { width: min(18rem, 100%); padding: 0 .45rem; }
.journey-copy h2 { margin: 0; font-size: 1.08rem; line-height: 1.35; transition: color .25s ease; }
.journey-step.is-current .journey-copy h2,
.journey-step:hover .journey-copy h2 { color: var(--clay-2); }
.journey-details { margin-top: 1.2rem; }
.journey-detail[hidden] { display: none; }
.journey-detail {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  background: var(--card);
  border-radius: 18px;
  padding: .75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(215, 164, 65, .45);
}
.journey-detail-photo {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  border-radius: 14px;
}
.journey-detail h2 { margin: 0 0 .45rem; font-size: 1.35rem; line-height: 1.3; }
.journey-detail p { margin: 0; font-size: 1.08rem; line-height: 1.7; }
.journey-step:nth-child(odd) .journey-copy { grid-row: 1; align-self: end; }
.journey-step:nth-child(odd) .journey-dot { grid-row: 2; }
.journey-step:nth-child(even) .journey-dot { grid-row: 2; }
.journey-step:nth-child(even) .journey-copy { grid-row: 3; align-self: start; }
.journey-dot {
  width: 6.5rem;
  height: 6.5rem;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--navy);
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(23, 32, 43, .16);
  transition: transform .25s ease, box-shadow .25s ease;
}
.journey-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.journey-step.is-current .journey-dot,
.journey-step:hover .journey-dot,
.journey-step:focus-within .journey-dot {
  transform: scale(1.12);
  box-shadow: 0 14px 28px rgba(23, 32, 43, .28);
}
@media (max-width: 720px) {
  .journey-scroll { overflow: visible; margin-top: 1rem; }
  .journey-track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    width: 100%;
    padding: 0;
  }
  .journey-track::before {
    position: absolute;
    align-self: auto;
    top: 2.2rem;
    right: calc(2.35rem - 2px);
    left: auto;
    width: 4px;
    height: calc(100% - 4.4rem);
    margin: 0;
  }
  .journey-step {
    display: grid;
    grid-template-columns: 4.7rem minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    width: 100%;
    text-align: right;
  }
  .journey-step .journey-dot,
  .journey-step:nth-child(odd) .journey-dot,
  .journey-step:nth-child(even) .journey-dot {
    grid-column: 1;
    grid-row: 1;
    width: 4.4rem;
    height: 4.4rem;
    justify-self: center;
  }
  .journey-step .journey-copy,
  .journey-step:nth-child(odd) .journey-copy,
  .journey-step:nth-child(even) .journey-copy {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: auto;
    padding: .7rem 0 .7rem .15rem;
  }
  .journey-copy h2 { font-size: 1.02rem; }
  .journey-step.is-current .journey-dot,
  .journey-step:hover .journey-dot,
  .journey-step:focus-within .journey-dot { transform: none; }
  .journey-detail h2 { font-size: 1.15rem; }
  .journey-detail p { font-size: 1rem; }
}
.school-block { margin-top: 2.2rem; }
.school-block h2 { margin: 0 0 .8rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.school-lead { max-width: 46rem; margin: 0; font-size: 1.15rem; line-height: 1.8; }
.gefen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 40rem;
  margin: 1.1rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: var(--navy);
  color: white;
}
.gefen span { font-weight: 700; line-height: 1.4; }
.gefen strong { font-size: 2.1rem; color: var(--gold-2); letter-spacing: .04em; }
.school-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.school-values article {
  background: var(--card);
  border-radius: 18px;
  padding: 1.15rem 1.15rem 1.3rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--clay);
  transition: transform .3s ease, box-shadow .3s ease;
}
.school-values article:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(23, 32, 43, .12); }
.school-values h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.school-values p { margin: 0; line-height: 1.7; }
.school-note {
  margin-top: 1rem;
  padding: 1.15rem 1.3rem;
  border-radius: 18px;
  background: var(--paper-2);
}
.school-note p { margin: 0; line-height: 1.75; font-size: 1.05rem; }
.school-note p + p { margin-top: .85rem; }
.subhead { margin: 2rem 0 .8rem; }
.gallery, .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .9rem;
  margin-top: 1.4rem;
}
.gallery figure, .person-card, .video-list figure {
  margin: 0;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery img, .person-fallback {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.person-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: var(--paper-2);
}
.person-fallback {
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold-2);
  font-size: 2.4rem;
  font-weight: 800;
}
.gallery figcaption, .person-card, .video-list figcaption { padding: .8rem .9rem 1rem; }
.gallery figcaption, .video-list figcaption { display: grid; }
.gallery figure { transition: transform .45s ease, box-shadow .45s ease; }
.gallery figure:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(23, 32, 43, .14);
}
.gallery-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
}
.person-card h2 { margin: .8rem .95rem .2rem; font-size: 1.25rem; transition: color .3s ease; }
.person-card .role { margin: 0 .95rem .4rem; color: var(--clay-2); font-weight: 700; transition: color .3s ease; }
.person-card .prose { margin: 0 .95rem 1rem; }
.person-card {
  position: relative;
  padding: 0 0 1.05rem;
  border: 1px solid transparent;
  transform: translateY(0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.team-grid {
  perspective: 1100px;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 20rem));
  justify-content: start;
  align-items: start;
}
.person-card img, .person-card .person-fallback { transition: transform .5s ease; }
.person-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--clay));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s ease;
}
.person-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .55) 50%, transparent 68%);
  transform: translateX(130%);
  pointer-events: none;
}
.person-card:hover {
  transform: translateY(-12px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: 0 24px 48px rgba(23, 32, 43, .14);
  border-color: rgba(215, 164, 65, .7);
}
.person-card:hover::before { transform: scaleX(1); }
.person-card:hover::after { animation: sheen .7s ease; }
.person-card:hover .person-fallback { transform: none; }
.person-card:hover h2 { color: var(--navy); }
.person-card:hover .role { color: var(--clay); }
.page-main:has(.team-grid) { position: relative; overflow: hidden; }
.page-main:has(.team-grid)::before {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 28%, rgba(215, 164, 65, .75) 50%, transparent 52%),
    radial-gradient(1px 1px at 34% 70%, rgba(23, 32, 43, .22) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 68% 18%, rgba(215, 164, 65, .55) 50%, transparent 52%),
    radial-gradient(1px 1px at 84% 62%, rgba(23, 32, 43, .18) 50%, transparent 52%);
  animation: drift 14s ease-in-out infinite alternate, twinkle 4.8s ease-in-out infinite;
}
.page-main:has(.team-grid) > * { position: relative; z-index: 1; }
.page-main:has(.team-grid) h1 {
  display: inline-block;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 3.2rem 3px;
  padding-bottom: .45rem;
}
.video-list { display: grid; gap: 1rem; }
.video-list video { width: 100%; display: block; background: black; }
.empty { color: var(--muted); }

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
}
.lightbox::backdrop { background: rgba(20, 90, 160, .88); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(1100px, 78vw); }
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1100px, 78vw);
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.lightbox figcaption {
  margin-top: .8rem;
  text-align: center;
  font-size: 1.05rem;
}
.lightbox-close, .lightbox-nav {
  position: fixed;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: white;
  cursor: pointer;
  font: inherit;
}
.lightbox-close {
  top: 1rem;
  left: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  width: 3rem;
  height: 3.4rem;
  border-radius: 999px;
  font-size: 2.4rem;
  line-height: 1;
  transform: translateY(-50%);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .28); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--navy);
  color: #f7f4ee;
  padding: 2rem 7vw 2.6rem;
}
.site-footer p { margin: .35rem 0 0; color: rgba(247, 244, 238, .78); }
.footer-contact { display: grid; gap: .2rem; }
.footer-contact a {
  display: inline-block;
  color: var(--gold-2);
  text-decoration: none;
  font-weight: 700;
  transition: color .2s ease, transform .2s ease;
}
.footer-contact a:hover { color: white; transform: translateY(-2px); }

.side-dock {
  position: fixed;
  z-index: 45;
  left: 1rem;
  bottom: .85rem;
  display: grid;
  gap: .55rem;
  width: min(12.2rem, calc(100% - 1.4rem));
  justify-items: stretch;
}
.quote-bar {
  text-align: center;
  background: #f07a1a;
  color: white;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.35;
  padding: .9rem .75rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(227, 111, 30, .35);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.quote-bar:hover {
  background: #d9650c;
  color: white;
  transform: translateY(-2px);
}
body:has(.quote-bar) .site-footer { padding-bottom: 9rem; }
body:not(:has(.quote-bar)) .site-footer { padding-bottom: 5rem; }
.side-social { display: flex; gap: .45rem; justify-content: center; }
.side-social a {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  box-shadow: 0 8px 18px rgba(23, 32, 43, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.side-social .icon { width: 1.25rem; height: 1.25rem; }
.side-social .is-facebook { background: #1877f2; }
.side-social .is-whatsapp { background: #25d366; }
.side-social .is-email { background: var(--navy); }
.side-social a:hover { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(23, 32, 43, .22); }

.flash-wrap {
  position: fixed;
  z-index: 60;
  top: calc(var(--nav-h) + .4rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 92vw);
}
.flash { margin: 0 0 .45rem; padding: .75rem .9rem; border-radius: 12px; }
.flash.success { background: #e5f6ea; color: #135c2b; }
.flash.error { background: #fde8e4; color: #8a2b1b; }
.flash.notice { background: #fff4d8; color: #6a4b08; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin: 0;
    padding: .4rem 1.1rem 1rem;
    background: rgba(7, 17, 31, .97);
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 1.05rem; padding: .25rem 0; }
}

@media (max-width: 800px) {
  .mission-grid, .contact-grid, .program-grid, .school-values, .journey-detail { grid-template-columns: 1fr; }
  .journey-detail-photo { height: 12rem; }
  .reasons {
    grid-template-columns: repeat(4, 16.5rem);
    overflow-x: auto;
    padding-bottom: .4rem;
  }
  .hero-copy { padding-inline: 6vw; }
}

@media (max-width: 720px) {
  .quote-bar:hover { transform: none; }
  .hero-copy { padding-bottom: 7.2rem; }
}

.motion .reveal {
  opacity: 0;
  transform: translateY(22px) scale(.98);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}
.motion .reveal.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.motion .reason-num { animation: nudge 3.4s ease-in-out infinite; }
.motion .reason.reveal.is-in,
.motion .quote.reveal.is-in {
  transform: translateY(0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.motion .reason.reveal.is-in:hover {
  transform: translateY(-10px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.motion .quote.reveal.is-in:hover {
  transform: translateY(-12px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.motion .person-card.reveal.is-in {
  transform: translateY(0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.motion .person-card.reveal.is-in:hover {
  transform: translateY(-12px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.motion .page-main:has(.team-grid) h1.reveal { background-size: 0 3px; }
.motion .page-main:has(.team-grid) h1.reveal.is-in {
  background-size: 3.2rem 3px;
  transition: background-size .6s ease .15s, opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}
.motion .section-title.reveal span { background-size: 0 3px; }
.motion .section-title.reveal.is-in span { background-size: 3.2rem 3px; transition: background-size .6s ease .15s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(5%, -4%, 0); }
}
@keyframes twinkle {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@keyframes nudge {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(7deg); }
}
@keyframes sheen {
  to { transform: translateX(-130%); }
}
@keyframes logo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mission::before,
  .mission-stat::before,
  .mission-stat::after,
  .mission-stat strong,
  .quotes::before,
  .page-main:has(.team-grid)::before,
  .reason-num,
  .journey-dot { animation: none; }
  .journey-step.is-current .journey-dot,
  .journey-step:hover .journey-dot,
  .journey-step:focus-within .journey-dot { transform: none; }
  .gallery figure, .reason-photo { transition: none; }
  .reason:hover .reason-photo { transform: none; }
  .logo-track { animation: none; }
  .logo-carousel { overflow-x: auto; mask-image: none; }
  .logo-card[aria-hidden="true"] { display: none; }
}

body.page-home {
  --ink: #f4efed;
  --muted: rgba(199, 217, 229, .78);
  --paper: #121c28;
  --paper-2: #18263a;
  --card: #18263a;
  --navy: #121c28;
  --navy-deep: #0e1620;
  --gold: #5eb6b5;
  --gold-2: #b0dedf;
  --clay: #5eb6b5;
  --clay-2: #7ec9c8;
  --line: rgba(176, 222, 223, .24);
  --shadow: 0 18px 40px rgba(0, 0, 0, .35);
  font-family: Assistant, Arial, sans-serif;
  font-size: 18px;
  background: #121c28;
  color: #f4efed;
}
body.page-home h1,
body.page-home h2,
body.page-home h3,
body.page-home .section-title { font-family: Assistant, Arial, sans-serif; font-weight: 700; }
body.page-home ::selection { background: #5eb6b5; color: #121c28; }
body.page-home .site-nav {
  background: linear-gradient(to bottom, rgba(18, 28, 40, .9), rgba(18, 28, 40, 0));
}
body.page-home .site-nav.is-solid { background: rgba(18, 28, 40, .94); }
body.page-home .nav-links a:hover,
body.page-home .nav-links a.is-active { color: #b0dedf; }
body.page-home .hero { background: #121c28; }
body.page-home .hero-shade {
  background: linear-gradient(180deg, rgba(18, 28, 40, .4) 0%, rgba(18, 28, 40, .08) 42%, rgba(18, 28, 40, .78) 100%);
}
body.page-home .mission {
  background: linear-gradient(160deg, #1b3344 0%, #121c28 58%, #102830 100%);
}
body.page-home .quote {
  border-color: rgba(94, 182, 181, .35);
}
body.page-home .logo-card { background: #f4efed; }
body.page-home .logo-card span { color: #3c4b59; }
body.page-home .logo-card:hover { border-color: #5eb6b5; }
body.page-home .form-card { background: #18263a; }
body.page-home input,
body.page-home textarea,
body.page-home select {
  color: #121c28;
  background: #f4efed;
  border-color: rgba(176, 222, 223, .45);
}
body.page-home input:hover,
body.page-home textarea:hover,
body.page-home select:hover { border-color: #5eb6b5; }
body.page-home input:focus,
body.page-home textarea:focus,
body.page-home select:focus {
  border-color: #5eb6b5;
  box-shadow: 0 0 0 4px rgba(94, 182, 181, .28);
}
body.page-home .button {
  background: #5eb6b5;
  color: #121c28;
}
body.page-home .button:hover { background: #b0dedf; color: #121c28; }
body.page-home .site-footer {
  background: #0e1620;
  color: #f4efed;
}
body.page-home .site-footer p { color: rgba(199, 217, 229, .72); }
body.page-home .footer-contact a { color: #b0dedf; }
body.page-home .footer-contact a:hover { color: #f4efed; }
body.page-home .side-social .is-email { background: #5eb6b5; color: #121c28; }
@media (max-width: 1100px) {
  body.page-home .nav-links { background: rgba(18, 28, 40, .97); }
}
