/* STEM interface. The approved scene declarations remain unchanged. */
#stem.stem-experience{position:relative;isolation:isolate;display:block;min-height:900px;overflow:hidden;padding:64px 4.5% 45px;background:#02275e;color:#fff}
#stem .stem-scene{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#02275ee6 0%,#02275e77 29%,transparent 55%),var(--stem-scene-image,none) center bottom/cover no-repeat}#stem .stem-scene:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#02275e55,transparent 25%,transparent 80%,#02275e55)}
#stem .stem-intro{position:relative;max-width:36%;z-index:2}
#stem .eyebrow{color:#9bd9ff;font-size:11px;font-weight:700;letter-spacing:.13em;margin-bottom:22px}
#stem h2{font-size:clamp(30px,2.8vw,46px);line-height:1.12;color:#fff;letter-spacing:-.035em;margin:0 0 24px}
#stem h2 em{color:#ffd90c;font-style:normal}
#stem .stem-intro-copy p{font-size:clamp(16px,1.05vw,18px);line-height:1.55;color:#e3edfc;margin:20px 0;max-width:620px}
#stem .stem-intro-copy strong{color:var(--yellow)}
#stem .stem-intro-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}
#stem .stem-intro-actions>a,#stem .stem-intro-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #81cfff;border-radius:999px;min-height:46px;padding:12px 18px;font-family:inherit;font-size:12px;font-weight:700;line-height:1.4;text-align:center;background:#02275e88;color:white;cursor:pointer;text-decoration:none}
#stem .stem-intro-actions a.stem-choose{background:#ffd90c;border-color:#ffd90c;color:#02275e}
#stem .stem-intro-actions svg{width:16px;height:16px;flex:none}
@media(max-width:700px){#stem .stem-intro-copy>p:first-of-type{display:none}}
#stem .stem-intro-actions a:hover,#stem .stem-intro-actions button:hover{box-shadow:0 0 16px #81cfff44}
/* Four inline cards; each disclosure belongs to its own card. */
#stem .stem-topics{position:absolute;inset:0;z-index:3;pointer-events:none;--stem-tile-width:clamp(155px,13vw,205px)}
#stem .stem-topic{position:relative;width:var(--stem-tile-width);border:1px solid #71ddff;border-radius:25px;background:linear-gradient(140deg,#105280dd,#02275eed);backdrop-filter:blur(9px);box-shadow:inset 0 0 20px #47cfff15,0 0 18px #47cfff33;color:#eafaff;pointer-events:auto;transition:width .32s ease,opacity .3s,box-shadow .3s;overflow:hidden;flex:none}
#stem .stem-topic-toggle{position:relative;width:100%;height:148px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:14px 10px 20px;border:0;border-radius:24px;background:transparent;color:inherit;cursor:pointer;font-family:inherit}
#stem .stem-topic-toggle>svg{width:36px;height:36px;color:#71ddff;flex:none}
#stem .stem-topic-toggle strong{font-size:clamp(16px,1.25vw,20px);line-height:1.25;white-space:nowrap;font-weight:800;letter-spacing:-.025em;color:#fff}
#stem .stem-topic-initial{font-size:1.9em;line-height:1;color:#ffd90c;vertical-align:-.05em;margin-right:1px}
#stem .stem-topic-toggle>span:not(.stem-topic-indicator){font-size:12px;line-height:1.4;color:#d8eaff}
#stem .stem-topic-indicator{position:absolute;bottom:6px;right:13px;font-size:16px;color:#9beaff}

#stem .stem-topic-column{position:absolute;top:28px;display:flex;flex-direction:column;align-items:flex-end;gap:30px;pointer-events:none}#stem .stem-topic-column-left{right:calc(54% - var(--stem-tile-width));top:54px}#stem .stem-topic-column-right{right:3%}
#stem .stem-topic.is-expanded{width:var(--stem-expand-width,300px);z-index:4;box-shadow:inset 0 0 24px #71ddff33,0 0 26px #71ddff66;background:#06335af5}
#stem .stem-topics.has-selection .stem-topic:not(.is-expanded){opacity:.68}
#stem .stem-topic-panel{display:grid;grid-template-rows:0fr;visibility:hidden;opacity:0;transition:grid-template-rows .32s ease,opacity .28s ease,visibility .32s}
#stem .stem-topic-panel>div{min-height:0;min-width:0;overflow:hidden}
#stem .stem-topic-panel.is-active{grid-template-rows:1fr;visibility:visible;opacity:1}
#stem .stem-topic-panel-inner{min-width:0;width:100%;box-sizing:border-box;padding:16px 17px 20px;border-top:1px solid #71ddff44}
#stem .stem-topic-panel p{font-size:14px;line-height:1.6;color:#e1efff;margin:0 0 13px}
#stem .stem-topic-panel .stem-topic-example{font-size:12px;line-height:1.6;color:#aecce9}
#stem .stem-topic-skills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;width:100%;gap:8px}
#stem .stem-topic-skills span{min-width:0;max-width:100%;box-sizing:border-box;white-space:normal;word-break:normal;hyphens:auto;padding:9px 10px;border-radius:9px;color:#082b50;background:#b7e5ff;font-size:12px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;opacity:0;transform:translateY(7px);transition:opacity .3s,transform .3s}
#stem .stem-topic-skills span:nth-child(2){background:#dbc9fb;transition-delay:.07s}#stem .stem-topic-skills span:nth-child(3){background:#a8e9de;transition-delay:.14s}#stem .stem-topic-skills span:nth-child(4){background:#ffe998;transition-delay:.21s}
#stem .stem-topic-panel.is-active .stem-topic-skills span{opacity:1;transform:none}
#stem button:focus-visible,#stem a:focus-visible{outline:3px solid #ffd90c;outline-offset:-4px}
@media(hover:hover){#stem .stem-topic:hover{box-shadow:0 0 26px #71ddff55}}
/* The original neural mesh and its existing one-second pulse. */
#stem .stem-knowledge{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:hidden}
#stem .stem-flow-halo,#stem .stem-neural-halo{fill:none;stroke:currentColor;stroke-width:7;opacity:.18;filter:blur(4px)}
#stem .stem-flow-line{fill:none;stroke:currentColor;stroke-width:1.25;opacity:.42}
#stem .stem-flow-dot{fill:#fff;filter:drop-shadow(0 0 4px currentColor) drop-shadow(0 0 7px currentColor);opacity:.85}
#stem .stem-flow-group{transition:opacity .3s}
#stem .stem-knowledge[data-active] .stem-flow-group{opacity:.3}
#stem .stem-knowledge[data-active=science] [data-flow=science],#stem .stem-knowledge[data-active=technology] [data-flow=technology],#stem .stem-knowledge[data-active=engineering] [data-flow=engineering],#stem .stem-knowledge[data-active=math] [data-flow=math]{opacity:1}
#stem .stem-scalp-mesh .stem-neural-line{fill:none;stroke:currentColor;stroke-width:.85;opacity:1}
#stem .stem-scalp-mesh .stem-neural-halo{stroke-width:3;opacity:.13;filter:blur(2px)}
#stem .stem-neuron{fill:currentColor;filter:drop-shadow(0 0 2px currentColor);animation:stem-neuron-breathe 7s ease-in-out infinite}
#stem .stem-neural-impulse{fill:currentColor;opacity:.9}
#stem .stem-scalp-mesh{animation:stem-scalp-pulse 1s ease-in-out infinite}
#stem .stem-knowledge[data-active=science] [data-neural-topic=science],#stem .stem-knowledge[data-active=technology] [data-neural-topic=technology],#stem .stem-knowledge[data-active=engineering] [data-neural-topic=engineering],#stem .stem-knowledge[data-active=math] [data-neural-topic=math]{filter:drop-shadow(0 0 3px currentColor)}
@keyframes stem-neuron-breathe{0%,100%{opacity:.5}50%{opacity:1}}
@keyframes stem-scalp-pulse{0%,100%{opacity:.62}50%{opacity:1}}
#stem .is-paused .stem-neuron,#stem .is-paused .stem-scalp-mesh{animation-play-state:paused}
#stem .stem-importance{position:relative;z-index:4;display:block;width:100%;box-sizing:border-box;margin-top:28px;padding:22px;border:1px solid #71ddff;border-radius:24px;background:#06335bd9;backdrop-filter:blur(14px);box-shadow:inset 0 0 24px #47cfff22,0 0 18px #47cfff22;color:#fff}#stem .stem-importance h2{font-size:clamp(22px,1.65vw,28px);color:#fff;margin:0 0 22px;line-height:1.2}#stem .stem-importance h2 br{display:none}#stem .stem-importance h2 em{color:#ffd90c;font-style:normal}
.stem-importance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}.stem-importance-grid article{display:flex;align-items:center;gap:14px;padding:0;border:0;border-radius:0;background:transparent}.stem-importance-grid :is(svg,.stem-benefit-icon){width:36px;height:36px;color:#71ddff;margin:0;flex:none}.stem-importance-grid article:nth-child(2) svg{color:#ffd90c}.stem-importance-grid article:nth-child(3) svg{color:#a6e6df}.stem-importance-grid article:nth-child(4) svg{color:#c7acff}.stem-importance-grid h3{font-size:16px;line-height:1.5;color:#fff;margin:0;max-width:250px}
.stem-explained{padding-top:55px;padding-bottom:55px;background:#f4f8fe;color:#02275e}.stem-explained h2{font-size:clamp(26px,2.7vw,38px);margin:0 0 30px;color:#02275e}.stem-explained-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 40px}.stem-explained-grid h3{font-size:20px;line-height:1.4;margin:0 0 12px;color:#02275e}.stem-explained-grid p{font-size:15px;line-height:1.8;color:#526783;margin:0}.stem-explained-grid a{color:#004b96;text-decoration:underline;text-underline-offset:3px}
#courses .stem-practice-heading{font-size:clamp(22px,2.2vw,30px);line-height:1.4;color:#02275e;margin:32px 0 22px}

#stem .stem-knowledge[data-active] .stem-flow-line{stroke-width:1.2}
#stem .stem-knowledge[data-active=science] [data-flow=science] .stem-flow-line,#stem .stem-knowledge[data-active=technology] [data-flow=technology] .stem-flow-line,#stem .stem-knowledge[data-active=engineering] [data-flow=engineering] .stem-flow-line,#stem .stem-knowledge[data-active=math] [data-flow=math] .stem-flow-line{opacity:.95;stroke-width:1.8}
#stem .stem-flow-dot{fill:currentColor;opacity:.8}
#stem .stem-flow-node{fill:currentColor;filter:drop-shadow(0 0 3px currentColor);opacity:.85}
#stem .stem-knowledge[data-active] .stem-neural-highlight{opacity:0;transition:opacity .3s}
#stem .stem-knowledge[data-active=science] .stem-neural-highlight[data-highlight=science],#stem .stem-knowledge[data-active=technology] .stem-neural-highlight[data-highlight=technology],#stem .stem-knowledge[data-active=engineering] .stem-neural-highlight[data-highlight=engineering],#stem .stem-knowledge[data-active=math] .stem-neural-highlight[data-highlight=math]{opacity:.7}
#stem .stem-neural-highlight{opacity:0;fill:none;stroke:currentColor;stroke-width:2;filter:drop-shadow(0 0 3px currentColor);pointer-events:none}
/* Stagger S relative to T and E relative to M by one third of a collapsed tile. */
#stem-topic-science{padding-left:0;padding-right:0}
@media(min-width:1451px){#stem .stem-topic-science,#stem .stem-topic-engineering{right:calc(var(--stem-tile-width) / 3)}}
@media(min-width:701px){#stem.stem-experience{--stem-scene-height:1080px;min-height:var(--stem-required-height,1080px)}#stem .stem-scene{bottom:auto;height:var(--stem-scene-height)}}
@media(min-width:701px) and (max-width:1000px){#stem.stem-experience{--stem-scene-height:1180px;min-height:1180px}}

@media(max-width:700px){#stem.stem-experience{min-height:0;padding:45px 6% 26px;display:flex;flex-direction:column}#stem .stem-scene{background-image:linear-gradient(0deg,#02275e 0%,#02275e00 40%,#02275e33 62%,#02275e 100%),var(--stem-scene-image,none);background-size:auto 570px;background-position:64% 170px;background-repeat:no-repeat}

#stem .stem-intro{max-width:100%}#stem h2{font-size:clamp(30px,6.1vw,36px);max-width:500px}#stem .eyebrow{font-size:10px;margin-bottom:16px}#stem .stem-intro-copy{margin-top:460px}#stem .stem-intro-copy p{font-size:14px;max-width:500px}#stem .stem-intro-actions{flex-direction:column;align-items:center;justify-content:center;text-align:center}#stem .stem-intro-actions a,#stem .stem-intro-actions button{width:min(100%,280px)}
#stem .stem-topics{position:absolute;inset:0;display:block;margin:0;pointer-events:none}#stem .stem-topic-column{display:contents}#stem .stem-topic{position:absolute;left:8%;top:calc(var(--stem-mobile-top,280px) + var(--mobile-index) * 82px);right:auto;width:clamp(104px,25vw,150px);border-radius:16px;overflow:visible}#stem .stem-topic-science{--mobile-index:0}#stem .stem-topic-technology{--mobile-index:1}#stem .stem-topic-engineering{--mobile-index:2}#stem .stem-topic-math{--mobile-index:3}#stem .stem-topic.is-expanded{width:clamp(104px,25vw,150px)}#stem .stem-topic-toggle{height:72px;gap:2px;padding:6px 3px 10px;border-radius:16px}#stem .stem-topic-toggle>svg{width:21px;height:21px}#stem .stem-topic-toggle strong{font-size:11px}#stem .stem-topic-initial{font-size:1.7em}#stem .stem-topic-toggle>span:not(.stem-topic-indicator){font-size:9px}#stem .stem-topic-indicator{font-size:13px;bottom:1px;right:7px}
#stem .stem-topic-panel{position:absolute;left:calc(-2vw);top:calc(var(--stem-mobile-details-top,750px) - var(--stem-mobile-top,280px) - var(--mobile-index) * 82px);width:88vw;border-radius:18px;background:#06335af5;box-shadow:0 8px 25px #00142c44;overflow:hidden}#stem .stem-topic-panel-inner{padding:18px}#stem .stem-topic-panel p{font-size:14px}#stem .stem-intro-copy{margin-top:calc(var(--stem-mobile-copy-gap,460px) + var(--stem-mobile-details-height,0px))}
#stem .stem-flow-line{opacity:.55}#stem .stem-flow-halo{opacity:.1}.stem-importance{padding-top:26px;padding-bottom:35px}.stem-importance-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stem-importance-grid article{padding:18px}.stem-importance-grid h3{font-size:15px}.stem-explained-grid{grid-template-columns:1fr;gap:26px}
}
@media(max-width:1450px){#stem .stem-importance{padding:20px}#stem .stem-importance h2 br{display:none}.stem-importance-grid{gap:20px 16px}.stem-importance-grid article{padding:0}.stem-importance-grid article:first-child{border-left:0}.stem-importance-grid h3{font-size:15px}}
@media(max-width:700px){#stem .stem-importance{margin-top:28px;padding:22px 18px;border-radius:24px}.stem-importance-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}.stem-importance-grid article{padding:0;align-items:flex-start;border:0;gap:10px}.stem-importance-grid :is(svg,.stem-benefit-icon){width:28px;height:28px}.stem-importance-grid h3{font-size:14px}#stem .stem-intro-copy p{font-size:16px;line-height:1.55}}
.stem-article-dialog{width:min(1000px,calc(100vw - 32px));max-width:1000px;max-height:88dvh;padding:0;border:1px solid #8ebcdb;border-radius:24px;background:#f4f8fe;color:#0b1b33;box-shadow:0 24px 100px #00152f66;overflow:hidden}
.stem-article-dialog::backdrop{background:#001735b8;backdrop-filter:blur(5px)}
.stem-article-dialog[open]{display:flex;flex-direction:column;animation:stem-article-in .25s ease}
.stem-article-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 28px;border-bottom:1px solid #c9d9ed;background:#f4f8fe;flex:none}
.stem-article-header h2{font-size:clamp(21px,2vw,30px);line-height:1.25;margin:0;color:#004b96}.stem-article-close{flex:none;border:0;border-radius:50%;width:40px;height:40px;font-size:28px;background:#e0ebf8;color:#004b96;cursor:pointer}
.stem-article-scroll{overflow:auto;overscroll-behavior:contain}.stem-article-dialog .stem-explained{padding:28px}.stem-article-dialog .stem-explained-grid article{border-bottom:1px solid #c9d9ed;padding-bottom:24px}.stem-article-dialog .stem-explained-grid p{color:#344d6d;line-height:1.65}.stem-article-dialog :focus-visible{outline:3px solid #004b96;outline-offset:3px}
@keyframes stem-article-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:700px){.stem-article-header{padding:18px}.stem-article-dialog .stem-explained{padding:20px}.stem-article-dialog{max-height:calc(100dvh - 24px);width:calc(100vw - 24px)}}
@media(prefers-reduced-motion:reduce){.stem-article-dialog[open]{animation:none}}

@media(prefers-reduced-motion:reduce){#stem .stem-topic,#stem .stem-topic-panel,#stem .stem-topic-skills span{transition:none}#stem .stem-neuron,#stem .stem-scalp-mesh{animation:none;opacity:1}}

#stem.is-media-ready{--stem-scene-image:url('assets/stem-boy-scene-serik-v3.webp')}
@media(min-width:701px) and (max-width:1450px){#stem .stem-topics{--stem-tile-width:clamp(110px,13vw,190px)}#stem .stem-topic-toggle strong{font-size:clamp(12px,1.25vw,18px)}#stem .stem-topic-toggle>span:not(.stem-topic-indicator){font-size:11px}#stem .stem-intro{max-width:36%}}
@media(min-width:701px){#stem .stem-topic-technology{left:calc(var(--stem-tile-width) / 2)}#stem .stem-topic-engineering{right:calc(var(--stem-tile-width) / 2)}}
