/* Dark blue identity: soft ambient light, clear hierarchy, interaction-led glow. */
:root{--quiet-bg:#050505;--quiet-panel:#111214;--quiet-line:#273a51;--quiet-text:#e7eef8;--quiet-muted:#a6b6cb;--quiet-accent:#76bcff;--accent:#76bcff}
html,body{background:#050505;color:var(--quiet-text)}body{background:#050505}.ambient{display:block!important;opacity:.35;filter:blur(90px)}.ambient.a{background:#276dff38}.ambient.b{background:#d32b4920;opacity:.24}.circuit{display:block!important;opacity:.06}.portrait-halo{display:block!important;opacity:.55}.topbar{background:#08080ae8;backdrop-filter:blur(18px);border-color:#34517055}.wordmark small,.eyebrow{color:#81bded}.topbar nav button{transition:color .2s,background .2s,box-shadow .2s}.topbar nav button:hover,.topbar nav button.active{color:#b6dcff;background:#2371bd13!important;box-shadow:inset 0 0 0 1px #5caaff24!important;border-radius:8px}.topbar nav button.active:after{height:2px;inset:auto 12px -1px;background:#65b6ff;box-shadow:0 0 10px #509eff38}.lang:hover{color:#b6dcff;background:#1a3150;box-shadow:0 0 16px #357fe712}.home-copy h1{font-size:clamp(36px,4.5vw,60px);line-height:1.16}.portrait-card{max-width:335px}.portrait-card img{border-radius:20px;border-color:#5395c745;box-shadow:0 20px 65px #0005,0 0 30px #2b78df0a}.primary,.secondary{border-radius:11px;transition:background .2s,border-color .2s,box-shadow .2s,transform .2s}.primary{background:linear-gradient(120deg,#246fcc,#2455b8);color:#fff;border:1px solid #80bdff80;box-shadow:0 5px 22px #2676e51a}.primary:hover{background:linear-gradient(120deg,#2772c7,#2b62c3);box-shadow:0 6px 27px #2b87ee30;transform:translateY(-2px)}.secondary{background:#122137;border-color:#324d6b}.secondary:hover{background:#192e48;border-color:#6eacef80;box-shadow:0 0 20px #2885e513;transform:translateY(-2px)}.product-actions .primary{color:#fff}.pill-row span,.product-tags span{background:#10233a;border:1px solid #31517770;border-radius:7px;padding:5px 9px;color:#adc5df}.glass,.slider-card,.experience-card,.graphics-brand-card,.video-card,.graphics-project-card{background:linear-gradient(145deg,#17191e,#101114);border:1px solid #2b415c;border-radius:16px;box-shadow:inset 0 1px 0 #a8d6ff05}.video-card,.graphics-brand-card,.experience-card,.graphics-project-card,.product-feature,.masonry-item{transition:transform .22s,border-color .22s,box-shadow .22s}.video-card:hover,.graphics-brand-card:hover,.experience-card:hover,.graphics-project-card:hover,.product-feature:hover,.masonry-item:hover{border-color:#68b7fa85;box-shadow:0 12px 32px #0004,0 0 24px #2879dc13;transform:translateY(-3px)}.play-dot{background:#0b2039e8;color:#a4d6ff;border-color:#6bbcff77;box-shadow:0 0 16px #348ad51c}.archive-mark{background:#152d47;color:#a1d4ff;border-color:#355a7e}.skill-list i{background:#1a2c42}.skill-list i:after{background:linear-gradient(90deg,#357cdb,#74bbf1);box-shadow:0 0 10px #3989e51c}.tags span{background:#112238;border-color:#2e4968}.contact-grid a:hover{background:#152940;border-color:#4f8bc3}.overlay,.lightbox{background:#050507f7;backdrop-filter:blur(12px)}.overlay-close,.lightbox-close{background:#142338;border-color:#42648a}.overlay-close:hover,.lightbox-close:hover{border-color:#86c8ff;box-shadow:0 0 18px #338de526}.loading-screen{background:#050505}.loader-ring{border-color:#203651;border-top-color:#76bcff}.product-features article{border-color:#2a405c}.product-visual{border-color:#2b4564}.product-stats b{color:#a7d4fa}a:focus-visible,button:focus-visible{outline-color:#87c6ff}html,body,.overlay-shell,.gviewer-thumbs,.topbar nav{scrollbar-color:#42658b #0c1726}*::-webkit-scrollbar-thumb{background:#42658b!important;border-color:#0c1726!important}*::-webkit-scrollbar-track{background:#0c1726!important}
@media(hover:hover) and (pointer:fine){html.has-custom-cursor,html.has-custom-cursor body,html.has-custom-cursor a,html.has-custom-cursor button,html.has-custom-cursor [role=button],html.has-custom-cursor .video-card,html.has-custom-cursor .graphics-brand-card,html.has-custom-cursor .graphics-project-card,html.has-custom-cursor .experience-card{cursor:none!important}.pf-cursor-dot,.pf-cursor-trail{display:block!important;pointer-events:none}.pf-cursor-trail{opacity:0}.pf-cursor-trail.is-visible{opacity:.72}.pf-cursor-dot{background:#c9eaff;box-shadow:0 0 8px #7dbbffb3,0 0 calc(15px + 10px * var(--cursor-idle)) #4d9dff55}.pf-cursor-dot.is-hover{background:#e1f4ff;box-shadow:0 0 12px #8bc9ffcc,0 0 27px #4d9dff66}}
@media(max-width:700px){.home-copy h1{font-size:clamp(33px,8vw,45px)}.portrait-card{max-width:300px}.topbar nav button.active:after{display:none}.product-feature-copy h2{font-size:34px}}
@media(prefers-reduced-motion:reduce){.pf-cursor-dot,.pf-cursor-trail{display:none!important}html.has-custom-cursor,html.has-custom-cursor body,html.has-custom-cursor a,html.has-custom-cursor button,html.has-custom-cursor [role=button]{cursor:auto!important}*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
*::-webkit-scrollbar-thumb:hover{background:#6b9bc9!important;box-shadow:inset 0 0 0 1px #a7d9fa55,0 0 11px #428bd140!important}@media(hover:none){.primary:hover,.secondary:hover,.video-card:hover,.graphics-brand-card:hover,.experience-card:hover,.graphics-project-card:hover,.product-feature:hover,.masonry-item:hover{transform:none}}
html[lang=fa] .home-copy h1{font-size:clamp(34px,4vw,54px);line-height:1.5;letter-spacing:0}html[lang=fa] .page-intro h2,html[lang=fa] .contact-card h2{line-height:1.45;letter-spacing:0}@media(max-width:700px){html[lang=fa] .home-copy h1{font-size:34px;line-height:1.5}}

/* The fullscreen trail must not inherit the responsive media width cap. */
.pf-cursor-trail{max-width:none!important;max-height:none!important;margin:0;padding:0;border:0;box-sizing:content-box}



/* Viewport anchored light: no scroll-linked movement or responsive media scaling. */
body{isolation:isolate;background:#050505}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 100vw 100vh at 0% 0%,rgba(37,112,255,.15) 0%,rgba(37,112,255,.10) 25%,rgba(37,112,255,.04) 50%,rgba(37,112,255,0) 71%),radial-gradient(ellipse 100vw 100vh at 100% 100%,rgba(232,43,67,.12) 0%,rgba(232,43,67,.08) 25%,rgba(232,43,67,.032) 50%,rgba(232,43,67,0) 71%)}


.ambient{display:none!important}
.topbar nav{gap:8px}.topbar nav button{padding:10px 16px;min-height:44px;white-space:nowrap;line-height:1.5;border-radius:10px}.topbar nav button.active:after{inset:auto 16px -1px}
@media(min-width:761px) and (max-width:1000px){.topbar nav{gap:5px}.topbar nav button{padding:10px 12px;font-size:12px}}
@media(max-width:760px){.topbar nav{gap:8px;display:none}.topbar nav.is-open{display:flex}.topbar nav button{flex:1 1 calc(33.333% - 8px);padding:12px 14px;white-space:normal;text-align:center}.topbar nav button.active:after{inset:auto 16px -1px}}
/* Decorative red accents stay behind imagery, separate from controls. */
.portrait-card{isolation:isolate}
.portrait-halo{inset:-50px;background:radial-gradient(ellipse,rgba(202,36,58,.14) 0%,rgba(202,36,58,.075) 52%,rgba(202,36,58,0) 80%);filter:blur(32px);opacity:.65;border-radius:35%;pointer-events:none}
.video-card{box-shadow:inset 0 1px 0 #a8d6ff05,0 10px 28px #0003,0 7px 30px rgba(176,30,51,.055)}
.video-card:hover{box-shadow:0 14px 34px #0004,0 8px 36px rgba(185,34,55,.09)}


/* Supplied brand artwork includes its own background. */
.logo-plaque:has(img[src^="/brand-assets/"]),.brand-hero-logo:has(img[src^="/brand-assets/"]){padding:0;background:transparent;overflow:hidden}
.logo-plaque img[src^="/brand-assets/"],.brand-hero-logo img[src^="/brand-assets/"]{width:100%;height:100%;object-fit:contain}

/* Hese Khoob banners form one full-width vertical sequence. */
#graphicsOverlay .overlay-shell:has(>#graphicsContent[data-brand="hesekhob"]){padding:clamp(16px,2vw,24px)}
#graphicsContent[data-brand="hesekhob"]{max-width:none;width:100%}
#graphicsContent[data-brand="hesekhob"] .graphics-brand-head{margin-bottom:28px}
.hese-banner-stack{display:flex;flex-direction:column;gap:clamp(18px,3vw,32px);width:100%}
.hese-banner{display:block;width:100%;padding:0;border:0;border-radius:12px;overflow:hidden;background:transparent;cursor:zoom-in}
.hese-banner img{display:block;width:100%;height:auto}
.hese-banner:focus-visible{outline:2px solid #87c6ff;outline-offset:5px}
#graphicsOverlay:has(#graphicsContent[data-brand="hesekhob"]) .overlay-close{margin:-4px -4px 12px 0}
[dir="rtl"] #graphicsOverlay:has(#graphicsContent[data-brand="hesekhob"]) .overlay-close{margin:-4px 0 12px -4px}

/* Keep the portrait ahead of the introduction on the stacked mobile layout. */
@media(max-width:760px){
 .home-grid{grid-template-columns:minmax(0,1fr);gap:24px;min-height:0}
 .home-grid>.portrait-card{order:-1;width:clamp(136px,40vw,180px);max-width:180px;justify-self:center}
 .home-grid>.home-copy{order:0;min-width:0}
}
