/* V10: MANN PATEL / A PERSONAL CINEMATIC JOURNEY
   Intentionally non-jacking, performance-conscious motion. */
:root{--film-ease:cubic-bezier(.19,1,.22,1);--cine-gold:#e1bf89;--cine-light:#f1e6d2}
html{scroll-behavior:smooth}
body{background:#0b0c0d}
/* Chapter index is a quiet filmmaking device, not another callout. */
.cinema-chapter-rail{position:fixed;left:max(25px,2.2vw);top:50%;z-index:95;display:flex;align-items:center;flex-direction:column;gap:17px;transform:translateY(-50%);opacity:0;transition:opacity .7s var(--film-ease);pointer-events:none;mix-blend-mode:normal}
body.intro-finished.scrolled-past-hero .cinema-chapter-rail{opacity:.86}
.cinema-rail-index{font:600 8px Manrope,Arial,sans-serif;color:#cfae7c;letter-spacing:.16em;writing-mode:vertical-rl}
.cinema-rail-line{display:block;width:1px;height:108px;background:rgba(196,174,137,.22);position:relative;overflow:hidden}
.cinema-rail-fill{position:absolute;left:0;top:0;width:100%;height:100%;background:#d6b98a;transform:scaleY(var(--rail-progress,0));transform-origin:top;transition:transform .25s linear}
.cinema-rail-label{font:600 8px Manrope,Arial,sans-serif;color:#c6b9a6;writing-mode:vertical-rl;letter-spacing:.23em;max-height:144px}
/* Hero becomes a moving title sequence. Cinematic light remains behind the real words. */
.hero.cinematic-hero{overflow:hidden;contain:paint}
.cinema-hero-wash{position:absolute;z-index:1;inset:0;pointer-events:none;opacity:var(--cine-wash-alpha,0);background:linear-gradient(0deg,#0b0d0fe8 0%,#0b0d0f66 25%,transparent 70%)}
.cinema-hero-scanner{position:absolute;inset:-10% -65%;height:120%;z-index:0;pointer-events:none;opacity:.45;transform:translate3d(var(--cine-sweep,0px),0,0) rotate(-18deg);background:linear-gradient(90deg,transparent 44%,rgba(247,210,149,.025) 49%,rgba(226,195,147,.09) 50%,rgba(248,210,160,.025) 51%,transparent 58%);mix-blend-mode:screen}
.hero .identity-object{transform:translate3d(calc(var(--cine-identity-x,0px) + var(--cine-pointer-x,0px)),calc(var(--identity-y,0px) + var(--cine-identity-y,0px) + var(--cine-pointer-y,0px)),0) rotate(var(--cine-identity-rotate,0deg)) scale(var(--cine-identity-scale,1));transform-origin:center center;transition:opacity .24s linear}
.hero .identity-monogram{filter:drop-shadow(0 0 48px rgba(219,175,108,.11))}
.hero .hero-main{opacity:var(--cine-hero-opacity,1)!important;transform:translate3d(0,var(--cine-hero-y,0px),0) scale(var(--cine-hero-scale,1));transform-origin:30% 65%;transition:opacity .12s linear}
.hero .hero-name{filter:drop-shadow(0 8px 55px rgba(0,0,0,.25));perspective:800px}
.hero .hero-kicker{letter-spacing:.28em}
.hero .hero-chrome{transform:scale(var(--cine-frame-scale,1));opacity:var(--cine-frame-alpha,.54);transition:opacity .1s linear}
/* A slow opening: deliberate rather than an infinite loading screen. */
.js .intro-curtain{background:#090b0d}
.intro-center{will-change:opacity,transform}
body:not(.intro-finished) .intro-crest{animation:cineCrestIn 1.2s var(--film-ease) both}
body:not(.intro-finished) .intro-center p{animation:cineCaptionIn .9s .27s var(--film-ease) both}
body:not(.intro-finished) .intro-bottom{animation:cineCaptionIn 1s .45s var(--film-ease) both}
@keyframes cineCrestIn{from{opacity:0;transform:translateY(28px) scale(.9);filter:blur(6px)}to{opacity:1;transform:none;filter:blur(0)}}
@keyframes cineCaptionIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
/* Mask-like typography reveals for hero chapters, no opacity hiding after the animation. */
.js .section-marker .thin-rule{transform-origin:left;transform:scaleX(.24);transition:transform 1.45s var(--film-ease)}
.js .cinema-shot-live .section-marker .thin-rule{transform:scaleX(1)}
.js .cinema-shot-live .section-marker>span:first-child{color:#d4b487}
.js .manifesto .statement,.js .work-heading .display-title,.js .contact-big,.js .mathgem-header .feature-title,.js .automation-top .display-title{will-change:transform}
.js .cinema-shot-live .statement,.js .cinema-shot-live .work-heading .display-title,.js .cinema-shot-live .contact-big{animation:cineWordArrival 1.2s var(--film-ease) both}
@keyframes cineWordArrival{0%{clip-path:inset(0 0 35% 0);transform:translateY(18px)}100%{clip-path:inset(0);transform:translateY(0)}}
/* Material reveals on project interfaces. These are real screens and working studies, not stock imagery. */
.mathgem-feature .product-device{transform-origin:52% 30%;transition:opacity 1.3s var(--film-ease),transform 1.4s var(--film-ease),filter 1.3s var(--film-ease)}
.mathgem-feature .product-device.reveal:not(.in-view){transform:perspective(1700px) rotateX(8deg) translateY(65px) scale(.95);filter:brightness(.83) blur(2px)}
.mathgem-feature .product-device.reveal.in-view{transform:perspective(1700px) rotateX(0) translateY(0) scale(1);filter:none}
.product-device:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:5;background:linear-gradient(108deg,transparent 42%,rgba(246,226,182,.11) 50%,transparent 58%);transform:translateX(-130%);transition:transform 1.8s var(--film-ease)}
.product-device.in-view:after{transform:translateX(140%)}
.workflow-panel.precision-console{transform-origin:50% 20%;transition:opacity 1.2s var(--film-ease),transform 1.45s var(--film-ease),box-shadow .7s var(--film-ease)!important}
.workflow-panel.precision-console.reveal:not(.in-view){transform:perspective(1600px) rotateX(7deg) translateY(44px) scale(.98)!important}
.workflow-panel.precision-console.reveal.in-view{transform:perspective(1600px) rotateX(0) translateY(0) scale(1)!important}
/* Website film scenes fade as an editorial cut, not a jarring slide. */
.website-director .director-copy{transform:translate3d(0,var(--cine-director-y,0px),0);transition:transform .23s linear}
.website-director .director-index{color:#edd0a1}
.website-director .director-shot.current .scene-art{animation:cineSceneFocus 1.35s var(--film-ease) both}
@keyframes cineSceneFocus{from{opacity:.5;transform:scale(1.045)}to{opacity:1;transform:scale(1)}}
.director-copy.scene-cut h3,.director-copy.scene-cut>p{animation:cineSceneTitle .9s var(--film-ease) both}
.director-copy.scene-cut>p{animation-delay:.08s}
@keyframes cineSceneTitle{from{opacity:.25;transform:translateY(21px);filter:blur(6px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
.concept .concept-image{transition:transform .8s var(--film-ease),box-shadow .8s var(--film-ease)}
.concept:hover .concept-image{transform:translateY(-7px);box-shadow:0 26px 65px rgba(0,0,0,.18)}
/* A single cinematic guide: progressive glide on a safe rail, no automatic dialogue. */
.avatar-follower,.avatar-follower.visible{transform:translate3d(calc(var(--guide-x,0px) + var(--cine-avatar-x,0px)),calc(var(--guide-y,0px) + var(--guide-lift,0px) + var(--cine-avatar-y,0px)),0) rotate(var(--cine-avatar-rotation,0deg)) scale(var(--cine-avatar-scale,1));transform-origin:60% 100%;transition:transform 1.24s var(--film-ease),opacity .65s var(--film-ease),width .8s var(--film-ease),height .8s var(--film-ease)!important;will-change:transform}
.avatar-follower .avatar-button{animation:avatarFloat 7s ease-in-out infinite}
.avatar-follower .avatar-button img{transition:transform .75s var(--film-ease),filter .5s}
.avatar-follower.cine-moving .avatar-button img{filter:drop-shadow(0 0 10px rgba(221,178,114,.25)) brightness(1.08)}
.avatar-follower .avatar-halo{filter:blur(9px);opacity:.64}
.avatar-follower:after{content:'';position:absolute;z-index:0;left:34%;bottom:8%;width:39%;height:38%;background:radial-gradient(ellipse at center,rgba(228,180,106,.16),transparent 75%);border-radius:50%;pointer-events:none;opacity:.45;transform:scale(.8);transition:opacity 1s,transform 1s}
.avatar-follower.cine-moving:after{opacity:.92;transform:scale(1.32)}
.avatar-follower.show-tip{--cine-avatar-scale:1!important}
/* Gentle accent for personal development, not extra boxes. */
.hero-student-note{letter-spacing:.1em}
.services .service-card:focus-within{outline:1px solid #9b7b54;outline-offset:-2px}
/* Keep the stage human and useable on phones. */
@media(max-width:900px){.cinema-chapter-rail{display:none}.hero .hero-main{transform:translate3d(0,calc(var(--cine-hero-y,0px) * .5),0) scale(var(--cine-hero-scale,1))}.hero .identity-object{transform:translate3d(calc(var(--cine-identity-x,0px) * .4),var(--identity-y,0px),0)}}
@media(max-width:700px){.avatar-follower,.avatar-follower.visible{transform:translate3d(calc(var(--guide-x,0px) + var(--cine-avatar-x,0px)),calc(var(--guide-y,0px) + var(--guide-lift,0px) + var(--cine-avatar-y,0px)),0) rotate(var(--cine-avatar-rotation,0deg)) scale(var(--cine-avatar-scale,1));transition:transform 1s var(--film-ease),opacity .5s, width .7s,height .7s!important}.hero .hero-kicker{letter-spacing:.18em}.hero .hero-main{transform:none;opacity:1!important}.cinema-hero-scanner{opacity:.25}.product-device:after{display:none}}
@media(hover:none){.concept:hover .concept-image{transform:none;box-shadow:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.cinema-chapter-rail{display:none}.cinema-hero-wash,.cinema-hero-scanner{display:none}.hero .hero-main,.hero .identity-object,.hero .hero-chrome,.avatar-follower,.avatar-follower.visible,.workflow-panel.precision-console,.mathgem-feature .product-device{transform:none!important;animation:none!important;transition:none!important;filter:none!important;opacity:1!important}.product-device:after,.avatar-follower:after{display:none}.js .section-marker .thin-rule{transform:none}.js .cinema-shot-live .statement,.js .cinema-shot-live .work-heading .display-title,.js .cinema-shot-live .contact-big{animation:none}.avatar-follower.mobile-hero-hidden{opacity:0!important}}

/* Small screens: keep the guide accessible but off important interface labels. */
@media(max-width:700px){
.avatar-follower.is-dense:not(.show-tip){width:73px!important;height:113px!important;right:-4px!important;bottom:-6px!important;opacity:.88}
.avatar-follower.is-dense:not(.show-tip) .avatar-label{font-size:5px;padding:3px 4px}
.avatar-follower.is-dense.show-tip{right:0!important}
}


/* V11 luxury refinement: fix hero stacking/overlap and create more breathing room */
.hero.cinematic-hero{min-height:100svh}
.hero .hero-topline{top:102px!important;left:max(5.7vw,24px)!important;right:max(5.7vw,24px)!important;z-index:4;align-items:flex-start}
.hero .hero-topline .eyebrow{font-size:10px;letter-spacing:.18em;line-height:1.4;white-space:nowrap}
.hero .hero-topline .eyebrow.subdued{opacity:.78}
.hero .hero-main{width:min(100% - 11.4vw,1420px)!important;margin:0 max(5.7vw,24px) 11vh!important;padding-top:190px!important;position:relative;z-index:3}
.hero .hero-kicker{margin-bottom:12px!important;font-size:10px!important;letter-spacing:.28em;opacity:.95}
.hero .hero-student-note{margin:0 0 34px!important;opacity:.9}
.hero .hero-name{max-width:1120px;line-height:.82!important;letter-spacing:-.055em!important;margin:0 0 34px!important}
.hero .hero-statement{max-width:760px!important;font-size:clamp(38px,4.6vw,66px)!important;line-height:.98!important;text-shadow:0 10px 28px rgba(0,0,0,.16)}
.hero .hero-bottom{max-width:980px!important;align-items:flex-end;gap:36px}
.hero .hero-bottom p{max-width:420px!important;font-size:15px!important;color:#e7dfd2}
.hero .circle-link{width:122px;height:122px;border-color:rgba(244,228,200,.82);box-shadow:0 0 0 1px rgba(225,191,137,.08),0 16px 40px rgba(0,0,0,.16);backdrop-filter:blur(2px)}
.hero .circle-link:hover{box-shadow:0 20px 50px rgba(0,0,0,.22),0 0 0 1px rgba(214,185,138,.32)}
.hero .hero-foot{bottom:24px!important;z-index:4;color:#d8cfbf}
.hero .hero-foot .scroll-stem{background:linear-gradient(90deg,rgba(225,191,137,.95),rgba(225,191,137,.35))!important}
.hero .hero-chrome{opacity:.66!important;border:1px solid rgba(225,191,137,.18)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)}
.hero .identity-rings{opacity:.42!important;filter:drop-shadow(0 0 18px rgba(219,175,108,.10))}
.cinema-hero-scanner{opacity:.3!important}
.cinema-hero-wash{background:linear-gradient(0deg,#090a0cee 0%,#0c0e1066 26%,transparent 72%),radial-gradient(circle at 76% 28%,rgba(225,191,137,.09),transparent 26%)!important}
@media(max-width:1180px){
 .hero .hero-main{padding-top:178px!important}
 .hero .hero-name{max-width:980px}
 .hero .hero-statement{font-size:clamp(34px,4.2vw,58px)!important}
}
@media(max-width:900px){
 .hero .hero-topline{top:96px!important;display:flex!important;gap:14px;flex-wrap:wrap}
 .hero .hero-topline .eyebrow{font-size:9px;white-space:normal}
 .hero .hero-main{padding-top:168px!important;margin:0 6vw 12vh!important;width:88vw!important}
 .hero .hero-kicker{font-size:9px!important}
 .hero .hero-student-note{margin-bottom:26px!important}
 .hero .hero-name{margin-bottom:28px!important}
 .hero .hero-statement{font-size:clamp(31px,6.2vw,49px)!important;max-width:640px!important}
 .hero .hero-bottom p{font-size:13px!important;max-width:320px!important}
 .hero .circle-link{width:106px;height:106px}
}
@media(max-width:640px){
 .hero .hero-topline{top:88px!important;left:23px!important;right:23px!important;display:block!important}
 .hero .hero-topline .eyebrow{display:block;font-size:8px;line-height:1.45}
 .hero .hero-topline .eyebrow.subdued{display:none!important}
 .hero .hero-main{padding-top:152px!important;margin:0 23px 12vh!important;width:auto!important}
 .hero .hero-kicker{font-size:8px!important;letter-spacing:.22em!important}
 .hero .hero-student-note small{font-size:8px!important;letter-spacing:.16em!important}
 .hero .hero-student-note{margin-bottom:20px!important}
 .hero .hero-name{margin-bottom:22px!important;font-size:clamp(68px,17vw,108px)!important;line-height:.84!important}
 .hero .hero-statement{font-size:clamp(28px,8vw,42px)!important;max-width:430px!important}
 .hero .hero-bottom{gap:18px;align-items:center}
 .hero .hero-bottom p{max-width:220px!important;font-size:12px!important}
 .hero .circle-link{width:90px;height:90px;font-size:8px;box-shadow:none}
}

/* V12: less annotation, more editorial space */
.hero .hero-kicker{margin-bottom:34px!important}
.hero .hero-name{margin-bottom:37px!important}
.hero .hero-topline .eyebrow.subdued{letter-spacing:.2em;opacity:.62}
.concept-caption{letter-spacing:.16em}
.precision-disclaimer{letter-spacing:.09em;opacity:.82}
@media(max-width:640px){.hero .hero-kicker{margin-bottom:24px!important}.hero .hero-name{margin-bottom:27px!important}}
