/* NIRANJAN · Navigation & Cinematic UI · Original interactive enhancement */
:root{--nav-height:78px;--ease-premium:cubic-bezier(.2,.77,.23,1)}
html{scroll-padding-top:calc(var(--nav-height) + 16px)}
[id]:target{scroll-margin-top:calc(var(--nav-height) + 16px)}
body{overflow-x:clip}
/* Persistent, editorial navigation – no stray solid strip above the content */
.site-header{
  position:sticky!important;top:0;z-index:210;min-height:var(--nav-height);
  height:var(--nav-height);padding-block:0;
  border-bottom:1px solid rgba(38,29,23,.1);
  background:rgba(238,234,230,.96)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.15);
  backdrop-filter:blur(18px) saturate(1.15);
  transition:background .3s ease,box-shadow .3s ease,border-color .3s ease;
}
.site-header::after{display:none!important}
.site-header.is-scrolled{background:rgba(247,243,239,.94)!important;box-shadow:0 10px 30px rgba(43,32,23,.075);border-bottom-color:rgba(38,29,23,.13)}
.site-header .site-logo{transition:transform .35s var(--ease-premium)}
.site-header .site-logo:hover{transform:translateY(-2px)}
.site-header .desktop-nav a{position:relative;color:#6d6660;transition:color .22s ease}
.site-header .desktop-nav a:is(:hover,:focus-visible),.site-header .desktop-nav a.active{color:#181513}
.site-header .desktop-nav a::after{content:'';position:absolute;bottom:-10px;left:50%;right:50%;height:2px;border-radius:999px;background:#b16f49;transition:left .28s var(--ease-premium),right .28s var(--ease-premium)}
.site-header .desktop-nav a:is(:hover,:focus-visible,.active)::after{left:0;right:0}
.site-header .round-pill{transition:transform .3s var(--ease-premium),box-shadow .3s ease,background .3s ease}
.site-header .round-pill:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(58,43,32,.13)}
.read-progress{height:2px!important;background:#b57956!important;opacity:.8;pointer-events:none}
/* Portrait: a monochrome base, a brief color reveal, then a gentle return to monochrome */
.hero-right{--portrait-rx:0deg;--portrait-ry:0deg;--portrait-px:0px;--portrait-py:0px;perspective:1100px;isolation:isolate}
.hero-right::before{
  content:'';position:absolute;z-index:0;width:min(90%,510px);height:76%;
  top:11%;left:50%;transform:translateX(-50%) translateY(18px) scale(.98);
  border-radius:50%;background:radial-gradient(ellipse at 52% 48%,rgba(209,161,122,.28),rgba(194,166,143,.11) 49%,transparent 72%);
  filter:blur(22px);pointer-events:none;transition:transform .6s var(--ease-premium),opacity .5s ease;opacity:.56;
}
.hero-right:hover::before,.hero-right:focus-within::before{transform:translateX(-50%) translateY(1px) scale(1.03);opacity:.9}
.hero-right .photo-frame{
  filter:none!important;/* grayscale is on the image, not the button or frame */
  transform:perspective(1050px) rotateX(var(--portrait-rx)) rotateY(var(--portrait-ry)) translate3d(0,-2px,12px)!important;
  transform-style:preserve-3d;will-change:transform;
  transition:transform .55s var(--ease-premium),filter .28s ease;
  box-shadow:0 24px 38px -30px rgba(48,35,26,.35);
  backface-visibility:hidden;
}
.hero-right .photo-frame img{
  filter:grayscale(1) saturate(.28) contrast(1.075)!important;
  transform:translate3d(var(--portrait-px),var(--portrait-py),0) scale(1.055);
  transition:filter .26s ease,transform .6s var(--ease-premium);
  will-change:filter,transform;
}
.hero-right .photo-frame.is-color-flash img{
  filter:grayscale(0) saturate(1.14) contrast(1.02)!important;
}
.hero-right .photo-frame::after{
  content:'';position:absolute;inset:0;z-index:2;pointer-events:none;border:0!important;
  background:linear-gradient(112deg,transparent 30%,rgba(255,249,226,.14) 49%,transparent 70%);
  background-size:240% 100%;background-position:100% 50%;opacity:0;
  transition:background-position 1.05s var(--ease-premium),opacity .4s ease;
}
.hero-right .photo-frame.is-color-flash::after{background-position:0% 50%;opacity:.82}
.hero-ability-pill{z-index:4;transition:transform .3s var(--ease-premium),box-shadow .3s ease!important}
.hero-ability-pill:hover{transform:translate(-50%,-4px)!important;box-shadow:0 8px 20px rgba(15,12,10,.15)}
/* Small depth effects on the role notepad, project windows, and floating controls. */
.hero-left .pad{transition:transform .5s var(--ease-premium),box-shadow .5s var(--ease-premium);transform-style:preserve-3d}
@media(hover:hover) and (pointer:fine){
  .hero-left .pad:hover{transform:perspective(800px) rotateX(3deg) rotateY(-4deg) translateY(-5px);box-shadow:0 3px #cfcbc2,0 6px #e8e4da,0 9px #bcb7ad,9px 23px #191815,12px 36px 34px #211c182e}
  .project-feature .project-visual .real-shot{transition:transform .55s var(--ease-premium),box-shadow .55s ease;transform-style:preserve-3d}
  .project-feature .project-visual:hover .real-shot{transform:perspective(1100px) rotateY(-2.8deg) rotateX(2deg) translateY(-7px);box-shadow:0 28px 62px rgba(31,21,13,.19)}
  .work-case .work-art .work-shot-frame{transition:transform .6s var(--ease-premium),box-shadow .6s ease}
  .work-case .work-art:hover .work-shot-frame{transform:perspective(1050px) rotateY(3deg) translateY(-5px);box-shadow:0 25px 45px rgba(35,26,18,.19)}
  .primary-btn,.secondary-btn{transition:transform .25s var(--ease-premium),box-shadow .25s ease,background .25s ease}
  .hero-actions .primary-btn:hover,.hero-actions .secondary-btn:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(40,30,22,.11)}
}
/* Mobile should never be forced into a hover/tilt state. */
@media(max-width:850px){:root{--nav-height:76px}.site-header{min-height:76px;height:76px}.hero-right::before{height:74%}}
@media(max-width:600px){:root{--nav-height:70px}.site-header{min-height:70px;height:70px}.hero-right .photo-frame{transform:none!important}.hero-right .photo-frame img{transform:scale(1.025)}.hero-ability-pill:hover{transform:translate(-50%,0)!important}.hero-left .pad:hover{transform:rotate(-1.5deg)}}
@media(prefers-reduced-motion:reduce){
  .hero-right .photo-frame,.hero-right .photo-frame img,.hero-right .photo-frame::after,.hero-right::before,.site-header{transition:none!important;will-change:auto!important}
  .hero-right .photo-frame img{filter:grayscale(.65) contrast(1.03)!important;transform:none!important}
  .hero-right .photo-frame.is-color-flash img{filter:none!important}
  .hero-left .pad:hover,.project-feature .project-visual:hover .real-shot{transform:none!important}
}
/* Keep the full-screen mobile navigation above the sticky header. */
.mobile-menu{z-index:280!important}
