/* =========================================================================================================
   Academy (25 Nov): the course page, on MCP's black (its skin comes from /academy/dark.css, made by _academy.py).
   Hero: the centred head + a lesson player on the star sky. Then what it is, the six modules on a rail that fills
   as you scroll, the walkthrough cards (Library's card, in the dark), the ending that opens to the full screen
   and fills a six-step progress line, and the questions.
   ========================================================================================================= */
html[data-p="academy"] body.ds { --ac-card: #111112; --ac-well: #1b1b1c; --ac-line: #ffffff14; --ac-ink-2: #8d8d90; --ac-ink-3: #5c5c60; --ac-hot: #ff5a1f; --ac-ease: cubic-bezier(.2, .8, .2, 1); --ac-spring: cubic-bezier(.34, 1.4, .64, 1); }
html[data-p="academy"] body.ds main.mp { padding-top: 96px; padding-bottom: 200px !important; overflow-x: clip; }
html[data-p="academy"] body.ds main.mp > .fx3 + #faq { margin-top: 200px !important; }

/* ---------- head ---------- */
html[data-p="academy"] body.ds .mh { display: flex; flex-direction: column; align-items: center; gap: 72px; min-height: 0; }
html[data-p="academy"] body.ds .mh__t { align-items: center; text-align: center; gap: 16px; }
html[data-p="academy"] body.ds .mh__h { margin: 0; font-size: 48px; line-height: 52px; font-weight: 400; letter-spacing: -.03em; }
html[data-p="academy"] body.ds .mh__h { max-width: 960px !important; text-wrap: balance; }
html[data-p="academy"] body.ds .mh__h .h-mute { display: block; }
html[data-p="academy"] body.ds .mh__p { margin: 0; font-size: 14px !important; line-height: 20px !important; color: var(--ac-ink-2); white-space: nowrap; max-width: none !important; }
html[data-p="academy"] body.ds .mh__acts { margin-top: 8px; }
html[data-p="academy"] body.ds .mh__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
html[data-p="academy"] body.ds .mh__t > * { opacity: 0; transform: translateY(16px); animation: ac-rise .9s var(--ac-ease) forwards; animation-delay: calc(var(--i, 0) * .08s + .1s); }
@keyframes ac-rise { to { opacity: 1; transform: none; } }

/* the waitlist: one pill, the field and the white button inside it */
.wl { display: flex; align-items: center; gap: 8px; box-sizing: border-box; width: 440px; max-width: 100%; height: 48px; padding: 4px 4px 4px 20px; border-radius: 999px; background: #111112; box-shadow: inset 0 0 0 1px #ffffff1f; transition: box-shadow .25s, background-color .25s; }
.wl:hover { background: #161617; box-shadow: inset 0 0 0 1px #ffffff2e; }
.wl:focus-within { background: #161617; box-shadow: inset 0 0 0 1px #ffffff4d; }
.wl input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none !important; background: none; color: #fff; font: 400 16px/24px var(--font-sans, inherit); letter-spacing: -.01em; box-shadow: none !important; }
html[data-p="academy"] body.ds .wl input { color: #fff !important; -webkit-text-fill-color: #fff; caret-color: #fff; background: none !important; }
html[data-p="academy"] body.ds .wl input:is(:-webkit-autofill, :autofill) { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #111112 inset !important; box-shadow: 0 0 0 40px #111112 inset !important; transition: background-color 9999s; }
html[data-p="academy"] body.ds .wl input::placeholder { color: var(--ac-ink-3) !important; -webkit-text-fill-color: var(--ac-ink-3); }
.wl .btn { flex: none; }
.wl.is-done { justify-content: center; gap: 8px; padding: 0 24px; font-size: 16px; color: #fff; }
.wl.is-done i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #0a0a0b; font-style: normal; font-size: 12px; animation: ac-pop .6s var(--ac-spring); }
@keyframes ac-pop { from { transform: scale(0); } }

@keyframes ac-beat { 50% { transform: scale(.5); opacity: .5; } }


/* ---------- the Academy, as one of our tools (the studios' look: black canvas, the name pill top left,
   the white action top right, the panel on the right, the strip at the foot, a cursor doing the work) ---------- */
.as { position: relative; isolation: isolate; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: 40px minmax(0, 1fr) 64px; gap: 16px 24px; width: 100%; height: 720px; padding: 16px; border-radius: 32px; background: #0a0a0b; box-shadow: inset 0 0 0 1px #ffffff14, 0 64px 120px -48px #000; overflow: hidden; opacity: 0; transform: translateY(40px) scale(.98); animation: ac-rise 1.2s var(--ac-ease) .4s forwards; font-size: 14px; line-height: 20px; }
.as__top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.as__id { display: flex; align-items: center; gap: 12px; height: 48px; margin: -4px 0; padding: 4px 16px 4px 4px; border-radius: 16px; background: #111112; box-shadow: inset 0 0 0 1px #ffffff14; }
.as__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(145deg, #2a2a2c, #111112); box-shadow: inset 0 0 0 1px #ffffff1f, inset 0 1px 0 #ffffff26; color: #fff; }
.as__ic svg { width: 18px; height: 18px; }
.as__id > span:last-child { display: flex; flex-direction: column; }
.as__id b { font-weight: 400; color: #fff; }
.as__id small { font-size: 12px; line-height: 16px; color: var(--ac-ink-2); }
.as__acts { display: flex; align-items: center; gap: 8px; margin: 0; }
.as__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: #0a0a0b; transition: transform .2s, background-color .2s, box-shadow .3s; }
.as__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.as__btn--glass { background: #161617; color: #fff; box-shadow: inset 0 0 0 1px #ffffff1f; }
.as__btn.is-press, .as__main.is-press, .as__copy.is-press, .as__seg button.is-press { transform: scale(.94); }
/* the stage: the lesson film, its timeline, the lesson pill under it */
.as__stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; min-height: 0; }
.as__frame { position: relative; width: min(100%, calc((720px - 16px * 2 - 40px - 64px - 16px * 2 - 24px - 40px - 24px) * 1.6)); aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px #ffffff14, 0 40px 80px -40px #000; }
.as__clip { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .7s ease, transform 1.4s var(--ac-ease); }
.as__clip.is-on { opacity: 1; transform: none; }
.as__clip :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.as__tl { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; height: 4px; margin: 0; border-radius: 4px; background: #ffffff40; overflow: hidden; }
.as__tl i { position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(var(--f, 0)); transform-origin: 0 50%; }
.as__frame::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, #00000080); pointer-events: none; }
.as__pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 0; padding: 0 16px 0 8px; border-radius: 999px; background: #fff; color: #0a0a0b; box-shadow: 0 12px 32px -12px #000; transition: opacity .3s, transform .5s var(--ac-ease); }
.as__pill b { display: grid; place-items: center; min-width: 28px; height: 24px; padding: 0 6px; border-radius: 999px; background: #0a0a0b; color: #fff; font: 700 12px/1 Doto, ui-monospace, monospace; }
.as__pill.is-out { opacity: 0; transform: translateY(6px); }
/* the panel: the studios' Adjust card */
.as__panel { grid-column: 2; grid-row: 2 / 4; display: flex; flex-direction: column; min-height: 0; padding: 20px; border-radius: 24px; background: #111112; box-shadow: inset 0 0 0 1px #ffffff14; }
.as__ph { display: flex; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.as__ph b { font-size: 20px; line-height: 28px; font-weight: 400; letter-spacing: -.02em; color: #fff; }
.as__ph span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--ac-ink-2); }
.as__ph svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.as__seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; border-radius: 999px; background: #0a0a0b; box-shadow: inset 0 0 0 1px #ffffff12; }
.as__seg > i { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: #fff; transform: translateX(calc(var(--t, 0) * 100%)); transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.as__seg button { position: relative; z-index: 1; height: 32px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ac-ink-2); font: inherit; font-size: 14px; cursor: pointer; transition: color .3s, transform .2s, background-color .2s; }
.as__seg button:hover:not(.is-on) { color: #fff; background: #ffffff29; }
.as__seg button.is-on { color: #0a0a0b; }
.as__pane { position: relative; height: 196px; margin-top: 16px; }
.as__pane > * { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .35s, transform .5s var(--ac-ease), visibility 0s .35s; }
.as__pane > .is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .5s var(--ac-ease), visibility 0s; }
.as__ls { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.as__ls li { display: flex; align-items: center; gap: 12px; height: 45px; padding: 0 12px; border-radius: 12px; color: var(--ac-ink-2); transition: background-color .4s, color .4s; }
.as__ls li i { position: relative; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px #ffffff2e; font-style: normal; font-size: 11px; color: transparent; transition: background-color .4s, box-shadow .4s, color .3s; }
.as__ls li.is-done { color: #fff; } .as__ls li.is-done i { background: #fff; color: #0a0a0b; box-shadow: none; }
.as__ls li.is-at { background: #1b1b1c; color: #fff; } .as__ls li.is-at i { box-shadow: inset 0 0 0 2px #fff; }
.as__ls li.is-at i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: ac-beat 1.2s ease-in-out infinite; }
@keyframes ac-beat { 50% { transform: scale(.5); opacity: .5; } }
.as__prompt { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: #0a0a0b; box-shadow: inset 0 0 0 1px #ffffff12; }
.as__code { flex: 1; margin: 0; font: 400 13px/20px ui-monospace, SFMono-Regular, Menlo, monospace; color: #e9e9ec; }
.as__code::before { content: "> "; color: var(--ac-ink-3); }
.as__caret { display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; background: #fff; animation: ac-blink 1s steps(1) infinite; }
@keyframes ac-blink { 50% { opacity: 0; } }
.as__copy { align-self: flex-end; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: #fff; color: #0a0a0b; font-size: 12px; transition: transform .2s, background-color .3s, color .3s; }
.as__copy.is-done { background: #1e1e20; color: #fff; }
.as__files { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.as__files li { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 12px; border-radius: 12px; background: #161617; color: #fff; }
.as__files i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #1e1e20; font-style: normal; font: 700 13px/1 Doto, ui-monospace, monospace; color: var(--ac-ink-2); }
.as__files small { margin-left: auto; font-size: 12px; color: var(--ac-ink-3); }
.as__lab { margin: 24px 0 8px; font-size: 12px; line-height: 16px; color: var(--ac-ink-2); }
.as__prog { padding: 16px; border-radius: 16px; background: #161617; }
.as__prog p { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.as__prog b { font-size: 24px; line-height: 28px; font-weight: 400; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.as__prog span { font-size: 12px; color: var(--ac-ink-2); }
.as__prog ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.as__prog li { position: relative; height: 6px; border-radius: 6px; background: #ffffff1a; overflow: hidden; }
.as__prog li::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ac-ease); }
.as__prog li.is-done::after { transform: none; }
.as__up { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; padding: 8px; border-radius: 16px; background: #161617; transition: opacity .3s, transform .5s var(--ac-ease); }
.as__up.is-out { opacity: 0; transform: translateY(4px); }
.as__up img { flex: none; width: 64px; height: 40px; border-radius: 8px; object-fit: cover; }
.as__up span { display: flex; flex-direction: column; min-width: 0; }
.as__up small { font-size: 12px; line-height: 16px; color: var(--ac-ink-2); }
.as__up b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: #fff; }
.as__main { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; margin-top: auto; border-radius: 999px; background: #fff; color: #0a0a0b; transition: transform .2s, background-color .3s, color .3s; }
.as__main svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.as__main.is-done { background: #1e1e20; color: #fff; }
.as__note { margin: 12px 0 0; font-size: 12px; line-height: 16px; color: var(--ac-ink-3); }
/* the strip of lessons and the speed pill at the foot */
.as__strip { grid-column: 1; grid-row: 3; justify-self: center; align-self: end; display: flex; gap: 8px; padding: 8px; border-radius: 20px; background: #111112; box-shadow: inset 0 0 0 1px #ffffff14; }
.as__strip span { position: relative; width: 72px; height: 48px; border-radius: 12px; overflow: hidden; background: #1b1b1c; opacity: .45; transition: opacity .4s, box-shadow .4s; }
.as__strip span img { width: 100%; height: 100%; object-fit: cover; }
.as__strip span b { position: absolute; left: 6px; bottom: 4px; font: 700 11px/1 Doto, ui-monospace, monospace; color: #fff; text-shadow: 0 1px 4px #000; }
.as__strip span.is-done { opacity: .8; }
.as__strip span.is-at { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.as__speed { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 2px; margin: 0; padding: 4px; border-radius: 999px; background: #111112; box-shadow: inset 0 0 0 1px #ffffff14; font-size: 12px; color: var(--ac-ink-2); }
.as__speed span { display: grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 999px; }
.as__speed .is-on { background: #fff; color: #0a0a0b; }
/* the cursor that does the work */
.as__cur { position: absolute; z-index: 5; left: 0; top: 0; width: 22px; height: 22px; fill: #fff; stroke: #0a0a0b; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 4px 8px #00000080); pointer-events: none; transform: translate(var(--cx, 70%), var(--cy, 70%)); transition: transform 1s cubic-bezier(.65, 0, .35, 1), opacity .3s; opacity: 0; }
.as.is-run .as__cur { opacity: 1; }
.as__cur.is-click { animation: ac-click .3s ease; }
@keyframes ac-click { 50% { scale: .82; } }

/* ---------- walkthroughs: Library's card, in the dark ---------- */
.wt { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wt > li { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform 1s var(--ac-ease); transition-delay: calc(var(--i, 0) * .08s); }
.wt > li.is-in { opacity: 1; transform: none; }
.wt__a { display: flex; flex-direction: column; padding: 8px; border-radius: 24px; background: #111112; box-shadow: inset 0 0 0 1px #ffffff12; color: #fff; text-decoration: none; transition: transform .6s var(--ac-ease), box-shadow .4s ease, background-color .4s ease; will-change: transform; }
/* the cell holds still under the cursor and the card rises inside it, so the hover never flickers at the edge */
@media (hover: hover) {
  .wt > li:hover .wt__a { transform: translateY(-6px); background: #161617; box-shadow: inset 0 0 0 1px #ffffff26, 0 32px 64px -24px #000; }
  .wt > li:hover .wt__m :is(img, video) { transform: scale(1.04); }
  .wt > li:hover .wt__play { transform: none; opacity: 1; }
}
.wt__a:active { transform: translateY(-6px) scale(.99) !important; }
.wt__m { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #0a0a0b; isolation: isolate; transform: translateZ(0); -webkit-mask-image: -webkit-radial-gradient(white, black); }
.wt__m :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 1.2s var(--ac-ease), opacity .5s ease; backface-visibility: hidden; }
.wt__m video { opacity: 0; }
.wt__m video.is-playing { opacity: 1; }
.wt__play { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: #ffffffe6; color: #0a0a0b; box-shadow: 0 12px 32px -8px #000; transform: scale(.8); opacity: 0; transition: transform .5s var(--ac-spring), opacity .3s; }
.wt__play svg { width: 18px; height: 18px; margin-left: 3px; fill: currentColor; }
.wt__soon { position: absolute; z-index: 1; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; background: #000000a6; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px #ffffff1f; font-size: 12px; line-height: 16px; font-style: normal; color: #fff; }
.wt__soon i { width: 6px; height: 6px; border-radius: 50%; background: var(--ac-hot); }
.wt__f { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 0; }
.wt__f b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; line-height: 28px; font-weight: 400; letter-spacing: -.02em; }
.wt__f span { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #1e1e20; font-size: 12px; line-height: 16px; color: #c9c9cc; }
.wt__f span.is-pro { background: #fff; color: #0a0a0b; }
.wt__by { display: flex; align-items: center; gap: 8px; padding: 4px 16px 16px; font-size: 14px; line-height: 20px; color: var(--ac-ink-2); }
.wt__by svg { width: 13px; height: 13px; fill: currentColor; }
.wt-sk .wt__a { pointer-events: none; } .wt-sk .wt__m { animation: ac-sk 1.4s ease-in-out infinite; } @keyframes ac-sk { 50% { opacity: .5; } }
html[data-p="academy"] body.ds #walkthroughs .sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- the ending: the pencil that becomes a stylus (/academy/pencil.js on /fx3-core.js) ----------
   The black arrives as a card with rounded corners that opens to the whole screen (the core sets --rt, --rb);
   six steps fill on the left while the module's words change under them; at the end the stylus lowers
   under the heading and the waitlist. Then Questions, which lies under the black and is uncovered as it leaves. */
html[data-p="academy"] body.ds main.mp > .fx3 { position: relative; display: block; box-sizing: border-box; width: 100vw; max-width: none !important; height: 720vh; margin: 200px 0 0 calc(50% - 50vw) !important; padding: 0; z-index: 2; }
.fx3--pencil .fx3__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: #000; }
.fx3--pencil .fx3__pin::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 14%; background: linear-gradient(#000 15%, #0000); pointer-events: none; }
.fx3--pencil .fx3__pin::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 14%; background: linear-gradient(#0000, #000 85%); pointer-events: none; }
.fx3--pencil .fx3__c { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.fx3--pencil.is-live .fx3__c { opacity: 1; }
/* a plain block: it is not opened out of a card and nothing fades it in; it scrolls in and out like any block.
   (Its id is not #end: MCP's ending rule, copied in /academy/dark.css, clips #end into an opening card.) */
/* the left side: one headline at a time, as on MCP; the six steps as a thin rail at the screen's left edge */
.apn { position: absolute; inset: 0; z-index: 2; opacity: calc(1 - var(--out, 0) * 2.2); pointer-events: none; }
.apn__steps { --f: 0; position: absolute; left: 32px; top: 50%; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 40px; transform: translateY(-50%); }
.apn__rail { position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; border-radius: 2px; background: #ffffff1a; }
.apn__rail i { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--f) * 100%); border-radius: 2px; background: #fff; box-shadow: 0 0 14px #ffffff99; }
.apn__steps li { position: relative; }
.apn__steps li i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #111112; color: var(--ac-ink-2); box-shadow: inset 0 0 0 1px #ffffff26; font: 700 15px/1 Doto, ui-monospace, monospace; font-style: normal; transition: background-color .4s, color .4s, box-shadow .4s, transform .6s var(--ac-spring); }
.apn__steps li.is-done i { background: #fff; color: #0a0a0b; box-shadow: 0 0 16px #ffffff33; }
.apn__steps li.is-at i { background: #000; color: #fff; box-shadow: inset 0 0 0 2px #fff, 0 0 28px #ffffff59; transform: scale(1.15); }
.apn__steps li.is-at::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; box-shadow: 0 0 0 1px #ffffff40; animation: ac-ping 1.8s ease-out infinite; }
@keyframes ac-ping { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.apn__txt { position: absolute; left: max(128px, calc((100vw - 1280px) / 2)); top: 50%; width: min(460px, 36vw); height: 96px; margin: -48px 0 0; padding: 0; list-style: none; }
.apn__txt li { position: absolute; left: 0; right: 0; top: 50%; opacity: 0; transform: translateY(calc(-50% + 24px)); filter: blur(6px); transition: opacity .45s ease, transform .8s var(--ac-ease), filter .45s ease; }
.apn__txt li.is-at { opacity: 1; transform: translateY(-50%); filter: none; transition-delay: .1s; }
.apn__txt li.is-past { transform: translateY(calc(-50% - 24px)); }
.apn__txt b .h-mute { display: block; color: #ffffff59 !important; }
.apn__txt b { display: block; font-size: 40px; line-height: 44px; font-weight: 400; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
/* the last frame */
.fx3--pencil .fx3__copy { position: absolute; z-index: 3; left: 50%; top: 16%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 0; width: min(760px, 100% - 48px); text-align: center; opacity: var(--out, 0); transform: translate(-50%, calc((1 - var(--out, 0)) * -32px)); pointer-events: none; }
.fx3--pencil.is-out .fx3__copy { pointer-events: auto; }
.fx3--pencil .fx3__copy h2 { margin: 0; font-size: 40px; line-height: 44px; font-weight: 400; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.fx3--pencil .fx3__copy h2 .h-mute { display: block; color: #ffffff59 !important; }
.fx3--pencil .fx3__copy p { margin: 16px 0 0; font-size: 16px; line-height: 24px; color: var(--ac-ink-2); }
.fx3--pencil .fx3__copy .wl { margin-top: 24px; }
/* no WebGL or reduced motion: one screen, the words and the waitlist */
html[data-p="academy"] body.ds main.mp > .fx3:is(.is-still, .is-flat) { height: auto; }
.fx3--pencil:is(.is-still, .is-flat) .fx3__pin { position: relative; height: auto; min-height: 640px; padding: 120px 24px; border-radius: 40px; }
.fx3--pencil:is(.is-still, .is-flat) .apn { display: none; }
.fx3--pencil:is(.is-still, .is-flat) .fx3__copy { position: relative; left: auto; top: auto; margin: 0 auto; opacity: 1; transform: none; pointer-events: auto; }
.fx3--pencil.is-flat .fx3__c { display: none; }

/* ---------- widths ---------- */
@media (max-width: 1099px) {
  .as { grid-template-columns: minmax(0, 1fr); grid-template-rows: 40px auto auto auto; height: auto; } .as__panel { grid-column: 1; grid-row: 3; } .as__strip { grid-row: 4; } .as__speed { display: none; } .as__frame { width: 100%; }
  .wt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  html[data-p="academy"] body.ds main.mp > .fx3 { height: 600vh; margin-top: 120px !important; }
  .apn__steps li i { width: 32px; height: 32px; font-size: 13px; } .apn__steps li.is-at::after { inset: -6px; }
  .apn__steps { left: 24px; right: 24px; top: 96px; flex-direction: row; justify-content: space-between; gap: 0; transform: none; }
  .apn__rail { left: 16px; right: 16px; top: 15px; bottom: auto; width: auto; height: 2px; } .apn__rail i { height: 100%; width: calc(var(--f) * 100%); }
  .apn__txt { left: 24px; right: 24px; top: 176px; width: auto; height: 72px; margin: 0; } .apn__txt li { top: 0; transform: translateY(16px); } .apn__txt li.is-at { transform: none; } .apn__txt li.is-past { transform: translateY(-16px); } .apn__txt b { font-size: 28px; line-height: 32px; }
  .fx3--pencil .fx3__copy { top: 12%; } .fx3--pencil .fx3__copy h2 { font-size: 28px; line-height: 34px; }
  .as { padding: 12px; gap: 12px; border-radius: 24px; } .as__acts .as__btn--glass, .as__note, .as__lab, .as__ph, .as__up { display: none; } .as__id { padding-right: 12px; } .as__pane { display: none; } .as__panel { padding: 12px; } .as__seg { margin-bottom: 12px; } .as__strip span { width: 56px; height: 40px; } .as__cur { display: none; }
  html[data-p="academy"] body.ds main.mp { padding-top: 64px; }
  html[data-p="academy"] body.ds .mh__t { padding-top: 64px !important; }
  html[data-p="academy"] body.ds .mh__h { font-size: 32px; line-height: 36px; }
  .wt { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; } .wt > li { flex: 0 0 82%; scroll-snap-align: start; }
  html[data-p="academy"] body.ds #walkthroughs .sec__head { flex-direction: column; align-items: flex-start; }
  
}
@media (prefers-reduced-motion: reduce) {
  .wt > li { opacity: 1; transform: none; transition: none; }
  html[data-p="academy"] body.ds .mh__t > *, .as { opacity: 1; transform: none; animation: none; }
  .md__m, .as__clip, .ae__copy { transition: none; }
}

/* questions: a little air between them, as on MCP (that rule lives in /mcp/index.html, not in the shared files) */
html[data-p="academy"] body.ds .faq__r { display: flex; flex-direction: column; gap: 8px; }
