/* Shree Infotech 10.9.13 - readability + layout fix layer (loaded last on every public page)
   1. No more word-by-word split headings or tilted/scaled cards while scrolling
   2. Stronger text contrast in dark and light themes
   3. Nothing wider than the phone screen
   4. Silk motion layer (assets/fx-silk.js, 10.9.16) */

/* ---------- 1. Stable text and cards ---------- */
html .t-w{display:inline!important;opacity:1!important;transform:none!important;transition:none!important}
html .t-wb{opacity:1!important;transform:none!important}
html.v8.t-dep-on .t-dep,html.v8.t3d-on .tx3.t3-in.t-dep{transform:none!important}
/* simple fade-up reveal instead of the 3D flip (cards stay straight and the same width) */
html.v8.t3d-on .tx3{opacity:0;transform:translate3d(0,22px,0)!important;filter:blur(6px);transition:opacity .7s ease,transform .8s cubic-bezier(.2,.8,.2,1),filter .7s ease!important;transition-delay:calc(var(--t3i,0) * 70ms)!important}
html.v8.t3d-on .tx3.t3-in{opacity:1;transform:none!important;filter:none}
html.v8.t3d-on .tx3.t3-in.t3-done{transition:opacity .2s,transform .2s!important;transition-delay:0s!important;filter:none}
@media (prefers-reduced-motion:reduce){html.v8.t3d-on .tx3{opacity:1!important;transform:none!important;filter:none!important;transition:none!important}}

/* headings: normal word wrapping, no mid-word breaks, comfortable spacing */
main :is(h1,h2,h3,.v-h1,.v-h2,.v-h3,.hx-h2,.pg-title){overflow-wrap:normal;word-break:normal;hyphens:manual;text-wrap:balance}
main :is(.v-h1,.v-h2,.hx-h2,.r-studio-copy h1,.pg-title){letter-spacing:-.025em!important;line-height:1.08!important}
main :is(p,li,dd,td,small,.v-lead){overflow-wrap:break-word;word-break:normal;text-wrap:pretty}

/* ---------- 2. Contrast: dark theme ---------- */
html.dark{--fx-txt:#eef3ff;--fx-sub:#c7d3ea;--fx-dim:#aebcd8;--fx-link:#93b8ff}
html.dark body main :is(p,li,dd,td,small,label,.v-lead,.theme-subtext,.hx-sub,.text-slate-300,.text-slate-400,.text-slate-500,.text-gray-300,.text-gray-400,.text-gray-500){color:var(--fx-sub)!important;-webkit-text-fill-color:currentColor!important}
html.dark body main :is(h1,h2,h3,h4,dt,b,strong,.theme-heading,.v-h3){-webkit-text-fill-color:currentColor}
html.dark body main :is(h3,h4,.theme-heading,.v-h3){color:var(--fx-txt)!important}
html.dark body main :is(.text-xs,.text-\[11px\],.text-\[10px\]){opacity:1!important}
/* check-list lines inside cards */
html.dark body main ul[class*="text-emerald"] li,html.dark body main ul[class*="text-sky"] li,html.dark body main ul[class*="text-blue"] li{color:#9fe3c1!important}
/* quotation / info notice boxes (amber) */
html body main [class*="bg-amber-500/10"]{background:#3a2a0a!important;border-color:#f5b94a!important;color:#fff4d6!important}
html body main [class*="bg-amber-500/10"] :is(p,strong,span,i){color:#fff4d6!important;-webkit-text-fill-color:#fff4d6!important}
html body main [class*="bg-amber-500/10"] strong.text-amber-400,html body main [class*="bg-amber-500/10"] .text-amber-400{color:#ffcf5c!important;-webkit-text-fill-color:#ffcf5c!important}
html body main [class*="bg-amber-500/10"] i{color:#ffcf5c!important}
html.light body main [class*="bg-amber-500/10"]{background:#fff6e0!important;border-color:#d99a1e!important}
html.light body main [class*="bg-amber-500/10"] :is(p,strong,span,i){color:#4a3205!important;-webkit-text-fill-color:#4a3205!important}
html.light body main [class*="bg-amber-500/10"] .text-amber-400{color:#8a5300!important;-webkit-text-fill-color:#8a5300!important}

/* ---------- Contrast: light theme ---------- */
html.light body main :is(.v-lead,.theme-subtext,.hx-sub,.text-slate-400,.text-slate-500,.text-gray-400,.text-gray-500):not(figcaption *):not(.bg-brand-cyan){color:#334155!important;-webkit-text-fill-color:currentColor!important}
html.light body main :is(h3,h4,.theme-heading){color:#0b1530!important}
html.light body main ul[class*="text-emerald"] li{color:#05603a!important}

/* readable minimum sizes on phones */
@media (max-width:640px){
  main .text-\[10px\],main .text-\[11px\]{font-size:12.5px!important;line-height:1.5!important}
  main .text-xs{font-size:13px!important;line-height:1.55!important}
  main p{line-height:1.6}
}

/* ---------- 3. Nothing wider than the screen ---------- */
html,body{overflow-x:clip}
.v-phero .v-wrap,.v-phero-head,.v-phero-head>*{min-width:0;max-width:100%}
.v-phero-acts{display:flex;flex-wrap:wrap!important;gap:10px}
.v-phero-acts .v-btn{white-space:nowrap}
.v-pstats{display:flex;flex-wrap:wrap;gap:14px 22px}
.v-pstats>div{min-width:0}
main table{max-width:100%}
main :is(.cc-table,.gd-table){display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:normal}
@media (max-width:640px){
  .v-phero-head{display:block!important}
  .v-phero-acts .v-btn{flex:1 1 auto;justify-content:center}
  .v-seo-h1{white-space:normal!important}
}
/* header: keep every button inside the screen on small phones */
@media (max-width:420px){
  .r-nav-right{gap:6px!important;margin-right:0!important}
  .r-nav-right .r-icon-btn,.r-nav-right .sc-nav-cart{min-width:40px!important;padding-inline:6px!important}
  .r-nav-right>.r-head-app,.r-nav-right>a[href="/get"],.r-nav-right>a[href="get"],.r-nav-right>a[href="get.html"]{display:none!important}
}

/* background globe a little softer so text in front of it stays clear */
#t3d{opacity:.55!important}
@media (max-width:760px){#t3d{opacity:.35!important}}

@media (max-width:640px){
  .v-pstats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .v-pstats dt{font-size:clamp(1.05rem,5.4vw,1.5rem)!important;white-space:nowrap}
  .v-pstats dd{font-size:10.5px!important;letter-spacing:.08em}
}
/* remaining low-contrast bits found by the automatic check */
html.dark body main :is(.text-amber-500,.text-amber-400):not([class*="bg-amber-500/10"] *){color:#fcd34d!important;-webkit-text-fill-color:#fcd34d!important}
html.dark body main .cat-go{color:#a5c4ff!important}
html.dark body main span.font-mono.text-xs{filter:brightness(1.35)}
html.dark body main .text-xs.font-semibold{color:#d5def0!important}
html.dark body main .bg-brand-cyan{color:#03202b!important;-webkit-text-fill-color:#03202b!important}
html.dark body footer a:not(.v-btn):not(.r-btn){color:#c9d6f0}
html.light body main .s3d-kicker{color:#00668a!important}
html.light body main .amc-opt{color:#1e293b}
html.dark body main :is(p,li,dd,address)>a:not([class]),html.dark body main a.v87-mail-foot{color:#8fb4ff}
/* contact/about stat numbers were transparent (gradient text without gradient) */
html body .sx-stat b{color:#f3f7ff!important;-webkit-text-fill-color:#f3f7ff!important;-webkit-background-clip:border-box!important;background-clip:border-box!important}
html.light body .sx-stat b{color:#0b1530!important;-webkit-text-fill-color:#0b1530!important}

/* ---------- 4. 10.9.16 silk motion layer (assets/fx-silk.js), inspired by apekon.com ---------- */
html.fx-silk-on #t3d{display:none!important}
#fx-silk{position:fixed;inset:0;width:100vw;height:100vh;z-index:-1;pointer-events:none;opacity:0;transition:opacity 1.6s ease}
#fx-silk.on{opacity:1}
@media (max-width:760px){#fx-silk.on{opacity:.8}}
@media print{#fx-silk,.fx-cur,.fx-cur-dot,.fx-tri{display:none!important}}
/* intro: triangle grid opens from the centre */
.fx-tri{position:fixed;inset:0;z-index:2147483000;pointer-events:none}
.fx-tri canvas{position:absolute;inset:0;width:100%;height:100%}
.fx-tri img{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:16px;object-fit:contain;transition:opacity .45s ease,transform .7s cubic-bezier(.22,1,.36,1)}
.fx-tri.go img{opacity:0;transform:scale(.6)}
/* headings: soft blur fade-in, whole line */
.fx-sk{opacity:0;filter:blur(10px);transform:translateY(18px);transition:opacity .9s cubic-bezier(.22,1,.36,1),filter .9s cubic-bezier(.22,1,.36,1),transform 1s cubic-bezier(.22,1,.36,1)}
html.fx-go .fx-sk.fx-sk-in{opacity:1;filter:none;transform:none}
/* menu words roll up on hover */
.fx-roll{display:inline-grid;overflow:hidden;vertical-align:top;line-height:1.25}
.fx-roll>span{grid-area:1/1;transition:transform .5s cubic-bezier(.22,1,.36,1)}
.fx-roll-b{transform:translateY(110%)}
a:hover>.fx-roll .fx-roll-a,a:focus-visible>.fx-roll .fx-roll-a{transform:translateY(-110%)}
a:hover>.fx-roll .fx-roll-b,a:focus-visible>.fx-roll .fx-roll-b{transform:none}
/* trailing cursor ring (mouse only) */
.fx-cur,.fx-cur-dot{position:fixed;left:0;top:0;z-index:2147482000;pointer-events:none;opacity:0;transition:opacity .3s ease}
html.fx-cur-on .fx-cur,html.fx-cur-on .fx-cur-dot{opacity:1}
.fx-cur{width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;border:1.5px solid rgba(120,170,255,.75);transition:opacity .3s ease,width .35s cubic-bezier(.22,1,.36,1),height .35s cubic-bezier(.22,1,.36,1),margin .35s cubic-bezier(.22,1,.36,1),background-color .35s ease,border-color .35s ease}
.fx-cur.hot{width:58px;height:58px;margin:-29px 0 0 -29px;background:rgba(77,139,255,.12);border-color:rgba(77,139,255,.9)}
.fx-cur.press{width:26px;height:26px;margin:-13px 0 0 -13px}
.fx-cur-dot{width:5px;height:5px;margin:-2.5px 0 0 -2.5px;border-radius:50%;background:#4d8bff}
html.light .fx-cur{border-color:rgba(29,78,216,.6)}
html.light .fx-cur.hot{background:rgba(29,78,216,.08);border-color:rgba(29,78,216,.85)}
html.light .fx-cur-dot{background:#1d4ed8}
.fx-mag{transition:transform .35s cubic-bezier(.22,1,.36,1)}
@media (prefers-reduced-motion:reduce){.fx-sk{opacity:1!important;filter:none!important;transform:none!important;transition:none}.fx-roll>span{transition:none}}
/* let the silk show through the home hero */
html.fx-silk-on .r-restored-home .hx-hero{background:transparent!important}
/* ---------- 5. 10.9.17 WebGL 3D environment (assets/fx-world.js) ---------- */
#fx-world{position:fixed;inset:0;width:100vw!important;height:100vh!important;z-index:-1;pointer-events:none;opacity:0;transition:opacity 1.4s ease}
#fx-world.on{opacity:1}
html.fx-webgl #fx-silk{display:none!important}
html.fx-webgl{background:#02040a!important}
html.fx-webgl.light{background:#e9eef6!important}
@media print{#fx-world{display:none!important}}
/* home hero: the orb lives in this space (the product photo is shown once, in the showroom below) */
.fx-hero-space{position:relative;aspect-ratio:5/4;width:100%;min-height:260px}
.fx-hero-hint{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);font:500 11px/1.2 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:rgba(170,195,255,.6);white-space:nowrap;transition:opacity .4s ease,color .4s ease}
html.light .fx-hero-hint{color:rgba(30,60,140,.6)}
html.fx-orb-hot .fx-hero-hint{color:#7fb0ff}
html.light.fx-orb-hot .fx-hero-hint{color:#1d4ed8}
@media (hover:none),(pointer:coarse){.fx-hero-hint{display:none}}
@media (max-width:899px){.fx-hero-space{aspect-ratio:1/0.82;min-height:0;max-width:440px;margin:0 auto}}
