/* AIMERS tune layer (loaded last) */

/* ---------- 1. menu: no bulb anywhere ---------- */
.aimbulb{display:none!important}

/* ---------- 2. inner pages: one watermark system, the same on every device ---------- */
html.aim-inner .aimside,html.aim-inner .aimdeco,html.aim-inner .aimrail,html.aim-inner .aimwm,html.aim-inner .aimtools,html.aim-inner .aimdoodle{display:none!important}
html.aim-inner section::before,html.aim-inner .heroX::before,html.aim-inner .cta2::before{background-image:none!important}
.aimu{position:fixed;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.aimu .u{position:absolute;color:var(--c,#2457d6);opacity:var(--o,.24);animation:aimuDrift var(--d,38s) ease-in-out var(--dl,0s) infinite alternate;will-change:transform}
.aimu .ut{width:clamp(24px,2.9vw,46px)}
.aimu .ut svg{display:block;width:100%;height:auto;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.aimu .us{font:800 clamp(22px,2.7vw,44px)/1 Fredoka,'Plus Jakarta Sans',Arial,sans-serif}
@keyframes aimuDrift{0%{transform:translate3d(0,0,0) rotate(var(--r0,-8deg))}100%{transform:translate3d(var(--dx,3vw),var(--dy,-14vh),0) rotate(var(--r1,10deg))}}

/* corner bulbs: glow for 5 seconds, gone for 20 seconds, repeat (25 second cycle) */
.aimu .bb{position:fixed;width:clamp(30px,3.6vw,54px);opacity:0;visibility:hidden;animation:aimuBulb 25s ease-in-out infinite both}
.aimu .bb svg{display:block;width:100%;height:auto;animation:aimuGlowY 1.6s ease-in-out infinite}
.aimu .bb.r svg{animation-name:aimuGlowR}
.aimu .bb::before{content:"";position:absolute;left:50%;top:40%;width:clamp(110px,12vw,170px);aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);z-index:-1;background:radial-gradient(circle,rgba(255,214,64,.38) 0,rgba(255,214,64,.14) 45%,transparent 70%);animation:aimuHalo 1.6s ease-in-out infinite}
.aimu .bb.r::before{background:radial-gradient(circle,rgba(255,96,64,.34) 0,rgba(255,150,60,.14) 45%,transparent 70%)}
.aimu .bb.tl{left:clamp(8px,1.5vw,28px);top:calc(env(safe-area-inset-top,0px) + clamp(78px,7.5vw,104px))}
.aimu .bb.tr{right:clamp(8px,1.5vw,28px);top:calc(env(safe-area-inset-top,0px) + clamp(78px,7.5vw,104px))}
.aimu .bb.bl{left:clamp(8px,1.5vw,28px);bottom:clamp(72px,9vh,110px)}
.aimu .bb.br{right:clamp(8px,1.5vw,28px);bottom:clamp(72px,9vh,110px)}
@keyframes aimuBulb{
0%{opacity:0;visibility:hidden;transform:scale(.55)}
1%{visibility:visible}
3%{opacity:1;transform:scale(1)}
17%{opacity:1;transform:scale(1);visibility:visible}
20%{opacity:0;transform:scale(.7)}
20.1%,100%{opacity:0;visibility:hidden;transform:scale(.55)}}
@keyframes aimuGlowY{0%,100%{filter:drop-shadow(0 0 3px rgba(255,210,63,.55))}50%{filter:drop-shadow(0 0 9px rgba(255,210,63,1)) drop-shadow(0 0 18px rgba(255,190,40,.65))}}
@keyframes aimuGlowR{0%,100%{filter:drop-shadow(0 0 3px rgba(255,120,70,.5))}50%{filter:drop-shadow(0 0 9px rgba(255,110,60,.95)) drop-shadow(0 0 18px rgba(255,80,60,.55))}}
@keyframes aimuHalo{0%,100%{opacity:.5;transform:translate(-50%,-50%) scale(.85)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}}
body.drw-lock .aimu,body.drw-lock .aimu *{animation-play-state:paused!important}
@media (prefers-reduced-motion:reduce){.aimu .u{animation:none}.aimu .bb{display:none}}

/* ---------- 3. video section: pause the decoration while the video is on screen so it never stutters ---------- */
html.aim-vidview :is(.aimside,.aimtools,.aimwm,.aimdeco,.aimrail,.aimdoodle,.aimu,.hdeco),
html.aim-vidview :is(.aimside,.aimtools,.aimwm,.aimdeco,.aimrail,.aimdoodle,.aimu,.hdeco) *{animation-play-state:paused!important}
html body .aimhow-pic video{transform:translateZ(0);-webkit-transform:translateZ(0)}

/* ---------- 4. home star: comes out of the base of the I, small then bigger, only a little above the I, shrinks and lands, twinkles for 5 seconds, rests about 12 seconds, repeats ---------- */
@keyframes aimStarTune{
0%,2%{opacity:0;transform:translate(0,.66em) scale(.05) rotate(0deg);filter:drop-shadow(0 0 .1em rgba(245,179,1,.95)) brightness(1)}
8%{opacity:1;transform:translate(0,.3em) scale(.5) rotate(40deg);filter:drop-shadow(0 0 .12em rgba(255,214,90,1)) brightness(1.1)}
14%{opacity:1;transform:translate(0,-.25em) scale(1) rotate(80deg);filter:drop-shadow(0 0 .18em rgba(255,214,90,1)) brightness(1.2)}
20%{opacity:1;transform:translate(0,-.6em) scale(1.5) rotate(120deg);filter:drop-shadow(0 0 .28em rgba(255,226,120,1)) brightness(1.4)}
23%{opacity:1;transform:translate(0,-.6em) scale(1.5) rotate(130deg);filter:drop-shadow(0 0 .28em rgba(255,226,120,1)) brightness(1.4)}
26%{opacity:1;transform:translate(0,-.5em) scale(.9) rotate(150deg);filter:drop-shadow(0 0 .1em rgba(245,179,1,.95)) brightness(1)}
29%{opacity:1;transform:translate(0,-.4em) scale(1.3) rotate(180deg);filter:drop-shadow(0 0 .1em rgba(245,179,1,.95)) brightness(1)}
31%{opacity:.1;transform:translate(0,-.4em) scale(1.3) rotate(180deg)}
33%{opacity:1;transform:translate(0,-.4em) scale(1.3) rotate(180deg)}
35%{opacity:.1;transform:translate(0,-.4em) scale(1.3) rotate(180deg)}
37%{opacity:1;transform:translate(0,-.4em) scale(1.3) rotate(180deg)}
39%{opacity:.1;transform:translate(0,-.4em) scale(1.3) rotate(180deg)}
41%{opacity:1;transform:translate(0,-.4em) scale(1.3) rotate(180deg)}
43%{opacity:.1;transform:translate(0,-.4em) scale(1.3) rotate(180deg)}
45%{opacity:1;transform:translate(0,-.4em) scale(1.3) rotate(180deg)}
47%{opacity:.1;transform:translate(0,-.4em) scale(1.3) rotate(180deg)}
49%{opacity:1;transform:translate(0,-.4em) scale(1.3) rotate(180deg);filter:drop-shadow(0 0 .1em rgba(245,179,1,.95)) brightness(1)}
95%{opacity:1;transform:translate(0,-.4em) scale(1.3) rotate(180deg)}
98%{opacity:0;transform:translate(0,-.4em) scale(1.1) rotate(180deg)}
100%{opacity:0;transform:translate(0,.66em) scale(.05) rotate(0deg)}}
@keyframes aimISettleTune{
0%,26%{transform:none}
28%{transform:translateY(.045em) scaleY(.93)}
31%{transform:translateY(-.02em) scaleY(1.03)}
34%,100%{transform:none}}
html body .wm.fly .wstar{animation:aimStarTune 25s ease-in-out infinite both!important}
html body .wm.fly .wi{animation:aimISettleTune 25s ease-in-out infinite!important}
@media (prefers-reduced-motion:reduce){html body .wm.fly .wstar{animation:none!important;opacity:1;transform:translateY(-.4em) scale(1.3)}html body .wm.fly .wi{animation:none!important}}

/* ===== PC FIX LAYER (2026-11-23): header, full-width pages, readable hero text, themes. Phone/tablet layout untouched. ===== */

/* A. top bar on PC: logo | menu links | Free Demo | Menu button, never overlapping */
@media (min-width:900px) and (hover:hover) and (pointer:fine){
 html body header .wrap{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:14px!important}
 html body header .logo{flex:0 0 auto!important}
 html body header nav{flex:1 1 auto!important;min-width:0!important;margin-left:auto!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:2px!important}
 html body header nav a:not(.btn){flex:0 1 auto!important;white-space:nowrap!important;padding:8px 10px!important;font-size:clamp(.8rem,.55vw + .5rem,.95rem)!important}
 html body header nav a.btn{flex:0 0 auto!important;margin-left:14px!important;white-space:nowrap!important;position:relative;z-index:1}
 html body .burger{flex:0 0 auto!important;position:relative!important;inset:auto!important;transform:none!important;margin-left:14px!important;z-index:2}
 /* menu order on PC: Home, Our Classes, Our Approach, About Us first; only Careers + FAQ live in the Menu button */
 html body header nav a[href="index.html"]{order:1}
 html body header nav a[href="classes.html"]{order:2}
 html body header nav a[href="approach.html"]{order:3}
 html body header nav a[href="about.html"]{order:9}
 html body header nav a[href="vedic-maths.html"]{order:5}
 html body header nav a[href="learn.html"]{order:6}
 html body header nav a[href="parents.html"]{order:7}
 html body header nav a[href="brain-games.html"]{order:8}
 html body header nav a[href="quiz.html"]{order:4}
 html body header nav a.btn{order:30}
 html body header nav{gap:clamp(0px,.15vw,3px)!important}
 html body header nav a:not(.btn){font-size:clamp(.66rem,calc(.42vw + .38rem),.92rem)!important;padding:8px clamp(3px,.45vw,9px)!important}
 html body header nav a[href="careers.html"],html body header nav a[href="faq.html"]{display:none!important}
}
@media (min-width:900px) and (max-width:1249px) and (hover:hover) and (pointer:fine){
 html body header .logo small{display:none!important}
 html body header nav a.btn{margin-left:8px!important;padding:6px 12px!important}
 html body .burger{margin-left:8px!important}
}

/* B. page title bars (blue / green): easy-to-read subtitle that never sinks into the content below */
html body .pg{padding-top:clamp(34px,3.4vw,52px)!important;padding-bottom:clamp(118px,9.5vw,160px)!important;position:relative;z-index:2}
html body .pg p{font-family:'Plus Jakarta Sans',Manrope,system-ui,sans-serif!important;font-weight:600!important;font-style:normal!important;font-size:clamp(1.05rem,1.5vw,1.4rem)!important;line-height:1.6!important;letter-spacing:.005em!important;color:#fff8dc!important;text-shadow:0 2px 10px rgba(5,16,45,.55);max-width:46em!important;margin:12px auto 0!important;animation:none!important}
html body .pg + *{position:relative;z-index:3}

/* C. PC: use the full screen width, bigger text, less empty space */
@media (min-width:1100px) and (hover:hover) and (pointer:fine){
 html body{font-size:18px}
 html body section:not(.classroom-sec){padding-top:clamp(36px,4vw,60px)!important;padding-bottom:clamp(36px,4vw,60px)!important}
 html body .heroX{padding-top:56px!important;padding-bottom:72px!important}
 html body .aimhow{max-width:1320px!important}
 html body .tgrid,html body .feat-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important}
 html body .ctr>.mut{max-width:1000px!important;font-size:1.1rem!important}
 html body .mut,html body .note{font-size:1.04rem}
 html body .tag{font-size:.92rem!important}
 html body .ach-label{font-size:.82rem!important;max-width:130px!important}
 html body .faq{max-width:1200px!important}
 html body .qz{max-width:1100px!important}
 html body .lmcard,html body .brcard{max-width:1300px!important}
 /* course chooser (Our Classes): stretch into the side margins */
 html body #courses>.wrap,html body #syl>.wrap{max-width:1560px!important}
 html body #fl,html body #fl2,html body .fl-wz,html body .fl-panel,html body .fl-wz .fl-panel,html body .fl-res{max-width:none!important;width:100%!important}
 html body .fl-wz .fl-chs.fl-gr{max-width:none!important}
 html body .fl-opts{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important}
 html body .fl-sb{max-width:1000px!important;font-size:1.15rem!important}
 html body .fl-title{font-size:1.9rem!important}
 html body .fl-pn{font-size:.88rem!important}
 html body .fl-k{font-size:.95rem!important}
 html body .fl-note{max-width:1000px!important;font-size:1.05rem!important}
 html body .fl-sum{max-width:1000px!important}
}

/* D. forest green + ivory look on some pages (the rest stay blue + white) */
html.pg-parents .pg,html.pg-about .pg,html.pg-faq .pg,html.pg-approach .pg,html.pg-vedic-maths .pg{background:linear-gradient(135deg,#0f3d2a 0%,#1c6445 100%)!important}
html.pg-parents body,html.pg-about body,html.pg-faq body,html.pg-approach body,html.pg-vedic-maths body{background:#fbf8ef!important}
html.pg-parents body header,html.pg-about body header,html.pg-faq body header,html.pg-approach body header,html.pg-vedic-maths body header{background:linear-gradient(180deg,#16543a,#0f3d2a)!important}
html.pg-parents .cream,html.pg-about .cream,html.pg-faq .cream,html.pg-approach .cream,html.pg-vedic-maths .cream{background:#f5efdc!important}

/* E. phone and tablet: tap-to-play video button (video no longer autoplays, so scrolling stays smooth) */
.aimvid-play{position:absolute;inset:0;margin:auto;width:78px;height:78px;border-radius:50%;border:3px solid #fff;background:rgba(10,26,60,.74);color:#fff;font-size:30px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0 0 0 6px;z-index:5;box-shadow:0 10px 28px rgba(0,0,0,.38)}
.aimvid-play[hidden]{display:none!important}


/* ===== ROUND 2 (2026-11-23) ===== */

/* waves: livelier (faster drift, bigger rise and fall) */
@keyframes aimBreath2{0%{transform:translateY(2px) scaleY(.92)}100%{transform:translateY(-7px) scaleY(1.2)}}
html body .aimwv{transform-origin:50% 100%!important;animation:aimBreath2 4.6s ease-in-out infinite alternate!important}
html body .aimwv .a{animation:aimWvR 13s linear infinite!important}
html body .aimwv .b{animation:aimWvL 18s linear infinite!important}

/* home star: the I stays still. The star rises from the foot of the I, blinks at the top, settles on the I, bounces three times, pops, and starts again */
@keyframes aimStarV2{
0%,2%{opacity:0;transform:translate(0,.68em) scale(.05) rotate(0deg)}
5%{opacity:1;transform:translate(0,.4em) scale(.45) rotate(50deg)}
12%{opacity:1;transform:translate(0,-.15em) scale(.95) rotate(140deg)}
20%{opacity:1;transform:translate(0,-.8em) scale(1.45) rotate(230deg)}
22%{opacity:.12;transform:translate(0,-.8em) scale(1.45) rotate(230deg)}
24%{opacity:1;transform:translate(0,-.8em) scale(1.45) rotate(230deg)}
26%{opacity:.12;transform:translate(0,-.8em) scale(1.45) rotate(230deg)}
28%{opacity:1;transform:translate(0,-.8em) scale(1.45) rotate(230deg)}
30%{opacity:.12;transform:translate(0,-.8em) scale(1.45) rotate(230deg)}
32%{opacity:1;transform:translate(0,-.8em) scale(1.45) rotate(230deg)}
38%{opacity:1;transform:translate(0,-.4em) scale(1.3) rotate(270deg)}
42%{opacity:1;transform:translate(0,-.74em) scale(1.3) rotate(290deg)}
46%{opacity:1;transform:translate(0,-.4em) scale(1.3) rotate(310deg)}
49%{opacity:1;transform:translate(0,-.6em) scale(1.3) rotate(325deg)}
52%{opacity:1;transform:translate(0,-.4em) scale(1.3) rotate(335deg)}
54.5%{opacity:1;transform:translate(0,-.5em) scale(1.3) rotate(342deg)}
57%,80%{opacity:1;transform:translate(0,-.4em) scale(1.3) rotate(345deg)}
84%{opacity:1;transform:translate(0,-.45em) scale(1.9) rotate(360deg)}
87%,89%{opacity:0;transform:translate(0,-.45em) scale(2.7) rotate(380deg)}
89.1%,100%{opacity:0;transform:translate(0,.68em) scale(.05) rotate(0deg)}}
html body .wm.fly .wstar{animation:aimStarV2 14s ease-in-out infinite both!important}
html body .wm.fly .wi{animation:none!important;transform:none!important}

/* side bulb: appears, glows about 7 seconds, stays there dimmed, then the menu options glow one after another */
.aimb2{position:fixed;left:clamp(8px,1.5vw,28px);top:calc(env(safe-area-inset-top,0px) + clamp(96px,8vw,124px));width:clamp(34px,3.2vw,52px);z-index:60;opacity:0;transform:scale(.4);pointer-events:none;transition:opacity .7s ease,transform .7s cubic-bezier(.2,.9,.3,1.4)}
.aimb2.in{opacity:1;transform:scale(1)}
.aimb2 svg{display:block;width:100%;height:auto;filter:drop-shadow(0 0 3px rgba(255,210,63,.35))}
.aimb2::before{content:"";position:absolute;left:50%;top:40%;width:clamp(120px,12vw,180px);aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);z-index:-1;opacity:0;transition:opacity .8s;background:radial-gradient(circle,rgba(255,214,64,.42) 0,rgba(255,214,64,.15) 45%,transparent 70%)}
.aimb2.glow::before{opacity:1;animation:aimuHalo 1.5s ease-in-out infinite}
.aimb2.glow svg{animation:aimuGlowY 1.5s ease-in-out infinite}
.aimb2.rest{opacity:.8}
@keyframes aimNavGlow{0%,100%{box-shadow:0 0 0 0 rgba(255,214,64,0);text-shadow:none}45%{box-shadow:0 0 0 2px rgba(255,214,64,.95),0 0 20px 4px rgba(255,200,40,.75);text-shadow:0 0 10px rgba(255,226,120,.95)}}
html.aim-menuglow header nav a,html.aim-menuglow .burger{animation:aimNavGlow 1.5s ease-in-out 4!important}



/* ===== ROUND 3 (2026-11-23) ===== */
/* the title bar's text sits above every wave layer; the subtitle is a dark pill with white text */
html body .pg>.wrap{position:relative!important;z-index:6!important}
html body .pg p{display:inline-block!important;background:rgba(7,20,47,.5)!important;border:1px solid rgba(255,255,255,.3);border-radius:999px;padding:9px 26px!important;color:#fff!important;text-shadow:none!important;font-family:'Plus Jakarta Sans',Manrope,system-ui,sans-serif!important;font-weight:700!important;font-style:normal!important;letter-spacing:.01em!important;box-shadow:0 6px 18px rgba(5,16,45,.28)}
html.pg-parents .pg p,html.pg-about .pg p,html.pg-faq .pg p,html.pg-approach .pg p,html.pg-vedic-maths .pg p{background:rgba(6,36,24,.52)!important}


/* ===== ROUND 4 (2026-11-23) ===== */
/* alternate looks: green pages (Approach, Vedic Maths, For Parents, About, FAQ) and blue pages (the rest) */
html.pg-approach .step[aria-selected=true]{background:linear-gradient(135deg,#0f3d2a,#1c6445)!important;border-color:#0f3d2a!important}
html.pg-approach .detail{border-left-color:#c9a24b!important}
/* inside every page, every second dark band flips colour: green on blue pages, blue on green pages */
html body section.dark:nth-of-type(even),html body .cta2:nth-of-type(even){background:linear-gradient(135deg,#0f3d2a 0%,#1c6445 100%)!important}
html.pg-approach body section.dark:nth-of-type(even),html.pg-vedic-maths body section.dark:nth-of-type(even),html.pg-parents body section.dark:nth-of-type(even),html.pg-about body section.dark:nth-of-type(even),html.pg-faq body section.dark:nth-of-type(even),
html.pg-approach body .cta2:nth-of-type(even),html.pg-vedic-maths body .cta2:nth-of-type(even),html.pg-parents body .cta2:nth-of-type(even),html.pg-about body .cta2:nth-of-type(even),html.pg-faq body .cta2:nth-of-type(even){background:linear-gradient(135deg,#14307a 0%,#22427f 100%)!important}

/* side bulb: always there. Unlit first, lights up after 5 seconds, stays on softly */
.aimb2 svg{transition:filter .9s ease}
.aimb2.off svg{filter:grayscale(1) brightness(.8)}
.aimb2.rest{opacity:1}
.aimb2.rest svg{filter:drop-shadow(0 0 6px rgba(255,210,63,.75))}


/* ===== ROUND 5: no side bulb on the home page ===== */
html:not(.aim-inner) .aimb2{display:none!important}

/* ===== ROUND 6b (2026-11-23): side icon is fixed on the screen at the marked spot (never scrolls), draws as a line first, then glows. Icon differs per page. ===== */
html .aimb2{position:fixed;left:clamp(12px,3.2vw,36px);top:calc(env(safe-area-inset-top,0px) + 96px);right:auto;bottom:auto;margin:0;width:clamp(40px,4.4vw,60px);z-index:60;pointer-events:none;opacity:0;transform:scale(.6);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.9,.3,1.3)}
html .aimb2.in{opacity:1;transform:scale(1)}
html .aimb2 svg{display:block;width:100%;height:auto;overflow:visible;fill:none;stroke:var(--bc,#ffd23f);stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;filter:none;animation:none}
html .aimb2 svg .o path{stroke-dasharray:1;stroke-dashoffset:1;opacity:0;animation:aimDraw 2.8s ease-out .5s forwards}
html .aimb2 svg .f{fill:var(--bc,#ffd23f);stroke:none;opacity:0;transition:opacity 1.1s ease}
html .aimb2.glow svg .f,html .aimb2.rest svg .f{opacity:.42}
html .aimb2.glow svg{animation:aimLineGlow 1.6s ease-in-out infinite}
html .aimb2.rest svg{animation:none;filter:drop-shadow(0 0 5px var(--bc)) drop-shadow(0 0 14px var(--bc))}
html .aimb2::before{width:clamp(120px,12vw,180px);background:radial-gradient(circle,var(--bh,rgba(255,214,64,.4)) 0,transparent 68%);transition:opacity 1s}
html .aimb2.rest{opacity:1}
html .aimb2.rest::before{opacity:.55;animation:none}
body.drw-lock~.aimb2{visibility:hidden}
@keyframes aimDraw{0%{stroke-dashoffset:1;opacity:0}6%{opacity:1}100%{stroke-dashoffset:0;opacity:1}}
@keyframes aimLineGlow{0%,100%{filter:drop-shadow(0 0 3px var(--bc)) drop-shadow(0 0 8px var(--bc))}50%{filter:drop-shadow(0 0 10px var(--bc)) drop-shadow(0 0 24px var(--bc)) brightness(1.25)}}
@media (prefers-reduced-motion:reduce){html .aimb2 svg .o path{animation:none;stroke-dashoffset:0;opacity:1}}
