/* Home v2: the well cross-section's casing rings carry the eight sectors (HSE outermost); they sway and each opens its sector.
   The ring is also the channel logo (navy circle, gold ring). Hero + marquee are always dark; lower sections follow the site theme. */
.hm{--hn:#070D1C;--hn2:#0E1A2E;--hi:#F4EEE4;--hmu:#B9C3D2;--ha:#F5A524;--ha2:#FFCB6B;--hm:clamp(16px,5vw,80px);--mq:104px;--tb:0px;--hh:65px}
@media (max-width:860px){.hm{--tb:calc(64px + env(safe-area-inset-bottom,0px))}}
.hm a{text-decoration:none}

/* hero */
.hm-hero{position:relative;background:var(--hn);color:var(--hi);height:calc(100svh - var(--hh) - var(--mq) - var(--tb));min-height:470px;max-height:980px;overflow:hidden;display:grid;grid-template-columns:minmax(0,46fr) minmax(0,54fr);align-items:center}
.hm-tx{position:relative;z-index:2;padding-inline-start:var(--hm);padding-inline-end:24px;text-align:center;display:flex;flex-direction:column;align-items:center}
.hm-tx h1{font-weight:900;font-size:clamp(44px,min(5.6vw,10svh),96px);line-height:1.04;letter-spacing:-.01em;margin:0 0 26px;color:#fff}
.hm-tx h1 span{display:block}
.hm-lead{font-size:clamp(18px,1.5vw,21px);line-height:1.65;max-width:34ch;margin:0 auto 32px;color:var(--hi)}
.hm-go{display:inline-flex;align-items:center;gap:14px;background:var(--ha);color:#120C00;font-weight:900;font-size:19px;padding:16px 18px 16px 28px;border-radius:999px;transition:transform .2s cubic-bezier(.2,.8,.2,1),background .2s}
[dir=ltr] .hm-go{padding:16px 28px 16px 18px;flex-direction:row-reverse}
.hm-go i{width:34px;height:34px;border-radius:50%;background:#120C00;display:grid;place-items:center;flex:none}
.hm-go i::after{content:"";width:12px;height:12px;border-radius:50%;border:3px solid var(--ha)}
.hm-go:hover{background:var(--ha2)}
.hm-go:active{transform:scale(.97)}
.hm-go:focus-visible,.hm-rg:focus-visible .band,.hm-mq a:focus-visible,.hm-cta:focus-visible{outline:3px solid var(--ha2);outline-offset:3px}
.hm-facts{display:flex;justify-content:center;gap:28px;margin:40px 0 0;padding:0;list-style:none;font-size:16px;color:var(--hmu)}
.hm-facts b{display:block;font-size:30px;font-weight:900;color:var(--hi);line-height:1.1}
.hm-box{position:relative;height:calc(100% - 28px);margin-top:28px;container-type:size}
.hm-well{--r:min(46cqh,62cqw);position:absolute;width:calc(var(--r) * 2);aspect-ratio:1;left:calc(34cqw - var(--r));top:calc(50cqh - var(--r))}
[dir=ltr] .hm-well{left:auto;right:calc(34cqw - var(--r))}
.hm-well svg{width:100%;height:100%;display:block;overflow:visible}
.hm-rot{transform:rotate(62deg);transform-origin:0 0;transform-box:view-box}
[dir=ltr] .hm-rot{transform:rotate(-62deg)}
.hm-rg{animation:hm-sway var(--t) ease-in-out var(--d) infinite alternate;transform-origin:0 0;transform-box:view-box;cursor:pointer;outline:none}
.hm-rg .band{stroke:var(--ha);transition:stroke .25s}
.hm-rg .tk line{stroke:var(--hn2);stroke-width:2;opacity:.45}
.hm-rg:hover .band,.hm-rg:focus-visible .band{stroke:var(--hi)}
.hm-well:hover .hm-rg{animation-play-state:paused}
.hm-rl{font-family:var(--f-ui);font-weight:900;font-size:22px;fill:var(--hn)}
@keyframes hm-sway{from{transform:rotate(calc(var(--a) * -1))}to{transform:rotate(var(--a))}}

/* marquee: lessons on gold, field terms on navy, opposite directions */
.hm-mq{height:var(--mq);display:flex;flex-direction:column;overflow:hidden;background:var(--ha)}
.hm-mq>div{display:flex;flex:none;overflow:hidden}
.hm-mq ul{display:flex;margin:0;padding:0;list-style:none;flex:none;animation:hm-mq var(--sp) linear infinite;animation-direction:var(--dr)}
[dir=ltr] .hm-mq ul{animation-name:hm-mql}
.hm-mq .r1{--sp:70s;--dr:normal;height:58%;align-items:center;color:#120C00}
.hm-mq .r2{--sp:48s;--dr:reverse;height:42%;align-items:center;background:var(--hn);color:var(--ha)}
.hm-mq:hover ul,.hm-mq:focus-within ul{animation-duration:calc(var(--sp) * 3)}
.hm-mq li a{display:flex;align-items:center;gap:16px;padding-inline:16px;font-weight:900;white-space:nowrap;color:inherit;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.hm-mq .r1 a{font-size:24px}
.hm-mq .r2 a{font-size:16px;font-weight:700}
.hm-mq .r1 a::before{content:"";width:15px;height:15px;border-radius:50%;border:4px solid #120C00;flex:none;transition:transform .4s}
.hm-mq .r2 a::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ha);flex:none}
.hm-mq li a:hover{transform:translateY(-3px)}
.hm-mq .r1 a:hover::before{transform:scale(1.35)}
@keyframes hm-mq{to{transform:translateX(100%)}}
@keyframes hm-mql{to{transform:translateX(-100%)}}

/* statement with picture words */
.hm-st{padding:clamp(88px,12vw,180px) var(--hm);max-width:1440px;margin:0 auto}
.hm-st p{font-size:clamp(23px,2.6vw,36px);line-height:1.55;font-weight:700;max-width:30em;margin:0;color:var(--ink)}
.hm-pw{display:inline-block;width:1.9em;height:1em;border-radius:999px;overflow:hidden;vertical-align:-.12em;margin-inline:.15em;background:var(--card2)}
.hm-pw img{width:100%;height:100%;object-fit:cover}
.hm-st .sub{font-size:18px;font-weight:400;color:var(--muted);margin-top:36px;max-width:44ch;margin-inline-start:auto}

/* sectors: two-column list with ring-masked photos */
.hm-ls{padding:0 var(--hm) clamp(88px,11vw,160px);max-width:1440px;margin:0 auto}
.hm-ls .h{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:44px}
.hm-ls h2{font-size:clamp(32px,3.6vw,56px);font-weight:900;margin:0;line-height:1.15;color:var(--ink)}
.hm-ls .h span{color:var(--muted);font-size:17px}
.hm-rows{display:grid;grid-template-columns:1fr 1fr;gap:40px 72px;margin:0;padding:0;list-style:none}
.hm-rows a{display:grid;grid-template-columns:72px minmax(0,1fr);gap:20px;align-items:start;color:var(--ink)}
.hm-rows .ph{width:72px;height:72px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 4px var(--bg),0 0 0 7px var(--amber)}
.hm-rows .ph img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.hm-rows a:hover .ph img{transform:scale(1.12)}
.hm-rows .t{display:flex;justify-content:space-between;gap:12px;font-weight:900;font-size:21px;line-height:1.3}
.hm-rows .t small{font-weight:700;font-size:16px;color:var(--amber-tx);white-space:nowrap}
.hm-rows p{margin:6px 0 0;color:var(--muted);font-size:16px;line-height:1.6;max-width:42ch}

/* closing band: one word is the button */
.hm-cta{display:block;background:var(--ha);color:#120C00;border-radius:min(28vw,360px) min(28vw,360px) 0 0;padding:clamp(56px,7vw,110px) var(--hm) 8px;margin:clamp(40px,6vw,96px) var(--hm) 0;transition:background .15s,color .15s}
.hm-cta .n{display:block;font-size:20px;font-weight:700;max-width:30ch;margin-inline:auto;text-align:center}
.hm-cta b{display:block;text-align:center;font-weight:900;font-size:clamp(96px,16vw,240px);line-height:1.25;padding-top:.1em}
.hm-cta:hover{background:var(--hi);color:var(--hn)}

/* entrance */
.hm-tx>*{animation:hm-rise .8s cubic-bezier(.2,.8,.2,1) both}
.hm-tx>:nth-child(2){animation-delay:.08s}.hm-tx>:nth-child(3){animation-delay:.16s}.hm-tx>:nth-child(4){animation-delay:.24s}
.hm-rg>*{animation:hm-in 1s cubic-bezier(.2,.8,.2,1) both;transform-origin:0 0;transform-box:view-box}
.hm-rg:nth-of-type(1)>*{animation-delay:.05s}.hm-rg:nth-of-type(2)>*{animation-delay:.12s}.hm-rg:nth-of-type(3)>*{animation-delay:.19s}.hm-rg:nth-of-type(4)>*{animation-delay:.26s}.hm-rg:nth-of-type(5)>*{animation-delay:.33s}.hm-rg:nth-of-type(6)>*{animation-delay:.4s}.hm-rg:nth-of-type(7)>*{animation-delay:.47s}.hm-rg:nth-of-type(8)>*{animation-delay:.54s}
@keyframes hm-rise{from{opacity:.001;transform:translateY(22px)}}
@keyframes hm-in{from{opacity:.001;transform:scale(.86) rotate(-14deg)}}
@media (prefers-reduced-motion:reduce){.hm-rg,.hm-mq ul,.hm-tx>*,.hm-rg>*{animation:none}.hm-mq>div{overflow-x:auto}}

@media (max-width:700px){
 .hm{--mq:92px}
 .hm-hero{display:flex;flex-direction:column;align-items:stretch;min-height:440px;max-height:none}
 .hm-tx{padding-inline:var(--hm);padding-top:clamp(12px,3svh,32px);flex:none}
 .hm-tx h1{font-size:min(9.4vw,7svh);margin-bottom:12px}
 [dir=rtl] .hm-tx h1{white-space:nowrap}
 [dir=rtl] .hm-tx h1 span{display:inline}
 [dir=ltr] .hm-tx h1{font-size:min(10.5vw,6.4svh)}
 .hm-lead{font-size:16.5px;line-height:1.55;margin-bottom:18px}
 .hm-go{font-size:17px;padding:12px 14px 12px 22px}[dir=ltr] .hm-go{padding:12px 22px 12px 14px}.hm-go i{width:30px;height:30px}
 .hm-facts{display:none}
 .hm-rot,[dir=ltr] .hm-rot{transform:none}
 .hm-box{flex:1;height:auto;margin-top:10px;overflow:hidden}
 .hm-well,[dir=ltr] .hm-well{--w:min(165vw,214cqh);position:absolute;width:var(--w);top:auto;right:auto;left:50%;bottom:calc(var(--w) * -0.535);transform:translateX(-50%)}
 .hm-mq .r1 a{font-size:19px;gap:12px;padding-inline:12px}.hm-mq .r1 a::before{width:12px;height:12px;border-width:3px}
 .hm-mq .r2 a{font-size:14px;gap:10px;padding-inline:10px}
 .hm-rows{grid-template-columns:1fr;gap:30px}
 .hm-rows a{grid-template-columns:56px minmax(0,1fr);gap:16px}.hm-rows .ph{width:56px;height:56px}
 .hm-cta{margin-inline:10px;border-radius:46vw 46vw 0 0}
}
.hm-cta{overflow:hidden}
[lang=fr] .hm-cta b{font-size:clamp(56px,12.5vw,190px)}

/* r19 hybrid home */
.hm-ctas{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center}
.hm-go2{display:inline-flex;align-items:center;min-height:48px;padding:10px 20px;border-radius:999px;border:1.5px solid rgba(255,255,255,.4);color:#F2F6FA!important;font-weight:800;font-size:16px;text-decoration:none}
.hm-go2:hover{border-color:var(--ha)}
.hm-go2:focus-visible{outline:3px solid var(--ha2);outline-offset:3px}
.hm-ql{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;padding:0;list-style:none}
.hm-ql a{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.18);color:#F2F6FA!important;font-weight:700;font-size:14.5px;text-decoration:none}
.hm-ql a:hover{border-color:var(--ha)}
.hm-tx .ytop{margin-top:18px;max-width:640px}
.hm-tx .ask-cta{margin-top:12px}
.hm-mq li{white-space:nowrap;unicode-bidi:isolate}
.hm-mq a{unicode-bidi:isolate}

/* r19b yt fix: on phones the hero grows with its content (the fixed svh height clipped the YouTube block) */
.hm-tx .ytop,.hm-tx .ask-cta,.hm-tx #resume-slot{align-self:stretch;width:100%;max-width:640px;margin-inline:auto}
.hm-tx #resume-slot{margin-top:12px;text-align:start}
.hm-tx #resume-slot .resume{margin:0;color:#F2F6FA;background:rgba(8,20,36,.66);border-color:rgba(255,181,71,.4)}
.hm-tx #resume-slot .rs-k{color:#B8C7D6}
.hm-tx #resume-slot .rs-t{color:#F2F6FA}
a.ytm{text-decoration:none!important}
@media (max-width:700px){
 .hm-hero{height:auto;min-height:0}
 .hm-box{flex:none;height:min(108vw,440px);margin-top:0}
 #resume-slot .resume{flex-wrap:nowrap}
 #resume-slot .rs-tx{min-width:0;flex:1 1 auto}
 #resume-slot .rs-k{white-space:nowrap}
}

/* r19c resume card: the title wraps (2 lines), the streak pill goes below */
#resume-slot .resume{flex-wrap:wrap;row-gap:8px}
#resume-slot .rs-tx{flex:1 1 calc(100% - 60px);min-width:0}
#resume-slot .rs-t{white-space:normal!important;overflow:hidden;text-overflow:clip;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.4}
#resume-slot .rs-st{flex-basis:auto;margin-inline-start:56px}

/* r20 home4: first screen = user design; extras live in .hm-more below the ticker */
.hm-top{display:none}
.hm-more{background:var(--hn);color:var(--hi);padding:22px var(--hm) 28px}
.hm-more>*{max-width:760px;margin-inline:auto}
.hm-more .hm-ql{margin:0 auto;justify-content:center}
.hm-more .hm-ql .go2 a{background:var(--ha);color:#120C00!important;border-color:var(--ha)}
.hm-more .ytop{margin-top:20px}
.hm-more .ask-cta{margin-top:14px}
.hm-more #resume-slot{margin-top:14px;text-align:start}
.hm-more #resume-slot:empty{display:none}
.hm-more #resume-slot .resume{margin:0;color:#F2F6FA;background:rgba(8,20,36,.66);border-color:rgba(255,181,71,.4)}
.hm-more #resume-slot .rs-k{color:#B8C7D6;white-space:nowrap}
.hm-more #resume-slot .rs-t{color:#F2F6FA}
@media (max-width:700px){
 .hm{--hh:57px}
 .hm-hero{height:calc(100svh - var(--hh) - var(--mq) - var(--tb));min-height:520px;max-height:none}
 .hm-box{flex:1 1 auto;height:auto;min-height:220px;margin-top:6px}
 .hm-tx{padding-top:10px}
 .hm-top{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin:0 0 14px}
 .hm-top b{font-weight:900;font-size:19px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
 [lang=fr] .hm-top b{font-size:15px}
 [lang=fr] .hm-top a{padding:8px 12px;font-size:14px}
 .hm-top a{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:8px 18px;border-radius:999px;background:var(--ha);color:#120C00!important;font-weight:800;font-size:15px}
 .hm-well,[dir=ltr] .hm-well{--w:min(165vw,186cqh);bottom:calc(var(--w) * -0.47)}
 .hm-tx h1{margin-bottom:10px}
 .hm-lead{margin-bottom:16px}
}


/* v50: homepage simulators icon grid */
.hm-more .hm-sims{max-width:960px;margin:18px auto 0;padding:0}
.hm-sims-hrow{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 4px}
.hm-sims-hrow h2{margin:0;font-size:18px;font-weight:900;color:#F2F6FA;letter-spacing:.01em}
.hm-sims-all{font-size:13.5px;font-weight:700;color:#F5A524;text-decoration:none;white-space:nowrap}
.hm-sims-all:hover{text-decoration:underline}
.hm-sims-lead{margin:0 0 12px;font-size:13.5px;color:#B8C7D6;line-height:1.5}
.hm-sims-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (min-width:720px){.hm-sims-grid{grid-template-columns:repeat(4,1fr);gap:12px}}
.hm-sim{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:100%;padding:14px 14px 16px;border-radius:16px;background:rgba(8,20,36,.72);border:1px solid rgba(255,255,255,.10);color:#F2F6FA;text-decoration:none;transition:transform .15s,border-color .15s,background .15s}
.hm-sim:hover{transform:translateY(-2px);border-color:rgba(245,165,36,.55);background:rgba(12,28,48,.9)}
.hm-sim:focus-visible{outline:3px solid #f5a524;outline-offset:2px}
.hm-sim-ic{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.06);color:#E8EEF5;box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--c,#F5A524) 55%, transparent)}
.hm-sim-ic svg{width:30px;height:30px;display:block}
.hm-sim-t{display:flex;flex-direction:column;gap:4px;min-width:0}
.hm-sim-t b{font-size:14.5px;font-weight:800;line-height:1.25;color:#fff}
.hm-sim-t small{font-size:12px;line-height:1.4;color:#A9B8C8}


/* ---- 3D hero (assets/hero3d.js): WebGL well painted over the SVG rings, which stay as fallback and for keyboard/screen readers ---- */
.hm-3d{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:0;opacity:0;pointer-events:none;transition:opacity .7s ease}
.hm-3d-on .hm-3d{opacity:1}
.hm-3d-on .hm-well{opacity:0;pointer-events:none}
.hm-3d-hot{cursor:pointer}
@media (prefers-reduced-motion:reduce){.hm-3d{transition:none}}

/* ---- v62 hero: whole well framed, tinted sectors, Simulators flange, readable labels, hover/tap card ---- */
.hm-well,[dir=ltr] .hm-well{--r:min(46cqh,47cqw);left:calc(50cqw - var(--r));right:auto;top:calc(50cqh - var(--r))}
.hm-rg .band{stroke:var(--c,var(--ha))}
.hm-rl{font-size:25px}
.hm-sm{cursor:pointer;outline:none}
.hm-sm .band{stroke:var(--c);transition:stroke .25s}
.hm-sm:hover .band,.hm-sm:focus-visible .band{stroke:var(--hi)}
.hm-sm:focus-visible .band{outline:3px solid var(--ha2)}
.hm-sl{font-family:var(--f-ui);font-weight:900;font-size:27px;fill:var(--hn)}
.hm-card{position:absolute;z-index:4;left:0;top:0;display:flex;gap:12px;align-items:center;min-width:180px;max-width:min(320px,calc(100% - 24px));padding:12px 16px 12px 12px;border-radius:16px;background:rgba(7,13,28,.94);border:1px solid rgba(255,255,255,.16);box-shadow:0 18px 40px rgba(0,0,0,.45);color:var(--hi);pointer-events:none;opacity:0;transform:translateY(6px);transition:opacity .18s,transform .18s;backdrop-filter:blur(6px)}
[dir=rtl] .hm-card{padding:12px 12px 12px 16px}
.hm-card.on{opacity:1;transform:none}
.hm-card .ic{flex:none;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--c,var(--ha));color:var(--hn)}
.hm-card .ic svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hm-card .tx{display:flex;flex-direction:column;min-width:0}
.hm-card .k{font-size:12.5px;font-weight:700;color:var(--c,var(--ha));letter-spacing:.02em}
.hm-card .n{font-size:18px;font-weight:900;line-height:1.25;color:#fff}
.hm-card .s{font-size:14px;color:var(--hmu);line-height:1.4}
.hm-card .go{display:none;margin-top:8px;align-self:flex-start;background:var(--c,var(--ha));color:#120C00!important;font-weight:900;font-size:15px;padding:8px 16px;border-radius:999px;text-decoration:none;pointer-events:auto}
.hm-card.tap{pointer-events:auto}.hm-card.tap .go{display:inline-block}
@media (prefers-reduced-motion:reduce){.hm-card{transition:none}}
@media (max-width:700px){
 .hm-box{height:min(112vw,470px)}
 .hm-well,[dir=ltr] .hm-well{--w:min(calc(100cqw - 16px),calc(100cqh - 16px));width:var(--w);left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%)}
 .hm-rl{font-size:27px}
}
