:root{--paper:#f8f7f2;--ink:#203e35;--muted:#63756b;--line:#d9dfd4;--sage:#dce7c8;--lime:#d2e790;--cube-size:58px;--cube-half:29px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:28px}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Sans Thai',Tahoma,Arial,sans-serif;line-height:1.65}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-underline-offset:4px}button{font:inherit;cursor:pointer}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #bc592b;outline-offset:5px}button{color:inherit}.wrap{width:min(1240px,calc(100% - 80px));margin-inline:auto}header{border-bottom:1px solid var(--line)}.nav{min-height:98px;display:flex;align-items:center;justify-content:space-between;gap:32px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:25px;font-weight:800;letter-spacing:2.5px;line-height:1.2}.brand small{display:block;font-size:8px;letter-spacing:2.9px;font-weight:500;margin-top:5px}.brand-icon{display:grid;grid-template-columns:repeat(2,1fr);gap:3px;width:29px;height:29px;transform:rotate(-9deg)}.brand-icon i{background:var(--ink);border-radius:2px}.brand-icon i:nth-child(2){background:#a8bf7d}.brand-icon i:nth-child(3){background:#e5ac8b}.navlinks{display:flex;gap:30px;font-size:13px}.navlinks a{text-decoration:none}.navlinks a:hover{color:#708843}.nav-cta{font-size:13px;border:1px solid var(--ink);padding:10px 17px;border-radius:5px;text-decoration:none;display:flex;gap:28px;align-items:center}.nav-cta:hover{background:var(--ink);color:var(--paper)}.skip{position:fixed;top:-100px;left:16px;background:white;padding:14px;z-index:80}.skip:focus{top:10px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:600;display:flex;align-items:center;gap:9px}.tiny-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#72934e;flex:none}.hero{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:24px;min-height:690px;padding-top:64px;padding-bottom:68px}.hero-copy{z-index:1}h1{font-size:clamp(42px,4.4vw,64px);line-height:1.4;letter-spacing:-1.8px;font-weight:500;margin:22px 0 22px}h1>span{color:#6e8750}.title-dot{color:#d99876}.hero-description{color:var(--muted);font-size:15px;line-height:1.95;margin:0 0 30px}.hero-actions{display:flex;align-items:center;gap:23px;flex-wrap:wrap}.button-primary{display:inline-flex;align-items:center;gap:36px;background:var(--ink);color:white;border:1px solid var(--ink);border-radius:5px;text-decoration:none;padding:13px 22px;font-size:14px;transition:background .2s,transform .2s}.button-primary:hover{background:#355746;transform:translateY(-2px)}.button-text{display:inline-flex;align-items:center;gap:9px;border:0;padding:8px 0;background:transparent;font-size:12px}.button-text:hover{text-decoration:underline;text-underline-offset:4px}.play-icon{display:grid;place-items:center;border:1px solid #bec9b7;border-radius:50%;width:26px;height:26px;font-size:17px;padding-left:2px}.hero-note{font-size:10px;color:#75816d;margin:25px 0 0;display:flex;gap:8px;align-items:center}.hero-art{position:relative;height:530px;isolation:isolate}.art-grid{position:absolute;inset:6%;background-image:linear-gradient(#c5cfbb40 1px,transparent 1px),linear-gradient(90deg,#c5cfbb40 1px,transparent 1px);background-size:36px 36px;mask-image:radial-gradient(ellipse,#000 20%,transparent 70%)}.orbital-ring{position:absolute;border:1px solid #cbd4bd;border-radius:50%;inset:12% 2%;transform:rotate(-32deg) scaleY(.58)}.ring-two{transform:rotate(42deg) scaleY(.77);inset:14% 8%}.hero-art:after{content:'';position:absolute;z-index:-1;width:220px;height:42px;border-radius:50%;background:#7a8d6729;filter:blur(13px);left:calc(50% - 110px);bottom:99px}.art-caption{position:absolute;top:20px;right:3%;font-size:9px;letter-spacing:1.5px;line-height:1.9;color:#7c8a71}.art-bottom{position:absolute;bottom:17px;left:11%;right:4%;display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:1.5px;line-height:1.9;color:#7c8a71}.art-spark{font-size:50px;color:#b4c797;line-height:1}.floating-label{position:absolute;display:flex;align-items:center;gap:10px;font-size:9px;letter-spacing:1.1px;padding:8px 14px;background:var(--paper);border:1px solid #d7dece;border-radius:5px;box-shadow:0 5px 20px #203e3506}.floating-label>span{font-family:Georgia,serif;font-size:23px;letter-spacing:0}.label-bio{top:102px;left:2%;transform:rotate(-8deg)}.label-math{top:151px;right:-2%;transform:rotate(8deg)}.label-chem{bottom:99px;left:1%;transform:rotate(6deg)}.label-physics{bottom:122px;right:3%;transform:rotate(-7deg)}
.cube-stage{perspective:1000px;display:grid;place-items:center;pointer-events:none}.hero-stage{position:absolute;inset:0;padding-bottom:6px}.cube{position:relative;width:0;height:0;transform-style:preserve-3d}.hero-cube{transform:rotateX(-23deg) rotateY(-34deg) rotateZ(-8deg)}.cubie{width:var(--cube-size);height:var(--cube-size);position:absolute;top:calc(var(--cube-half) * -1);left:calc(var(--cube-half) * -1);transform-style:preserve-3d;transform:translate3d(var(--x),var(--y),var(--z))}.face{position:absolute;inset:0;border:3px solid #263d36;background:#31483e;border-radius:5px;backface-visibility:hidden;box-shadow:inset 0 0 0 1px #ffffff14}.face-front{transform:translateZ(var(--cube-half))}.face-back{transform:rotateY(180deg) translateZ(var(--cube-half))}.face-right{transform:rotateY(90deg) translateZ(var(--cube-half))}.face-left{transform:rotateY(-90deg) translateZ(var(--cube-half))}.face-top{transform:rotateX(90deg) translateZ(var(--cube-half))}.face-bottom{transform:rotateX(-90deg) translateZ(var(--cube-half))}.face.sticker-green{background:linear-gradient(135deg,#c6dc95,#a8c574)}.face.sticker-cream{background:linear-gradient(135deg,#fff3d5,#eadcaf)}.face.sticker-coral{background:linear-gradient(135deg,#efb797,#d99374)}.face.sticker-lilac{background:linear-gradient(135deg,#c7b8e2,#a997c7)}.face.sticker-blue{background:linear-gradient(135deg,#b9d6e2,#86b5ca)}.face.sticker-yellow{background:linear-gradient(135deg,#f3da94,#dbbd67)}
.subject-ribbon{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#efefe6}.ribbon-inner{display:flex;align-items:center;justify-content:space-between;min-height:70px;gap:24px;font-size:12px}.ribbon-inner>span{color:#77816d;font-size:11px}.ribbon-inner>div{display:flex;gap:30px;align-items:center}.ribbon-inner i{font-style:normal;color:#93a477;font-size:16px}.subjects{padding-top:83px;padding-bottom:73px}.section-heading{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:34px}h2{font-size:clamp(26px,2.65vw,38px);line-height:1.45;font-weight:500;letter-spacing:-.7px;margin:12px 0 0}.section-heading p{font-size:12px;color:var(--muted);margin:0 0 5px}.subject-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.subject-card{padding:22px 22px 0;border:1px solid #d7dfcb;background:#eef3e5;border-radius:10px;text-decoration:none;transition:transform .25s,box-shadow .25s;min-width:0}.subject-card:hover{transform:translateY(-7px);box-shadow:0 13px 25px #203e3510}.mathematics{background:#eaf0f5;border-color:#d4dfe6}.chemistry{background:#f0ebf5;border-color:#e0d6e8}.physics{background:#f6eee3;border-color:#e6d9c8}.english{font-size:9px;letter-spacing:1.8px;color:#6c7d5e}.subject-card h3{font-size:24px;letter-spacing:-.5px;font-weight:500;margin:3px 0 11px}.subject-card p{font-size:12px;line-height:1.85;color:#637161;min-height:48px;margin:0 0 25px}.subject-art{position:relative;height:138px;margin:7px 0 14px}.bio-art:before{content:'';position:absolute;inset:15px 30px 8px;border:2px solid #8da86b;border-radius:49% 43% 52% 44%;background:#d3e4b6;transform:rotate(-18deg);box-shadow:inset 0 0 0 8px #e4efd4}.cell-core{position:absolute;left:calc(50% - 23px);top:43px;width:46px;height:46px;border:2px solid #7a945a;border-radius:46%;background:#a6c27e;box-shadow:inset 0 0 0 7px #bed397}.bio-art>span{position:absolute;background:#87a165;border-radius:50%;width:7px;height:7px;left:30%;top:44px}.bio-art>span:nth-of-type(2){left:64%;top:84px;width:11px;height:7px;transform:rotate(-20deg)}.bio-art>span:nth-of-type(3){left:34%;top:91px;width:11px;height:7px;transform:rotate(30deg)}.math-circle{position:absolute;width:93px;height:93px;left:calc(50% - 59px);top:20px;background:#cbdce9;border:1px solid #819db6;border-radius:50%}.math-square{position:absolute;width:79px;height:79px;left:calc(50% - 18px);top:32px;border:1px solid #627f9b;transform:rotate(22deg);background:#a9c3d25c}.math-pi{position:absolute;font:72px Georgia,serif;color:#4e6e86;top:12px;left:calc(50% - 18px)}.atom{position:absolute;border-radius:50%;background:#c1acd6;box-shadow:inset -5px -7px 0 #a48abd50;border:1px solid #9676b0}.a1{width:64px;height:64px;top:33px;left:calc(50% - 32px)}.a2{width:37px;height:37px;top:9px;left:calc(50% + 39px);background:#ded2eb}.a3{width:42px;height:42px;top:86px;left:calc(50% - 76px);background:#ddd0e9}.bond{position:absolute;height:8px;width:65px;background:#b49cc9;left:50%;top:48px;transform:rotate(-37deg);transform-origin:left}.b2{left:calc(50% - 52px);top:98px;transform:rotate(-35deg)}.orbit-line{position:absolute;left:calc(50% - 80px);top:39px;width:160px;height:59px;border:1px solid #b59365;border-radius:50%;transform:rotate(-28deg)}.line-two{transform:rotate(57deg)}.planet{position:absolute;border-radius:50%;width:57px;height:57px;left:calc(50% - 28px);top:40px;background:#dcb077;border:1px solid #b28a53;box-shadow:inset -7px -6px 0 #c89d6440}.satellite{position:absolute;left:calc(50% + 55px);top:32px;width:18px;height:18px;background:#a87f47;border:3px solid #e5c69c;border-radius:50%}.subject-note{font-size:11px;color:#7b8573;display:flex;align-items:center;gap:8px;margin:24px 0 0}.how-section{background:#e9eedf;border-block:1px solid #dbe2ce;padding:73px 0}.how-grid{display:grid;grid-template-columns:1fr 1fr;gap:90px}.how-intro p{font-size:13px;color:#6a775f;line-height:1.9}.steps{list-style:none;margin:0;padding:0}.steps li{display:flex;gap:25px;padding:23px 0;border-bottom:1px solid #cbd5be}.steps li:first-child{padding-top:0}.steps li:last-child{border:0;padding-bottom:0}.step-number{font-family:Georgia,serif;font-size:31px;line-height:1.2;color:#899d6b}.steps h3{font-size:18px;font-weight:500;margin:0 0 7px}.steps p{font-size:12px;color:#6c7a61;line-height:1.85;margin:0}.connected-dots{display:flex;align-items:center;margin-top:34px;gap:35px}.connected-dots span{position:relative;width:17px;height:17px;background:#a6bd7b;border-radius:3px}.connected-dots span:after{content:'';position:absolute;top:8px;left:17px;width:35px;height:1px;background:#acb89b}.connected-dots span:nth-child(2){background:#d6a48b;transform:rotate(15deg)}.connected-dots span:nth-child(3){background:#b5a5ca}.connected-dots span:nth-child(3):after{display:none}.connected-dots i{font-size:30px;font-style:normal}.about-section{padding-block:83px;display:grid;grid-template-columns:1fr 1fr;gap:90px}.about-heading p{font-size:12px;color:var(--muted);line-height:1.9;margin:20px 0}.legacy-link{font-size:12px}.legacy-link span{margin-left:20px}.faq details{border-bottom:1px solid var(--line);padding:19px 0}.faq details:first-child{padding-top:8px}.faq summary{font-size:14px;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px}.faq summary::-webkit-details-marker{display:none}.faq summary>span{font-size:22px;font-weight:300;transition:transform .2s}.faq details[open] summary>span{transform:rotate(45deg)}.faq p{font-size:12px;color:var(--muted);line-height:1.9;padding-right:20px;margin:14px 0 3px}footer{border-top:1px solid var(--line);padding:30px 0}.footer-content{display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-content .brand{font-size:18px}.footer-content .brand small{font-size:6px}.footer-content .brand-icon{width:24px;height:24px}.footer-content p{font-size:11px;color:#78846f}.private{font-size:10px;display:flex;align-items:center;gap:8px;color:#78846f}
.intro[hidden]{display:none!important}.intro{position:fixed;inset:0;z-index:100;background:var(--paper);display:flex;align-items:center;justify-content:center;overflow:hidden}.intro-brand{position:absolute;top:38px;left:40px;letter-spacing:4px;font-size:21px;font-weight:700}.intro-brand span{display:block;font-size:7px;letter-spacing:3.5px;margin-top:2px}.intro-center{text-align:center;width:100%;max-width:650px;padding:30px}.intro-stage{height:300px;margin-bottom:25px}.intro-cube{transform:rotateX(-22deg) rotateY(-35deg);animation:cube-spin 4.8s cubic-bezier(.3,.15,.2,1) both}.intro-cube .cubie{animation:cube-separate 4.75s cubic-bezier(.2,.6,.3,1) both}.intro-kicker{font-size:9px;letter-spacing:2.5px;color:#8b9a76;margin:0}.intro-center h2{font-size:24px;font-weight:400;margin:10px 0 7px}.intro-center>p:last-of-type{font-size:11px;color:#8a947f;margin:0}.intro-progress{width:150px;height:2px;background:#e2e7d8;margin:27px auto 0;overflow:hidden}.intro-progress span{display:block;height:100%;background:#839e62;transform-origin:left;animation:intro-progress 4.7s linear both}.skip-intro{position:absolute;bottom:34px;right:40px;border:1px solid #d3dcc7;border-radius:4px;padding:9px 14px;background:transparent;font-size:11px;display:flex;gap:25px;align-items:center}.intro-active{overflow:hidden}.intro.is-leaving{animation:intro-leave .35s ease both}.intro.is-leaving .intro-center{transition:opacity .25s;opacity:0}.page-enter{animation:page-enter .55s ease both}@keyframes cube-spin{0%{transform:rotateX(-22deg) rotateY(-35deg) rotateZ(0)}65%{transform:rotateX(-22deg) rotateY(285deg) rotateZ(-4deg)}100%{transform:rotateX(-13deg) rotateY(380deg) rotateZ(8deg)}}@keyframes cube-separate{0%,52%{transform:translate3d(var(--x),var(--y),var(--z))}72%{transform:translate3d(var(--mid-x),var(--mid-y),var(--mid-z)) rotateX(var(--rx)) rotateZ(var(--rz))}100%{transform:translate3d(var(--end-x),var(--end-y),var(--end-z)) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz))}}@keyframes intro-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes intro-leave{to{opacity:0;visibility:hidden}}@keyframes page-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1450px){.hero{gap:70px}.hero-art{height:570px}}
@media(max-width:1050px){.wrap{width:calc(100% - 56px)}.navlinks{gap:18px}.hero{min-height:620px;gap:15px}h1{font-size:48px}.hero-art{height:470px}.hero-stage{transform:scale(.85)}.floating-label{padding:5px 9px;font-size:8px}.subject-grid{gap:12px}.subject-card{padding:17px 16px 0}.subject-card h3{font-size:21px}.subject-card p{font-size:11px}.bio-art:before{inset-inline:17px}.how-grid,.about-section{gap:50px}.hero-actions{gap:15px}.hero-note{font-size:9px}}
@media(max-width:780px){.wrap{width:calc(100% - 40px)}.nav{min-height:81px}.navlinks{display:none}.brand{font-size:21px}.nav-cta{font-size:11px;padding:9px 13px;gap:15px}.hero{padding-top:42px;padding-bottom:45px;grid-template-columns:1fr;gap:8px}.hero-copy{max-width:540px}h1{font-size:50px;line-height:1.35}.hero-description{font-size:14px}.hero-art{height:420px;max-width:520px;width:100%;justify-self:center}.hero-stage{transform:scale(.9)}.art-caption{top:1px}.floating-label.label-bio{top:68px}.floating-label.label-math{top:100px;right:1%}.label-chem{bottom:75px}.label-physics{bottom:92px}.art-bottom{bottom:0}.hero-art:after{bottom:68px}.ribbon-inner{justify-content:center;min-height:60px}.ribbon-inner>span{display:none}.ribbon-inner>div{gap:23px;font-size:11px}.subjects{padding-top:54px;padding-bottom:50px}.section-heading{align-items:start;gap:20px}.section-heading p{font-size:11px;max-width:160px}.subject-grid{grid-template-columns:repeat(2,1fr);gap:15px}.subject-card{padding:20px 20px 0}.subject-card h3{font-size:25px}.subject-card p{font-size:12px}.subject-art{height:140px;max-width:230px;width:100%;margin-inline:auto}.how-grid,.about-section{grid-template-columns:1fr;gap:36px}.how-section{padding-block:50px}.connected-dots{display:none}.how-intro h2{font-size:34px}.steps li{padding-block:20px}.about-section{padding-block:50px}.footer-content{flex-wrap:wrap}.footer-content p{margin:0}.private{width:100%;margin-top:1px}.subject-note{align-items:start;line-height:1.8}.subject-note .tiny-dot{margin-top:6px}.intro-brand{top:25px;left:25px}.skip-intro{bottom:25px;right:25px}}
@media(max-width:430px){.wrap{width:calc(100% - 36px)}.eyebrow{font-size:8px;letter-spacing:1.2px}h1{font-size:41px;letter-spacing:-1.4px}.hero-description{font-size:13px;line-height:1.9}.hero-note{font-size:9px;align-items:start;line-height:1.7}.hero-note .tiny-dot{margin-top:4px}.hero-actions{gap:17px}.button-primary{padding:12px 17px;font-size:12px;gap:24px}.button-text{font-size:10px}.hero-art{height:365px;margin-top:14px}.hero-stage{transform:scale(.75)}.label-bio{left:0}.floating-label.label-bio{top:54px}.floating-label.label-math{top:83px}.label-chem{bottom:61px}.label-physics{bottom:75px}.art-bottom{font-size:7px}.art-caption{font-size:7px}.art-spark{font-size:36px}.hero-art:after{bottom:64px;width:180px;left:calc(50% - 90px)}.ribbon-inner>div{gap:15px;font-size:10px}.ribbon-inner i{font-size:11px}.section-heading{display:block}.section-heading h2{font-size:27px}.section-heading p{max-width:none;margin-top:13px}.section-heading p br{display:none}.subject-grid{gap:11px}.subject-card{padding:14px 12px 0}.subject-card h3{font-size:20px;letter-spacing:-.6px}.subject-card p{font-size:10px;line-height:1.85;min-height:56px;margin-bottom:15px}.english{font-size:7px;letter-spacing:1px}.subject-art{height:126px;transform:scale(.8);margin-top:-4px;margin-bottom:0}.bio-art:before{inset-inline:4px}.subject-note{font-size:9px}.how-intro h2{font-size:30px}.steps h3{font-size:17px}.steps p{font-size:11px}.intro-stage{height:270px;transform:scale(.8);margin-bottom:-6px}.intro-center h2{font-size:20px}.intro-center{padding:15px}.intro-kicker{font-size:8px}.footer-content .brand{font-size:17px}.footer-content p{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.intro{display:none!important}.subject-card:hover,.button-primary:hover{transform:none}.button-text{display:none}}
/* The opening follows the supplied cube clip: spin, layer turns, energy, separation.
   Energy fades are smooth, rather than rapid flashes. */
.intro{background:#070b0d;color:#edf2e7}.intro:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 42%,#1b293140 0%,transparent 58%);pointer-events:none}.intro-center{position:relative;isolation:isolate}.intro-brand{color:#dae5d2}.intro-stage{position:relative;z-index:2}.intro .intro-kicker{color:#9fb292}.intro-center>p:last-of-type{color:#96a28f}.intro-progress{background:#27302c}.intro-progress span{background:#cfdf8c}.skip-intro{color:#c4d0bc;border-color:#3b473a;background:#10181180}.skip-intro:hover{background:#233023}.cube-layer{position:absolute;width:0;height:0;transform-style:preserve-3d}.intro-cube .face{border-color:#18201e;box-shadow:inset 0 0 0 1px #ffffff60}.face.neon-cyan{background:#45dce6}.face.neon-magenta{background:#db5dd7}.face.neon-yellow{background:#e9e955}.face.neon-green{background:#82d951}.face.neon-orange{background:#eea14a}.face.neon-red{background:#e9615c}.face.neon-white{background:#f0edda}.layer-0{animation:turn-top 4.75s ease-in-out both}.layer-2{animation:turn-bottom 4.75s ease-in-out both}.intro-effects{position:absolute;top:30px;left:0;right:0;height:300px;pointer-events:none;z-index:1}.energy-halo{position:absolute;width:220px;height:220px;left:calc(50% - 110px);top:40px;border-radius:50%;background:radial-gradient(circle,#e9bf8f18,transparent 65%);box-shadow:0 0 90px #658cf411;animation:energy-build 4.75s ease both}.energy-lines{position:absolute;width:800px;height:500px;max-width:none;left:calc(50% - 400px);top:-100px;filter:drop-shadow(0 0 5px #bacaee);animation:energy-build 4.75s ease both}.energy-lines path{stroke-width:1.5;opacity:.65}.energy-cyan{stroke:#75d9f1}.energy-purple{stroke:#c69dec}.energy-gold{stroke:#edc981}.energy-sparks{position:absolute;left:50%;top:150px}.energy-sparks i{position:absolute;width:2px;height:9px;background:#e3b676;border-radius:50%;box-shadow:0 0 5px #e3b67655;opacity:0;animation:spark-drift 2.6s var(--spark-delay) ease-out both}.energy-flare{position:absolute;left:calc(50% - 160px);top:100px;width:320px;height:100px;transform:scale(0);background:radial-gradient(ellipse,#d9d3f080,#8fbbe936 30%,transparent 70%);border-radius:50%;animation:energy-release 4.75s ease both}.intro-cube{animation-timing-function:linear}.intro-cube .cubie{animation-timing-function:cubic-bezier(.25,.6,.25,1)}
@keyframes cube-spin{0%{transform:rotateX(-22deg) rotateY(-35deg)}36%{transform:rotateX(-18deg) rotateY(85deg)}72%{transform:rotateX(-20deg) rotateY(220deg)}100%{transform:rotateX(-14deg) rotateY(315deg) rotateZ(7deg)}}
@keyframes turn-top{0%,16%{transform:rotateY(0)}30%,40%{transform:rotateY(90deg)}54%,100%{transform:rotateY(0)}}
@keyframes turn-bottom{0%,26%{transform:rotateY(0)}42%,57%{transform:rotateY(-90deg)}70%,100%{transform:rotateY(0)}}
@keyframes cube-separate{0%,76%{transform:translate3d(var(--x),var(--y),var(--z))}84%{transform:translate3d(var(--mid-x),var(--mid-y),var(--mid-z))}100%{transform:translate3d(var(--end-x),var(--end-y),var(--end-z)) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz))}}
@keyframes energy-build{0%,38%{opacity:0;transform:scale(.7)}60%{opacity:.35;transform:scale(.9)}82%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(1.35)}}
@keyframes spark-drift{0%{transform:translate(0,0) rotate(var(--sr));opacity:0}20%{opacity:.65}100%{transform:translate(var(--sx),var(--sy)) rotate(var(--sr));opacity:0}}
@keyframes energy-release{0%,76%{transform:scale(0);opacity:0}89%{transform:scale(1.7);opacity:.7}100%{transform:scale(3);opacity:0}}
@media(max-width:430px){.intro-effects{top:0;transform:scale(.8)}}
@media(prefers-reduced-motion:reduce){.intro{display:none!important}.cube-layer,.intro-cube,.intro-cube .cubie,.energy-halo,.energy-lines,.energy-sparks i,.energy-flare{animation:none!important}}

#main:focus{outline:none}.floating-label>span svg{width:24px;height:24px;vertical-align:middle}.connected-dots svg{width:26px;height:26px}.legacy-link svg{vertical-align:middle}
/* Compact landing and the honest, not-yet-enabled account entry. */
.hero{min-height:590px;padding-top:42px;padding-bottom:42px}.hero h1{margin-bottom:18px}.hero-description{margin-bottom:28px}.hero-art{height:460px}.subjects{padding-top:45px;padding-bottom:55px}.section-heading{margin-bottom:26px}.section-heading h2{margin:0}.subject-card h3{margin-bottom:26px}.subject-art{margin-bottom:12px}.membership-section{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:25px;padding-block:35px}.membership-section h2{font-size:25px;margin:0}.member-status{font-size:12px;color:var(--muted);margin:5px 0 0}.membership-actions{display:flex;gap:12px}.membership-actions button{border:1px solid #d8decf;padding:12px 20px;border-radius:5px;background:#eeefe7;color:#909886;cursor:not-allowed;font-size:13px}.footer-content .legacy-link{font-size:11px}.hero .floating-label{background:var(--paper)}
@media(max-width:780px){.hero{min-height:0;gap:15px;padding-top:35px;padding-bottom:30px}.hero-art{height:350px}.hero-stage{transform:scale(.75)}.subjects{padding-top:28px;padding-bottom:35px}.subject-card h3{margin-bottom:20px}.membership-section{flex-wrap:wrap}.membership-actions{width:100%}.membership-actions button{flex:1}.label-chem{bottom:60px}.label-physics{bottom:65px}}
@media(max-width:430px){.hero h1{font-size:44px}.hero-description{font-size:11px}.hero-art{height:325px}.hero-stage{transform:scale(.7)}.subject-card h3{font-size:20px}.membership-section{padding-block:25px}.hero-actions{gap:20px}}
/* Sharp reference artwork, arranged biology / math / chemistry / physics. */
.subject-art.subject-icon{width:min(100%,180px);height:auto;aspect-ratio:1;margin:12px auto 20px;border-radius:18px;transform:none;max-width:none}
.icon-mathematics{background-position:0% center}.icon-physics{background-position:33.333333% center}.icon-chemistry{background-position:66.666667% center}.icon-biology{background-position:100% center}
.intro-cube,.intro-cube .cubie,.cube-layer{animation:none!important}.cubie{transform-style:preserve-3d}.hero-cube{will-change:transform}.motion-toggle{border-left:1px solid #cbd3c3;padding-left:16px}.motion-toggle[aria-pressed=true]{color:#7b8f5b}
@media(max-width:780px){.subject-art.subject-icon{width:min(100%,190px);margin:10px auto 20px}.hero-actions{gap:16px}}
@media(max-width:430px){.subject-art.subject-icon{width:100%;margin:9px auto 14px;border-radius:14px}.hero-actions{gap:16px}.motion-toggle{padding-left:12px}.hero-stage{transform:scale(.7)}}
@media(prefers-reduced-motion:reduce){.motion-toggle{display:none}}
.floating-label>span.mini-icon{display:block;width:32px;height:32px;border-radius:6px}.floating-label{gap:8px;padding:6px 11px}.floating-label .mini-icon.icon-biology{background-position:100% center}.floating-label .mini-icon.icon-mathematics{background-position:0% center}.floating-label .mini-icon.icon-chemistry{background-position:66.666667% center}.floating-label .mini-icon.icon-physics{background-position:33.333333% center}
@media(max-width:430px){.floating-label>span.mini-icon{width:27px;height:27px}.floating-label{padding:4px 7px;gap:5px}}

.card-scene {
  display: grid;
  min-width: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .card-scene {
    perspective: 850px;
    --lift: 0px;
  }

  .card-scene:focus-within {
    --lift: -5px;
  }

  .card-scene .subject-card:focus-visible {
    opacity: 1;
    transform: translateY(var(--lift));
  }

  .card-scene .subject-card {
    transform: translateY(calc(var(--entry, 0) * 36px + var(--lift)))
      rotateX(calc(var(--entry, 0) * 16deg - var(--pointer-y, 0) * 9deg))
      rotateY(calc(var(--pointer-x, 0) * 11deg));
    transform-style: preserve-3d;
    opacity: calc(1 - var(--entry, 0) * .23);
    transition: transform 150ms ease-out, box-shadow 220ms ease-out;
  }

  .subject-card > h3 {
    translate: 0 0 12px;
  }

  .subject-card > .subject-art {
    translate: 0 0 28px;
  }

  @media (hover: hover) {
    .card-scene:hover {
      --lift: -8px;
    }

    .card-scene:hover .subject-card {
      box-shadow: 0 18px 32px #203e3529;
    }
  }

  .card-scene .subject-card:active {
    transform: translateY(calc(var(--entry, 0) * 36px)) scale(.98);
  }

  .hero-stage {
    translate: calc(var(--pointer-x, 0) * 15px)
      calc(var(--pointer-y, 0) * 12px + var(--hero-scroll, 0) * 72px);
    rotate: y calc(var(--pointer-x, 0) * 9deg + var(--hero-scroll, 0) * 15deg);
    transition: translate 180ms ease-out, rotate 180ms ease-out;
  }

  .hero-art .floating-label {
    translate: calc(var(--pointer-x, 0) * -17px)
      calc(var(--pointer-y, 0) * -13px - var(--hero-scroll, 0) * 39px);
    transition: translate 220ms ease-out;
  }

  .hero-art .orbital-ring {
    translate: calc(var(--pointer-x, 0) * 7px) calc(var(--hero-scroll, 0) * 22px);
    transition: translate 200ms ease-out;
  }

  @supports (animation-timeline: view()) {
    .section-heading,
    .membership-section {
      animation: depth-enter linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 95%;
    }

    @keyframes depth-enter {
      from { transform: perspective(900px) translateY(24px) rotateX(12deg); }
      to { transform: none; }
    }
  }
}

.subject-art.subject-icon.has-model {
  background: radial-gradient(ellipse at 36% 23%, #ffffffdb, transparent 69%),
    linear-gradient(145deg, #ffffffa8, var(--model-tint));
  border: 1px solid #203e351a;
  box-shadow: inset 0 1px #fff, 0 4px 12px #203e350a;
}

.biology { --model-tint: #dbe9cd; }
.mathematics { --model-tint: #d9e4ef; }
.chemistry { --model-tint: #d9eaeb; }
.physics { --model-tint: #efded5; }

.has-model canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.orbital-ring { border: 0; pointer-events: none; }
.orbital-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.orbital-ring ellipse { fill: none; vector-effect: non-scaling-stroke; }
.orbit-track { stroke: #cbd4bd; }
.orbit-light {
  stroke: #729a49;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 9 91;
  filter: drop-shadow(0 0 3px #97bf67);
  animation: orbit-travel 6s linear infinite;
}
.ring-two .orbit-light { stroke: #b57835; animation-duration: 8s; animation-direction: reverse; }
@keyframes orbit-travel { to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) { .orbit-light { animation: none; } }

.account-nav { display: flex; gap: 8px; }
.account-nav .nav-cta { display: inline-flex; justify-content: center; min-width: 0; padding: 9px 12px; }
.account-section { margin-block: 36px; padding: clamp(18px, 4vw, 36px); border: 1px solid #cbd4bd; border-radius: 14px; scroll-margin-top: 105px; }
.account-section [hidden], .account-section[hidden] { display: none !important; }
.account-section h2 { margin: 0 0 8px; }
.account-section h2 span { color: #56713f; font-size: .66em; }
.account-section p { max-width: 68ch; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.account-section form, .admin-members li { display: grid; gap: 12px; padding: 16px; background: #ffffff77; border: 1px solid #d7dece; border-radius: 10px; }
.account-section h3 { margin: 0; }
.account-section label { display: grid; gap: 5px; font-weight: 600; }
.account-section input, .account-section button { font: inherit; border-radius: 6px; padding: 9px 11px; }
.account-section input { width: 100%; min-width: 0; border: 1px solid #879681; background: #fff; color: #203e35; }
.account-section button { justify-self: start; background: #203e35; color: #fff; border: 1px solid #203e35; cursor: pointer; }
.account-section button:disabled { opacity: .55; cursor: wait; }
.account-message { color: #743d24; }
.account-message:empty { display: none; }
#admin-login { max-width: 420px; }
.admin-members { display: grid; gap: 10px; padding: 0; list-style: none; }
.admin-members li { overflow-wrap: anywhere; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {
  .nav { gap: 8px; }
  .account-nav .nav-cta { padding: 7px 8px; font-size: 12px; }
}

.free-quiz { background: #eff3e7; }
.free-quiz, .free-quiz :is(h2, h3, p, button, legend, label, strong) { font-weight: 300; }
.free-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.free-heading button { flex-shrink: 0; }
.free-quiz form { margin: 14px 0; }
.free-quiz fieldset { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.free-quiz legend { margin-bottom: 8px; }
.free-quiz fieldset label { display: flex; gap: 10px; align-items: flex-start; padding: 9px; border: 1px solid #cbd4bd; border-radius: 6px; background: #fff; }
.free-quiz input[type="radio"] { width: auto; margin-top: .45em; }
.free-quiz fieldset label:has(:checked) { background: #e3ebd7; border-color: #7c925f; }
.free-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#free-question, #free-solution { white-space: pre-wrap; overflow-wrap: anywhere; }
#free-solution { margin-bottom: 14px; padding: 16px; border-left: 4px solid #7c925f; background: #fafbf6; }
#free-solution p { max-width: none; }

#free-choose { padding: 0; border: 0; background: none; }
.free-subject-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr)); gap: 8px; }
.free-subject-grid button { justify-self: stretch; }
#free-active { align-items: center; }
#free-subject-name { margin: 0; }
.membership-plans { margin: 24px 0; padding: 20px; border: 1px solid #d9dfd4; border-radius: 12px; background: #f2f5ec; }
.membership-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.membership-plan { padding: 18px; border: 1px solid #d9dfd4; border-radius: 8px; background: #fff; }
.membership-plan h4 { margin: 0 0 10px; font-size: 20px; }
.membership-plan .plan-price { font-size: 28px; font-weight: 700; margin: 8px 0; }
.plan-price span { font-size: 14px; font-weight: 400; }
.payment-status { padding-top: 12px; font-size: 14px; }
.account-help { margin: 16px 0; padding: 14px; border: 1px solid #d9dfd4; border-radius: 8px; }
.account-help summary { cursor: pointer; font-weight: 600; }
@media(max-width:600px) { .membership-plan-grid { grid-template-columns: 1fr; } .membership-plans { padding: 14px; } }
