/* Accelerate HSC — styles. Tokens from the Figma template + brand colours. */
:root {
  --white: #ffffff;
  --ink: #222222;
  --blue: #0d2e77;
  --mist: #f6f8fb;
  --line: #dbe0ec;
  --muted: #6c6c6c;
  --soft: #aeaeae;
  --display: 'Radio Canada Big', system-ui, sans-serif;
  --serif: var(--display);
  --mono: var(--display);
  --radius: 16px;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1.2; letter-spacing: -0.04em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: 14px; letter-spacing: 0; color: var(--muted); }
.center { text-align: center; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.wrap--narrow { width: min(640px, calc(100% - 40px)); }
.section { padding-block: 100px; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }
.h-xl, .h-lg, .h-md, .display, h3 { font-family: var(--display); font-weight: 400; }
.h-xl { font-size: clamp(44px, 7vw, 80px); line-height: 1; letter-spacing: -0.05em; margin-bottom: 40px; }
.h-lg { font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 40px; font-weight: 500; }
.h-md { font-size: clamp(26px, 3.4vw, 40px); line-height: 1; letter-spacing: -0.03em; font-weight: 500; }
.lede { font-size: 22px; line-height: 1.25; max-width: 640px; }
.lede.center { margin-inline: auto; }
.fine { font-size: 16px; color: var(--muted); margin-top: 20px; }
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: 0; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.section--ink .eyebrow { color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: 0; line-height: 1; padding: 16px 22px; border-radius: 20px; border: 2px solid var(--ink); text-decoration: none; cursor: pointer; transition: opacity .2s; }
.btn:hover, .btn:focus-visible, .arrow-btn:hover, .arrow:hover { opacity: 0.3; }
.btn--sm { font-size: 16px; padding: 10px 16px; border-radius: 20px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--accent { background: var(--blue); color: #fff; border-color: var(--blue); }

/* nav: floating, 70% opacity */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding-inline: 12px; pointer-events: none; }
.nav__inner { pointer-events: auto; width: min(1180px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px 10px 20px; background: rgba(255, 255, 255, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); border: 0; border-radius: 20px; box-shadow: 0 0 0 rgba(34, 34, 34, 0); transition: background .35s, backdrop-filter .35s, -webkit-backdrop-filter .35s, box-shadow .35s; }
.nav.is-scrolled .nav__inner, .nav__inner.open { background: rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px); box-shadow: 0 6px 24px rgba(34, 34, 34, 0.08); }
.nav__logo img { height: 20.28px; width: auto; display: block; }
.nav__menu { display: flex; align-items: center; gap: 22px; font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: 0; }
.nav__menu a { text-decoration: none; }
.nav__menu a:not(.btn):hover, .dropdown__btn:hover { color: var(--blue); }
.dropdown { position: relative; }
.dropdown__btn { background: none; border: 0; font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; padding: 6px 0; display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dropdown__menu { position: absolute; top: calc(100% + 12px); left: -16px; min-width: 200px; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid var(--line); border-radius: 20px; padding: 8px; display: none; flex-direction: column; box-shadow: 0 12px 32px rgba(34, 34, 34, 0.12); }
.dropdown__menu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.dropdown__menu a { padding: 10px 12px; border-radius: 8px; }
.dropdown__menu a:hover { background: var(--mist); }
.dropdown:hover .dropdown__menu, .dropdown.open .dropdown__menu, .dropdown:focus-within .dropdown__menu { display: flex; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__bars, .nav__bars::before { content: ''; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.nav__bars { top: 20px; }
.nav__bars::before { top: -6px; left: 0; right: 0; box-shadow: 0 12px 0 var(--ink); }

/* hero */
.hero { min-height: 100vh; min-height: 100svh; padding: 110px 20px 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 56px; }
.hero__text { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; max-width: 1240px; }
.display { font-size: clamp(44px, 8vw, 96px); line-height: 1.05; letter-spacing: -0.05em; font-weight: 400; margin: 0; }
.display span { display: block; }
.display__soft { color: var(--soft); letter-spacing: -0.04em; font-family: 'Inter', system-ui, sans-serif; font-weight: 200; }
.display--sm { font-size: clamp(44px, 7vw, 80px); }
.hero__stage { width: min(960px, 100%); aspect-ratio: 960 / 608; border-radius: 24px; border: 2px solid var(--ink); background: var(--ink); overflow: hidden; }
.hero__stage canvas { width: 100%; height: 100%; display: block; }

/* why choose */

/* trusted marquee */
.trusted { padding: 100px 0 40px; text-align: center; overflow: hidden; }
.trusted .h-md { margin-bottom: 36px; padding-inline: 20px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.school { flex: none; width: 260px; height: 96px; display: grid; place-items: center; padding: 12px 20px; border: 1.5px dashed var(--line); border-radius: 14px; font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: 0; color: var(--muted); }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* teachers */

/* courses */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.course-card h3 { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.course-card__tag { color: var(--muted); flex: 1; }
.course-card__price strong { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.03em; }
.course-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.price-compare { margin-top: 80px; }
.price-compare .h-md { margin-bottom: 24px; }

/* tables */
.table-wrap { overflow-x: auto; }
.schedule { width: 100%; border-collapse: collapse; font-size: 18px; }
.schedule th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: 0; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 2px solid var(--ink); }
.schedule td { padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pill { display: inline-block; font-family: var(--display); font-size: 14px; font-weight: 500; letter-spacing: 0; padding: 6px 12px; border-radius: 999px; }
.pill--open { background: #e6efff; color: var(--blue); }
.pill--full { background: #fff3c4; color: #5a4600; }

/* contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.contact .h-xl { margin-bottom: 24px; }
.contact .lede { color: rgba(255, 255, 255, 0.82); }
.contact__details { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.contact__row { display: flex; justify-content: space-between; width: 100%; gap: 16px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); text-decoration: none; font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }
.contact__row .mono { color: rgba(255, 255, 255, 0.6); }
.contact .btn { margin-top: 28px; }

/* page hero (inner pages) */
.page-hero { padding: 150px 20px 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }

/* tabs */
.tabs-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.tablist { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding: 4px; }
.tablist::-webkit-scrollbar { display: none; }
.tab { flex: none; font-family: var(--display); font-size: 20px; letter-spacing: -0.01em; color: var(--muted); background: transparent; border: 1.5px solid transparent; padding: 14px 24px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected='true'] { background: var(--mist); border-color: var(--line); color: var(--blue); }
.tabs-arrows { display: flex; gap: 8px; }
.arrow { width: 48px; height: 48px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.arrow:hover { border-color: var(--ink); }
.tab-panel { background: var(--mist); border-radius: 36px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; min-height: 460px; }
.tab-panel[hidden] { display: none; }
.tab-panel__media { border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 3.4; background: var(--ink); }
.tab-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.media-fallback { width: 100%; height: 100%; display: grid; place-items: center; }
.media-fallback img { width: 96px; height: 96px; border-radius: 20px; }
.tab-panel__text h3 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; color: var(--blue); margin-bottom: 18px; }
.tab-panel__text p { font-size: 22px; line-height: 1.25; max-width: 460px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-card { border: 1.5px solid var(--line); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.price-card--feature { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-card--feature .eyebrow { color: #fff; }
.price { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -0.05em; }
.price span { font-size: 18px; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.price-card--feature .price span { color: rgba(255, 255, 255, 0.7); }
.price-note { min-height: 1.2em; color: var(--muted); }
.price-card--feature .price-note { color: rgba(255, 255, 255, 0.82); }
.price-card .btn { margin-top: 12px; }
.badge { background: var(--blue); color: #fff; padding: 3px 8px; border-radius: 6px; margin-left: 6px; }
.ticks { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); }
.ticks li::after { content: ''; position: absolute; left: 6px; top: 5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* CTA band + footer */
.cta-band { background: var(--mist); padding: 120px 20px; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.cta-band h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1; }
.footer { background: var(--ink); color: #fff; padding: 28px 20px 20px; display: flex; flex-direction: column; gap: 20px; }
.footer__top { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -0.02em; }
.footer__social { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__logo { display: flex; justify-content: center; opacity: 0.4; padding-block: 24px; }
.footer__logo img { width: min(900px, 100%); height: auto; }
.footer__legal { font-family: var(--display); font-size: 14px; letter-spacing: 0; color: rgba(255, 255, 255, 0.6); text-align: center; }

/* photos */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; aspect-ratio: 4 / 3; filter: grayscale(1); }

/* forms */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend, .group > legend { font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: 0; padding: 0; }
.group { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 18px; margin: 0; }
.group > legend { padding: 0 8px; font-size: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input:not([type='radio']), select { width: 100%; font: 400 18px var(--serif); letter-spacing: 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13, 46, 119, 0.15); }
input[aria-invalid='true'], select[aria-invalid='true'] { border-color: #b3261e; }
select:disabled { background: var(--mist); color: var(--muted); }
.field:has(.choice) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
.field:has(.choice) > legend { flex: 0 0 100%; }
.choice { display: inline-flex; align-items: center; gap: 8px; margin-right: 20px; font-size: 18px; letter-spacing: 0; cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--blue); }
.form .btn { justify-self: start; }
.form__msg { min-height: 1.3em; font-size: 17px; letter-spacing: 0; }
.form__msg.is-error { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.enrol { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; padding-top: 40px; }
.steps { background: var(--mist); border-radius: 24px; padding: 32px; position: sticky; top: 100px; }
.steps ol { counter-reset: s; margin: 20px 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 14px; letter-spacing: 0; color: var(--blue); }
.success { grid-column: 1 / -1; text-align: center; padding: 60px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.success[hidden], [hidden] { display: none !important; }

/* responsive */
@media (max-width: 960px) {
  .section { padding-block: 72px; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .contact, .enrol, .tab-panel, .price-grid { grid-template-columns: 1fr; }
  .tab-panel { padding: 28px; gap: 28px; min-height: 0; }
  .steps { position: static; order: -1; }
  .ticks { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  .nav__toggle { display: block; }
  .nav__inner { flex-wrap: wrap; }
  .nav__menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 0 12px; }
  .nav__inner.open .nav__menu { display: flex; }
  .nav__menu > a, .dropdown__btn { padding: 12px 4px; width: 100%; text-align: left; font-size: 18px; }
  .dropdown__menu { position: static; display: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; }
  .dropdown.open .dropdown__menu { display: flex; }
  .dropdown:hover .dropdown__menu { display: none; }
  .dropdown.open:hover .dropdown__menu { display: flex; }
  .nav__menu .btn { justify-content: center; margin-top: 8px; }
  .hero { gap: 36px; }
  .course-grid, .row, .photo-grid { grid-template-columns: 1fr; }
  .tabs-arrows { display: none; }
  .tab { font-size: 17px; padding: 12px 18px; }
  .school { width: 200px; height: 80px; font-size: 14px; }
  .schedule thead { display: none; }
  .schedule, .schedule tbody, .schedule tr, .schedule td { display: block; width: 100%; }
  .schedule tr { border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 4px; margin-bottom: 12px; }
  .schedule td { border: 0; padding: 8px 14px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .schedule td::before { content: attr(data-label); font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; text-align: left; }
  .price-card { padding: 28px; }
  .footer__top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .btn { transition: none; }
}

/* hero heading: one line each, line 2 floats in from under line 1 */
.display[data-fit] span { white-space: nowrap; }
.display[data-fit] { max-width: 100%; }
.display__clip { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.display__clip .display__soft { animation: floatIn 1.1s cubic-bezier(.2,.8,.2,1) .7s both; }
.display__l1 { position: relative; z-index: 1; background: var(--bg, #fff); }
@keyframes floatIn { from { transform: translateY(-110%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Why choose: scroll-fade rows + sticky sidebar */
.fx { background: var(--ink); color: #fff; width: calc(100% - 24px); margin: 20px auto 0; border-radius: 30px; padding: 60px clamp(20px, 3vw, 48px) 100px; }
.fx__head { margin-bottom: 72px; }
.fx__title { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 6.4vw, 100px); line-height: 1; letter-spacing: -0.05em; display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: 0; }
.fx__title .fx__logo { height: .8em; width: auto; flex: none; overflow: visible; }
.fx__body { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.fx__side { position: sticky; top: 110px; align-self: start; }
.fx__side .mono { color: rgba(255,255,255,.55); margin-bottom: 14px; text-transform: uppercase; }
.fx__side ol { display: grid; gap: 4px; position: relative; }
.fx__side a { display: flex; gap: 12px; align-items: baseline; padding: 11px 16px; border-radius: 999px; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; color: rgba(255,255,255,.6); transition: background .25s, color .25s; position: relative; }
.fx__side a .mono { color: inherit; opacity: .7; margin: 0; font-size: 12px; }
.fx__side a:hover { color: #fff; }
.fx__side a.is-active { background: var(--blue); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.fx__rows { display: grid; gap: 0; }
.fx__row { min-height: 78vh; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: 40px clamp(20px, 3vw, 48px); border: 1.5px solid transparent; border-radius: 24px; transition: background .5s ease, border-color .5s ease, opacity .6s ease; }
html.js .fx__row { opacity: .14; }
html.js .fx__row.is-active { opacity: 1; background: rgba(13, 46, 119, 0.5); border-color: #0d2e77; }
.fx__n { position: relative; overflow: hidden; align-self: flex-start; justify-self: start; width: fit-content; padding: 0 .12em .02em; color: #fff; font-size: clamp(48px, 6vw, 96px); line-height: 1; display: block; margin-bottom: 20px; letter-spacing: -0.04em; }
.fx__text h3 { font-size: clamp(30px, 3.6vw, 56px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; margin-bottom: 18px; }
.fx__text p { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 22px); color: rgba(255,255,255,.8); max-width: 520px; }
.fx__visual { aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: #fff; color: var(--ink); display: grid; place-items: center; }
.fx__visual img { width: 100%; height: 100%; object-fit: cover; }
.fx__visual--stat { background: #fff; align-content: center; gap: 10px; text-align: center; }
.fx__visual--stat strong { font-family: var(--display); font-weight: 500; font-size: clamp(64px, 9vw, 140px); line-height: 1; letter-spacing: -0.06em; color: var(--blue); }
.fx__visual--stat .mono { color: var(--ink); text-transform: uppercase; }


@media (max-width: 960px) {
  .fx__body { grid-template-columns: 1fr; }
  .fx__side { top: 84px; z-index: 5; background: var(--ink); padding: 8px 0; margin-inline: -4px; }
  .fx__side .mono { display: none; }
  .fx__side ol { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .fx__side ol::-webkit-scrollbar { display: none; }
  .fx__side a { white-space: nowrap; flex: none; font-size: 15px; padding: 9px 14px; }
  .fx__row { grid-template-columns: 1fr; min-height: 70vh; }
  
}
@media (max-width: 760px) { .teachers__box { padding: 20px; } .tutor-grid { --gp: 20px; } .fx { border-radius: 24px; padding-block: 32px 56px; } }
@media (prefers-reduced-motion: reduce) { html.js .fx__row { opacity: 1; transition: none; } .display__clip .display__soft { animation: none; } }

/* Our Teachers */
.teachers__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.teachers__head .h-xl { margin: 0; }
.arrow-btn { width: 56px; height: 56px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; font-size: 26px; cursor: pointer; color: var(--ink); transition: background .2s, border-color .2s; }
#teachers.section--mist { background: #fff; }
.teachers__box { border: 1.5px solid var(--line); border-radius: 15px; box-shadow: none; padding: 48px; }
.tutor-grid { --gp: 48px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: var(--gp); margin: calc(var(--gp) * -1); scroll-padding-inline: var(--gp); scroll-behavior: smooth; }
.tutor-grid::-webkit-scrollbar { display: none; }
.tutor { flex: none; width: min(340px, 80vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.tutor__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--ink); display: grid; place-items: center; }
.tutor__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tutor__photo::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(0,0,0,.78), transparent); }
.tutor__initials { font-family: var(--display); font-size: 96px; color: #fff; letter-spacing: -0.04em; }
.tutor__over { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; color: #fff; }
.tutor__over h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.tutor__badge { flex: none; background: var(--blue); color: #fff; border-radius: 999px; padding: 7px 14px; font-family: var(--display); font-size: 14px; font-weight: 500; white-space: nowrap; }
.tutor__badge strong { font-weight: 600; font-size: 17px; }
.tutor__tab { background: var(--mist); border: 1.5px solid transparent; border-radius: 22px; padding: 18px 20px; transition: box-shadow .3s, border-color .3s, background .3s, transform .3s; outline: none; }

.tutor__tab ul { display: grid; gap: 4px; }
.tutor__tab li { font-size: 17px; color: var(--muted); }
.tutor__tab li b { color: var(--blue); font-family: var(--display); font-weight: 600; }
.tutor__tab:hover, .tutor__tab:focus-visible { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(13,46,119,.18), 0 0 36px 8px rgba(13,46,119,.45); transform: translateY(-2px); }

/* section focus fade (set from main.js) */
main > section, main > footer { transition: opacity .2s linear; }

/* contact form */
.cform { display: grid; gap: 18px; margin-top: 36px; max-width: 620px; }
.crow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cfield { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.cfield > span, .cfield > legend { font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: 0; padding: 0; color: #fff; }
fieldset.cfield { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
fieldset.cfield legend { width: 100%; margin-bottom: 8px; float: left; }
.cchoice { font-family: var(--display); display: inline-flex; align-items: center; gap: 8px; font-size: 18px; cursor: pointer; }
.cchoice input { accent-color: #fff; width: 18px; height: 18px; }
.cfield input:not([type=radio]), .cfield textarea { font: inherit; font-size: 18px; color: #fff; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.28); border-radius: 12px; padding: 14px 16px; width: 100%; }
.cfield textarea { resize: vertical; min-height: 120px; }
.cfield input:focus, .cfield textarea:focus { outline: 2px solid #fff; outline-offset: 2px; }
.cfield [aria-invalid="true"] { border-color: #ff8a8a; }
.cform__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cform .btn { margin-top: 0; }
#contact-msg { font-size: 16px; }
#contact-msg.is-error { color: #ffb4b4; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 760px) { .crow { grid-template-columns: 1fr; } }

/* dark sections: hover text stays white */

/* hero highlight on "Accelerate": blue block wipes in from the right */
.hl { position: relative; display: inline-block; overflow: hidden; padding: 0 .1em .02em; margin-inline: -.1em; vertical-align: top; }
.hl::before { content: ''; position: absolute; inset: 0; background: var(--blue); clip-path: polygon(0 0, 100% 0, calc(100% - .14em) 100%, 0 100%); transform: translateX(105%); animation: hlIn .9s cubic-bezier(.2,.8,.2,1) .15s forwards; }
.hl__t { position: relative; animation: hlText .9s linear .15s both; }
@keyframes hlIn { to { transform: none; } }
@keyframes hlText { 0%, 45% { color: var(--ink); } 70%, 100% { color: #fff; } }
@media (prefers-reduced-motion: reduce) { .hl::before { animation: none; transform: none; } .hl__t { animation: none; color: #fff; } }
.display .hl { display: inline-block; }
.display .hl__t { display: inline; }

/* dropdown fade-in */
.dropdown__menu { animation: ddFade .25s ease both; }
@keyframes ddFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dropdown__menu { animation: none; } }

/* scroll-driven title letters */
.tl-w { display: inline-block; white-space: nowrap; }
.tl-c { display: inline-block; opacity: .12; will-change: opacity; }
.tl-sp { display: inline-block; width: .18em; }
.fx__title .tl-sp { width: .14em; }
.fx__title .fx__logo { display: block; }

/* feature numbers: blue block wipes in from the right when the row is active */
.fx__n::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--blue); clip-path: polygon(0 0, 100% 0, calc(100% - .14em) 100%, 0 100%); transform: translateX(105%); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.fx__row.is-active .fx__n::before { transform: none; }
.fx__n { isolation: isolate; }
html:not(.js) .fx__n::before { transform: none; }
@media (prefers-reduced-motion: reduce) { .fx__n::before { transition: none; } }

/* logo highlight: blue block wipes in from the right once the title has revealed */
.fx__logobox { flex: none; position: relative; display: inline-flex; overflow: hidden; isolation: isolate; padding: .06em .14em .06em .08em; margin-left: -.03em; }
.fx__logobox::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--blue); clip-path: polygon(0 0, 100% 0, calc(100% - .12em) 100%, 0 100%); transform: translateX(105%); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.fx__title.is-in .fx__logobox::before { transform: none; }
html:not(.js) .fx__logobox::before { transform: none; }
@media (prefers-reduced-motion: reduce) { .fx__logobox::before { transform: none; transition: none; } }

/* feature media (stacked under the text) */
.fx__row--stack { grid-template-columns: 1fr; align-content: center; gap: clamp(24px, 3vw, 44px); }
.fx__row--stack .fx__text p { max-width: 640px; }
.fx__media { width: 100%; display: flex; justify-content: center; }
.fx__visual--photo { aspect-ratio: auto; background: transparent; }
.fx__visual--photo img { height: auto; object-fit: contain; border-radius: 24px; }

.shot { position: relative; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.shot__img { display: block; width: auto; height: auto; max-width: 100%; max-height: 70vh; }
.shot--chat { width: 100%; container-type: inline-size; }
.shot--chat .shot__img { width: 100%; max-height: none; }
.hw { position: absolute; max-width: none; pointer-events: none; -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--q, 0) * 112% - 12%), transparent calc(var(--q, 0) * 112%)); mask-image: linear-gradient(100deg, #000 calc(var(--q, 0) * 112% - 12%), transparent calc(var(--q, 0) * 112%)); }

.typebox { position: absolute; left: 34.46%; top: 87.2%; width: 53.6%; height: 4.4%; background: #fff; display: flex; align-items: center; padding-left: .43%; font-family: system-ui, -apple-system, 'Inter', sans-serif; font-size: 0.97cqw; line-height: 1; color: #222; white-space: nowrap; overflow: hidden; }
.typebox__t { white-space: pre; }
.typebox__t.is-sel { background: #b3d4fc; }
.typebox__caret { width: .08em; height: 1.25em; background: #222; margin-left: .06em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.video { width: min(100%, 980px); aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

.fan { --q: 0; position: relative; width: min(100%, 980px); container-type: inline-size; height: 58cqw; max-height: 640px; }
.fan__c { position: absolute; left: 50%; bottom: 0; width: 34cqw; max-width: 380px; aspect-ratio: 1 / 1.414; object-fit: cover; border-radius: 8px; background: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.45); transform-origin: 50% 100%; transform: translateX(-50%) translateX(calc(var(--x) * var(--t, 0))) rotate(calc(var(--a) * var(--t, 0))); }
.fan__c:nth-child(2) { z-index: 2; }
@media (max-width: 760px) { .fan { height: 78cqw; } .fan__c { width: 46cqw; } }
@media (prefers-reduced-motion: reduce) { .hw { -webkit-mask-image: none; mask-image: none; } .fan__c { --t: 1; } }
.fx__row--stack { min-height: 0; padding-block: clamp(40px, 7vh, 80px); }

.fx__cta { display: flex; width: 80%; margin: 48px auto 0; }
.fan--booklet { max-height: 700px; height: 60cqw; }
.fan--booklet .fan__c { width: 34cqw; max-width: 400px; }
.fan__c--page { overflow: hidden; background: #fff; }
.fan__c--page .shot__img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
@media (max-width: 760px) { .fan--booklet { height: 86cqw; } .fan--booklet .fan__c { width: 48cqw; } }

/* navbar tucks away while the Why choose section is on screen */
.nav { transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.nav.is-tucked { transform: translateY(-140%); opacity: 0; pointer-events: none; }
.nav.is-tucked * { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

.tutor { gap: 10px; }
.tutor__tab--meta { font-size: 17px; color: var(--ink); padding: 14px 20px; }
.tutor__k { display: block; font-size: 13px; letter-spacing: 0; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- landing: space animation hero ---------- */
.hero { position: relative; overflow: hidden; background: #03040a; color: #fff; border-radius: 0 0 30px 30px; isolation: isolate; }
.hero__space { position: absolute; inset: 0; z-index: -1; will-change: opacity; }
.hero__backdrop { position: absolute; inset: 0; background:
  radial-gradient(ellipse 60% 45% at 72% 38%, rgba(13, 46, 119, .38), transparent 70%),
  radial-gradient(ellipse 50% 40% at 20% 75%, rgba(13, 46, 119, .22), transparent 70%),
  linear-gradient(#02030a, #05071a); background-size: cover; background-position: center; }
.hero__space canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .display__l1 { background: none; }
.hero .display__soft { color: rgba(255, 255, 255, .72); }
.hero .hl__t { animation: none; color: #fff; }
.home .nav:not(.is-scrolled) .nav__inner:not(.open) { color: #fff; }
.home .nav:not(.is-scrolled) .nav__logo img { filter: brightness(0) invert(1); }
.home .nav:not(.is-scrolled) .nav__bars, .home .nav:not(.is-scrolled) .nav__bars::before { background: #fff; }
.home .nav:not(.is-scrolled) .nav__bars::before { box-shadow: 0 12px 0 #fff; }
.home .nav:not(.is-scrolled) .nav__menu a:not(.btn):hover, .home .nav:not(.is-scrolled) .dropdown__btn:hover { color: #9db8ff; }
@media (prefers-reduced-motion: reduce) { .hero__space { opacity: 1 !important; } }

/* ---------- site-wide dark theme: the landing page extends down the whole site ---------- */
:root { --mist: rgba(255, 255, 255, .05); --line: rgba(255, 255, 255, .16); --muted: rgba(255, 255, 255, .62); --glow: #9db8ff; }
html { background: #03040a; }
body { background: transparent; color: #fff; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; background:
  radial-gradient(ellipse 60% 45% at 72% 38%, rgba(13, 46, 119, .38), transparent 70%),
  radial-gradient(ellipse 50% 40% at 20% 75%, rgba(13, 46, 119, .22), transparent 70%),
  linear-gradient(#02030a, #05071a); }
.hero { background: transparent; border-radius: 0; }
.hero__backdrop { background: none; }
.section--mist, .cta-band { background: rgba(255, 255, 255, .03); }
#teachers.section--mist { background: transparent; }
.eyebrow { color: var(--glow); }
.tab[aria-selected='true'] { color: var(--glow); }
.tab:hover { color: #fff; }

/* buttons */
.btn { background: #fff; color: var(--ink); border-color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--accent { background: var(--blue); color: #fff; border-color: var(--blue); }
.arrow, .arrow-btn { background: transparent; color: #fff; border-color: var(--line); }
.arrow:hover, .arrow-btn:hover { border-color: #fff; }

/* nav: white logo + text always; dark glass at 30% once scrolled */
.nav__logo img { filter: brightness(0) invert(1); }
.nav__inner { color: #fff; }
.nav.is-scrolled .nav__inner { background: rgba(5, 7, 26, .3); box-shadow: none; }
.nav__inner.open { background: rgba(5, 7, 26, .88); }
.nav__bars, .nav__bars::before { background: #fff; }
.nav__bars::before { box-shadow: 0 12px 0 #fff; }
.nav__menu a:not(.btn):hover, .dropdown__btn:hover { color: var(--glow); }
.dropdown__menu { background: rgba(8, 11, 30, .92); border-color: var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }
.dropdown__menu a:hover { background: rgba(255, 255, 255, .08); }

/* surfaces */
.fx { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.fx__side { background: transparent; }
@media (max-width: 900px) { .fx__side { background: #05071a; } }
.footer { background: rgba(255, 255, 255, .04); border-top: 1px solid rgba(255, 255, 255, .1); }
.course-card { background: rgba(255, 255, 255, .04); }
.price-card--feature { background: rgba(13, 46, 119, .5); border-color: var(--blue); }
.schedule th { border-bottom-color: var(--line); }
.tutor__tab, .tutor__tab--meta { color: #fff; }
.tutor__tab:hover, .tutor__tab:focus-visible { background: rgba(13, 46, 119, .35); border-color: var(--glow); }
input:not([type='radio']), select, textarea { background: rgba(255, 255, 255, .07); color: #fff; border-color: var(--line); }
select option { color: #222; }
select:disabled { background: rgba(255, 255, 255, .03); }
::placeholder { color: rgba(255, 255, 255, .45); }
.display .tl-w, .display .tl-c { display: inline-block; }
.tab-panel__text h3, .steps li::before, .tutor__tab li b { color: var(--glow); }
.pill--open { background: rgba(157, 184, 255, .16); color: var(--glow); }
input:focus, select:focus, textarea:focus { border-color: var(--glow); box-shadow: 0 0 0 3px rgba(157, 184, 255, .2); }
.display .tl-sp { display: inline-block; }
.section--ink { background: transparent; }

/* buttons: on hover only the fill/border fade to 30%; text stays solid */
.btn:hover, .btn:focus-visible, .arrow-btn:hover, .arrow:hover { opacity: 1; }
.btn, .arrow, .arrow-btn { transition: background-color .2s, border-color .2s; }
.btn:hover, .btn:focus-visible { background-color: rgba(255, 255, 255, .3); border-color: rgba(255, 255, 255, .3); }
.btn--ghost:hover, .btn--ghost:focus-visible { background-color: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.btn--accent:hover, .btn--accent:focus-visible { background-color: rgba(13, 46, 119, .3); border-color: rgba(13, 46, 119, .3); }
.arrow:hover, .arrow-btn:hover { background-color: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }

/* school logo carousel */
.school { width: auto; height: 104px; min-width: 120px; padding: 14px 24px; background: #fff; border: 0; border-radius: 20px; }
.school img { height: 76px; width: auto; max-width: 200px; object-fit: contain; }
.marquee__track { animation-duration: 70s; }

/* white buttons have dark text; on hover the fill fades to a dark-looking 30% white, so the text turns white */
.btn:hover, .btn:focus-visible, .btn--white:hover, .btn--white:focus-visible { color: #fff; }
.btn { transition: background-color .2s, border-color .2s, color .2s; }

/* tighter gap between the copy and the image fans (halved again; height now scales with the fan's own width) */
@media (min-width: 761px) {
  .fx__row--stack .fan { height: auto; max-height: none; aspect-ratio: 1.92; }
  .fx__row--stack .fan--booklet { height: auto; max-height: none; aspect-ratio: 1.866; }
}

/* footer: logo padding doubled; menu row aligned to the site's content margins */
.footer__logo { padding-block: 48px; }
.footer__top { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.footer__logo { padding-block: 144px; }

/* ---------- mobile ---------- */
html, body { overflow-x: clip; }
@media (max-width: 960px) { .fx__body { grid-template-columns: minmax(0, 1fr); } .fx__side { min-width: 0; } }
@media (max-width: 760px) {
  body { font-size: 17px; }
  /* hero: bigger, wrapping headline */
  .hero { padding: 100px 20px 56px; gap: 28px; }
  .hero__text { gap: 28px; }
  .display[data-fit] { font-size: clamp(38px, 11.6vw, 54px) !important; line-height: 1.04; }
  .display[data-fit] span { white-space: normal; }
  .display__clip { padding-bottom: .1em; }
  /* buttons */
  .btn { font-size: 17px; padding: 14px 20px; }
  .btn--sm { font-size: 15px; padding: 9px 14px; }
  .nav__menu .btn { font-size: 17px; }
  /* section titles */
  .h-xl, .display--sm { font-size: clamp(34px, 10.5vw, 44px); margin-bottom: 24px; }
  .h-lg { font-size: clamp(28px, 8.5vw, 36px); margin-bottom: 24px; }
  .lede { font-size: 18px; }
  .section { padding-block: 64px; }
  .page-hero { padding: 120px 20px 32px; }
  /* Why choose */
  .fx { width: calc(100% - 16px); padding-inline: 16px; }
  .fx__head { margin-bottom: 28px; }
  .fx__title { flex-wrap: wrap; white-space: normal; font-size: clamp(38px, 11.5vw, 50px); row-gap: .12em; }
  .fx__row { min-height: 0; padding-block: 28px; }
  .fx__row--stack { padding-block: 28px; }
  .fx__text h3 { font-size: clamp(28px, 8vw, 34px); }
  .fx__text p { font-size: 17px; }
  .fx__n { font-size: 44px; }
  .fx__cta { width: 100%; }
  /* footer */
  .footer__logo { padding-block: 56px; }
  .footer__top { gap: 16px; font-size: 17px; }
  .footer__social { gap: 12px 18px; }
}
@media (max-width: 1220px) { .footer__top { width: 100%; max-width: var(--wrap); } }
@media (max-width: 760px) { .tab-panel__text p { font-size: 18px; } .tab-panel { padding: 24px 20px; gap: 24px; } }

/* course feature tabs with the home-page media */
.tab-panel--stack { grid-template-columns: 1fr; align-items: start; gap: 28px; padding: 48px 48px 40px; min-height: 0; }
.tab-panel--stack .tab-panel__text p { max-width: 640px; }
.tab-panel--stack .fx__media { display: flex; justify-content: center; }
.tab-panel--stack .fan { height: 46.9cqw; max-height: 533px; }
.tab-panel--stack .fan--booklet { height: 48.3cqw; max-height: 563px; }
.tab-panel--stack .shot--chat, .tab-panel--stack .video { width: 100%; }
.courses__incl-h { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 56px 0 0; }
.courses__incl-h + .ticks { margin-top: 20px; }
.price-note { color: var(--glow); }
@media (max-width: 760px) {
  .tab-panel--stack { padding: 24px 20px; }
  .tab-panel--stack .fan { height: 78cqw; max-height: none; }
  .tab-panel--stack .fan--booklet { height: 86cqw; max-height: none; }
}

/* ---------- phone: Why choose + teachers ---------- */
@media (max-width: 760px) {
  .fx__side { display: none; }
  .tutor-grid { --tw: min(300px, 78vw); padding: 20px 0; margin: -20px -20px; scroll-padding-inline: 0; }
  .tutor { width: var(--tw); scroll-snap-align: center; }
  .teachers__box { padding: 20px; }
  .tutor:first-child { margin-left: calc((100vw - 43px - var(--tw)) / 2); }
  .tutor:last-child { margin-right: calc((100vw - 43px - var(--tw)) / 2); }
}
@media (max-width: 760px) {
  .fx__row--stack .fan { height: auto; aspect-ratio: 1.406; }
  .fx__row--stack .fan--booklet { height: auto; aspect-ratio: 1.318; }
  .fx { padding-bottom: 20px; }
  .fx__cta { margin-top: 16px; }
  .fx__row:last-child { padding-bottom: 8px; }
}
.price-card--feature .price-note { color: #fff; font-weight: 500; }
@media (max-width: 760px) {
  .tab-panel--stack .fan { height: 62.9cqw; }
  .tab-panel--stack .fan--booklet { height: 68.1cqw; }
}
@media (max-width: 760px) {
  .tab-panel--stack .fan { height: 55.4cqw; }
  .tab-panel--stack .fan--booklet { height: 59.1cqw; }
}

/* CTA as an arrow link with a left-to-right underline on hover */
.cta-link { display: inline-flex; align-items: baseline; gap: .5em; color: #fff; font-size: clamp(18px, 2vw, 24px); font-weight: 500; letter-spacing: -0.01em; padding: 6px 0; }
.cta-link__t { background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat; padding-bottom: 3px; transition: background-size .45s cubic-bezier(.22, .8, .3, 1); }
.cta-link__a { display: inline-block; transition: transform .35s cubic-bezier(.22, .8, .3, 1); }
.cta-link:hover .cta-link__t, .cta-link:focus-visible .cta-link__t { background-size: 100% 2px; }
.cta-link:hover .cta-link__a, .cta-link:focus-visible .cta-link__a { transform: translateX(4px); }

/* course pages: title section fills the screen */
.page-hero--full { min-height: 100svh; justify-content: center; padding: 110px 20px 70px; }

/* course feature panels: swipe transition */
.tab-panels { overscroll-behavior-x: contain; touch-action: pan-y; }
@keyframes panelFromRight { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes panelFromLeft { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
.tab-panel.from-right { animation: panelFromRight .4s cubic-bezier(.22, .8, .3, 1); }
.tab-panel.from-left { animation: panelFromLeft .4s cubic-bezier(.22, .8, .3, 1); }
@media (prefers-reduced-motion: reduce) { .tab-panel.from-right, .tab-panel.from-left { animation: none; } }
.cta-link, .cta-link:hover, .cta-link:focus, .cta-link:active { text-decoration: none; }
.cta-link:active .cta-link__t { background-size: 100% 2px; }

/* ===== Page loader ===== */
.loader{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#03040a;opacity:0;pointer-events:none;transition:opacity .28s ease}
html.js .loader{opacity:1;pointer-events:auto}
html.js .loader.is-hidden{opacity:0;pointer-events:none}
.loader__logo{width:min(260px,62vw);height:auto}
.footer__top{justify-content:center}
.footer__social{justify-content:center}

/* ===== Enrol (multistep) ===== */
.enrol-stage{position:relative;min-height:100svh;display:flex;align-items:center;justify-content:flex-start;gap:28px;padding:110px 6vw 70px;isolation:isolate;overflow:hidden}
.enrol-stage::before{content:"";position:absolute;inset:0;z-index:-2;background:#03040a url(/assets/photos/enrol-bg.jpg) center/cover no-repeat}
.enrol-stage::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#03040a 0%,rgba(3,4,10,.92) 30%,rgba(5,7,26,.5) 55%,rgba(3,4,10,.15) 100%),linear-gradient(180deg,rgba(3,4,10,.75),transparent 28%)}
.enrol-card{width:min(640px,100%);background:rgba(255,255,255,.97);color:#222;border-radius:38px;padding:34px clamp(22px,4vw,48px) 40px;box-shadow:0 30px 80px rgba(0,0,0,.45);flex:0 1 640px;font-family:var(--serif);letter-spacing:-.04em;font-size:18px}
.enrol-card button,.enrol-card input,.enrol-card select{letter-spacing:inherit}
.enrol-bar{display:flex;align-items:center;gap:14px;margin-bottom:26px}
.enrol-bar[hidden]{display:none}
.enrol-back{display:inline-flex;align-items:center;gap:12px;border:1.5px solid #dcdfe8;background:#fff;color:#222;border-radius:999px;padding:8px 18px;font:500 15px var(--display,inherit);cursor:pointer;transition:background .2s}
.enrol-back:hover{background:#eef1fa}
.enrol-step{font-size:14px;color:#555;white-space:nowrap}
.enrol-prog{flex:1;display:flex;align-items:center;gap:14px}.enrol-prog__bar{flex:1}
.enrol-prog__bar{display:block;height:8px;border-radius:99px;background:#e3e6ef;overflow:hidden}
.enrol-prog__bar b{display:block;height:100%;width:0;background:#0d2e77;border-radius:99px;transition:width .35s ease}
.es[hidden]{display:none}
.es{animation:esIn .35s ease both}
.es.go-back{animation-name:esInBack}
@keyframes esIn{from{opacity:0;transform:translateX(24px)}}
@keyframes esInBack{from{opacity:0;transform:translateX(-24px)}}
.es__title{font-family:var(--display,inherit);font-weight:600;font-size:clamp(26px,3.4vw,34px);letter-spacing:-.03em;line-height:1.1;margin:0 0 10px;color:#111;outline:none}
.es__title--lg{line-height:1;margin-bottom:26px;font-size:clamp(30px,3.5vw,44px);display:flex;align-items:center;gap:.238em}
.es[data-step="1"] .es__title--lg{white-space:nowrap}
.es__title img{height:.83em;width:auto;margin-top:0;transform:translateY(.01em)}
.es__p{color:#444;font-size:17px;line-height:1.5;margin:0 0 14px}
.es--done .es__p{white-space:pre-line}
.ebtn{display:inline-flex;align-items:center;justify-content:center;margin-top:12px;padding:15px 30px;border:1.5px solid #0d2e77;border-radius:20px;background:#0d2e77;color:#fff;font:600 17px var(--display,inherit);cursor:pointer;text-decoration:none;transition:background .25s,color .25s}
.ebtn:hover{background:rgba(13,46,119,.3);color:#fff}
.ebtn--link{background:transparent;color:#0d2e77}
.ebtn--link:hover{background:#0d2e77;color:#fff}
.es .ebtn[data-next]{width:100%}
.es[data-step="1"] .ebtn{width:auto}
.eopts{display:grid;gap:12px;margin-top:18px}
.eopt{position:relative;display:block;text-align:left;width:100%;padding:18px 54px 18px 22px;border:1.5px solid #dcdfe8;border-radius:22px;background:#fff;color:#222;cursor:pointer;font:inherit;transition:border-color .2s,background .2s,transform .2s}
.eopt b{display:block;font-size:19px;font-weight:600}
.eopt span{display:block;color:#666;font-size:15px;margin-top:2px}
.eopt i{position:absolute;right:22px;top:50%;transform:translateY(-50%);font-style:normal;font-size:28px;color:#0d2e77}
.eopt:hover:not([disabled]),.eopt.is-sel{border-color:#0d2e77;background:#f1f4fc}
.eopt.is-off,.eopt[disabled]{background:#f2f3f6;color:#9a9ca6;cursor:not-allowed}
.eopt.is-off span{color:#a9abb4}
.eopt--sm{padding:14px 54px 14px 20px}
.eopt--sm b{font-size:17px}
.es--scroll{display:flex;flex-direction:column}
.efilters{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 14px}
.efilt{flex:1 1 130px;font-size:13px;color:#555}
.efilt select{display:block;width:100%;margin-top:4px;padding:10px 12px;border:1.5px solid #dcdfe8;border-radius:14px;background:#fff;color:#222;font:inherit;font-size:15px}
.eclasses{display:grid;gap:12px;max-height:min(52vh,460px);overflow:auto;padding:2px 4px 2px 2px}
.eclass{border:1.5px solid #dcdfe8;border-radius:22px;padding:18px 20px;background:#fff}
.eclass__t{margin:0 0 4px;color:#555;font-size:14px}
.eclass__t b{color:#0d2e77;font-weight:600;margin-left:6px}
.eclass__when{margin:0 0 14px;font-family:var(--display,inherit);font-size:22px;letter-spacing:-.02em;font-weight:600}
.eclass__foot{display:flex;align-items:center;justify-content:space-between;gap:12px}
.eclass__who{display:flex;align-items:center;gap:12px}
.eclass__who img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.eclass__who small{display:block;color:#777;font-size:12px}
.eclass__who b{font-size:16px}
.eclass__btn{border:0;border-radius:16px;padding:12px 24px;background:#0d2e77;color:#fff;font:600 16px var(--display,inherit);cursor:pointer;transition:background .25s}
.eclass__btn:hover{background:rgba(13,46,119,.3)}
.eclass__btn.is-full{background:#e6e8ee;color:#8c8f9a;cursor:not-allowed}
.erow{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ef{display:block;margin-top:14px;font-size:14px;color:#555}
.ef input{display:block;width:100%;margin-top:5px;padding:14px 16px;border:1.5px solid #dcdfe8;border-radius:16px;background:#fff;color:#222;font:inherit;font-size:17px}
.ef input:focus{outline:none;border-color:#0d2e77;box-shadow:0 0 0 3px rgba(13,46,119,.15)}
.ef.is-bad input{border-color:#c0392b}
.eerr{min-height:1.3em;margin:12px 0 0;color:#c0392b;font-size:15px}
.eerr.is-error{color:#c0392b}
.eopt.is-sel{opacity:.7}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.enrol-stage__tag{position:absolute;right:6vw;bottom:34px;margin:0;color:rgba(255,255,255,.85);font-family:var(--display,inherit);font-size:clamp(22px,2.4vw,34px);letter-spacing:-.03em}
@media(max-width:1099px){.enrol-stage__tag{display:none}}
@media(max-width:760px){
  .enrol-stage{padding:96px 14px 40px;place-items:start center}
  .enrol-stage::after{background:linear-gradient(180deg,rgba(3,4,10,.8),rgba(3,4,10,.55))}
  .enrol-card{border-radius:28px;padding:22px 18px 28px;margin-inline:auto}
  .erow{grid-template-columns:1fr}
  .es__title{font-size:26px}
  .eclass__foot{flex-wrap:wrap}
}

.enrol-aside{flex:0 1 420px;background:rgba(8,12,38,.62);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.14);border-radius:32px;padding:30px 32px;color:#fff}
.enrol-stage:not([data-step="1"]) .enrol-aside{display:none}
.enrol-aside h2{font-family:var(--display);font-weight:500;font-size:28px;letter-spacing:-.03em;margin:0 0 16px}
.enrol-aside h3{font-family:var(--display);font-weight:500;font-size:19px;letter-spacing:-.02em;margin:26px 0 10px;color:var(--glow,#9db8ff)}
.enrol-aside ol{margin:0;padding:0;list-style:none;counter-reset:s;display:grid;gap:12px}
.enrol-aside ol li{counter-increment:s;display:flex;align-items:center;gap:14px;font-size:18px}
.enrol-aside ol li::before{content:counter(s);flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#0d2e77;font-weight:600;font-size:16px;letter-spacing:0}
.enrol-aside ul{margin:0;padding:0;list-style:none;display:grid;gap:10px;font-size:17px;line-height:1.3;color:rgba(255,255,255,.88)}
.enrol-aside ul b{color:#fff;font-weight:600}
.eclass__badge{display:inline-block;margin-left:8px;padding:3px 10px;border-radius:99px;background:#e8eefc;color:#0d2e77;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.02em}
.eclass__badge.is-full{background:#e6e8ee;color:#7b7e89}
.eclass__badge.is-soon{background:#fff3d6;color:#8a5a00}
.eclass.is-full{background:#f6f7f9}.eclass.is-full .eclass__when,.eclass.is-full .eclass__who{opacity:.6}
.eclass__av{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#e3e6ef;color:#0d2e77;font-weight:600}
@media(max-width:1099px){.enrol-stage{flex-direction:column;align-items:stretch}.enrol-card,.enrol-aside{flex:none;width:100%}.enrol-stage:not([data-step="1"]){align-items:stretch}}
@media(max-width:760px){.enrol-aside{padding:24px 20px;border-radius:26px}.es__title--lg{font-size:clamp(22px,6.4vw,30px)}}

.loader{flex-direction:column;gap:28px}
html.js .loader{display:flex;align-items:center;justify-content:center}
.loader__bar{width:min(260px,62vw);height:4px;border-radius:99px;background:rgba(255,255,255,.18);overflow:hidden}
.loader__bar b{display:block;height:100%;width:0;border-radius:99px;background:#fff}
@keyframes loaderFill{from{width:0}to{width:100%}}
@media(min-width:700px){.lede--one{max-width:none;white-space:nowrap}}

/* form body text: tracking +0.2px over the site default; counter 20% smaller */
.enrol-card,.enrol-aside{letter-spacing:calc(-.04em + .2px)}
.enrol-card button,.enrol-card input,.enrol-card select{letter-spacing:inherit}
.es__title,.enrol-aside h2,.enrol-aside h3{letter-spacing:-.03em}
#enrol-step{font-size:14.4px}

html.from-nav .loader__bar b{width:100%;animation:none}

/* filter dropdowns: custom chevron inset to match the text's left padding */
.efilt select{-webkit-appearance:none;appearance:none;padding-right:38px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23222' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;background-size:12px 8px}

/* mobile menu: smooth fade open */
@media (max-width:760px){
  .nav__inner{transition:background-color .35s ease,box-shadow .35s ease}
  /* always laid out; opening/closing animates height + opacity so the bar glides instead of snapping */
  .nav__menu{display:flex;max-height:0;opacity:0;visibility:hidden;overflow:hidden;padding-block:0;transform:translateY(-6px);
    transition:max-height .4s cubic-bezier(.4,0,.2,1),opacity .28s ease,transform .38s ease,padding .4s ease,visibility 0s linear .4s}
  .nav__inner.open .nav__menu{max-height:620px;opacity:1;visibility:visible;transform:none;padding-block:8px 12px;
    transition:max-height .45s cubic-bezier(.2,.7,.2,1),opacity .35s ease .05s,transform .4s ease,padding .4s ease,visibility 0s}
}
@media (prefers-reduced-motion:reduce){.nav__menu,.nav__inner.open .nav__menu,.nav__inner{transition:none !important}}

/* transition screen on phones: logo (and bar) 40% smaller */
@media (max-width:760px){.loader__logo,.loader__bar{width:min(156px,37.2vw)}}

/* course page subtitle in the thin face; ringed arrow on the trial link */
.lede--one { font-family: 'Inter', system-ui, sans-serif; font-weight: 200; letter-spacing: -0.02em; }
.cta-link { align-items: center; }
.cta-link__a { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border: 1.5px solid currentColor; border-radius: 50%; font-size: .68em; line-height: 1; position: relative; top: -.12em; }

/* forms page, phones: bottom padding matches the space above the title; tighter logo gap */
@media (max-width:760px){
  .enrol-card{padding-bottom:22px}
  .es__title--lg{gap:.167em}
}

/* "Join" + logo: align on the shared baseline (centre alignment drifted with the font's line metrics).
   The logo artwork sits ~3% of its height above the image's bottom edge, so nudge it down by that. */
.es[data-step="1"] .es__title--lg { align-items: baseline; }
.es__title img { transform: translateY(.047em); }

/* ===== Year 11 course schedule (levels > terms > weekly topics) ===== */
.sched__levels{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
.sched__lvl{font-family:var(--display);font-size:20px;letter-spacing:-.01em;color:rgba(255,255,255,.6);background:transparent;border:1.5px solid transparent;border-radius:999px;padding:12px 26px;cursor:pointer;transition:background .25s,color .25s,border-color .25s}
.sched__lvl:hover{color:#fff}
.sched__lvl[aria-selected="true"]{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#fff}
.sched__card{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:32px;padding:clamp(22px,4vw,56px)}
.sched__card[hidden],.sched__panel[hidden]{display:none}
.sched__head{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:clamp(26px,4vw,48px)}
.sched__head h3{font-family:var(--display);font-weight:500;font-size:clamp(28px,4vw,48px);letter-spacing:-.04em;line-height:1;margin:0}
.sched__badge{padding:8px 16px;border-radius:10px;background:rgba(157,184,255,.16);color:var(--glow,#9db8ff);font-family:var(--display);font-size:clamp(16px,1.8vw,22px);font-weight:500}
.sched__terms{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:10px}
.sched__term{justify-self:center;display:grid;gap:2px;text-align:center;font-family:var(--display);color:rgba(255,255,255,.55);background:transparent;border:1.5px solid rgba(255,255,255,.1);border-radius:12px;padding:12px 20px;cursor:pointer;transition:background .3s,border-color .3s,color .3s}
.sched__term b{font-weight:500;font-size:clamp(14px,1.5vw,18px);letter-spacing:-.01em}
.sched__term span{font-size:clamp(12px,1.3vw,16px);opacity:.8}
.sched__term:hover{color:#fff}
.sched__term[aria-selected="true"]{background:rgba(13,46,119,.5);border-color:#0d2e77;color:#fff}
.sched__track{position:relative;height:8px;margin:18px 0 clamp(28px,4vw,52px);border-radius:99px;background:rgba(255,255,255,.12)}
.sched__fill{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:var(--glow,#9db8ff);width:calc((var(--i,0) + .5) / var(--n) * 100%);transition:width .45s cubic-bezier(.4,0,.2,1)}
.sched__dot{position:absolute;top:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;background:var(--glow,#9db8ff);box-shadow:0 0 0 4px rgba(157,184,255,.2);left:calc((var(--i,0) + .5) / var(--n) * 100%);transition:left .45s cubic-bezier(.4,0,.2,1)}
.sched__panel{animation:schedIn .4s ease both}
@keyframes schedIn{from{opacity:0;transform:translateY(8px)}}
.sched__fa{font-family:var(--display);font-weight:500;font-size:clamp(28px,3.6vw,48px);letter-spacing:-.04em;line-height:1.05;margin:0}
.sched__fa-sub{font-family:var(--display);font-weight:500;font-size:clamp(22px,2.8vw,38px);letter-spacing:-.03em;line-height:1.1;color:var(--glow,#9db8ff);margin:6px 0 clamp(18px,2.4vw,30px)}
.sched__weeks{list-style:none;margin:0;padding:0;display:grid;gap:clamp(10px,1.4vw,16px);font-size:clamp(17px,1.7vw,22px);color:rgba(255,255,255,.88)}
.sched__weeks li{display:flex;gap:.7em}
.sched__weeks li span{flex:none;min-width:4.6em;color:rgba(255,255,255,.5)}
@media (max-width:760px){.sched__term{padding:10px 8px;width:100%}.sched__terms{gap:6px}.sched__lvl{font-size:17px;padding:10px 20px}}
@media (prefers-reduced-motion:reduce){.sched__panel{animation:none}.sched__fill,.sched__dot{transition:none}}

/* Year 12 schedule: five terms, plain exam list, learn-more link */
.sched__weeks--plain li{display:list-item;list-style:none;padding-left:0}
.sched__more{display:inline-flex;align-items:center;gap:.4em;margin-top:clamp(20px,3vw,34px);font-family:var(--display);font-weight:500;font-size:clamp(18px,1.8vw,22px);color:var(--glow,#9db8ff);text-decoration:none}
.sched__more span{transition:transform .3s ease}
.sched__more:hover span{transform:translateX(4px)}
@media (max-width:760px){
  .sched__card--many .sched__pre{display:none}
  .sched__card--many .sched__terms{gap:4px}
  .sched__card--many .sched__term{padding:8px 2px}
  .sched__card--many .sched__term b{font-size:13px}
  .sched__card--many .sched__term span{font-size:10.5px;line-height:1.15}
}

.sched__group{font-family:var(--display);font-weight:500;font-size:clamp(18px,1.9vw,24px);letter-spacing:-.02em;color:var(--glow,#9db8ff);margin:clamp(18px,2.4vw,28px) 0 clamp(10px,1.4vw,14px)}
.sched__fa + .sched__group{margin-top:clamp(14px,2vw,22px)}

/* Pay page: plan options as two rectangular buttons */
.field:has(.choice--btn){display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field:has(.choice--btn) > legend{grid-column:1 / -1;margin-bottom:2px}
.choice--btn{position:relative;margin:0;display:block}
.choice--btn input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.choice--btn span{display:flex;align-items:center;justify-content:center;min-height:0;height:var(--pay-h);padding:0 20px;border:1.5px solid rgba(255,255,255,.22);border-radius:16px;background:rgba(255,255,255,.04);color:rgba(255,255,255,.78);font-family:var(--display);font-weight:500;font-size:20px;letter-spacing:-.01em;transition:background .25s,border-color .25s,color .25s}
.choice--btn:hover span{border-color:rgba(255,255,255,.5);color:#fff}
.choice--btn input:checked + span{background:#0d2e77;border-color:#0d2e77;color:#fff}
.choice--btn input:focus-visible + span{outline:2px solid var(--glow,#9db8ff);outline-offset:3px}

/* Pay page: light intro, matching spacing under legend and labels, loader while looking up */
.lede--thin { font-family: 'Inter', system-ui, sans-serif; font-weight: 200; letter-spacing: -0.02em; }
.field:has(.choice--btn){gap:8px 12px}
.field:has(.choice--btn) > legend{margin-bottom:8px}
.loader__bar b.is-wait{animation:loaderWait 3s cubic-bezier(.2,.7,.2,1) forwards}
.loader__bar b.is-done{animation:none;width:100%;transition:width .2s ease}
@keyframes loaderWait{from{width:0}to{width:88%}}
#pay-form{--pay-h:52px}
#pay-form input:not([type=radio]){height:var(--pay-h);box-sizing:border-box}

/* mobile navbar: the collapsed menu row must not add a gap under the logo */
@media (max-width: 960px) { .nav__inner { row-gap: 0; } .nav__inner.open .nav__menu { padding-block: 24px 12px; } }
