/* ConnectEd Learners: site stylesheet.
   Three colours: white for the page, light blue for cards and highlights, dark blue for text and buttons. */
:root {
  --navy: #0f2a5c; --navy-deep: #0a1d42; --blue: #1f5fbf; --blue-ink: #1a4f9e;
  --sky: #eef5fd; --sky-2: #dcebfb; --sky-3: #b9d6f5;
  --white: #ffffff; --ink: #0f2a5c; --body: #33456b; --muted: #5a6b8c;
  --line: #dde7f3; --line-strong: #c4d5ea;
  --wa: #128c4a; --wa-deep: #0d6e3a;
  --r: 16px; --r-sm: 10px; --r-lg: 22px;
  --shadow: 0 18px 40px -24px rgba(15, 42, 92, .35);
  --wrap: 1200px; --gut: clamp(20px, 5vw, 48px);
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--body); font: 400 18px/1.65 var(--text); -webkit-tap-highlight-color: rgba(31, 95, 191, .15); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.hl { color: var(--blue); }
.on-dark .hl { color: #8fc1f5; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: #a9cdf5; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--body); max-width: 58ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 12px; font: 700 16px/1 var(--text); border: 2px solid transparent; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; touch-action: manipulation; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--blue); }
.btn--outline { background: var(--white); color: var(--navy); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--navy); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-deep); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--sky-3); }
.tlink:hover { text-decoration-color: currentColor; }
.tlink svg { width: 16px; height: 16px; }
.on-dark .tlink { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }

/* header */
.top { background: var(--navy-deep); color: #d3def2; font-size: 15px; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.top a:hover { color: #fff; }
.top__wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; min-height: 44px; }
.top__wa svg { width: 17px; height: 17px; }
.top__social { display: flex; gap: 2px; }
.top__social a { display: inline-grid; place-items: center; width: 44px; height: 44px; color: #fff; border-radius: 50%; }
.top__social a:hover { background: rgba(255, 255, 255, .12); }
.top__social svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .top__msg { display: none; } }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 21px/1 var(--display); color: var(--navy); white-space: nowrap; letter-spacing: -.02em; }
.logo img { height: 40px; width: auto; }
.logo b { color: var(--blue); font-weight: 800; }
.nav__links { display: flex; gap: 2px; align-items: center; }
.nav__links a:not(.btn) { padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--ink); }
.nav__links a:not(.btn):hover { background: var(--sky); }
.nav__links a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav__links .btn { display: none; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--white); color: var(--navy); cursor: pointer; }
.nav__toggle svg { width: 22px; height: 22px; margin: auto; }
@media (max-width: 1280px) { .nav__cta .btn--wa { display: none; } }
@media (max-width: 1100px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__cta .btn { display: none; }
  .nav__links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px var(--gut) 20px; display: none; box-shadow: var(--shadow); }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 12px; font-size: 18px; }
  .nav__links a[aria-current="page"] { box-shadow: none; background: var(--sky); border-radius: 10px; }
  .nav.is-open .nav__links .btn { display: inline-flex; margin-top: 6px; }
}
@media (max-width: 480px) { .logo { font-size: 18px; } .logo img { height: 34px; } }

/* sections */
section { padding: clamp(64px, 8vw, 104px) 0; }
.head { display: grid; gap: 14px; justify-items: start; max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
.band { background: var(--sky); border-block: 1px solid var(--line); }
.band-navy { background: var(--navy); color: #d3def2; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy .lead { color: #d3def2; }

/* hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); background: linear-gradient(180deg, var(--white) 0%, var(--white) 55%, var(--sky) 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.6; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--sky); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 560px; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.facts > div { padding: 16px 18px; display: grid; gap: 2px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts b { font: 800 26px/1.1 var(--display); color: var(--navy); }
.facts span { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 4 / 3; }
  .hero__photo img { object-position: 64% 26%; }
}
@media (max-width: 480px) { .facts b { font-size: 22px; } .facts > div { padding: 12px; } .facts span { font-size: 14px; } }

/* grids and cards */
.grid { display: grid; gap: 22px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1040px) { .g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 10px; align-content: start; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.card--sky { background: var(--sky); }
a.card:hover { border-color: var(--sky-3); box-shadow: var(--shadow); transform: translateY(-3px); }
.card p { font-size: 17px; }
.ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-2); color: var(--navy); }
.card--sky .ic { background: var(--white); }
.ic svg { width: 24px; height: 24px; }

/* course cards */
.course { padding: 0; overflow: hidden; gap: 0; }
.course__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.course__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.course:hover .course__img img { transform: scale(1.04); }
.course__body { padding: 22px 22px 24px; display: grid; gap: 8px; }
.course__tag { justify-self: start; font: 700 12px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); background: var(--sky); border: 1px solid var(--sky-2); padding: 6px 10px; border-radius: 999px; }
.course__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue-ink); margin-top: 6px; }
.course__more svg { width: 16px; height: 16px; transition: transform .18s ease; } a.course:hover .course__more svg { transform: translateX(3px); }

/* exam boards */
.board { gap: 12px; }
.board__name { display: flex; align-items: center; gap: 12px; }
.board__mono { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; font: 800 15px/1 var(--display); letter-spacing: .02em; flex: none; }
.board ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.board li { font-size: 14px; font-weight: 600; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.note { margin-top: 24px; font-size: 16px; color: var(--muted); }

/* language greeting cards */
.lang { background: var(--sky); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 6px; align-content: start; transition: border-color .2s ease, box-shadow .2s ease; }
.lang:hover { border-color: var(--sky-3); box-shadow: var(--shadow); }
.lang__top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.lang__flag { height: 24px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 42, 92, .14); }
.lang__name { font: 700 16px/1.2 var(--display); color: var(--navy); }
.lang__hello { font: 800 clamp(36px, 3.6vw, 46px)/1.15 var(--display); color: var(--navy); letter-spacing: 0; }
.lang__hello:lang(ar) { font-family: "Noto Naskh Arabic", var(--display); }
.lang__say { font-size: 17px; color: var(--muted); font-style: italic; }
.lang__reveal { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px dashed var(--sky-3); background: var(--white); color: var(--blue-ink); font: 700 16px/1.2 var(--text); cursor: pointer; text-align: left; transition: border-color .2s ease, background-color .2s ease; touch-action: manipulation; }
.lang__reveal:hover { border-color: var(--blue); }
.lang__reveal svg { width: 18px; height: 18px; flex: none; transition: transform .25s ease; }
.lang__tr { display: none; color: var(--navy); }
.lang__reveal[aria-expanded="true"] { border-style: solid; border-color: var(--navy); }
.lang__reveal[aria-expanded="true"] .lang__hint { display: none; }
.lang__reveal[aria-expanded="true"] .lang__tr { display: inline; animation: fadeup .3s ease; }
.lang__reveal[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang__link { margin-top: 12px; justify-self: start; }
.lang__count { margin-left: auto; font: 700 13px/1 var(--text); color: var(--blue-ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; }
.lang__word { min-height: 112px; display: grid; align-content: start; gap: 6px; transition: opacity .18s ease, transform .18s ease; }
.lang__word.is-out { opacity: 0; transform: translateY(-8px); }
.lang__word:not(.is-out) { animation: fadeup .3s ease; }
.lang__btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.lang__btns .lang__reveal { margin-top: 0; }
.lang__next { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--navy); color: #fff; font: 700 15px/1 var(--text); cursor: pointer; touch-action: manipulation; transition: background-color .2s ease, transform .15s ease; }
.lang__next:hover { background: var(--blue); }
.lang__next:active { transform: scale(.96); }
.lang__next svg { width: 17px; height: 17px; }
.lang__next.spin svg { animation: spin360 .5s ease; }
@keyframes spin360 { to { transform: rotate(360deg); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* why choose us */
.usp { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 22px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.usp h3 { font-size: 19px; margin-bottom: 4px; }
.usp p { font-size: 17px; }
.band-navy .usp { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.band-navy .usp p { color: #d3def2; }
.band-navy .usp .ic { background: rgba(255, 255, 255, .12); color: #fff; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r); margin-bottom: 24px; }
.stats > div { padding: 22px; display: grid; gap: 4px; }
.stats > div + div { border-left: 1px solid rgba(255, 255, 255, .18); }
.stats b { font: 800 34px/1 var(--display); color: #fff; }
.stats span { color: #c3d2ec; font-size: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > div:nth-child(3) { border-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .18); } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { display: grid; gap: 12px; align-content: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.step__img { aspect-ratio: 16 / 10; background: var(--sky); }
.step__img img { width: 100%; height: 100%; object-fit: cover; }
.step__body { padding: 4px 22px 24px; display: grid; gap: 8px; }
.step__n { counter-increment: step; font: 800 14px/1 var(--display); color: var(--blue-ink); letter-spacing: .06em; text-transform: uppercase; }
.step__n::before { content: "Step " counter(step); }
.step p { font-size: 17px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* split */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 72px); align-items: center; }
.split__copy { display: grid; gap: 18px; justify-items: start; }
.photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--sky); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.checks { display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--ink); font-weight: 600; }
.checks li::before { content: ""; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .photo { order: 2; } }

/* call to action */
.cta { border-radius: var(--r-lg); background: var(--navy); color: #d3def2; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cta h2 { color: #fff; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); }
.faq details[open] { border-color: var(--sky-3); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font: 700 18px/1.35 var(--display); color: var(--ink); min-height: 60px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 22px 20px; max-width: 70ch; }

/* form */
.formcard { background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.formcard h3 { font-size: 24px; margin-bottom: 18px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; } .field--full, .form > .btn, .form > p { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 400 16px/1.4 var(--text); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 95, 191, .18); }
.field [aria-invalid="true"] { border: 2px solid #b3261e; }
.field__err { color: #b3261e; font-size: 14px; font-weight: 700; }
.form__note { font-size: 15px; color: var(--muted); }
.form__status { font-weight: 700; color: var(--navy); min-height: 1.4em; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.wa-box { display: grid; gap: 10px; padding: 20px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.wa-box p { font-size: 16px; }

/* inner page hero */
.phero { padding: clamp(40px, 6vw, 80px) 0; background: linear-gradient(180deg, var(--white), var(--sky)); border-bottom: 1px solid var(--line); }
.crumbs { font-weight: 600; font-size: 15px; color: var(--muted); display: flex; gap: 8px; }
.crumbs a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* legal */
.legal { max-width: 760px; display: grid; gap: 14px; }
.legal h2 { font-size: 24px; margin-top: 22px; }
.legal a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal ul { display: grid; gap: 8px; list-style: disc; padding-left: 22px; }

/* footer */
.foot { background: var(--navy-deep); color: #c3d0e9; padding: clamp(48px, 7vw, 80px) 0 28px; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.foot h3 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.foot li a { display: inline-block; padding: 6px 0; }
.foot li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot__logo { background: #fff; border-radius: 14px; padding: 10px 14px; display: inline-flex; margin-bottom: 16px; }
.foot__logo img { height: 84px; width: auto; }
.foot__contact { display: grid; gap: 12px; margin-top: 18px; justify-items: start; }
.socials { display: flex; gap: 10px; }
.socials a { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background-color .2s ease; }
.socials a:hover { background: rgba(255, 255, 255, .12); }
.socials svg { width: 20px; height: 20px; }
.foot__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 15px; }
.foot__legal a { text-decoration: underline; text-underline-offset: 3px; } .foot__legal a:hover { color: #fff; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__grid > :first-child { grid-column: 1 / -1; } }

/* a subtle fade-in as sections arrive; everything is visible without script */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* ===== life: background colour, soft shapes and small animations (all in the three blues) ===== */
section, .phero, .hero { position: relative; overflow: clip; }
section > .wrap, .phero > .wrap, .hero > .wrap { position: relative; z-index: 1; }

/* soft glowing shapes that drift slowly */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: 0; animation: drift 18s ease-in-out infinite alternate; }
.blob--a { width: 420px; height: 420px; background: #cfe3fb; top: -120px; right: -80px; }
.blob--b { width: 320px; height: 320px; background: #dbeafe; bottom: -140px; left: -100px; animation-duration: 22s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.08); } }

/* hero: a navy panel and a dotted panel behind the photo, two floating notes on it */
.hero { background: linear-gradient(160deg, #ffffff 0%, #f4f9ff 45%, #e6f1fd 100%); }
.hero__art { position: relative; }
.hero__dots { position: absolute; right: -22px; bottom: -22px; width: 58%; height: 58%; border-radius: var(--r-lg); background: radial-gradient(circle, #9cc4ef 1.6px, transparent 2px) 0 0 / 16px 16px; z-index: 0; }
.hero__art::before { content: ""; position: absolute; left: -18px; top: -18px; width: 46%; height: 40%; border-radius: var(--r-lg); background: var(--navy); z-index: 0; }
.hero__photo { position: relative; z-index: 1; }
.hero__photo img { transition: transform 1.2s ease; }
.hero__art:hover .hero__photo img { transform: scale(1.03); }
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); box-shadow: var(--shadow); font: 700 15px/1.2 var(--text); color: var(--navy); animation: bob 6s ease-in-out infinite; }
.chip svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.chip--live { left: -28px; top: 14%; }
.chip--boards { right: -20px; bottom: 12%; animation-delay: -3s; }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #1f9d55; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #1f9d55; animation: ping 1.8s ease-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (max-width: 900px) { .chip--live { left: 10px; top: 12px; } .chip--boards { right: 10px; bottom: 12px; } .hero__art::before, .hero__dots { display: none; } }
@media (max-width: 480px) { .chip { font-size: 13px; padding: 9px 12px; } }

/* a slow strip of courses and boards under the hero */
.strip { background: var(--navy); color: #fff; overflow: hidden; padding: 16px 0; }
.strip__track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.strip__track span { display: inline-flex; align-items: center; font: 700 17px/1 var(--display); letter-spacing: -.01em; padding: 0 22px; white-space: nowrap; }
.strip__track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8fc1f5; margin-left: 44px; }
.strip:hover .strip__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* section backgrounds */
.sec-dots { background: #fff; }
.sec-dots::before { content: ""; position: absolute; top: 40px; right: max(2%, calc(50% - 680px)); width: 220px; height: 160px; background: radial-gradient(circle, #b9d6f5 1.6px, transparent 2px) 0 0 / 18px 18px; opacity: .8; z-index: 0; pointer-events: none; }
.sec-dots::after { content: ""; position: absolute; bottom: -120px; left: -120px; width: 320px; height: 320px; border-radius: 50%; border: 36px solid #eef5fd; z-index: 0; pointer-events: none; }
.sec-wash { background: radial-gradient(800px 400px at 50% 0%, #e9f3fe, transparent 70%), #fff; }
.band { background: linear-gradient(180deg, #eef5fd 0%, #e3effc 100%); }
.band::before { content: ""; position: absolute; top: -140px; right: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), transparent 70%); z-index: 0; pointer-events: none; }
.band-navy { background: radial-gradient(700px 400px at 85% 0%, rgba(31, 95, 191, .55), transparent 70%), radial-gradient(600px 380px at 0% 100%, rgba(31, 95, 191, .35), transparent 70%), var(--navy); }
.band-navy::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); z-index: 0; pointer-events: none; }
.phero { background: linear-gradient(160deg, #ffffff 0%, #f1f7fe 50%, #e3effc 100%); }

/* the call-to-action band shimmers slowly */
.cta { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy) 0%, #1d4a96 50%, var(--navy) 100%); background-size: 200% 100%; animation: sheen 12s ease-in-out infinite; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .07); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
@keyframes sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* small hover moments */
.btn--primary, .btn--wa, .btn--light { position: relative; overflow: hidden; }
.btn--primary::after, .btn--wa::after, .btn--light::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn--primary:hover::after, .btn--wa:hover::after, .btn--light:hover::after { left: 120%; }
.btn svg { transition: transform .2s ease; }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn--wa:hover svg:first-child { transform: rotate(-12deg) scale(1.1); }
.usp { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease; }
.usp:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky-3); }
.usp .ic, .card .ic { transition: transform .3s ease, background-color .3s ease, color .3s ease; }
.usp:hover .ic, .card:hover .ic { transform: rotate(-6deg) scale(1.08); background: var(--navy); color: #fff; }
.band-navy .usp:hover { background: rgba(255, 255, 255, .1); }
.band-navy .usp:hover .ic { background: #fff; color: var(--navy); }
.lang { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lang:hover { transform: translateY(-4px); }
.lang__flag { transition: transform .4s ease; transform-origin: left center; }
.lang:hover .lang__flag { transform: perspective(200px) rotateY(-14deg) scale(1.08); }
.board { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.board:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky-3); }
.board__mono { transition: transform .3s ease, background-color .3s ease; }
.board:hover .board__mono { transform: scale(1.08); background: var(--blue); }
.step { transition: transform .25s ease, box-shadow .25s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__img, .photo { overflow: hidden; }
.step__img img, .photo img { transition: transform .8s ease; }
.step:hover .step__img img, .photo:hover img { transform: scale(1.05); }
.head.in .eyebrow::before, .split__copy.in .eyebrow::before { animation: grow .8s ease .2s both; }
@keyframes grow { from { width: 0; } to { width: 22px; } }

/* cards in a row arrive one after another */
.js .rv { transition-delay: var(--d, 0ms); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ page heroes: a different photo frame on each page ============ */
.phero--arch .photo { border-radius: 320px 320px var(--r-lg) var(--r-lg); aspect-ratio: 4 / 4.2; }
.phero--offset .photo { box-shadow: 22px 22px 0 var(--sky-2), 22px 22px 0 1px var(--sky-3); border-radius: 8px; }
.phero--tilt .photo { transform: rotate(2.5deg); box-shadow: -18px 18px 0 var(--navy), var(--shadow); }
.phero--frame .photo { padding: 12px; background: #fff; border-radius: 28px; box-shadow: 0 0 0 1px var(--line), 0 0 0 14px var(--sky), var(--shadow); }
.phero--frame .photo img { border-radius: 18px; }
@media (max-width: 860px) { .phero--offset .photo { box-shadow: 12px 12px 0 var(--sky-2); } .phero--tilt .photo { transform: rotate(1.5deg); box-shadow: -10px 10px 0 var(--navy); } }

/* ============ courses: course finder ============ */
.finder-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.finder-split__copy { display: grid; gap: 14px; justify-items: start; }
.finder-split__photo { margin-top: 10px; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.finder-split__photo img { width: 100%; height: 100%; object-fit: cover; }
.finder { background: var(--navy); color: #fff; border-radius: 26px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 30px 60px -30px rgba(10, 29, 66, .7); min-height: 420px; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; position: relative; overflow: hidden; }
.finder::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 193, 245, .35), transparent 70%); }
.finder__top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.finder__label { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: #a9cdf5; }
.finder__label svg { width: 18px; height: 18px; }
.finder__dots { display: flex; gap: 6px; }
.finder__dots i { width: 26px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .2); transition: background-color .3s ease, width .3s ease; }
.finder__dots i.on { background: #8fc1f5; width: 38px; }
.finder__stage { position: relative; display: grid; gap: 14px; align-content: start; }
.finder__stage.swap { animation: fadeup .35s ease; }
.finder__stage h3 { color: #fff; font-size: clamp(24px, 2.4vw, 30px); outline: none; }
.finder__stage p { color: #d3def2; }
.finder__step { font: 700 14px/1 var(--text); color: #8fc1f5 !important; }
.finder__opts { display: grid; gap: 10px; margin-top: 4px; }
.finder__opts.many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finder__opt { text-align: left; min-height: 54px; padding: 12px 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font: 600 17px/1.3 var(--text); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: background-color .2s ease, border-color .2s ease, transform .15s ease; touch-action: manipulation; }
.finder__opt::after { content: "→"; opacity: .5; transition: transform .2s ease, opacity .2s ease; }
.finder__opt:hover { background: rgba(255, 255, 255, .14); border-color: #8fc1f5; }
.finder__opt:hover::after { opacity: 1; transform: translateX(4px); }
.finder__opt:active { transform: scale(.98); }
.finder__res { font-size: clamp(30px, 3.4vw, 42px) !important; color: #fff; }
.finder__badge { justify-self: start; display: inline-flex; align-items: center; gap: 8px; background: #8fc1f5; color: var(--navy); font: 800 13px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.finder .btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.finder .btn--outline:hover { border-color: #fff; }
.finder .btn--primary { background: #fff; color: var(--navy); }
.finder .btn--primary:hover { background: var(--sky-2); }
.finder__back { justify-self: start; background: none; border: 0; color: #a9cdf5; font: 700 15px/1 var(--text); cursor: pointer; padding: 8px 0; position: relative; }
.finder__back:hover { color: #fff; }
.finder .tlink { color: #fff; }
@media (max-width: 860px) { .finder-split { grid-template-columns: 1fr; } .finder { min-height: 0; } }
@media (max-width: 480px) { .finder__opts.many { grid-template-columns: 1fr; } }

/* ============ courses: course explorer tabs ============ */
.explore { background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.explore__tabs { display: flex; gap: 6px; padding: 10px; background: var(--sky); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.explore__tabs button { flex: 1 0 auto; min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: transparent; color: var(--blue-ink); font: 700 16px/1 var(--display); cursor: pointer; white-space: nowrap; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.explore__tabs button:hover { background: rgba(255, 255, 255, .7); }
.explore__tabs button[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: 0 8px 18px -10px rgba(15, 42, 92, .8); }
.explore__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); animation: fadeup .35s ease; }
.explore__img { position: relative; min-height: 100%; }
.explore__img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.explore__who { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .94); color: var(--navy); font: 700 15px/1.3 var(--text); padding: 12px 14px; border-radius: 12px; }
.explore__who svg { width: 20px; height: 20px; flex: none; color: var(--blue); }
.explore__body { padding: clamp(24px, 4vw, 44px); display: grid; gap: 14px; align-content: start; justify-items: start; }
.explore__body h3 { font-size: clamp(28px, 3vw, 36px); }
.explore__body h4 { font: 700 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); margin-top: 6px; }
.explore__boards { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.explore__boards span { font: 700 14px/1 var(--text); color: var(--navy); background: var(--sky-2); padding: 8px 12px; border-radius: 8px; }
@media (max-width: 860px) { .explore__panel { grid-template-columns: 1fr; } .explore__img img { min-height: 0; aspect-ratio: 16 / 10; } }

/* ============ courses: exam board table ============ */
.matrix-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.matrix { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.matrix caption { caption-side: bottom; text-align: left; padding: 14px 20px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.matrix th, .matrix td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; transition: background-color .25s ease, opacity .25s ease; }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix thead th { background: var(--navy); color: #fff; font: 700 15px/1 var(--display); padding: 10px 12px; }
.matrix thead th:first-child { padding-left: 20px; }
.matrix thead button { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font: 700 16px/1 var(--display); cursor: pointer; transition: background-color .2s ease; }
.matrix thead button:hover { background: rgba(255, 255, 255, .12); }
.matrix thead button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.matrix tbody th { font: 700 17px/1.3 var(--display); color: var(--navy); padding-left: 20px; white-space: nowrap; }
.matrix td { color: var(--ink); font-weight: 600; }
.matrix .tick { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; vertical-align: middle; }
.matrix td.no { color: var(--sky-3); font-size: 22px; }
.matrix[data-col="2"] td:not(:nth-child(2)), .matrix[data-col="3"] td:not(:nth-child(3)), .matrix[data-col="4"] td:not(:nth-child(4)), .matrix[data-col="5"] td:not(:nth-child(5)) { opacity: .3; }
.matrix[data-col="2"] td:nth-child(2), .matrix[data-col="3"] td:nth-child(3), .matrix[data-col="4"] td:nth-child(4), .matrix[data-col="5"] td:nth-child(5) { background: var(--sky); }

/* ============ courses: language phrasebook ============ */
.phrase { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.phrase__tabs { display: grid; gap: 8px; }
.phrase__tabs button { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 700 16px/1.2 var(--display); cursor: pointer; text-align: left; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.phrase__tabs button img { height: 22px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 42, 92, .14); }
.phrase__tabs button:hover { border-color: var(--sky-3); transform: translateX(3px); }
.phrase__tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.phrase__panel { background: var(--sky); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; animation: fadeup .35s ease; }
.phrase__head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.phrase__all { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--blue-ink); font: 700 15px/1 var(--text); cursor: pointer; }
.phrase__all[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.phrase__list { display: grid; gap: 8px; counter-reset: w; }
.phrase__row { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; counter-increment: w; }
.phrase__row::before { content: counter(w); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-2); color: var(--navy); font: 800 14px/1 var(--display); }
.phrase__row:hover { border-color: var(--sky-3); box-shadow: var(--shadow); }
.phrase__w { font: 800 26px/1.2 var(--display); color: var(--navy); }
.phrase__w:lang(ar) { font-family: "Noto Naskh Arabic", var(--display); text-align: left; }
.phrase__s { font-style: italic; color: var(--muted); font-size: 16px; }
.phrase__m { justify-self: end; font-weight: 700; font-size: 16px; }
.phrase__q { color: var(--blue-ink); border: 1px dashed var(--sky-3); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.phrase__a { display: none; color: #fff; background: var(--blue); border-radius: 999px; padding: 6px 14px; }
.phrase__row[aria-expanded="true"] .phrase__q { display: none; }
.phrase__row[aria-expanded="true"] .phrase__a { display: inline-block; animation: pop .3s ease; }
.phrase__row[aria-expanded="true"]::before { background: var(--navy); color: #fff; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 860px) {
  .phrase { grid-template-columns: 1fr; }
  .phrase__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phrase__tabs button { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 6px; font-size: 14px; text-align: center; }
  .phrase__tabs button:hover { transform: none; }
}
@media (max-width: 600px) {
  .phrase__row { grid-template-columns: 30px minmax(0, 1fr) auto; row-gap: 2px; }
  .phrase__row::before { grid-row: span 2; }
  .phrase__w { font-size: 22px; }
  .phrase__s { grid-column: 2; grid-row: 2; }
  .phrase__m { grid-column: 3; grid-row: 1 / span 2; }
}

/* ============ why us: numbered reasons ============ */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 64px); counter-reset: none; }
.reasons li { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: start; padding: 28px 0; border-top: 2px solid var(--navy); }
.reasons__n { font: 800 clamp(40px, 4.4vw, 56px)/.9 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--blue); letter-spacing: -.03em; transition: color .3s ease; }
.reasons li:hover .reasons__n { color: var(--blue); }
.reasons h3 { margin-bottom: 6px; }
.reasons p { font-size: 17px; }
.reasons__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--blue-ink); background: var(--sky-2); }
.reasons__ic svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } .reasons__ic { display: none; } .reasons li { grid-template-columns: auto 1fr; } }

/* ============ why us: compare switch ============ */
.compare { max-width: 860px; margin-inline: auto; display: grid; gap: 26px; justify-items: center; }
.compare__switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); width: min(100%, 480px); }
.compare__switch button { position: relative; z-index: 1; min-height: 48px; border: 0; background: none; color: #d3def2; font: 700 16px/1.1 var(--display); cursor: pointer; border-radius: 999px; padding: 0 12px; transition: color .3s ease; }
.compare__switch button[aria-pressed="true"] { color: var(--navy); }
.compare__knob { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px; background: #fff; transition: transform .4s cubic-bezier(.6, .1, .2, 1.2); }
.compare[data-mode="us"] .compare__knob { transform: translateX(100%); }
.compare__rows { width: 100%; margin: 0; display: grid; gap: 10px; }
.compare__row { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: background-color .4s ease; }
.compare__row dt { font: 700 14px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: #a9cdf5; }
.compare__row dd { margin: 0; display: none; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; color: #fff; }
.compare[data-mode="us"] .compare__us, .compare[data-mode="them"] .compare__them { display: flex; animation: fadeup .35s ease both; }
.compare__row:nth-child(2) dd { animation-delay: .04s !important; } .compare__row:nth-child(3) dd { animation-delay: .08s !important; } .compare__row:nth-child(4) dd { animation-delay: .12s !important; } .compare__row:nth-child(5) dd { animation-delay: .16s !important; } .compare__row:nth-child(6) dd { animation-delay: .2s !important; }
.compare__mark { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.compare__us .compare__mark { background: #8fc1f5; color: var(--navy); }
.compare__them .compare__mark { background: rgba(255, 255, 255, .15); color: #d3def2; }
.compare[data-mode="us"] .compare__row { background: rgba(143, 193, 245, .12); border-color: rgba(143, 193, 245, .3); }
@media (max-width: 640px) { .compare__row { grid-template-columns: 1fr; gap: 8px; } }

/* ============ why us: myth flip cards ============ */
.myth { all: unset; box-sizing: border-box; display: block; cursor: pointer; perspective: 1000px; min-height: 250px; border-radius: var(--r); }
.myth:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.myth__in { position: relative; display: block; width: 100%; height: 100%; min-height: 250px; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.4, .2, .2, 1); }
.myth[aria-pressed="true"] .myth__in { transform: rotateY(180deg); }
.myth__face { position: absolute; inset: 0; display: grid; align-content: space-between; gap: 14px; padding: 24px; border-radius: var(--r); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.myth__front { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.myth__back { background: var(--navy); color: #fff; transform: rotateY(180deg); }
.myth__tag { justify-self: start; font: 800 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; background: #fdecea; color: #a1281f; }
.myth__back .myth__tag { background: #8fc1f5; color: var(--navy); }
.myth__t { font: 700 20px/1.35 var(--display); color: var(--navy); }
.myth__back .myth__t { color: #fff; }
.myth__hint { font-size: 14px; font-weight: 700; color: var(--blue-ink); }
.myth__back .myth__hint { color: #a9cdf5; }
.myth:hover .myth__front { border-color: var(--sky-3); }

/* ============ book demo: timeline ============ */
.tline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tline::before, .tline::after { content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 3px; border-radius: 3px; background: var(--sky-2); }
.tline::after { background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 1.4s ease .3s; }
.tline.in::after { transform: scaleX(1); }
.tline li { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 8px; }
.tline__dot { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); border: 3px solid var(--blue); box-shadow: 0 0 0 8px var(--white); transition: background-color .3s ease, color .3s ease, transform .3s ease; }
.tline__dot svg { width: 26px; height: 26px; }
.tline li:hover .tline__dot { background: var(--navy); color: #fff; transform: scale(1.08); }
.tline__n { font: 800 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); margin-top: 6px; }
.tline p { font-size: 17px; max-width: 26ch; }
@media (max-width: 760px) {
  .tline { grid-template-columns: 1fr; gap: 22px; }
  .tline::before, .tline::after { top: 20px; bottom: 20px; left: 31px; right: auto; width: 3px; height: auto; transform-origin: top; }
  .tline::after { transform: scaleY(0); } .tline.in::after { transform: scaleY(1); }
  .tline li { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 18px; row-gap: 2px; }
  .tline__dot { grid-row: span 3; }
  .tline__n { margin-top: 0; }
}

/* ============ book demo: form progress and time chips ============ */
.form__prog { display: grid; gap: 8px; margin: -6px 0 20px; }
.form__prog span { font: 700 14px/1 var(--text); color: var(--blue-ink); }
.form__bar { height: 8px; border-radius: 8px; background: var(--sky-2); overflow: hidden; }
.form__bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--blue), #4f8fe0); transition: width .4s ease; }
.form__prog.done span { color: var(--wa); }
.form__prog.done .form__bar i { background: var(--wa); }
.times { border: 0; padding: 0; margin: 0; min-width: 0; }
.times legend { font-weight: 700; font-size: 15px; color: var(--ink); padding: 0; margin-bottom: 8px; }
.times legend span { font-weight: 400; color: var(--muted); }
.times__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.time { position: relative; cursor: pointer; }
.time input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.time span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--navy); font: 600 15px/1 var(--text); transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.time span::before { content: "+"; font-weight: 800; color: var(--blue); }
.time:hover span { border-color: var(--blue); }
.time input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; animation: pop .25s ease; }
.time input:checked + span::before { content: "✓"; color: #8fc1f5; }
.time input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ============ book demo: question cards ============ */
.qa { position: relative; padding: 28px 24px 24px; border-radius: 0 var(--r) var(--r) var(--r); background: var(--sky); border-left: 4px solid var(--blue); display: grid; gap: 8px; align-content: start; transition: transform .25s ease, box-shadow .25s ease; }
.qa:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.qa__q { position: absolute; top: -14px; left: 18px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; font: 800 15px/1 var(--display); }
.qa p { font-size: 17px; }
.g3:has(.qa) { row-gap: 34px; padding-top: 14px; }

/* ============ about: bento tiles ============ */
.bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.bento__tile { position: relative; border-radius: 24px; padding: 28px; display: grid; gap: 10px; align-content: end; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; min-height: 240px; }
.bento__tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bento__tile h3 { font-size: 24px; }
.bento__p { font-size: 17px; }
.bento__tile--photo { grid-row: span 2; min-height: 500px; color: #fff; }
.bento__tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bento__tile--photo:hover img { transform: scale(1.05); }
.bento__tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 29, 66, 0) 30%, rgba(10, 29, 66, .92) 100%); }
.bento__copy { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: start; }
.bento__tile--photo h3 { color: #fff; }
.bento__tile--photo .bento__p { color: #e3ecf8; }
.bento__tile--photo .course__more { color: #fff; }
.bento__tile--photo .ic { background: rgba(255, 255, 255, .16); color: #fff; }
.bento__tile--sky { background: #fff; border: 1px solid var(--line); }
.bento__flags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: auto; }
.bento__flags img { height: 26px; width: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(15, 42, 92, .14); transition: transform .3s ease; }
.bento__tile--sky:hover .bento__flags img { transform: translateY(-4px); }
.bento__tile--sky:hover .bento__flags img:nth-child(2n) { transform: translateY(-7px); }
.bento__tile--blue { background: var(--blue); color: #fff; }
.bento__tile--blue h3, .bento__tile--blue .course__more { color: #fff; }
.bento__tile--blue .bento__p { color: #e3ecf8; }
.bento__big { position: absolute; right: -10px; top: -18px; font: 800 120px/1 var(--display); color: rgba(255, 255, 255, .12); letter-spacing: -.05em; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .bento__tile--photo { grid-row: auto; min-height: 380px; } }

/* ============ about: logo explorer ============ */
.logox__frame { aspect-ratio: 640 / 420; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 0 12px var(--sky); }
.logox__img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .7s cubic-bezier(.5, 0, .2, 1), transform-origin .7s ease; }
.logox[data-part="book"] .logox__img { transform-origin: 46.8% 28.6%; transform: translate(3.2%, 21.4%) scale(3.3); }
.logox[data-part="signal"] .logox__img { transform-origin: 47.4% 17.8%; transform: translate(2.6%, 32.2%) scale(5.5); }
.logox[data-part="leaves"] .logox__img { transform-origin: 82.5% 33.4%; transform: translate(-32.5%, 16.6%) scale(4.2); }
.logox[data-part="pencil"] .logox__img { transform-origin: 73% 76.3%; transform: translate(-23%, -26.3%) scale(3.8); }
.logox__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.logox__btns button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--navy); font: 700 15px/1 var(--text); cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.logox__btns button:hover { border-color: var(--navy); }
.logox__btns button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.logox__cap { min-height: 3.4em; font-size: 18px; color: var(--ink); font-weight: 600; padding-left: 16px; border-left: 3px solid var(--blue); }
.logox__cap.swap { animation: fadeup .35s ease; }
@media (max-width: 860px) { .logox { order: -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation: none !important; }
}

/* phone fixes for the course explorer */
@media (max-width: 600px) {
  .explore__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore__tabs button { padding: 0 10px; }
  .explore__body .btn { white-space: normal; text-align: center; line-height: 1.25; padding: 12px 18px; width: 100%; }
  .matrix-wrap::after { content: "Swipe the table sideways to see every board →"; display: block; padding: 10px 20px 14px; font-size: 14px; color: var(--muted); }
}
@media (max-width: 640px) { .myth, .myth__in { min-height: 190px; } }
.bento__tile--photo img { object-position: 50% 28%; }
