/* DVG International: interaction layer (preview).
   Loaded after ledger.css. Brand colours, type and content untouched.
   1 liquid-glass masthead  2 scroll states: curtain hero, reveals, scenes  3 Ganesha in 3D  4 reduced motion */

/* ---- 1. masthead: the raised capsule from the earlier build (ledger.css), plus the gliding lens ---- */
/* the lens: one glass droplet that glides to whichever link is under the pointer */
.nav-list{position:relative}
.nav-lens{position:absolute;left:0;top:50%;height:40px;width:0;border-radius:999px;pointer-events:none;z-index:-1;opacity:0;
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,253,248,.7));
  box-shadow:0 0 0 .5px rgba(14,21,36,.1),inset 0 1px 0 #fff,0 6px 16px -8px rgba(14,21,36,.35);
  transform:translate3d(var(--lx,0),-50%,0);transition:transform .5s var(--enter),width .5s var(--enter),opacity .25s var(--ease)}
.nav-lens.on{opacity:1}
.has-lens .nav-link:hover,.has-lens .nav-link:focus-visible,.has-lens .nav-link[aria-expanded="true"],.has-lens .nav-link[aria-current="page"]{background:transparent}
.menu{transform-origin:top center}
@media (max-width:1080px){
  .nav-lens{display:none}
  .nav{bottom:auto;max-height:calc(100svh - 92px)}
}

/* ---- 2. scroll experience ---- */
/* 2a. home: the hero holds while the page slides over it like a curtain */
.hero[data-curtain]{position:sticky;top:var(--stick,80px);z-index:0}
.hero[data-curtain] .hero-copy{transform:translate3d(0,calc(var(--hp,0) * -90px),0);opacity:calc(1 - var(--hp,0) * .75);will-change:transform,opacity}
.hero[data-curtain] .hero-media{transform:translate3d(0,calc(var(--hp,0) * 36px),0) scale(calc(1 - var(--hp,0) * .06));will-change:transform}
.hero[data-curtain]::after{content:"";position:absolute;inset:0;background:var(--ink);opacity:calc(var(--hp,0) * .18);pointer-events:none}
.over{position:relative;z-index:1;background:var(--ivory);border-radius:28px 28px 0 0;padding-top:16px;box-shadow:0 -1px 0 rgba(17,26,44,.06),0 -28px 56px -30px rgba(14,21,36,.35)}
.hero-media{aspect-ratio:4/3;max-height:none}
.hero-media img{object-position:50% 50%}

/* 2b. reveals: only hidden once the motion script has claimed them (html.mo); without it, everything is visible */
.mo [data-mo="lift"]{opacity:0;transform:translate3d(0,26px,0);transition:opacity .9s var(--enter),transform 1s var(--enter)}
.mo [data-mo="mask"]{clip-path:inset(0 0 100% 0);transform:translate3d(0,.35em,0);transition:clip-path 1.05s var(--enter),transform 1.05s var(--enter)}
.mo [data-mo="item"]{opacity:0;transform:translate3d(0,30px,0);transition:opacity .8s var(--enter),transform .95s var(--enter);transition-delay:var(--d,0ms)}
.mo [data-mo].in{opacity:1;transform:none;clip-path:inset(-.25em -.1em -.35em -.1em)}

/* 2c. scenes driven by scroll position (transforms written by motion.js) */
[data-scene="rise"]>*{will-change:transform,opacity}
[data-scene="frame"]{will-change:clip-path}
[data-scene="frame"] img{transform:scale(var(--fs,1));transform-origin:50% 55%;will-change:transform}
[data-scene="band"]{transform-origin:50% 0;will-change:transform}
[data-depth]{will-change:transform}

/* ---- 3. Ganesha in 3D: the original artwork as a cut relief with real depth ---- */
.about-art.g3d{width:min(100%,400px);perspective:1100px;perspective-origin:50% 50%;animation:none}
.g3d-stage{position:relative;aspect-ratio:824/1000;transform-style:preserve-3d;opacity:0;transition:opacity 1s var(--ease)}
.g3d.ready .g3d-stage{opacity:1}
.g3d-obj{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,-12deg));will-change:transform}
.g3d-obj>img{position:absolute;inset:0;width:100%;height:100%;filter:brightness(var(--lit,1));transform:translateZ(.6px)}
.g3d-shadow{position:absolute;inset:0;pointer-events:none;background:#0e1524;opacity:.06;filter:blur(22px);
  transform:translateZ(-70px) translate(2.5%,2%) scale(1.04);
  -webkit-mask:url(/assets/img/ganesha-murti.webp) center/100% 100% no-repeat;mask:url(/assets/img/ganesha-murti.webp) center/100% 100% no-repeat}
.g3d-ring{position:absolute;left:50%;top:36%;width:88%;aspect-ratio:1;border-radius:50%;pointer-events:none;
  border:1.5px solid rgba(205,183,127,.95);box-shadow:0 0 28px rgba(205,183,127,.45),inset 0 0 28px rgba(205,183,127,.28);
  transform:translate(-50%,-50%) translateZ(-120px)}
.g3d-floor{position:absolute;left:14%;right:14%;bottom:1%;height:7%;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(14,21,36,.30),rgba(14,21,36,0));transform:translateX(var(--fx,0)) scaleX(var(--fsx,1));filter:blur(2px)}

/* ---- 4. reduced motion: everything rests in its final state ---- */
@media (prefers-reduced-motion:reduce){
  .hero[data-curtain]{position:relative;top:auto}
  .hero[data-curtain] .hero-copy,.hero[data-curtain] .hero-media{transform:none;opacity:1}
  .hero[data-curtain]::after{display:none}
  .mo [data-mo]{opacity:1;transform:none;clip-path:none;transition:none}
  [data-scene] *,[data-scene]{transform:none!important;clip-path:none!important;opacity:1!important}
  .g3d-stage{opacity:1}
  .nav-lens{transition:none}
}

/* product pages: tapping a section tab lands the section just below the floating nav + tab pill */
.dossier section[id]{scroll-margin-top:112px}
@media (max-width:1080px){.dossier section[id]{scroll-margin-top:116px}}
@media (max-width:640px){.dossier section[id]{scroll-margin-top:140px}}
.dossier section[id]:first-child{scroll-margin-top:169px}
@media (max-width:1080px){.dossier section[id]:first-child{scroll-margin-top:153px}}
@media (max-width:640px){.dossier section[id]:first-child{scroll-margin-top:177px}}
/* side panels stay pinned below the floating nav, never under it */
@media (min-width:1081px){.sticky-panel,.side-box,.stick{top:104px}}
/* narrow screens: article column may never grow wider than the screen (wide tables scroll inside their card) */
@media (max-width:960px){.article,.dossier{grid-template-columns:minmax(0,1fr)}.article>*,.dossier>*,.prose{min-width:0}}
/* phone nav capsule fits inside the screen with equal side margins */
@media (max-width:1080px){.site-header .bar{width:auto;max-width:none;margin-inline:12px}}
/* closing band always sits apart from the section above it (two bone panels must never fuse into one stepped shape) */
.closing{padding-top:clamp(28px,3.5vw,48px)}
/* closing band reads as its own card, never as part of the bone section above or the bone footer below */
.closing .wrap{background:var(--white);box-shadow:var(--shadow-s)}
/* contact: the form gets the wide column, the contact card the narrow one */
@media (min-width:961px){.split:has(> .contact-main){grid-template-columns:minmax(0,7fr) minmax(0,5fr)}}
