/* OmG One Home hero (2026-11-27): the OmG One creds word-globe, wrapped by the red thread that runs off the spool.
   Stage units: 1200 x 1080. Globe box 170,40 900x900 (sphere centre 620,490 r 386). Ring centre 620,520, rx 520 ry 118, -12deg.
   Spool box 40,700 250w (thread exits at 66,851). No colour burst / smoke / rangoli on this hero. */
.e6-hero.hg{background:radial-gradient(58% 72% at 74% 50%,#fff 0%,#FBF8F4 38%,#F2EDE7 100%);padding-bottom:clamp(64px,6vw,92px)}
.e6-hero.hg .hg-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);align-items:center;column-gap:clamp(20px,3vw,56px)}
.e6-hero.hg .e6-ht{max-width:600px;min-width:0}
.e6-hero.hg .lead{max-width:30em}
.hg-stage{position:relative;width:100%;max-width:640px;justify-self:end;aspect-ratio:1200/1080;isolation:isolate}
.hg-stage>*{position:absolute}
.hg-svg{inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.hg-back{z-index:1}.hg-globe{z-index:2}.hg-front{z-index:3}.hg-stage .hg-spool{z-index:4}
.hg-globe{left:14.1667%;top:3.7037%;width:75%;height:83.3333%;
 -webkit-mask:radial-gradient(closest-side circle at 50% 50%,#000 84.6%,transparent 85.9%);mask:radial-gradient(closest-side circle at 50% 50%,#000 84.6%,transparent 85.9%)}
.hg-globe img,.hg-globe video{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}
.hg-globe video{opacity:0;transition:opacity .6s ease}
.hg-stage.hg-on .hg-globe video{opacity:1}
.hg-halo{z-index:0;left:24%;top:9.6%;width:56%;height:62%;border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.95),rgba(255,255,255,.55) 70%,rgba(255,255,255,0));filter:blur(6px);transform:scale(1.12)}
.hg-floor{z-index:0;left:28.3%;top:85.6%;width:46.7%;height:5.6%;border-radius:50%;background:radial-gradient(closest-side,rgba(70,52,44,.22),rgba(70,52,44,0))}
.hg-stage .hg-spool.e6-bg{inset:auto;left:3.3333%;top:64.8148%;width:20.8333%;height:auto;transform-origin:50% 96%}
.hg-stage .hg-spool img{display:block;width:100%;height:auto;object-fit:contain;object-position:50% 50%}
.hg-spool::after{content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.38) 46%,transparent 60%) 0 0/300% 100% no-repeat;
 -webkit-mask:url(../images/gen/hg-spool.webp) center/100% 100% no-repeat;mask:url(../images/gen/hg-spool.webp) center/100% 100% no-repeat;
 mix-blend-mode:soft-light;animation:hg-sheen 5.4s ease-in-out 3.2s infinite;background-position:120% 0}
.hg-spool-sh{z-index:3;left:1.5%;top:91.4%;width:25%;height:4.4%;border-radius:50%;background:radial-gradient(closest-side,rgba(60,40,32,.34),rgba(60,40,32,0))}
/* thread */
.hg-t{fill:none;stroke:var(--red,#E3141B);stroke-width:5.4;stroke-linecap:round;stroke-dasharray:1000 1000;stroke-dashoffset:1000}
.hg-back .hg-t{opacity:.72}
.hg-s{fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-dasharray:22 178;opacity:0}
.hg-t1{animation:hg-draw .95s cubic-bezier(.45,0,.25,1) .35s forwards}
.hg-t2{animation:hg-draw 1.25s linear 1.28s forwards}
.hg-t3{animation:hg-draw 1.25s cubic-bezier(.2,0,.3,1) 2.5s forwards}
.hg-s{animation:hg-flow 4.2s linear 3.8s infinite,hg-in .6s ease 3.8s forwards}
.hg-back .hg-s{opacity:0;animation:hg-flow 4.2s linear 3.8s infinite,hg-in2 .6s ease 3.8s forwards}
.hg-stage .hg-spool.e6-bg{animation:hg-tug .9s ease-in-out .3s 1,hg-rock 7s ease-in-out 3.6s infinite}
@keyframes hg-draw{to{stroke-dashoffset:0}}
@keyframes hg-flow{from{stroke-dashoffset:0}to{stroke-dashoffset:-200}}
@keyframes hg-in{to{opacity:.55}}
@keyframes hg-in2{to{opacity:.3}}
@keyframes hg-sheen{0%{background-position:120% 0}55%,100%{background-position:-20% 0}}
@keyframes hg-tug{0%,100%{transform:rotate(0)}35%{transform:rotate(-2.2deg)}70%{transform:rotate(1deg)}}
@keyframes hg-rock{0%,100%{transform:rotate(0)}50%{transform:rotate(-.9deg)}}
/* night */
html.e7-night .e6-hero.hg{background:radial-gradient(60% 75% at 72% 50%,#2A2160 0%,#151036 45%,#0B0820 100%)}
html.e7-night .hg-halo{background:radial-gradient(closest-side,rgba(255,236,226,.55),rgba(255,120,140,.22) 62%,rgba(255,120,140,0));filter:blur(14px);transform:scale(1.32)}
html.e7-night .hg-floor{background:radial-gradient(closest-side,rgba(0,0,0,.45),rgba(0,0,0,0))}
html.e7-night .hg-spool-sh{background:radial-gradient(closest-side,rgba(0,0,0,.55),rgba(0,0,0,0))}
html.e7-night .hg-t{stroke:var(--omg-red-on-dark,#FF3A41);filter:drop-shadow(0 0 3px rgba(255,58,65,.65))}
html.e7-night .hg-globe{filter:brightness(.95)}
html.e7-night .hg-stage .hg-spool img{filter:brightness(1.08) saturate(1.12) drop-shadow(0 0 18px rgba(255,170,150,.18))}
html.e7-night .e6-hero.hg .e6-link{color:#fff}
/* layout */
@media (min-width:1101px){
 .e6-hero.hg{align-items:center;padding-top:clamp(48px,5vw,72px)}
 .e6-hero.hg .hg-wrap{grid-template-columns:minmax(0,560px) minmax(0,1fr)}
 .e6-hero.hg .hg-stage{width:calc(100% + 48px);margin-right:-48px;margin-top:clamp(16px,3svh,48px);max-width:min(740px,calc((100svh - var(--header-h,64px) - 60px) * 1.111))}
}
@media (min-width:861px) and (max-width:1100px){
 .e6-hero.hg .hg-wrap{grid-template-columns:minmax(0,1fr) minmax(0,.92fr)}
 .e6-hero.hg h1{font-size:clamp(2.1rem,4.4vw,3rem)}
 .e6-hero.hg .hg-stage{width:calc(100% + 32px);margin-right:-32px}
}
@media (max-width:860px){
 .e6-hero.hg{align-items:flex-start;min-height:0}
 .e6-hero.hg .hg-wrap{grid-template-columns:minmax(0,1fr);row-gap:6px}
 .e6-hero.hg .e6-ht{max-width:620px}
 .hg-stage{justify-self:center;width:min(100%,520px);margin:-2% auto 0}
 .e6-hero.hg .e6-scroll{display:none}
}
@media (max-width:700px){
 .e6-hero.hg{padding-bottom:28px}
 .e6-hero.hg h1{font-size:clamp(2.05rem,10vw,2.6rem)}
 .e6-hero.hg .lead{margin-bottom:24px}
 .e6-hero.hg .btn-row{gap:18px;flex-wrap:wrap}
 .hg-stage{width:min(calc(100% + 24px),440px)}
}
@media (max-width:360px){.e6-hero.hg h1{font-size:1.95rem}.e6-hero.hg .eyebrow{letter-spacing:.12em}}
/* reduced motion: still composition, thread fully drawn */
@media (prefers-reduced-motion:reduce){
 .hg-t{animation:none;stroke-dashoffset:0}.hg-s,.hg-back .hg-s{animation:none;opacity:0}
 .hg-stage .hg-spool.e6-bg,.hg-spool::after{animation:none}
}
html.reduce-motion .hg-t{animation:none;stroke-dashoffset:0}
html.reduce-motion .hg-s{animation:none;opacity:0}
html.reduce-motion .hg-stage .hg-spool.e6-bg,html.reduce-motion .hg-spool::after{animation:none}
