/* A lively layer over the Axiora identity. All movement has a static fallback. */
:root {
  --lp-motion-ease: cubic-bezier(.2, .75, .25, 1);
  --lp-motion-shadow: 0 18px 50px rgb(86 54 201 / .12);
}

.lp-header {
  background: rgb(247 244 239 / .94);
  backdrop-filter: blur(18px);
}
.lp-scroll-progress {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 3px;
  color: var(--lp-purple);
  pointer-events: none;
}
.lp-scroll-progress rect { fill: currentColor; }
#main-nav > a { position: relative; }
#main-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--lp-purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--lp-motion-ease);
}
#main-nav > a[aria-current="location"] { color: var(--lp-purple); }
#main-nav > a[aria-current="location"]::after,
#main-nav > a:hover::after { transform: scaleX(1); }

.lp-hero {
  background:
    radial-gradient(ellipse at 90% 18%, rgb(255 130 103 / .17), transparent 38%),
    radial-gradient(ellipse at 65% 75%, rgb(222 213 255 / .65), transparent 40%),
    var(--lp-paper);
}
.lp-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 48%;
  opacity: .25;
  background-image: radial-gradient(var(--lp-purple) .7px, transparent .7px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black, transparent 68%);
  pointer-events: none;
}
.lp-hero h1 em {
  position: relative;
  display: inline-block;
}
.lp-hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 78% -2% 3%;
  background: rgb(255 130 103 / .6);
  border-radius: 60% 30% 45% 20%;
  transform: rotate(-1.5deg);
  transform-origin: left;
}
.js .lp-hero-copy > * { animation: lp-rise-in .75s var(--lp-motion-ease) both; }
.js .lp-hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .lp-hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .lp-hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .lp-hero-copy > :nth-child(5) { animation-delay: .32s; }
.js .lp-hero-copy > :nth-child(6) { animation-delay: .4s; }
.js .lp-hero h1 em::after { animation: lp-underline-in .9s .45s var(--lp-motion-ease) both; }
.lp-hero-visual { isolation: isolate; }
.lp-hero-visual::before {
  inset: 13% -1% 6%;
  background:
    radial-gradient(circle at 75% 25%, rgb(255 130 103 / .4), transparent 42%),
    var(--lp-lavender);
  border: 1px solid rgb(86 54 201 / .09);
  box-shadow: 0 25px 60px rgb(86 54 201 / .08);
  opacity: .85;
}
.lp-hero-atmosphere {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}
.lp-orbit-token {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: rgb(255 255 255 / .9);
  color: var(--lp-purple);
  border: 1px solid rgb(86 54 201 / .14);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgb(86 54 201 / .1);
  font: italic 30px/1 Georgia, serif;
  animation: lp-token-float 5.5s ease-in-out infinite;
}
.lp-orbit-token:nth-child(1) { left: 0; top: 14%; transform: rotate(-12deg); }
.lp-orbit-token:nth-child(2) {
  right: -2%; top: 46%; width: 48px; height: 48px;
  background: var(--lp-coral); color: var(--lp-ink);
  animation-delay: -1.8s;
}
.lp-orbit-token:nth-child(3) {
  right: 16%; top: -1%; width: 48px; height: 48px;
  background: var(--lp-purple); color: white;
  animation-delay: -3.2s;
}
.lp-hero-orbit { animation: lp-orbit-drift 22s ease-in-out infinite; }
.lp-hero .lp-hero-axi {
  transform-origin: 50% 85%;
  animation: lp-axi-float 5s ease-in-out infinite;
}
.lp-hero-label {
  border-color: rgb(86 54 201 / .18);
  box-shadow: 0 12px 35px rgb(86 54 201 / .12);
  animation: lp-label-float 6s ease-in-out infinite;
}
.lp-hero-capsule { box-shadow: 0 7px 24px rgb(86 54 201 / .18); }
.lp-axi-greet {
  position: absolute;
  z-index: 5;
  top: 15%;
  right: 1%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgb(86 54 201 / .22);
  border-radius: 99px;
  background: white;
  color: var(--lp-purple);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 5px 18px rgb(86 54 201 / .08);
  transition: background .2s, box-shadow .2s, transform .25s var(--lp-motion-ease);
}
.lp-axi-greet .lp-icon { width: 18px; height: 18px; flex-basis: 18px; }
.lp-axi-greet:hover { background: #eee8ff; box-shadow: var(--lp-motion-shadow); transform: translateY(-3px); }
.lp-hero-visual.is-greeting .lp-hero-axi { animation: lp-axi-greeting .85s var(--lp-motion-ease) both; }
.lp-hero-visual.is-greeting .lp-hero-label { animation: lp-greeting-label .65s var(--lp-motion-ease) both; }
.lp-hero-visual.is-greeting .lp-axi-greet .lp-icon { animation: lp-greet-spark .85s ease-out both; }
.lp-hero-visual.is-offscreen *, .lp-hero-visual.is-offscreen *::before,
.lp-hero-visual.is-offscreen *::after { animation-play-state: paused; }

.lp-button {
  position: relative;
  overflow: hidden;
  transition: background .2s, color .2s, border-color .2s,
    box-shadow .25s, transform .25s var(--lp-motion-ease);
}
.lp-button--primary { box-shadow: 0 7px 20px rgb(86 54 201 / .16); }
.lp-button::after {
  content: "";
  position: absolute;
  inset: -70% auto -70% -70%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .25), transparent);
  transform: rotate(24deg);
  pointer-events: none;
}
.lp-button:hover::after { animation: lp-button-sheen .65s ease-out; }
.lp-button:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgb(86 54 201 / .18); }
.lp-button:active { transform: translateY(0) scale(.98); }
.lp-space-card, .lp-course-card {
  transition: border-color .3s, box-shadow .3s, transform .35s var(--lp-motion-ease);
}
.lp-space-card:hover, .lp-course-card:hover,
.lp-space-card:focus-within, .lp-course-card:focus-within {
  border-color: rgb(86 54 201 / .45);
  box-shadow: var(--lp-motion-shadow);
  transform: translateY(-6px);
}
.lp-feature-icon, .lp-method-icon, .lp-course-visual > .lp-icon {
  transition: transform .4s var(--lp-motion-ease), background .3s;
}
.lp-space-card:hover .lp-feature-icon,
.lp-method-item:hover .lp-method-icon { transform: rotate(-7deg) scale(1.08); }
.lp-method-example { transition: background .3s, transform .35s var(--lp-motion-ease); }
.lp-method-item:hover .lp-method-example { background: #eee8ff; transform: translateY(-4px); }
.lp-course-card:hover .lp-course-visual > .lp-icon { transform: rotate(-10deg) scale(1.12); }
.lp-subject-tags > span, .lp-library-tags > span { transition: background .2s, border-color .2s; }
.lp-space-card:hover .lp-subject-tags > span { background: white; border-color: rgb(86 54 201 / .45); }
.lp-faq summary { transition: color .2s; }
.lp-faq summary:hover { color: var(--lp-purple); }
.lp-faq details[open] > div { animation: lp-faq-open .3s var(--lp-motion-ease) both; }
.lp-stage-tab { transition: background .25s, color .25s, border-color .25s, transform .25s var(--lp-motion-ease); }
.lp-stage-tab:hover { transform: translateY(-2px); }
.lp-stage-panels { position: relative; isolation: isolate; }
.lp-stage-panels::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 13% -12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(86 54 201 / .55), transparent 68%);
  pointer-events: none;
}
.lp-stage-panel {
  background: linear-gradient(150deg, rgb(222 213 255 / .09), rgb(86 54 201 / .12));
  box-shadow: inset 0 1px 0 rgb(222 213 255 / .1);
  border-color: rgb(222 213 255 / .25);
}
.lp-stage-panel.is-entering { animation: lp-stage-in .5s var(--lp-motion-ease) both; }
.lp-stage-panel.is-entering .lp-stage-art { animation: lp-stage-art-in .65s var(--lp-motion-ease) both; }
.lp-stage-panel .lp-stage-art { box-shadow: 0 18px 50px rgb(0 0 0 / .16); }

.lp-demo { border-color: rgb(86 54 201 / .18); box-shadow: 0 10px 45px rgb(86 54 201 / .06); }
.lp-demo-exercise { position: relative; }
.lp-demo-answers > label { transition: background .2s, border-color .2s, transform .2s; }
.lp-demo-answers > label:hover { background: #eee8ff; border-color: var(--lp-purple); transform: translateY(-3px); }
.lp-demo-feedback:not(:empty) { animation: lp-feedback-in .35s var(--lp-motion-ease) both; }
.lp-demo:has(#fraction-demo.is-correct) .lp-demo-axi { animation: lp-success-bounce .7s var(--lp-motion-ease) both; }
.lp-demo-exercise.is-celebrating { border-color: var(--lp-purple); }
.lp-celebration { position: absolute; z-index: 4; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.lp-celebration > span {
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  opacity: 0;
  background: var(--lp-purple);
}
.is-celebrating .lp-celebration > span { animation: lp-confetti .9s ease-out both; }
.lp-celebration > span:nth-child(2n) { background: var(--lp-coral); border-radius: 50%; width: 10px; height: 10px; }
.lp-celebration > span:nth-child(3n) { background: var(--lp-lavender); }
.lp-celebration > span:nth-child(1) { --lp-burst-x: -170px; --lp-burst-y: -200px; --lp-burst-r: -180deg; }
.lp-celebration > span:nth-child(2) { --lp-burst-x: -110px; --lp-burst-y: -265px; --lp-burst-r: 250deg; }
.lp-celebration > span:nth-child(3) { --lp-burst-x: -60px; --lp-burst-y: -200px; --lp-burst-r: -300deg; }
.lp-celebration > span:nth-child(4) { --lp-burst-x: 10px; --lp-burst-y: -290px; --lp-burst-r: 160deg; }
.lp-celebration > span:nth-child(5) { --lp-burst-x: 70px; --lp-burst-y: -235px; --lp-burst-r: 210deg; }
.lp-celebration > span:nth-child(6) { --lp-burst-x: 160px; --lp-burst-y: -195px; --lp-burst-r: -260deg; }
.lp-celebration > span:nth-child(7) { --lp-burst-x: -140px; --lp-burst-y: -130px; --lp-burst-r: 300deg; }
.lp-celebration > span:nth-child(8) { --lp-burst-x: 120px; --lp-burst-y: -140px; --lp-burst-r: -160deg; }
.lp-celebration > span:nth-child(9) { --lp-burst-x: -30px; --lp-burst-y: -155px; --lp-burst-r: -210deg; }
.lp-celebration > span:nth-child(10) { --lp-burst-x: 45px; --lp-burst-y: -180px; --lp-burst-r: 270deg; }

.lp-motion-ready .lp-reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity .7s var(--lp-motion-ease), translate .7s var(--lp-motion-ease),
    border-color .3s, box-shadow .3s, transform .35s var(--lp-motion-ease);
}
.lp-motion-ready .lp-reveal.is-revealed { opacity: 1; translate: 0 0; }
.lp-method-grid > .lp-reveal:nth-child(2), .lp-course-grid > .lp-reveal:nth-child(2) { transition-delay: .08s; }
.lp-method-grid > .lp-reveal:nth-child(3), .lp-course-grid > .lp-reveal:nth-child(3) { transition-delay: .16s; }
.lp-motion-ready .lp-reveal:focus-within { opacity: 1; translate: 0 0; }
.lp-final-cta::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -60px;
  top: -110px;
  border: 1px solid rgb(222 213 255 / .2);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgb(222 213 255 / .04), 0 0 0 110px rgb(222 213 255 / .03);
  pointer-events: none;
}
.lp-final-cta > .lp-container { position: relative; }
.lp-motion-toggle {
  position: fixed;
  z-index: 40;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--lp-paper);
  border: 1px solid rgb(86 54 201 / .3);
  border-radius: 99px;
  box-shadow: 0 4px 20px rgb(39 34 60 / .12);
  color: var(--lp-purple);
  font-size: 14px;
  font-weight: 600;
}
.lp-motion-toggle .lp-icon { width: 17px; height: 17px; flex-basis: 17px; }
.lp-motion-toggle:hover { background: white; border-color: var(--lp-purple); }
.lp-motion-toggle:disabled { cursor: default; opacity: 1; color: var(--lp-muted); }
.lp-footer { padding-bottom: 85px; }

@keyframes lp-rise-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes lp-underline-in { from { transform: scaleX(0) rotate(-1.5deg); } to { transform: scaleX(1) rotate(-1.5deg); } }
@keyframes lp-axi-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes lp-label-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes lp-token-float { 0%, 100% { translate: 0 0; rotate: -8deg; } 50% { translate: 0 -13px; rotate: 5deg; } }
@keyframes lp-orbit-drift { 0%, 100% { transform: rotate(-5deg) scale(.98); } 50% { transform: rotate(7deg) scale(1.02); } }
@keyframes lp-axi-greeting { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-18px) rotate(-5deg); } 55% { transform: translateY(-8px) rotate(5deg); } 80% { transform: translateY(-4px) rotate(-2deg); } }
@keyframes lp-greeting-label { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.06) rotate(-2deg); } }
@keyframes lp-greet-spark { from { transform: rotate(0) scale(1); } 50% { transform: rotate(90deg) scale(1.3); } to { transform: rotate(180deg) scale(1); } }
@keyframes lp-button-sheen { to { left: 140%; } }
@keyframes lp-stage-in { from { opacity: 0; transform: translateX(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lp-stage-art-in { from { transform: translateY(12px) rotate(-3deg) scale(.95); } to { transform: none; } }
@keyframes lp-faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes lp-feedback-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lp-success-bounce { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-12px) rotate(-4deg); } 65% { transform: translateY(-3px) rotate(3deg); } }
@keyframes lp-confetti { 0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.4); } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--lp-burst-x), var(--lp-burst-y)) rotate(var(--lp-burst-r)) scale(.8); } }

@media (max-width: 900px) {
  #main-nav > a::after { right: auto; width: 26px; bottom: 5px; }
  .lp-orbit-token { width: 48px; height: 48px; font-size: 27px; }
  .lp-orbit-token:nth-child(2) { right: -3%; width: 42px; height: 42px; }
  .lp-orbit-token:nth-child(3) { right: 10%; width: 42px; height: 42px; }
  .lp-axi-greet { top: 12%; right: -4%; padding: 8px 11px; }
}
@media (max-width: 700px) {
  .lp-hero::before { inset: 48% 0 0; }
  .lp-hero-visual { margin-top: 14px; }
  .lp-hero-visual::before { inset: 13% 3% 6%; }
  .lp-orbit-token:nth-child(1) { left: 1%; top: 12%; }
  .lp-orbit-token:nth-child(2) { right: 0; top: 45%; }
  .lp-orbit-token:nth-child(3) { right: 18%; top: -2%; }
  .lp-axi-greet { top: 10%; right: 0; }
  .lp-motion-toggle { left: 12px; bottom: 12px; padding: 10px 12px; }
  .lp-final-cta::before { right: -280px; }
}
@media (hover: none) {
  .lp-space-card:hover, .lp-course-card:hover, .lp-button:hover,
  .lp-demo-answers > label:hover, .lp-stage-tab:hover,
  .lp-method-item:hover .lp-method-example { transform: none; }
}

/* Pausing never hides content, disables a control, or alters its feedback. */
html.no-js *, html.no-js *::before, html.no-js *::after { animation: none !important; }
html.motion-paused { scroll-behavior: auto; }
html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after {
  animation: none !important;
  transition: none !important;
}
html.motion-paused .lp-reveal { opacity: 1; translate: 0 0; transform: none; }
html.motion-paused .lp-space-card:hover,
html.motion-paused .lp-course-card:hover,
html.motion-paused .lp-space-card:focus-within,
html.motion-paused .lp-course-card:focus-within,
html.motion-paused .lp-button:hover,
html.motion-paused .lp-button:active,
html.motion-paused .lp-axi-greet:hover,
html.motion-paused .lp-stage-tab:hover,
html.motion-paused .lp-demo-answers > label:hover,
html.motion-paused .lp-method-item:hover .lp-method-example,
html.motion-paused .lp-method-item:hover .lp-method-icon,
html.motion-paused .lp-space-card:hover .lp-feature-icon,
html.motion-paused .lp-course-card:hover .lp-course-visual > .lp-icon { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lp-motion-ready .lp-reveal { opacity: 1; translate: 0 0; transform: none; }
  .lp-space-card:hover, .lp-course-card:hover,
  .lp-space-card:focus-within, .lp-course-card:focus-within,
  .lp-button:hover, .lp-button:active, .lp-axi-greet:hover,
  .lp-stage-tab:hover, .lp-demo-answers > label:hover,
  .lp-method-item:hover .lp-method-example,
  .lp-method-item:hover .lp-method-icon,
  .lp-space-card:hover .lp-feature-icon,
  .lp-course-card:hover .lp-course-visual > .lp-icon { transform: none; }
}
