/* Marina cinema layer: opening titles, scenes, transitions. Loads after main.css.
   Hidden pre-animation states exist only under html.motion-ok (set by the inline head script when motion is allowed).
   Without JS, with reduced motion, or in print, everything is simply visible. */

:root{--hdim:#080706;--hb:.35;--t:1;--u:1;--k:1}
[data-theme='light']{--hdim:#F6F1E7;--hb:1.12}
html.intro-quick{--t:.12;--u:.5;--k:.25}

/* Page transitions: cut through darkness (cross-document View Transitions, progressive) */
@media (prefers-reduced-motion:no-preference){
	@view-transition{navigation:auto}
	::view-transition{background:var(--bg-deep)}
	::view-transition-old(root){animation:vt-out .35s var(--e-p3) both;mix-blend-mode:normal}
	::view-transition-new(root){animation:vt-in .45s var(--e-out) .1s both;mix-blend-mode:normal}
	@keyframes vt-out{to{opacity:0}}
	@keyframes vt-in{from{opacity:0}}
}

/* Opening titles */
.hero-cine{position:relative;isolation:isolate;min-height:100svh;display:flex;align-items:center;overflow:clip;padding-block:calc(var(--header) + 16px) 56px;background:var(--bg-deep)}
[data-theme='light'] .hero-cine{background:var(--bg)}
.hero-stage{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.hero-bg{position:absolute;inset:-6%}
.hero-bg img{width:100%;height:100%;object-fit:cover;filter:blur(40px) brightness(var(--hb)) saturate(1.05);transform:scale(1.04);transform-origin:50% 40%}
.hero-veil{position:absolute;inset:0;background:radial-gradient(120% 90% at 58% 46%,transparent 34%,rgba(8,7,6,.78) 100%),linear-gradient(to bottom,rgba(8,7,6,.5),transparent 26%,transparent 66%,var(--bg) 100%)}
[data-theme='light'] .hero-veil{background:linear-gradient(rgba(246,241,231,.76),rgba(246,241,231,.76)),linear-gradient(to bottom,transparent 60%,var(--bg) 100%)}
.hero-grain{position:absolute;inset:-50%;opacity:.06;background-image:url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%27180%27 height=%27180%27><filter id=%27n%27><feTurbulence type=%27fractalNoise%27 baseFrequency=%27.9%27 numOctaves=%272%27 stitchTiles=%27stitch%27/><feColorMatrix values=%270 0 0 0 .95 0 0 0 0 .92 0 0 0 0 .86 0 0 0 1.2 -.1%27/></filter><rect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/></svg>")}
[data-theme='light'] .hero-grain{display:none}
.hero-dim{position:absolute;inset:0;background:var(--hdim);opacity:0}
.hero-spot{position:absolute;inset:0;mix-blend-mode:screen}
[data-theme='light'] .hero-spot{mix-blend-mode:multiply;opacity:.5}
.cone{position:absolute;left:-4%;top:-10%;width:130%;height:140%;transform-origin:0 0;--cone-from:90deg;background:conic-gradient(from var(--cone-from) at 0 0,transparent 0deg,rgba(227,198,138,.04) 6deg,rgba(227,198,138,.15) 13deg,rgba(227,198,138,.24) 20deg,rgba(227,198,138,.15) 27deg,rgba(227,198,138,.04) 34deg,transparent 40deg,transparent 360deg);-webkit-mask-image:radial-gradient(circle at 0 0,#000 0,#000 52%,transparent 92%);mask-image:radial-gradient(circle at 0 0,#000 0,#000 52%,transparent 92%)}
.pool{--pool:min(78vw,980px);position:absolute;width:var(--pool);height:var(--pool);right:-12vw;top:50%;margin-top:calc(var(--pool) / -2);border-radius:50%;background:radial-gradient(closest-side,rgba(227,198,138,.3),rgba(227,198,138,.1) 55%,transparent 74%)}

.hero-cine .hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-block);align-items:center;width:100%}
.hero-cine .hero-copy{container-type:inline-size;min-width:0}
.hero-cine .hero-poster{justify-self:center;margin:0;width:min(74%,340px);perspective:1000px;position:relative}
.tilt{position:relative;border-radius:var(--r-poster);overflow:hidden;transform-style:preserve-3d}
.hero-poster img,.prod-hero .tilt img{display:block;width:100%;height:auto;border-radius:0}
.prod-hero .tilt{max-width:420px}
.prod-hero figure{perspective:1000px}
.sheen{position:absolute;left:50%;top:50%;width:150%;aspect-ratio:1;margin:-75% 0 0 -75%;background:radial-gradient(closest-side,rgba(242,235,221,.2),transparent 70%);mix-blend-mode:screen;opacity:0;transition:opacity .5s;pointer-events:none}
@media (hover:hover){.hero-cine:hover .sheen,.prod-hero:hover .sheen{opacity:1}}
.hero-cine h1{font-size:clamp(1.5rem,7.2vw,3.5rem);line-height:1.08;overflow-wrap:normal;white-space:normal}
@supports (font-size:1cqi){.hero-cine h1{font-size:min(calc(100cqi / 12.3),5.2rem)}.prod-hero h1{font-size:min(7.6cqi,3.6rem)}.hero-tamil{font-size:clamp(1.15rem,4.4cqi,2.1rem)}}
.hero-copy,.prod-hero>div{container-type:inline-size;min-width:0}
.hero-cine .logline{margin-top:var(--s-md);max-width:46ch;font-size:1.2rem;color:var(--ink-soft)}
.hero-cine .showline{color:var(--ink-soft)}
@media (max-width:959px){.cone{--cone-from:132deg}.pool{right:auto;left:50%;margin-left:calc(var(--pool) / -2);top:70%;margin-top:calc(var(--pool) / -2)}}
@media (min-width:960px){
	.hero-cine .hero-grid{grid-template-columns:minmax(0,15fr) minmax(0,9fr);gap:0 var(--s-lg)}
	.hero-cine .hero-poster{justify-self:end;width:min(100%,calc((100svh - var(--header) - 112px) * .707),480px)}
}

/* masked letters rising (hero and production titles) */
.tw{display:inline-block;white-space:nowrap}
.cl{display:inline-block;overflow:hidden;vertical-align:top;padding:.12em .03em .16em;margin:-.12em -.03em -.16em}
.ci{display:inline-block}

/* The sequence is pure CSS: it starts at first paint, and only where motion is allowed. Every animation ends at full opacity. */
html.motion-ok .hero-bg{animation:lights-up calc(var(--u) * 1.4s) var(--e-p3) calc(var(--t) * .05s) backwards}
html.motion-ok .hero-bg img{animation:pushin 18s linear both;will-change:transform}
html.motion-ok .hero-grain{animation:grain .9s steps(1) infinite}
html.motion-ok .cone{animation:sweep calc(var(--u) * 1.4s) var(--e-out) calc(var(--t) * .2s) backwards}
html.motion-ok .pool{animation:lights-up calc(var(--u) * 1.2s) var(--e-p3) calc(var(--t) * .55s) backwards}
html.motion-ok .hero-poster .tilt,html.motion-ok .prod-hero .tilt{animation:poster-in calc(var(--u) * 1.1s) var(--e-out) calc(var(--t) * .5s) backwards}
html.motion-ok .ci{animation:rise calc(var(--u) * .9s) var(--e-out) calc(var(--t) * .8s + var(--i) * var(--st, .03s) * var(--k)) backwards}
html.motion-ok .h-a{animation:fade-up calc(var(--u) * .7s) var(--e-out) calc(var(--t) * .7s) backwards}
html.motion-ok .h-b{animation:unblur calc(var(--u) * .8s) var(--e-out) calc(var(--t) * .95s) backwards}
html.motion-ok .h-c{animation:fade-up calc(var(--u) * .6s) var(--e-out) calc(var(--t) * 1s) backwards}
html.motion-ok .h-d{animation:fade-up calc(var(--u) * .6s) var(--e-out) calc(var(--t) * 1.1s) backwards}
html.motion-ok .h-e{animation:fade-up calc(var(--u) * .6s) var(--e-out) calc(var(--t) * 1.2s) backwards}
.prod{--t:.12;--u:.6;--k:.3}
@keyframes lights-up{from{opacity:0}to{opacity:1}}
@keyframes pushin{from{transform:scale(1.12)}to{transform:scale(1)}}
@keyframes sweep{from{opacity:0;transform:rotate(-30deg)}to{opacity:1;transform:none}}
@keyframes poster-in{from{opacity:0;transform:scale(1.08)}to{opacity:1;transform:none}}
@keyframes rise{from{transform:translateY(112%)}to{transform:none}}
@keyframes fade-up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes unblur{from{opacity:0;filter:blur(8px)}to{opacity:1;filter:blur(0)}}
@keyframes grain{0%{transform:translate(0,0)}17%{transform:translate(-4%,3%)}34%{transform:translate(3%,-5%)}51%{transform:translate(-6%,-2%)}68%{transform:translate(5%,4%)}85%{transform:translate(-2%,6%)}100%{transform:translate(0,0)}}

/* production page opening: lighter version of the same stage */
.prod{position:relative;isolation:isolate}
.prod-stage{bottom:auto;height:clamp(560px,100svh,900px)}
.prod .prod-hero{padding-top:calc(var(--header) + clamp(24px,4vw,56px))}
.prod .hero-veil{background:radial-gradient(120% 90% at 40% 40%,transparent 30%,rgba(8,7,6,.74) 100%),linear-gradient(to bottom,rgba(8,7,6,.5),transparent 24%,transparent 56%,var(--bg) 100%)}
[data-theme='light'] .prod .hero-veil{background:linear-gradient(rgba(246,241,231,.8),rgba(246,241,231,.8)),linear-gradient(to bottom,transparent 56%,var(--bg) 100%)}
.prod-hero h1 .tw{margin-right:.04em}

/* Cursor light: warm gold */
.cursor-light{position:fixed;left:0;top:0;width:680px;height:680px;margin:-340px 0 0 -340px;border-radius:50%;background:radial-gradient(closest-side,rgba(227,198,138,.07),transparent);pointer-events:none;z-index:2;mix-blend-mode:screen;opacity:0;transition:opacity .8s}
.cursor-light.on{opacity:1}
[data-theme='light'] .cursor-light{display:none}

/* Section headings: masked word rise (JS builds the wrappers) */
.wm{display:inline-block;overflow:hidden;vertical-align:top;padding:.1em 0 .18em;margin:-.1em 0 -.18em}
.wi{display:inline-block}

/* So far */
.sofar [data-count]{display:inline-block;text-align:left}

/* Repertoire reel: one deliberate tonal scene. Pinned on desktop for exactly the distance it needs. */
.reel{--reel-h:clamp(300px,48svh,500px);position:relative;background:var(--surface);padding-block:var(--space-section)}
.reel .section-head{margin-bottom:var(--space-block)}
.reel-viewport{overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--muted) transparent;padding:var(--s-xs) var(--edge) var(--s-md);scroll-padding-inline:var(--edge)}
.reel-track{position:relative;display:flex;align-items:flex-start;gap:clamp(20px,3vw,44px);width:max-content}
.rcard{flex:none;scroll-snap-align:start}
.rcard-link{display:grid;grid-template-columns:min-content;color:var(--ink);text-decoration:none}
.rcard-art{display:flex;align-items:flex-end;height:var(--reel-h)}
.rcard-art img{width:auto;height:auto;max-height:100%;max-width:min(76vw,720px);border-radius:var(--r-poster)}
.rcard .ph{height:var(--reel-h);width:calc(var(--reel-h) * .667);aspect-ratio:auto}
.rcard-title{display:block;margin-top:var(--s-sm);font:600 1.25rem/1.25 var(--f-display);letter-spacing:.04em;color:var(--ink)}
.rcard-now{display:block;margin-top:6px;font-weight:600;font-size:.9375rem;color:var(--gold-text)}
.rcard-genre,.rcard-credits{display:block;color:var(--muted);font-size:.9375rem;line-height:1.5}
.rcard-genre{margin-top:6px;font-weight:500}
.rcard-link:hover .rcard-title,.rcard-link:focus-visible .rcard-title{color:var(--link-hover)}
@media (min-width:1024px){
	html.motion-ok .reel{--reel-h:clamp(300px,50svh,520px);min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding-block:calc(var(--header) + 8px) 24px}
	html.motion-ok .reel-viewport{overflow:clip;scroll-snap-type:none}
	html.motion-ok .rcard{will-change:transform}
}

/* Festival */
.fest .fest-grid{align-items:start}
.fest-poster{margin:0}
.fp-frame{display:block;overflow:hidden;border-radius:var(--r-poster);aspect-ratio:9/16;max-height:calc(100svh - var(--header) - 40px);width:100%}
.fp-frame img{display:block;width:100%;height:116%;margin-top:-8%;object-fit:cover;border-radius:0}
.fest-body .timeline{margin-top:var(--space-block)}
@media (min-width:900px){
	.fest .fest-poster{grid-column:1/6;position:sticky;top:calc(var(--header) + 24px)}
	.fest .fest-body{grid-column:7/13}
	.fp-frame{width:min(100%,calc((100svh - var(--header) - 72px) * .5625))}
}
/* the one functional line: a vertical gold rule that draws as you scroll */


.timeline li::after{display:none}

/* Founder close-up, journal wipe */
.zoom{display:block;overflow:hidden;border-radius:var(--r-poster)}
.founder .zoom img{border-radius:0;transform-origin:50% 40%}
.wipe{display:block;overflow:hidden;border-radius:var(--r-poster)}
.wipe img{border-radius:0}
.faq-item{overflow:visible}

/* Productions grid: tiles light up */
@media (hover:hover){
	html.motion-ok .tile-art{position:relative;display:block;overflow:hidden;border-radius:var(--r-poster)}
	html.motion-ok .tile-art img,html.motion-ok .tile-art .ph{filter:brightness(.9);transition:filter .5s var(--e-p3)}
	html.motion-ok .tile a:hover .tile-art img,html.motion-ok .tile a:focus-visible .tile-art img,html.motion-ok .tile a:hover .tile-art .ph{filter:brightness(1.06)}
	[data-theme='light'] .tile-art img{filter:brightness(.96)}
	.tile-spot{position:absolute;left:0;top:0;width:80%;aspect-ratio:1;margin:-40% 0 0 -40%;border-radius:50%;background:radial-gradient(closest-side,rgba(227,198,138,.3),transparent);mix-blend-mode:screen;opacity:0;transition:opacity .4s;pointer-events:none}
	.tile a:hover .tile-spot{opacity:1}
}

/* Stills and lightbox */
.stills a.still{display:block;overflow:hidden;border-radius:var(--r-poster)}
.stills a.still img{transition:transform .8s var(--e-out)}
@media (hover:hover){.stills a.still:hover img{transform:scale(1.04)}}
.lb{border:0;padding:0;margin:0;width:100vw;height:100vh;max-width:none;max-height:none;background:transparent;color:var(--ink)}
.lb[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--s-sm)}
.lb::backdrop{background:rgba(8,7,6,.95)}
.lb-main{display:flex;align-items:center;justify-content:center;gap:var(--s-md);width:100%;padding-inline:var(--s-md)}
.lb-img{display:block;max-width:min(86vw,1400px);max-height:78vh;width:auto;height:auto;border-radius:var(--r-poster)}
.lb-bar{position:absolute;top:var(--s-md);right:var(--s-md)}
.lb-cap{color:var(--muted);font-size:.9375rem}
.lb .btn-ghost{background:rgba(8,7,6,.6);color:#F2EBDD;box-shadow:inset 0 0 0 1px #F2EBDD}
.lb .btn-ghost:hover{background:#F2EBDD;color:#0E0C0A}
@media (max-width:640px){.lb-main{flex-wrap:wrap}.lb-img{order:-1;max-width:94vw}}

@media print{.cursor-light,.hero-grain{display:none!important}.hero-cine{min-height:0}}

/* Festival timeline: [44px marker] [content]. The gold line runs behind the markers, centre to centre. */
.timeline{--tl-m:44px;--tl-gap:24px;--tl-end:96px;counter-reset:step;position:relative;list-style:none;padding:0}
.timeline::before,.timeline::after{content:'';position:absolute;left:calc(var(--tl-m) / 2 - .75px);top:calc(var(--tl-m) / 2);bottom:var(--tl-end);width:1.5px;z-index:0;background:var(--hairline)}
.timeline::after{background:var(--gold);transform-origin:50% 0;transform:scaleY(var(--p,1))}
.timeline li{counter-increment:step;position:relative;display:grid;grid-template-columns:var(--tl-m) 1fr;column-gap:var(--tl-gap);align-items:start;padding:0 0 40px;scroll-margin-top:calc(var(--header,80px) + 24px)}
.timeline li:last-child{padding-bottom:0}
.timeline li::before{content:counter(step);grid-column:1;grid-row:1 / span 2;position:relative;z-index:1;box-sizing:border-box;width:var(--tl-m);height:var(--tl-m);border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--bg);border:1.5px solid var(--gold);font:700 18px/1 var(--f-display);color:var(--gold);transition:background-color .35s,color .35s}
.timeline li.is-lit::before{background:var(--gold);color:var(--gold-ink)}
.timeline h3{grid-column:2;grid-row:1;display:flex;align-items:center;min-height:var(--tl-m);margin:0;font:600 1.15rem/1.25 var(--f-display);letter-spacing:.05em;color:var(--ink);overflow:visible}
.timeline p{grid-column:2;grid-row:2;margin-top:4px;font-size:16.5px;line-height:1.6;color:var(--ink-soft);max-width:44ch}
@media (max-width:640px){.timeline{--tl-m:38px;--tl-gap:16px}.timeline li::before{font-size:16px}.timeline h3{font-size:1.05rem}}
