/* ==========================================================================
   ZION FILMS · shared base for every concept page
   Colours come ONLY from tokens.css (never write a hex / rgb value).
   Each concept adds its own layout in assets/css/cNN.css, scoped under body.cNN.

   What this file gives you:
   .wrap                 page container with side gutters
   .label                small uppercase label
   .btn .btn--solid .btn--key .btn--line     pill buttons      .link  text link with arrow <span>
   .chip + .dot          status chip
   .frame                picture frame: set a size or aspect-ratio on it; the <img> inside covers it.
                         Set --pos on the frame to choose the focal point (object-position).
   .frame--scope         add for the trailer stills from i.ytimg.com (they are letterboxed): crops the black bars
   .ph                   placeholder block for pictures that do not exist yet (put a .label inside)
   .lang                 EN / Tamil toggle button (two <span>s); toggles .is-ta on <html>; .en / .ta spans swap
   .modal                trailer pop-up (markup is injected by base.js)
   ========================================================================== */
*,*::before,*::after{ box-sizing:border-box }
html{ -webkit-text-size-adjust:100% }
html.lenis, html.lenis body{ height:auto }
.lenis.lenis-smooth{ scroll-behavior:auto !important }
.lenis.lenis-stopped{ overflow:hidden }
body{ margin:0; background:var(--white); color:var(--ink); font:400 var(--t-body)/var(--lh-body) var(--font-text);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; overflow-x:clip }
img,svg,video{ display:block; max-width:100% } svg{ fill:currentColor }
a{ color:inherit; text-decoration:none }
button{ font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer }
h1,h2,h3,h4,p,ol,ul,dl,dd,figure,blockquote{ margin:0 } ol,ul{ padding:0; list-style:none }
::selection{ background:var(--key); color:var(--on-key) }
:focus-visible{ outline:2px solid var(--key); outline-offset:4px; border-radius:6px }
.wrap{ width:100%; max-width:calc(var(--max) + 2 * var(--gutter)); margin-inline:auto; padding-inline:var(--gutter) }
.label{ font:500 var(--t-label)/1.2 var(--font-text); letter-spacing:var(--track-label); text-transform:uppercase; color:var(--fg-mute, var(--mute)) }
.ta{ display:none; font-family:var(--font-tamil) } .is-ta .ta{ display:inline } .is-ta .en{ display:none }

.btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:52px; padding:0 26px; border-radius:var(--r-pill); font:500 15px/1 var(--font-text); white-space:nowrap;
  transition:transform var(--dur-2) var(--ease-out), background-color var(--dur-2), color var(--dur-2), box-shadow var(--dur-2) }
.btn:hover{ transform:translateY(-2px) }
.btn svg{ width:11px; height:auto }
.btn--solid{ background:var(--fg, var(--ink)); color:var(--bg, var(--white)) }
.btn--key{ background:var(--accent, var(--key)); color:var(--on-accent, var(--on-key)) }
.btn--line{ box-shadow:inset 0 0 0 1px var(--rule, var(--line)); color:var(--fg, var(--ink)) }
.btn--line:hover{ box-shadow:inset 0 0 0 1px var(--fg, var(--ink)) }
.link{ display:inline-flex; align-items:center; gap:8px; min-height:44px; font:500 15px/1 var(--font-text) }
.link span{ transition:transform var(--dur-3) var(--ease-out) } .link:hover span{ transform:translateX(6px) }
.chip{ display:inline-flex; align-items:center; gap:8px; height:30px; padding:0 13px; border-radius:var(--r-pill); font:500 13px/1 var(--font-text); box-shadow:inset 0 0 0 1px var(--rule, var(--line)) }
.dot{ width:8px; height:8px; border-radius:50%; background:var(--accent, var(--key)); flex:none }
.lang{ display:inline-flex; align-items:center; gap:8px; min-height:44px; font:500 12px/1 var(--font-text) }
.lang span:last-child{ font-family:var(--font-tamil); opacity:.5 } .is-ta .lang span:first-child{ opacity:.5 } .is-ta .lang span:last-child{ opacity:1 }

.frame{ position:relative; overflow:hidden; background:var(--mist) }
.frame > img{ position:absolute; inset:0; width:100%; height:100%; max-width:none; object-fit:cover; object-position:var(--pos, 50% 50%) }
.frame--scope > img{ top:-7.4%; height:114.8% }
.ph{ position:relative; display:grid; place-items:center; overflow:hidden; background:var(--mist); color:var(--mute); text-align:center }
.ph::before{ content:""; position:absolute; inset:0; background:repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--ink) 5%, transparent) 14px 15px) }
.ph > *{ position:relative }

.modal{ position:fixed; inset:0; z-index:95; display:grid; place-items:center; padding:var(--gutter); background:color-mix(in srgb, var(--black) 92%, transparent); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px) }
.modal[hidden]{ display:none }
.modal__frame{ width:min(100%, calc((100vh - 160px) * 16 / 9)); aspect-ratio:16/9; background:var(--black) }
.modal__frame iframe{ width:100%; height:100%; border:0 }
.modal__close{ position:absolute; top:20px; right:20px; width:52px; height:52px; border-radius:50%; background:color-mix(in srgb, var(--white) 12%, transparent) }
.modal__close i{ position:absolute; left:16px; right:16px; top:25px; height:1.5px; background:var(--white); transform:rotate(45deg) } .modal__close i + i{ transform:rotate(-45deg) }

/* Review bar (comparing concepts only; not part of any design) */
.rv{ position:fixed; left:50%; bottom:14px; transform:translateX(-50%); z-index:80; display:flex; align-items:center; gap:2px; padding:4px; border-radius:var(--r-pill); background:var(--ink); color:var(--white);
  font:500 12px/1 var(--font-text); white-space:nowrap; box-shadow:0 6px 24px color-mix(in srgb, var(--black) 28%, transparent) }
.rv a{ display:grid; place-items:center; min-width:32px; height:32px; padding:0 10px; border-radius:var(--r-pill) }
.rv a:hover{ background:color-mix(in srgb, var(--white) 16%, transparent) }

@media (prefers-reduced-motion: reduce){ *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important } }

/* A placeholder that has a stand-in picture: the picture fills the block, the note becomes a small tag */
.ph > .ph__img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 30% }
.ph--img::before{ display:none }
.ph--img svg{ display:none }
.ph--img > .label,.ph--img .ph__in{ position:absolute; left:12px; bottom:12px; margin:0; padding:7px 12px; border-radius:999px; background:var(--white); color:var(--ink) }
.ph--img .ph__in .label{ color:inherit }
.ph--img .ph__txt{ place-self:end start; margin:12px; border-radius:var(--r-1); background:var(--white); color:var(--ink); text-align:left }
