/* Cinematic movement on the existing design; no layout or palette changes. */
.film-scroll-ready.motion-ready .reveal-item { opacity:1; transform:none; transition:none; }
.film-heading {
  transform:perspective(1400px) translate3d(0,var(--film-y,0px),var(--film-z,0px)) rotateX(var(--film-turn,0deg));
  transform-origin:50% 75%; opacity:var(--film-opacity,1); backface-visibility:hidden;
}
.film-plane {
  transform:perspective(1600px) translate3d(0,var(--plane-y,0px),var(--plane-z,0px)) rotateY(var(--plane-turn,0deg)) rotateX(var(--card-bank-x,0deg)) rotateY(var(--card-bank-y,0deg));
  transform-origin:center; backface-visibility:hidden;
}
.film-shot { transform:perspective(1500px) translate3d(0,var(--shot-y,0px),0) rotateY(var(--shot-turn,0deg)); transform-origin:25% 50%; }
.film-console { transform:perspective(1500px) translate3d(0,var(--shot-y,0px),0) rotateY(var(--shot-turn,0deg)); transform-origin:75% 50%; }
.motion-disabled .film-heading,.motion-disabled .film-plane,.motion-disabled .film-shot,.motion-disabled .film-console { transform:none!important; opacity:1!important; }
@media(prefers-reduced-motion:reduce) {
 .film-heading,.film-plane,.film-shot,.film-console { transform:none!important; opacity:1!important; }
}
/* Stable local coordinates for the horizontal image planes. */
.project-grid, .website-portfolio-grid { position:relative; }

/* Each character is a clipped drum with six alternate glyphs before its final stop. */
.slot-word { display:inline-block;white-space:nowrap; }
.slot-character { display:inline-block;position:relative;height:1.12em;line-height:1.12;vertical-align:-.12em;overflow:hidden; }
.slot-static { opacity:0; }
.slot-strip { position:absolute;inset:0 0 auto;display:block;line-height:1.12;pointer-events:none; }
.slot-glyph { display:block;height:1.12em;line-height:1.12;text-align:center;letter-spacing:inherit; }
.ink-line { display:inline-block;max-width:100%;box-sizing:border-box;padding:.06em .1em .12em;margin:-.06em -.1em -.12em; }
.preview-toggle,.growth-steps { position:relative;isolation:isolate; }
.selection-glider { position:absolute;left:0;top:0;pointer-events:none;border-radius:999px;background:var(--mint-metal);box-shadow:0 0 12px #91b9d866,0 0 24px #6fe09a40,inset 0 1px 0 #ffffffa6;z-index:0; }
.glider-ready button { position:relative;z-index:1; }
.digital .glider-ready.preview-toggle button[aria-pressed=true],
.growth-console .glider-ready.growth-steps button[aria-selected=true] { background:transparent;box-shadow:none; }
.button { transition:box-shadow .35s ease,border-color .3s ease,background .3s ease; }
.button:hover { box-shadow:0 0 20px #91b9d840,0 8px 22px #0003; }
.motion-disabled .slot-strip { display:none; }
.motion-disabled .slot-static { opacity:1; }
.motion-disabled .ink-line { mask:none!important;-webkit-mask:none!important;opacity:1!important; }
@media(prefers-reduced-motion:reduce) {
 .slot-strip { display:none; }
 .slot-static { opacity:1; }
 .ink-line { mask:none!important;-webkit-mask:none!important;opacity:1!important; }
}

/* Only the letter layers move; title geometry stays stable for reversible scroll progress. */
.scrub-title { opacity:1; }

/* Lusion reference: media opening and a continuous scroll through a lens. */
.bts.production-cinema { padding:0;position:relative;min-height:0;height:200svh;overflow:visible; }
.production-pin { position:sticky;top:0;height:100svh;overflow:hidden;padding:10svh 6vw;isolation:isolate; }
.production-pin .bts-grid { height:100%;position:relative;z-index:1;display:block; }
.production-cinema .bts-photo {
 position:absolute;left:calc(var(--cinema-open,0)*-6vw);top:calc(var(--cinema-open,0)*-10svh);
 width:calc(42vw + var(--cinema-open,0)*58vw);height:calc(76svh + var(--cinema-open,0)*24svh);
 border-radius:calc(24px*(1 - var(--cinema-open,0)));margin:0;
 transform:perspective(1800px) rotateY(calc((1 - var(--cinema-open,0))*-9deg));transform-origin:left center;
 box-shadow:0 24px 80px #0005;
}
.production-cinema .bts-photo img { width:100%;height:100%;object-fit:cover; }
.production-cinema .production-pin .bts-copy { position:absolute;left:52%;width:48%;top:50%;transform:translateY(-50%);opacity:var(--cinema-copy,1); }
.production-cinema .bts-photo:after { content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 35%,#08090bc9 100%);opacity:calc(var(--cinema-open,0)*.9); }
.production-cinema .stock-note { opacity:calc(1 - var(--cinema-open,0)); }
.ribbon-scene { position:relative;isolation:isolate; }
.motion-ribbon { position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;opacity:.55;transform:translateY(var(--ribbon-shift,0px)); }
.production-pin>.motion-ribbon { z-index:0;opacity:.8; }
.ribbon-edge { opacity:.5; }
.about-strip>.motion-ribbon { opacity:.14; }
.lens-portal.cta { height:185svh;min-height:0;padding:0;margin:0;border-radius:0;border:0;background:#08090b;overflow:visible;box-shadow:none; }
.portal-pin { height:100svh;position:sticky;top:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:8svh 6vw;overflow:hidden;isolation:isolate; }
.portal-pin>.cta-orbit { display:none; }
.portal-pin>h2 { position:relative;z-index:2;margin:0 0 40px;transform:perspective(1800px) translateZ(calc(var(--portal-zoom,0)*70px)); }
.portal-pin>.cta-bottom { position:relative;z-index:2; }
.portal-world { position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none; }
.portal-lens { position:absolute;left:50%;top:50%;width:min(75vw,78svh);aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%) scale(calc(.85 + var(--portal-zoom,0)*2.5));border:1px solid #91b9d850;box-shadow:0 0 28px #4264f548,inset 0 0 28px #6fe09a36,0 0 90px #4264f51a;opacity:calc(1 - var(--portal-zoom,0)*.8); }
.portal-lens:after { content:'';position:absolute;inset:-8px;border-radius:50%;border:3px solid #91b9d833;filter:blur(5px); }
.portal-depth-frame { position:absolute;left:50%;top:50%;width:min(76vw,900px);height:68svh;border:1px solid #91b9d86b;border-radius:28px;box-shadow:inset 0 0 25px #4264f514,0 0 16px #6fe09a14; }
.motion-disabled .production-cinema { height:auto; }
.motion-disabled .production-pin { position:relative;height:auto;padding:80px 6vw; }
.motion-disabled .production-pin .bts-grid { display:grid;height:auto; }
.motion-disabled .production-cinema .bts-photo { position:relative;inset:auto;width:auto;height:600px;transform:none;border-radius:24px; }
.motion-disabled .production-cinema .production-pin .bts-copy { position:relative;inset:auto;width:auto;transform:none;opacity:1; }
.motion-disabled .lens-portal.cta { height:auto; }
.motion-disabled .portal-pin { position:relative;height:auto;min-height:70svh; }
@media(max-width:700px),(prefers-reduced-motion:reduce) {
 .bts.production-cinema { height:auto; }
 .production-pin { position:relative;height:auto;padding:65px 24px; }
 .production-pin .bts-grid { display:grid;height:auto; }
 .production-cinema .bts-photo,.motion-disabled .production-cinema .bts-photo { position:relative;inset:auto;width:100%;height:380px;transform:none;border-radius:24px; }
 .production-cinema .production-pin .bts-copy { position:relative;inset:auto;width:100%;transform:none;opacity:1; }
 .lens-portal.cta { height:auto; }
 .portal-pin { position:relative;height:auto;min-height:80svh;padding:70px 24px; }
 .portal-pin>h2 { font-size:clamp(42px,10vw,64px); }
 .portal-depth-frame { height:55svh;border-radius:20px; }
}

/* Focus marks and aperture geometry extend the camera theme into the final scene. */
.motion-ribbon { transform:translateY(var(--ribbon-shift,0px)) rotate(var(--ribbon-turn,0deg)) scaleX(var(--ribbon-scale,1));transform-origin:50% 50%; }
.cinema-focus { position:absolute;inset:9%;z-index:2;pointer-events:none;opacity:calc(.65*(1 - var(--cinema-open,0)));transform:scale(calc(1 + var(--cinema-open,0)*.35)); }
.cinema-focus>span { position:absolute;width:30px;height:30px;border-color:#d7efe5;border-style:solid; }
.cinema-focus>span:nth-child(1) { left:0;top:0;border-width:1px 0 0 1px; }
.cinema-focus>span:nth-child(2) { right:0;top:0;border-width:1px 1px 0 0; }
.cinema-focus>span:nth-child(3) { right:0;bottom:0;border-width:0 1px 1px 0; }
.cinema-focus>span:nth-child(4) { left:0;bottom:0;border-width:0 0 1px 1px; }
.portal-star { position:absolute;width:2px;height:2px;border-radius:50%;background:#d0eee5;box-shadow:0 0 6px #91b9d8; }
.portal-iris { position:absolute;left:50%;top:50%;width:min(84vw,86svh);aspect-ratio:1;transform:translate(-50%,-50%) rotate(calc(var(--portal-zoom,0)*45deg)) scale(calc(1 + var(--portal-zoom,0)*2));opacity:calc(.35*(1 - var(--portal-zoom,0))); }
.portal-iris>span { position:absolute;inset:0;border-radius:50%;border:1px solid #91b9d857;clip-path:polygon(50% 50%,100% 0,100% 35%);transform:rotate(calc(var(--blade)*30deg)); }
.portal-pin:after { content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse,transparent 35%,#08090b99 95%); }
.portal-depth-frame { border-color:#91b9d89c;box-shadow:inset 0 0 35px #4264f51f,0 0 22px #6fe09a1f; }
.digital .website-showcase:before { content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;z-index:2;background:radial-gradient(ellipse at var(--card-light-x,50%) var(--card-light-y,50%),#d4fff019,transparent 60%);opacity:0;transition:opacity .4s ease; }
.digital .website-showcase:hover:before { opacity:1; }
.project .project-image img { transition:scale .65s cubic-bezier(.22,1,.36,1); }
.project:hover .project-image img { scale:1.035; }
.motion-disabled .film-plane { --card-bank-x:0deg!important;--card-bank-y:0deg!important; }
.motion-disabled .portal-star,.motion-disabled .portal-iris { display:none; }
@media(prefers-reduced-motion:reduce) {
 .portal-star,.portal-iris { display:none; }
 .project:hover .project-image img { scale:1; }
}
@media(max-width:700px) { .portal-star:nth-of-type(2n) { display:none; } }

.motion-disabled .project:hover .project-image img { scale:1; }



/* The director portrait opens like the production camera shot, with biography over the final frame. */
.founder.director-zoom { width:100%;margin-top:0;height:205svh; }
.director-zoom .director-pin { height:100svh;min-height:0;padding:0;overflow:hidden; }
.founder.director-zoom .director-card { height:100%;max-height:none;border:0;border-radius:0; }
.director-zoom .director-aperture { left:calc(61%*(1 - var(--portrait-open,0)));top:calc(15%*(1 - var(--portrait-open,0)));width:calc(31% + var(--portrait-open,0)*69%);height:calc(70% + var(--portrait-open,0)*30%);border-radius:calc(20px*(1 - var(--portrait-open,0)));border-width:0;transform-origin:right center; }
.director-zoom .director-aperture .founder-portrait { object-position:center 28%; }
.director-zoom .director-aperture:after { content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#08090be6,transparent 70%),linear-gradient(0deg,#08090bbd,transparent 55%);opacity:var(--portrait-open,0); }
.director-zoom .director-opening-caption { z-index:2; }
.director-zoom .director-card .founder-bio { top:auto;bottom:8svh;left:7%;right:auto;width:43%;translate:none;z-index:3; }
.director-zoom .director-card .founder-bio h2 { margin:14px 0; }
.director-zoom .director-card .founder-bio p { padding-top:14px; }
.motion-disabled .founder.director-zoom { height:auto; }
.motion-disabled .director-zoom .director-pin { position:relative;height:auto; }
.motion-disabled .founder.director-zoom .director-card { height:auto;min-height:700px; }
@media(max-width:700px),(prefers-reduced-motion:reduce) {
 .founder.director-zoom { height:auto; }
 .director-zoom .director-pin { position:relative;height:auto; }
 .founder.director-zoom .director-card { height:auto;min-height:0;padding:35px 24px; }
 .director-zoom .director-aperture { position:relative;inset:auto;width:100%;height:440px;max-height:65svh;border-radius:22px;transform:none!important; }
 .director-zoom .director-aperture:after { opacity:.2; }
 .director-zoom .director-card .founder-bio { position:relative;inset:auto;width:100%;translate:none;margin-top:25px;opacity:1;transform:none; }
 .director-zoom .director-focus-word { display:none; }
}


/* A constant image height keeps the portrait intact while the surrounding frame opens. */
.director-zoom .director-aperture {
 background:#12151a url('/assets/rithwik-studio-wide-v2.png') left center / 300% 100% no-repeat;
}
.director-zoom .director-aperture .founder-portrait {
 position:absolute;left:68%;top:0;right:auto;bottom:auto;
 width:auto;max-width:none;height:100%;translate:-68% 0;
 object-fit:contain;object-position:center;transform:none!important;
 mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);
 -webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);
}
@media(max-width:700px),(prefers-reduced-motion:reduce) {
 .director-zoom .director-aperture .founder-portrait { left:68%;top:0;width:auto;max-width:none;height:100%;translate:-68% 0; }
}

/* Keep each connected Lobster phrase together; resize fitting preserves its full text. */
.ink-line { white-space:nowrap;word-break:normal;overflow-wrap:normal; }
