/* Alt Academy — rules Webflow's style panel cannot express.
   Paste into: Page Settings -> Custom Code -> Inside <head> tag, wrapped in <style>. */

:root {
  --ink: #1a141f;
  --ink-soft: #5d5866;
  --paper: #FFFFFF;
  --paper-deep: #EAEBED;
  --white: #ffffff;
  --line: #dcdfe5;
  --line-dark: rgba(255, 253, 249, 0.18);
  --accent: #ce1257;
  --accent-dark: #A90F47;
  --accent-soft: #FDE8F0;
  --focus: #006da3;
  --max: 1280px;
  --header-height: 68px;
  --shadow: 0 24px 70px rgba(29, 23, 36, 0.16);
  --chemistry: #C3D809;
  --chemistry-soft: #F7FADF;
  --physics: #BB1450;
  --physics-soft: #FDE8F0;
  --biology: #1C7A40;
  --biology-soft: #E8F7EC;
  --mathematics: #00A4F5;
  --mathematics-soft: #E3F6FE;
  --business: #BE4E92;
  --business-soft: #F9EDF4;
  --economics: #2BA893;
  --economics-soft: #E0F4F0;
  --accounting: #7B5CE0;
  --accounting-soft: #EEE9FB;
  --psychology: #BC76D6;
  --psychology-soft: #F3E8F7;
  --computing: #EC6550;
  --computing-soft: #FBEEE9;
  --islamiyat: #636B2F;
  --islamiyat-soft: #F3F4E7;
  --cool-paper: #F4F5F6;
  --cool-panel: #FFFFFF;
  --cool-panel-2: #FAFBFC;
  --cool-line: #DCDFE5;
  --aubergine: #1a1226;
  --raspberry: #CE1257;
  --raspberry-bright: #FF5C86;
  --quiet: #9a95a4;
  --panel: #ffffff;
  --panel-2: #fafbfc;
  --accent-bright: #ff5c86;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --dark: #1A1226;
  --muted: #5D5866;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --bg: #F4F5F6;
  --rule: #DCDFE5;
  --soft: #9A95A4;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-locked {
  overflow: hidden;
}

input {
  font: inherit;
}

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

.ab-eyebrow::before {
  width: 7px;
  height: 7px;
  background: currentColor;
  content: "";
}

.ab-button:hover .ab-button__arrow {
  transform: translateX(3px);
}

.ab-nav-trigger[aria-expanded="true"] {
  color: var(--accent);
}

.ab-nav-trigger[aria-expanded="true"] .ab-nav-chevron {
  transform: translateY(2px) rotate(225deg);
}

.ab-desktop-scrim.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.ab-more-card:nth-child(2n) {
  border-right: 0;
}

.ab-more-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.ab-menu-icon::before, .ab-menu-icon::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.ab-menu-icon::before {
  top: 0;
}

.ab-menu-icon::after {
  top: 10px;
}

.ab-drawer-close::before, .ab-drawer-close::after {
  position: absolute;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.ab-drawer-close::before {
  transform: rotate(45deg);
}

.ab-drawer-close::after {
  transform: rotate(-45deg);
}

.ab-mobile-plus::before, .ab-mobile-plus::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 150ms ease;
}

.ab-mobile-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.ab-mobile-accordion__button[aria-expanded="true"] .ab-mobile-plus::after {
  transform: translate(-50%, -50%) rotate(0);
}

.prototype-hero::after {
  position: absolute;
  right: -150px;
  bottom: -280px;
  width: 600px;
  height: 600px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.ab-footer-brand .brand__mark {
  color: var(--ink);
  background: var(--white);
}

.ab-footer-brand .brand__wordmark {
  color: var(--white);
}

.ab-footer-group summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 1099px) {
  .ab-mobile-backdrop.is-open {
    display: block;
  }
  .ab-mobile-drawer.is-open {
    display: flex;
  }
}

@media (max-width: 767px) {
  .ab-footer-group summary::before, .ab-footer-group summary::after {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 13px;
    height: 1px;
    background: rgba(255, 253, 249, 0.7);
    content: "";
    transform: translateY(-50%);
  }
  .ab-footer-group summary::after {
    transform: translateY(-50%) rotate(90deg);
    transition: transform 140ms ease;
  }
  .ab-footer-group[open] summary::after {
    transform: translateY(-50%) rotate(0);
  }
}

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

.ab-hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.motion-stage.is-ready video {
  opacity: 1;
}

.motion-stage.is-ready .motion-player-fallback {
  opacity: 0;
}

.motion-player-fallback__side span:nth-child(2) {
  border-left: 4px solid #C3D809;
  background: #F7FADF;
}

.motion-player-fallback__main b:nth-of-type(2) {
  width: 72%;
}

.motion-player-fallback__main b:nth-of-type(3) {
  width: 58%;
}

.motion-stage.is-running .scatter-canvas {
  animation: scatter-canvas-cycle 20s linear infinite;
}

.motion-stage.is-running .scatter-piece {
  animation: scatter-piece-cycle 20s cubic-bezier(.55, .05, .22, 1) infinite;
}

.motion-stage.is-running .sort-target {
  animation: sort-target-cycle 20s cubic-bezier(.2, .8, .2, 1) infinite;
}

.motion-stage.is-running .motion-grade-target {
  animation: grade-target-cycle 20s cubic-bezier(.2, .8, .2, 1) infinite;
}

.motion-replay {
  position: absolute;
  z-index: 5;
  bottom: 10px;
  left: 11px;
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--aubergine);
  padding: 0 10px;
  color: var(--aubergine);
  background: rgba(255, 255, 255, 0.92);
  font-family: "IBM Plex Mono", monospace;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.07em;
  cursor: pointer;
}

@keyframes scatter-canvas-cycle {
  0%, 25% { opacity: 1; }
  32%, 94% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes scatter-piece-cycle {
  0%, 7% { opacity: 1; transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)) scale(1); }
  23% { opacity: 1; transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(0.2); }
  27%, 100% { opacity: 0; transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(0.1); }
}

@keyframes sort-target-cycle {
  0%, 18% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  24%, 28% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  33%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes grade-target-cycle {
  0%, 76% { opacity: 0; transform: translateY(16px) rotate(2deg); }
  81%, 93% { opacity: 1; transform: translateY(0) rotate(-1deg); }
  97%, 100% { opacity: 0; transform: translateY(12px) rotate(1deg); }
}

.trial-progress {
  color: var(--quiet);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.trial-lessons li.is-locked small::before {
  margin-right: 4px;
  content: "▢";
}

.trial-route button.is-complete span {
  color: #1C7A40;
}

.skill-check {
  max-width: 850px;
  margin: 0 auto;
  border: 1px solid var(--cool-line);
  padding: 28px;
  background: var(--cool-panel);
}

.skill-check fieldset {
  margin: 0;
  border: 0;
  padding: 23px 0 0;
}

.skill-check legend {
  max-width: 820px;
  margin-bottom: 22px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(23px, 2.5vw, 34px);
  font-weight: 600;
  line-height: 1.18;
}

.skill-check label {
  display: grid;
  min-height: 65px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid var(--cool-line);
  padding: 10px 14px;
  background: #FAFBFC;
  cursor: pointer;
  transition: border-color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.skill-check label + label {
  margin-top: 9px;
}

.skill-check label:has(input:checked) {
  border-color: #C3D809;
  background: #F7FADF;
  box-shadow: 4px 4px 0 #2A2E05;
}

.skill-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.skill-check__action p.is-correct {
  color: #1C7A40;
  font-weight: 600;
}

.skill-check__action p.is-wrong {
  color: #A8402E;
  font-weight: 600;
}

.qualification-pop {
  display: grid;
  min-height: 58px;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--ink);
  margin: 22px 0 38px;
  padding: 0 18px;
  background: var(--cool-panel);
}

.qualification-pop > span {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.qualification-pop > strong {
  border-left: 1px solid var(--cool-line);
  padding-left: 18px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

.qualification-pop > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.qualification-pop > i {
  color: var(--accent);
  font-style: normal;
  font-size: 20px;
}

.qualification-pop.is-changing {
  animation: qualification-pop 320ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes qualification-pop {
  0% { transform: translateY(8px) scale(0.985); }
  70% { transform: translateY(-2px) scale(1.004); }
  100% { transform: translateY(0) scale(1); }
}

.course-panel[hidden] {
  display: none;
}

.unit-map {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 4px;
  padding: 22px 20px;
}

.unit-map span {
  aspect-ratio: 1;
  border: 1px solid rgba(26, 18, 38, 0.16);
  background: var(--cool-panel);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), background 220ms ease;
}

.unit-map:not(.is-playing) span:nth-child(10n) {
  border-color: var(--accent);
  background: #FDE8F0;
}

.unit-map.is-playing span {
  animation: unit-route-fill 520ms cubic-bezier(.2, .8, .2, 1) var(--delay, 0ms) both;
}

@keyframes unit-route-fill {
  0% {
    border-color: rgba(26, 18, 38, 0.16);
    background: #FFFFFF;
    transform: scale(0.72);
  }
  42% {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(206, 18, 87, 0.12);
    transform: scale(1.08);
  }
  100% {
    border-color: var(--accent);
    background: #FDE8F0;
    box-shadow: none;
    transform: scale(1);
  }
}

.unit-planner:focus-within .unit-map span:nth-child(3n), .unit-planner:hover .unit-map span:nth-child(3n) {
  transform: translateY(-2px);
}

.parent-copy li::before {
  position: absolute;
  top: 13px;
  left: 0;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  content: "0" counter(parent);
}

.founder-photo::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.34) 1px, transparent 1.15px);
  background-size: 10px 10px;
  mix-blend-mode: soft-light;
  opacity: 0.32;
  pointer-events: none;
  content: "";
}

.ab-faculty-profile-card:hover .ab-faculty-profile-card__media img {
  filter: grayscale(0) saturate(0.82) contrast(1.02);
  transform: scale(1.025);
}

.ab-faculty-showcase-footer a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--ink);
  padding: 14px 18px;
  color: var(--ink);
  background: var(--cool-panel);
  font-size: 12px;
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary i::before, .faq-list summary i::after {
  position: absolute;
  width: 13px;
  height: 1px;
  background: var(--ink);
  content: "";
}

.faq-list summary i::after {
  transform: rotate(90deg);
  transition: transform 140ms ease;
}

.faq-list details[open] summary i::after {
  transform: rotate(0);
}

@media (max-width: 860px) {
  .proof-strip > div:nth-child(2) {
    border-right: 0;
  }
  .proof-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--cool-line);
  }
}

@media (max-width: 700px) {
  .ab-hero-copy h1 span {
    white-space: normal;
  }
  .trial-lessons li:nth-child(n + 3) {
    display: none;
  }
  .skill-check {
    padding: 19px 14px;
  }
  .skill-check legend {
    font-size: 25px;
  }
  .qualification-pop {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 12px 14px;
  }
  .qualification-pop > p {
    display: none;
  }
  .unit-map {
    grid-template-columns: repeat(10, 1fr);
    padding: 18px 14px;
  }
  .ab-faculty-showcase-footer a {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-journey {
    min-height: auto;
  }

  .hero-sticky {
    position: static;
  }

  .motion-stage video {
    display: block;
  }

  .motion-stage .scatter-canvas,
  .motion-stage .motion-grade-target {
    animation: none !important;
  }

  .motion-stage.is-ready .scatter-canvas {
    opacity: 0;
  }

  .motion-stage.allow-motion .scatter-canvas {
    animation: scatter-canvas-cycle 20s linear infinite !important;
  }

  .motion-stage.allow-motion .motion-grade-target {
    animation: grade-target-cycle 20s cubic-bezier(.2, .8, .2, 1) infinite !important;
  }

  .motion-stage.allow-motion .scatter-piece {
    animation: scatter-piece-cycle 20s cubic-bezier(.55, .05, .22, 1) infinite !important;
  }

  .motion-stage.allow-motion .sort-target {
    animation: sort-target-cycle 20s cubic-bezier(.2, .8, .2, 1) infinite !important;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid #006da3;
  outline-offset: 3px;
}

.ab-hero-copy > p:not(.ab-eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 253, 249, 0.72);
  font-size: 17px;
  line-height: 1.72;
}

.hero-art::before {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(206, 18, 87, 0.28);
  border-radius: 50%;
  content: "";
}

@keyframes student-float {
  50% {
    transform: translateY(-7px);
  }
}

.audience-card > p:not(.ab-eyebrow) {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.founder-copy > p:not(.ab-eyebrow):not(.signature) {
  max-width: 670px;
  margin: 0 0 17px;
  color: var(--ink-soft);
  font-size: 16px;
}

.faculty-card:focus-visible .faculty-symbol {
  color: var(--subject-on);
  background: var(--subject);
  box-shadow: 4px 4px 0 var(--subject-shadow);
  transform: translate(-1px, -1px);
}

.faculty-card:focus-visible .faculty-media img {
  filter: grayscale(0) saturate(0.86) contrast(1.02);
  transform: scale(1.025);
}

@media (max-width: 680px) {
  .ab-hero-copy > p:not(.ab-eyebrow) {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.ab-kicker:before {
  content:"";
  width:30px;
  height:1.5px;
  background:currentColor;
}

.ab-about-hero .ab-hero-copy > p:not(.ab-eyebrow) {
  max-width:560px;
  margin:0;
  color:var(--ink-soft);
  font-size:17px;
  line-height:1.62;
}

.ab-about-product-window::before {
  position:absolute;
  z-index:-1;
  top:-16px;
  right:-17px;
  width:92px;
  height:66px;
  border:1px solid var(--accent);
  background:var(--accent);
  content:"";
}

.ab-v4-founder-portrait:after {
  content:"";
  position:absolute;
  inset:auto 18px 18px;
  height:18%;
  background:linear-gradient(to top,#F5F6F7,transparent);
}

.ab-faculty-profile-card:hover .ab-faculty-profile-card__media img {
  filter:grayscale(0) saturate(.82) contrast(1.02);
  transform:scale(1.025);
}

.ab-faculty-showcase-footer a {
  display:inline-flex;
  flex:none;
  align-items:center;
  gap:18px;
  border:1px solid var(--ink);
  padding:14px 18px;
  color:var(--ink);
  font-family:var(--mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ab-reveal.show {
  opacity:1;
  transform:none;
}

@media (max-width:760px) {
  .ab-about-hero .ab-hero-copy > p:not(.ab-eyebrow) {
    font-size:16px;
  }
}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}.ab-reveal{opacity:1;transform:none}}


body{margin:0;color:#1a141f;background:#FFFFFF;font-family:"Inter", system-ui, sans-serif;font-size:15.5px;line-height:1.7;-webkit-font-smoothing:antialiased;overflow-x:hidden}
button{font:inherit;color:inherit}

.trial-route button:disabled{color:#B4B0BA;cursor:not-allowed}
[hidden]{display:none!important}
