/* =========================================================================
   OptimityFX v2.2 — cleaner, more informative home
   ========================================================================= */

/* ---------- Hero: curved, looping video wall ---------- */
.hero--wall { min-height: 100svh; padding: 0; justify-content: center; }
.hero--wall::after { display: none; }
.vwall { position: absolute; inset: 78px 14px 14px; z-index: -1; border-radius: clamp(22px, 3vw, 40px); overflow: hidden; perspective: 1000px; perspective-origin: 50% 50%;
  background: #050507; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 120px -40px rgba(0,0,0,.9); isolation: isolate; }
.vwall__stage { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.vcol { position: absolute; top: 0; left: 0; transform-style: preserve-3d; will-change: transform; }
.vcol__track { display: flex; flex-direction: column; gap: var(--vgap, 12px); transform-style: preserve-3d; animation: vup var(--dur, 48s) linear infinite; }
.vcol--down .vcol__track { animation-name: vdown; }
@keyframes vup { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes vdown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.vtile { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; padding: 0; background: #111; flex: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07); filter: brightness(var(--b, .82)) saturate(1.05); transition: box-shadow .3s; will-change: transform; }
.vtile img, .vtile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vtile video { opacity: 0; transition: opacity .5s; } .vtile.is-live video { opacity: 1; }
.vtile:hover { box-shadow: 0 0 0 2px var(--gold), 0 0 50px -8px rgba(243,196,126,.6); }
.vtile span { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 8px; font-family: var(--display); font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: 15px; line-height: 1; text-shadow: 0 2px 10px #000; opacity: 0; transition: opacity .3s; }
.vtile:hover span { opacity: 1; }
/* dim only behind the headline; edges stay bright */
.vwall__dim { position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(ellipse 50% 44% at 50% 52%, rgba(5,5,7,.93) 0%, rgba(5,5,7,.8) 42%, rgba(5,5,7,.25) 76%, transparent 100%),
              linear-gradient(180deg, rgba(5,5,7,.35), transparent 18%, transparent 82%, rgba(5,5,7,.5)); }
.hero--wall .hero__copy { position: relative; z-index: 6; text-align: center; padding: 120px var(--g) 60px; pointer-events: none; }
.hero--wall .hero__copy > * { pointer-events: auto; }
.hero__lead { max-width: 640px; margin: 22px auto 0; font-size: clamp(16px, 1.3vw, 19px); color: rgba(245,240,230,.82); line-height: 1.5; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
@media (max-width: 760px) { .vwall { inset: 70px 8px 8px; } .hero--wall .hero__copy { padding-top: 100px; } }

/* ---------- Trusted marquee (original colours) ---------- */
.trust { padding: 34px 0 18px; }
.trust__label { display: flex; justify-content: center; align-items: center; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.trust__label::before, .trust__label::after { content: ""; width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.trust__label::after { transform: scaleX(-1); }
.tmarq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tmarq__track { display: flex; gap: 14px; width: max-content; animation: tmarq 55s linear infinite; padding: 4px 0; }
.tmarq:hover .tmarq__track { animation-play-state: paused; }
@keyframes tmarq { to { transform: translateX(-50%); } }
.tpill { flex: none; height: 68px; min-width: 150px; padding: 12px 26px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -14px rgba(0,0,0,.6); transition: transform .4s var(--ease); }
.tpill:hover { transform: translateY(-3px); }
.tpill img { max-height: 44px; max-width: 150px; width: auto; object-fit: contain; }
.tpill--tall img { max-height: 50px; }
.tpill__w { font-family: var(--display); font-weight: 900; font-stretch: 80%; font-size: 24px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; text-align: center; white-space: nowrap; }
.tpill__w small { display: block; font-family: var(--sans); font-weight: 600; font-size: 9.5px; letter-spacing: .24em; margin-top: 3px; opacity: .75; }
.tpill__w--script { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; text-transform: none; font-size: 28px; }
@media (prefers-reduced-motion: reduce) { .tmarq__track, .vcol__track { animation: none; } }

/* ---------- Stats strip ---------- */
.sstrip { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); overflow: hidden; }
.sstrip > div { padding: 18px 22px; border-right: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sstrip > div:last-child { border-right: 0; }
.sstrip b { font-family: var(--display); font-weight: 800; font-stretch: 68%; font-size: clamp(34px, 3.2vw, 50px); line-height: 1; }
.sstrip b sup { font-size: .45em; vertical-align: top; background: var(--heaven); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sstrip > div > span { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 900px) { .sstrip { grid-template-columns: repeat(2, 1fr); } .sstrip > div { border-bottom: 1px solid var(--line); } .sstrip > div:nth-child(2n) { border-right: 0; } .sstrip > div:last-child { grid-column: span 2; } }

/* ---------- Section heading with intro line ---------- */
.shead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.shead p { margin: 12px 0 0; max-width: 520px; color: var(--ink-2); font-size: 16px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.kicker::before { content: attr(data-n); color: var(--ink-3); }

/* ---------- Category browser ---------- */
.ctabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 22px; }
.ctabs::-webkit-scrollbar { display: none; }
.ctab { flex: none; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: all .3s var(--ease); }
.ctab sup { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.ctab:hover { color: var(--ink); border-color: rgba(243,196,126,.5); }
.ctab.is-on { background: var(--ink); color: #000; border-color: var(--ink); } .ctab.is-on sup { color: #6b5a3c; }
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ccard { position: relative; display: block; text-align: left; padding: 0; border-radius: 18px; overflow: hidden; background: var(--bg-3); aspect-ratio: 16 / 11; animation: cIn .6s var(--ease) both; animation-delay: calc(var(--k) * 50ms); }
@keyframes cIn { from { opacity: 0; transform: translateY(16px); } }
.ccard img, .ccard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ccard video { opacity: 0; transition: opacity .4s; } .ccard.is-live video { opacity: 1; }
.ccard:hover img { transform: scale(1.06); }
.ccard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.82)); pointer-events: none; }
.ccard__cap { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 4px; }
.ccard__t { font-family: var(--display); font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: clamp(22px, 1.8vw, 28px); line-height: .92; }
.ccard__s { font-size: 12.5px; color: rgba(255,255,255,.72); }
.ccard__play { position: absolute; z-index: 2; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); transition: background .3s, color .3s; }
.ccard__play svg { width: 12px; margin-left: 2px; }
.ccard:hover .ccard__play { background: #fff; color: #000; }
.ccard--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.ccard--wide .ccard__t { font-size: clamp(32px, 3.2vw, 52px); }
.cfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; }
@media (max-width: 960px) { .cgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cgrid { grid-template-columns: 1fr; } .ccard--wide { grid-column: span 1; grid-row: auto; aspect-ratio: 16 / 11; } }

/* ---------- Phones carousel (all 9:16 films) ---------- */
.prail { position: relative; }
.phones--rail { display: flex; grid-template-columns: none; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 4px 30px; scrollbar-width: none; perspective: none; }
.phones--rail::-webkit-scrollbar { display: none; }
.phones--rail .phone { flex: none; width: clamp(200px, 19vw, 260px); scroll-snap-align: start; }
.phones--rail .phone:nth-child(even) { margin-top: 30px; }
.prail__nav { display: flex; gap: 8px; }
.prail__nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 20px; transition: background .3s, color .3s; }
.prail__nav button:hover { background: var(--ink); color: #000; }
@media (max-width: 760px) { .phones--rail .phone { width: 62vw; } }

/* ---------- Services: one-line descriptions ---------- */
.scard__d { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.78); font-family: var(--sans); font-weight: 400; text-transform: none; max-width: 260px; }

/* ---------- Team ---------- */
.team--home { grid-template-columns: repeat(6, 1fr); }
.team--home .member__ph { aspect-ratio: 3 / 4; }
.team--home h3 { font-size: 22px; }
@media (max-width: 1100px) { .team--home { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .team--home { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Compact calculator & India sections ---------- */
.calc--compact .calc__budget { min-height: 0; gap: 16px; }
.calc--compact .calc__big { font-size: clamp(56px, 6vw, 100px); }
.calc--compact .calc__card { padding: 18px; gap: 14px; }
.calc--compact .film-strip { min-height: 0; }
.calc--compact .film-strip i { width: 20px; height: 28px; }
.world--compact, .world--compact .world__ui { min-height: 420px; }
.world--compact .world__ui { gap: 20px; }
@media (max-width: 760px) { .world--compact, .world--compact .world__ui { min-height: 600px; } }

/* ---------- Footer (industry standard) ---------- */
.fgrid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 34px; margin-top: 10px; }
.fgrid h4 { margin-bottom: 14px; }
.fgrid ul a, .fgrid ul span { font-size: 14.5px; }
.fbrand p { color: var(--ink-2); font-size: 14.5px; max-width: 320px; margin: 14px 0 0; line-height: 1.55; }
@media (max-width: 960px) { .fgrid { grid-template-columns: 1fr 1fr; } .fbrand { grid-column: span 2; } }

.hero--wall .flag-row { justify-content: center; }

/* ---------- Video pop-up with info panel ---------- */
.modal { overflow-y: auto; align-items: start; padding: clamp(16px, 4vh, 48px) 16px; }
.modal__wrap { width: min(1320px, 100%); margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; transform: scale(.96); transition: transform .6s var(--ease); }
.modal.is-open .modal__wrap { transform: none; }
.modal.no-info .modal__wrap { grid-template-columns: 1fr; width: min(1200px, 100%); }
.modal__box { width: 100%; transform: none; }
.modal__box.is-vertical { aspect-ratio: 9 / 16; width: auto; height: min(84vh, 900px); justify-self: center; }
.modal__info { border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)), #0c0c11; padding: 22px; display: grid; gap: 14px; max-height: none; }
.modal.no-info .modal__info { display: none; }
.mi__badge { display: flex; gap: 6px; flex-wrap: wrap; }
.mi__t { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: clamp(32px, 3vw, 46px); line-height: .9; }
.mi__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--ink-2); }
.mi__meta span:empty { display: none; }
.mi__meta span + span::before { content: "•"; margin-right: 14px; color: var(--ink-3); }
.mi__client { font-size: 14px; color: var(--ink-2); } .mi__client b { color: var(--gold-2); font-weight: 600; }
.mi__genres { margin: 0; } .mi__genres .chip-s { font-size: 12.5px; padding: 6px 11px; }
.mi__d { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.mi__cred { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.mi__cred dt { color: var(--ink-3); } .mi__cred dd { margin: 0; color: var(--ink); }
.mi__act { display: flex; gap: 8px; flex-wrap: wrap; }
.mi__next { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.mi__n { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; text-align: left; padding: 6px; border-radius: 12px; transition: background .3s; }
.mi__n:hover { background: rgba(255,255,255,.06); }
.mi__n img { width: 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.mi__n span { font-size: 12px; color: var(--ink-3); line-height: 1.35; } .mi__n b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.modal__cap { display: none; }
@media (max-width: 960px) { .modal__wrap { grid-template-columns: 1fr; } .modal__box.is-vertical { height: 70vh; } }

/* ---------- Spotlight: featured release ---------- */
.spot { position: relative; border-radius: clamp(22px, 3vw, 36px); overflow: hidden; min-height: 520px; display: grid; align-items: end; isolation: isolate; border: 1px solid var(--line); }
.spot video, .spot > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,5,7,.92) 0%, rgba(5,5,7,.6) 40%, rgba(5,5,7,.05) 75%), linear-gradient(0deg, rgba(5,5,7,.7), transparent 50%); }
.spot__in { padding: clamp(24px, 4vw, 56px); max-width: 640px; display: grid; gap: 14px; }
.spot__t { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 68%; text-transform: uppercase; font-size: clamp(56px, 8vw, 120px); line-height: .86; }
.spot__t i { font-style: normal; background: var(--heaven); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spot__who { font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; }
.spot__p { margin: 0; color: rgba(245,240,230,.82); font-size: 15.5px; line-height: 1.55; }
.spot__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.spot__live { position: absolute; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.spot__live i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d3d; animation: pulse 1.6s infinite; }

/* ---------- Film grain & gate weave (authentic film finish) ---------- */
.grain { opacity: .075 !important; mix-blend-mode: overlay; }
.filmic { position: relative; }
.filmic::after { content: ""; position: absolute; inset: -20%; z-index: 4; pointer-events: none; opacity: .16; mix-blend-mode: overlay; animation: grain .9s steps(5) infinite;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.vwall::before { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); }
.vwall .vwall__stage { animation: weave 7s ease-in-out infinite; }
@keyframes weave { 0%,100% { translate: 0 0; } 25% { translate: .4px -.6px; } 50% { translate: -.5px .3px; } 75% { translate: .3px .5px; } }
.vtile::after, .ccard::before, .phone::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@media (prefers-reduced-motion: reduce) { .filmic::after, .vwall .vwall__stage { animation: none; } }

/* ---------- Brand logo image ---------- */
.logo--img { position: relative; display: inline-block; line-height: 0; }
.logo--img img { height: 50px; width: auto; display: block; transition: height .4s var(--ease, ease); }
.header.is-scrolled .logo--img img { height: 40px; }
@media (max-width: 520px) { .logo--img img, .header.is-scrolled .logo--img img { height: 36px; } }
.fbrand .logo--img img { height: 64px; }
/* light sweep across the logo, once on load and again on hover */
.logo--img::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.95) 48%, rgba(255,214,150,.9) 52%, transparent 65%) no-repeat;
  background-size: 300% 100%; background-position: 120% 0; mix-blend-mode: screen;
  -webkit-mask: url(../img/logo.png) center / contain no-repeat; mask: url(../img/logo.png) center / contain no-repeat;
  animation: logoSweep 1.5s .4s cubic-bezier(.6,.1,.2,1) both; }
.logo--img:hover::after { animation: logoSweep2 1.1s cubic-bezier(.6,.1,.2,1) both; }
@keyframes logoSweep { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes logoSweep2 { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@media (prefers-reduced-motion: reduce) { .logo--img::after { animation: none; display: none; } }

/* ---------- Document pages (legal, pricing, Journal articles) ---------- */
.doc-wrap { max-width: 820px; }
.page-hero--doc { padding-bottom: 10px; }
.crumbs { display: flex; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); } .crumbs a:hover { color: var(--gold); }
.doc-title { font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: .95; margin: 14px 0 16px; }
.doc-sub { color: var(--ink-3); font: 500 13px/1.6 var(--mono); letter-spacing: .04em; }
.doc-sub a { color: var(--gold); }
.doc-section { padding-top: 20px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; color: var(--ink); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.1; margin-top: 2.2em; }
.prose h3 { color: var(--ink); font-size: 1.15rem; margin-top: 1.8em; }
.prose strong { color: var(--ink); }
.prose a:not(.btn) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(243,196,126,.35); }
.prose img { width: 100%; border-radius: 18px; border: 1px solid var(--line); margin: 10px 0 18px; }
.prose ul { padding-left: 1.2em; } .prose li + li { margin-top: .45em; } .prose li::marker { color: var(--gold); }
.prose blockquote { margin: 1.8em 0; padding: 6px 0 6px 22px; border-left: 2px solid var(--gold); font-family: var(--display); font-size: 1.35rem; line-height: 1.3; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; } .prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.doc-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
