/* Lip Sync site styles. Dark only; the palette follows the logo's orange and silver. */

:root { --bg:#0C0C0E; --bg2:#111113; --footer:#08080A; --card:#161618; --line:#1B1B1E; --line2:#26262A; --line3:#2E2E33; --ink:#F3F3F4; --ink2:#E4E5E8; --muted:#A1A1A8; --muted2:#8A8A92; --muted3:#6E6E76; --accent:#FF6A13; --accent2:#FF9A3D; --silver:#C9CCD1; --rec:#FF3B30; --mono:'JetBrains Mono', ui-monospace, Consolas, monospace; color-scheme: dark; }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'Manrope', sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--accent); }
ul { list-style: none; }
::selection { background: rgba(255,106,19,0.35); color: #fff; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
section[id] { scroll-margin-top: 72px; }

@keyframes waveBar { 0%,100% { transform: scaleY(0.32); } 50% { transform: scaleY(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes markFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes glowPulse { 0%,100% { opacity: 0.55; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 0.9; transform: translate(-50%,-50%) scale(1.12); } }
@keyframes imgZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes rowIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes gradSlide { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes glint { 0%, 55% { background-position: 160% 0; } 85%, 100% { background-position: -60% 0; } }
@keyframes sheen { 0%, 60% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(420%) skewX(-18deg); } }
@keyframes langSpeak { 0%, 28%, 100% { opacity: 0.32; text-shadow: 0 0 0 transparent; } 8%, 20% { opacity: 1; text-shadow: 0 0 30px currentColor; } }
@keyframes introMark { from { opacity: 0; transform: scale(0.82) rotate(-6deg); filter: blur(8px); } to { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); } }
@keyframes introBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes introOut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes lineDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ringPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-4%); } 60% { transform: translate(-2%,5%); } 80% { transform: translate(4%,2%); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes kenburns { 0% { opacity: 0; transform: scale(1.12) translate(0,0); } 6% { opacity: 1; } 25% { opacity: 1; } 31% { opacity: 0; transform: scale(1) translate(-2%, -1%); } 100% { opacity: 0; } }
@keyframes cornerIn { from { opacity: 0; transform: scale(1.3); } to { opacity: 1; transform: none; } }
/* partner logos light up one after another, like the old language strip */
@keyframes logoBlink { 0%, 13%, 100% { opacity: 0.45; transform: scale(1); filter: var(--lf) drop-shadow(0 0 0 rgba(255,106,19,0)); } 4%, 9% { opacity: 1; transform: scale(1.05); filter: var(--lf) drop-shadow(0 0 16px rgba(255,106,19,0.55)); } }
@keyframes tileBlink { 0%, 13%, 100% { border-color: #222225; box-shadow: 0 0 0 rgba(255,106,19,0); } 4%, 9% { border-color: rgba(255,106,19,0.5); box-shadow: 0 0 36px rgba(255,106,19,0.14); } }

/* ── Shared pieces ────────────────────────────────────────────────────────── */

.section { padding: clamp(80px, 11vw, 130px) clamp(20px, 5vw, 48px); }
.wrap { max-width: 1200px; margin: 0 auto; }
.eyebrow { display: block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.h2 { font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: -1px; color: var(--ink); line-height: 1; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { height: 38px; width: auto; display: block; }
.brand__word { height: 15px; width: auto; display: block; }
.brand--sm .brand__mark { height: 36px; }
.brand--sm .brand__word { height: 14px; }

.btn-quote { display: inline-block; text-decoration: none; color: #0C0C0E; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; background: linear-gradient(120deg, var(--accent), var(--accent2)); padding: 11px 26px; border-radius: 100px; transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s; }

/* headline lines slide up from a clipped mask; --d staggers them */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line-mask > span { display: block; animation: lineUp var(--dur, 1s) cubic-bezier(.2,.8,.2,1) var(--d, 0s) both; }

/* reveal on scroll (home.js adds .revealed); content stays visible if JS never runs. --rd delays one element. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease var(--rd, 0s), transform 0.8s cubic-bezier(.2,.7,.2,1) var(--rd, 0s); }
/* mask: section headings wipe in from a clipped box */
.js [data-reveal="mask"] { opacity: 1; clip-path: inset(0 0 100% 0); transform: translateY(0.35em); transition: clip-path 1.1s cubic-bezier(.2,.7,.2,1) var(--rd, 0s), transform 1.1s cubic-bezier(.2,.7,.2,1) var(--rd, 0s); }
/* card: project tiles rise and scale in, row by row */
.js [data-reveal="card"] { transform: translateY(40px) scale(0.96); transition: opacity 0.8s ease var(--rd, 0s), transform 0.9s cubic-bezier(.2,.7,.2,1) var(--rd, 0s); }
.js [data-reveal].revealed { opacity: 1; transform: none; }
.js [data-reveal="mask"].revealed { clip-path: inset(-20% -5% -25% -5%); }
/* fill: a thin bar that draws out from the left */
.js [data-fill] { transform: scaleX(0); }
.js [data-fill].revealed { transform: scaleX(1); }

/* film grain over the home page */
.home::after { content: ''; position: fixed; inset: -50%; z-index: 1001; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 1.4s steps(6) infinite; }

/* ── Intro screen (once per session; index.html adds .intro / .intro-hold) ── */

.intro-screen { display: none; position: fixed; inset: 0; z-index: 2000; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 28px; animation: introOut 0.85s cubic-bezier(.76,0,.24,1) 1.3s both; }
.intro .intro-screen { display: flex; }
.intro-screen img { height: clamp(80px, 12vw, 120px); width: auto; animation: introMark 0.9s cubic-bezier(.2,.8,.2,1) both; }
.intro-screen__track { width: 150px; height: 2px; background: #1F1F22; border-radius: 2px; overflow: hidden; }
.intro-screen__track span { display: block; height: 100%; background: linear-gradient(90deg, #FF6A13, #FFB36B); transform-origin: left; animation: introBar 1.1s cubic-bezier(.6,0,.2,1) 0.15s both; }
/* the hero entrance waits behind the curtain and plays as it lifts */
.intro-hold .hero, .intro-hold .hero * { animation-play-state: paused !important; }

/* ── Navigation ───────────────────────────────────────────────────────────── */

#scrollProgressBar { position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 1002; background: linear-gradient(90deg, var(--accent), var(--accent2)); pointer-events: none; }

/* nav: transparent at the top, solid with blur once the page scrolls; slides away on the way down */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; transition: all 0.45s cubic-bezier(.2,.7,.2,1); background: transparent; padding: 20px 48px; }
.site-nav.scrolled { background: rgba(12,12,14,0.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 12px 48px; }
.site-nav.nav-hidden:not(:focus-within) { transform: translateY(-110%); }
.nav-desktop { display: flex; align-items: center; gap: 36px; }
.nav-link { text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.5px; padding: 11px 0; transition: color 0.3s; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: flex-end; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 1px; }
.nav-burger span:nth-child(2) { width: 19px; }
.nav-burger span:nth-child(3) { width: 14px; background: var(--accent); }

/* auto margins centre the menu and still let it scroll on short screens */
.mobile-menu { position: fixed; inset: 0; z-index: 999; background: rgba(12,12,14,0.98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 90px 20px 40px; overflow-y: auto; animation: fadeIn 0.3s ease; }
.mobile-menu > * { animation: fadeUp 0.4s ease both; }
.mobile-menu > :first-child { margin-top: auto; }
.mobile-menu > :last-child { margin-bottom: auto; }
.mobile-menu > :nth-child(2) { animation-delay: 0.05s; }
.mobile-menu > :nth-child(3) { animation-delay: 0.1s; }
.mobile-menu > :nth-child(4) { animation-delay: 0.15s; }
.mobile-menu > :nth-child(5) { animation-delay: 0.2s; }
.mobile-menu > :nth-child(6) { animation-delay: 0.25s; }
.mobile-menu > :nth-child(7) { animation-delay: 0.3s; }
.mobile-menu__mark { height: 64px; width: auto; margin-bottom: 10px; }
.mobile-menu__link { text-decoration: none; color: var(--ink); font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(28px, 8vw, 38px); }
.mobile-menu .btn-quote { font-size: 15px; padding: 15px 36px; margin-top: 8px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
/* home.js sets --sy (scroll px) on the hero: the photo drifts down and the copy lifts away */
.hero__bg { position: absolute; inset: 0; transform: translate3d(0, calc(var(--sy, 0) * 0.25px), 0) scale(calc(1 + var(--sy, 0) * 0.00015)); will-change: transform; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.32; animation: imgZoom 10s ease-out both; }
.hero__shade { position: absolute; inset: 0; pointer-events: none; }
.hero__shade--side { background: linear-gradient(90deg, #0C0C0E 0%, rgba(12,12,14,0.88) 42%, rgba(12,12,14,0.45) 100%); }
.hero__shade--base { background: linear-gradient(0deg, #0C0C0E 0%, rgba(12,12,14,0) 40%); }
/* spotlight follows the cursor: home.js sets --hx / --hy on the hero */
.hero__spot { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(560px circle at var(--hx, 72%) var(--hy, 42%), rgba(255,106,19,0.13), transparent 62%); }

.hero__body { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(96px, 13vh, 130px) clamp(20px, 5vw, 48px) 12px; display: flex; align-items: center; gap: clamp(32px, 4vw, 64px); transform: translate3d(0, calc(var(--sy, 0) * -0.18px), 0); opacity: calc(1 - var(--sy, 0) / 750); }
.hero__copy { flex: 1 1 520px; min-width: 0; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 26px; animation: fadeUp 0.9s ease 0.1s both; }
.wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex-shrink: 0; }
.wave span { width: 3px; height: 45%; background: var(--accent); border-radius: 2px; animation: waveBar 1.2s ease-in-out infinite; }
.wave span:nth-child(2) { height: 100%; background: var(--accent2); animation-delay: 0.2s; }
.wave span:nth-child(3) { height: 65%; background: var(--silver); animation-delay: 0.4s; }
.hero h1 { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(44px, min(7.4vw, 12.5vh), 104px); line-height: 0.96; letter-spacing: -1.5px; color: var(--ink); margin-bottom: 26px; }
.shimmer { background: linear-gradient(100deg, #FF6A13 0%, #FFB36B 25%, #FF6A13 50%, #FFB36B 75%, #FF6A13 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: gradSlide 6s linear infinite; }
.hero__lead { font-size: clamp(15px, 1.8vw, 18px); color: var(--muted); max-width: 520px; line-height: 1.75; text-wrap: pretty; animation: fadeUp 0.9s ease 0.4s both; }

/* logo mark + "LIP SYNC" wordmark: floats, tilts toward the cursor (--tx / --ty), and catches a glint.
   The column is sized from the window height so the credentials bar stays on the first screen
   (mark height ≈ 1.75 × width, plus the wordmark below it). */
.hero__mark { flex: 0 0 auto; position: relative; width: clamp(200px, min(30vw, (100vh - 280px) * 0.49), 440px); width: clamp(200px, min(30vw, (100svh - 280px) * 0.49), 440px); display: flex; justify-content: center; animation: fadeIn 1.4s ease 0.5s both; }
.hero__glow { position: absolute; top: 50%; left: 50%; width: 140%; height: 90%; border-radius: 50%; background: radial-gradient(circle, rgba(255,106,19,0.28), transparent 65%); filter: blur(10px); opacity: 0.55; transform: translate(-50%,-50%); animation: glowPulse 5s ease-in-out infinite; pointer-events: none; }
.hero__tilt { position: relative; width: 100%; transform: perspective(900px) rotateY(calc(var(--tx, 0) * 18deg)) rotateX(calc(var(--ty, 0) * -14deg)); transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.hero__float { position: relative; animation: markFloat 7s ease-in-out infinite; }
.hero__float img { position: relative; width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.6)); }
.hero__word { position: relative; display: block; width: 74%; height: auto; margin: clamp(12px, 2vh, 20px) auto 0; filter: drop-shadow(0 10px 22px rgba(0,0,0,0.65)); animation: fadeUp 0.9s ease 0.9s both; }
.hero__glint { position: absolute; inset: 0; -webkit-mask-image: url('../assets/logo-mark.png'); mask-image: url('../assets/logo-mark.png'); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,0.55) 50%, transparent 62%); background-size: 250% 100%; animation: glint 6s ease-in-out 1.5s infinite; pointer-events: none; }

/* voice waveform, drawn by home.js */
/* the waveform runs under the headline, so the logo column can use the full height */
.hero__wave { position: relative; width: 100%; height: clamp(60px, 10vh, 110px); margin-top: clamp(14px, 3vh, 30px); pointer-events: none; animation: fadeIn 1.6s ease 0.6s both; }
.hero__wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero__creds { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px) clamp(24px, 5vh, 44px); animation: fadeUp 0.9s ease 0.6s both; }
.creds { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 20px clamp(18px, 3vw, 32px); border-radius: 18px; border: 1px solid rgba(255,255,255,0.09); background: rgba(22,22,24,0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); position: relative; overflow: hidden; }
/* parked off the panel so it only shows while it sweeps */
.creds__sheen { position: absolute; top: 0; bottom: 0; left: 0; width: 22%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent); transform: translateX(-120%) skewX(-18deg); animation: sheen 7s ease-in-out 2s infinite; pointer-events: none; }
.cred { display: flex; align-items: center; gap: 13px; }
.cred__icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(255,106,19,0.14); }
.cred__icon--blue { background: rgba(47,150,255,0.14); }
.cred__icon--silver { background: rgba(201,204,209,0.12); }
.cred__title { display: block; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); }
.cred__sub { display: block; font-size: 12px; color: var(--muted2); }

/* ── Services accordion ───────────────────────────────────────────────────── */

.services { background: var(--bg); border-top: 1px solid var(--line); }
.svc-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.svc-head__text { min-width: 0; }
.svc-head h2 { font-size: clamp(40px, 6vw, 76px); }
/* the button is the heading text; its ::after stretches the click target over the whole header */
.svc-toggle { background: none; border: none; font: inherit; letter-spacing: inherit; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.svc-toggle::after { content: ''; position: absolute; inset: 0; }
.svc-toggle > span { display: block; }
.svc-toggle:focus-visible { outline: none; }
.svc-toggle:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
.svc-head__action { display: flex; align-items: center; gap: 14px; flex-shrink: 0; pointer-events: none; transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.svc-head__label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.svc-head__icon { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255,106,19,0.5); background: rgba(255,106,19,0.08); display: flex; align-items: center; justify-content: center; transition: transform 0.45s cubic-bezier(.2,.7,.2,1), background 0.3s; }
/* the ring pulses while the list is collapsed */
.svc-head__ring { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); animation: ringPulse 2.4s ease-out infinite; pointer-events: none; }
.svc.open .svc-head__icon { transform: rotate(45deg); }
.svc.open .svc-head__ring { display: none; }
html:not(.js) .svc-head { cursor: default; }
html:not(.js) .svc-head__action { display: none; }

/* open unless JS is running, so the list is never locked away */
.svc-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.6s cubic-bezier(.2,.7,.2,1); }
.svc-panel__inner { overflow: hidden; min-height: 0; }
.js .svc:not(.open) .svc-panel { grid-template-rows: 0fr; }
.js .svc:not(.open) .svc-panel__inner { visibility: hidden; transition: visibility 0s linear 0.6s; }
.svc-row { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; padding: clamp(26px, 3.5vw, 40px) 0; border-bottom: 1px solid #1F1F22; }
.svc.open .svc-row { animation: rowIn 0.55s cubic-bezier(.2,.7,.2,1) 0.1s both; }
.svc.open .svc-row:nth-child(2) { animation-delay: 0.18s; }
.svc.open .svc-row:nth-child(3) { animation-delay: 0.26s; }
.svc.open .svc-row:nth-child(4) { animation-delay: 0.34s; }
.svc.open .svc-row:nth-child(5) { animation-delay: 0.42s; }
/* an orange underline draws from the left as each row opens */
.svc-row::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, #FF6A13, rgba(255,106,19,0) 70%); transform-origin: left; pointer-events: none; }
.svc.open .svc-row::after { animation: lineDraw 1.1s cubic-bezier(.2,.7,.2,1) 0.25s both; }
.svc.open .svc-row:nth-child(2)::after { animation-delay: 0.37s; }
.svc.open .svc-row:nth-child(3)::after { animation-delay: 0.49s; }
.svc.open .svc-row:nth-child(4)::after { animation-delay: 0.61s; }
.svc.open .svc-row:nth-child(5)::after { animation-delay: 0.73s; }
.svc-row__num { flex: 0 0 56px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: var(--accent); letter-spacing: 1px; }
.svc-row h3 { flex: 1 1 260px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.5px; color: var(--ink); line-height: 1.1; }
.svc-row p { flex: 1.3 1 320px; font-size: 15.5px; color: var(--muted); line-height: 1.75; text-wrap: pretty; }

/* ── Partners ─────────────────────────────────────────────────────────────── */

.partners { background: var(--bg); }
.partners__head { text-align: center; margin-bottom: 44px; }
.partners__head h2 { font-size: clamp(32px, 4.8vw, 56px); letter-spacing: -0.5px; line-height: 1.05; }
.partners__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.partners__grid > li { display: flex; --lf: brightness(1); }
/* every partner uses the same card: the logo on a light plate (the files mix white and transparent backgrounds), the name below.
   The <li> carries the scroll reveal so the card keeps its own hover lift. common.js sets --mx / --my / --spot-o on hover. */
.ptile { flex: 1; position: relative; overflow: hidden; border-radius: 16px; border: 1px solid #222225; background: #121214; padding: 10px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.4s, transform 0.5s cubic-bezier(.2,.7,.2,1); animation: tileBlink 12s ease-in-out var(--bd, 0s) infinite backwards; }
.ptile__spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(255,106,19,0.16), transparent 65%); opacity: var(--spot-o, 0); transition: opacity 0.35s; }
.ptile__plate { position: relative; height: 118px; border-radius: 11px; background: radial-gradient(120% 100% at 50% 40%, #1D1D20 0%, #141416 70%); border: 1px solid #1F1F22; display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* each logo sets its own box (width / height inline) so the marks look evenly sized */
.ptile__plate img { object-fit: contain; filter: var(--lf); transition: transform 0.6s cubic-bezier(.2,.7,.2,1), opacity 0.4s; animation: logoBlink 12s ease-in-out var(--bd, 0s) infinite backwards; }
/* logos that come on a white square: Star Vijay is cut to its circle, History TV18 keeps a rounded badge, Cartoon Network is inverted and screened onto the card */
.ptile__plate .ptile__logo--circle { height: 80%; width: auto; aspect-ratio: 1; clip-path: circle(48.5%); }
.ptile__plate .ptile__logo--badge { height: 76%; width: auto; aspect-ratio: 1; border-radius: 10px; }
.ptile__plate .ptile__logo--screen { mix-blend-mode: screen; }
.ptile__name { position: relative; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink2); text-align: center; padding-bottom: 4px; }

/* ── Project tiles (home "Featured Projects" and projects.html) ───────────── */

.work { background: var(--bg2); border-top: 1px solid var(--line); }
.work__wrap { max-width: 1100px; margin: 0 auto; width: 100%; }
.work__head { margin-bottom: 24px; }
.work__head h2 { font-size: clamp(36px, 5.4vw, 66px); }

.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 14px; }
.pcard-wrap--pop { animation: cardIn 0.55s cubic-bezier(.2,.7,.2,1) both; }
/* common.js tilts the tile toward the cursor and moves the glare (--mx / --my / --spot-o) */
@supports not (aspect-ratio: 1) { .pcard::before { content: ''; display: block; padding-top: 133.33%; } } /* older Safari */
.pcard { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--card); border: 1px solid var(--line2); transition: transform 0.25s ease-out, box-shadow 0.4s ease, border-color 0.4s ease; will-change: transform; }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.pcard__blank { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 18px 16px; gap: 14px; }
.pcard__blank img { height: 34px; width: auto; opacity: 0.55; }
.pcard__blank span { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.15; color: rgba(243,243,244,0.22); text-transform: uppercase; letter-spacing: 0.5px; overflow-wrap: anywhere; }
.pcard__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.16), transparent 60%); opacity: var(--spot-o, 0); transition: opacity 0.3s; }
.pcard__info { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 13px 13px; background: linear-gradient(to top, rgba(8,8,10,0.96) 0%, rgba(8,8,10,0.75) 55%, transparent 100%); }
.pcard__meta { display: block; font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 5px; }
.pcard__title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14.5px; line-height: 1.25; color: var(--ink); margin: 0 0 8px; text-wrap: pretty; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.pcard__langs { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.pcard__langs span { font-size: 10.5px; font-weight: 600; color: var(--ink2); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); padding: 2px 8px; border-radius: 100px; }
.pcard__services { display: block; font-size: 10.5px; color: var(--muted2); font-weight: 600; }

/* "Show all featured projects": the last tile of the second row, links to projects.html */
.pmore { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; aspect-ratio: 3 / 4; padding: 16px 14px; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); background: radial-gradient(120% 80% at 50% 0%, rgba(255,106,19,0.2), transparent 62%), var(--card); border: 1px solid rgba(255,106,19,0.45); transition: border-color 0.4s, transform 0.5s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s; }
.pmore__stack { position: absolute; top: 12%; left: 50%; width: 44%; aspect-ratio: 2 / 3; transform: translateX(-50%); }
.pmore__stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 12px 24px rgba(0,0,0,0.5); transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.pmore__stack img:nth-child(1) { transform: translateX(-36%) rotate(-10deg) scale(0.86); }
.pmore__stack img:nth-child(2) { transform: translateX(36%) rotate(10deg) scale(0.86); }
.pmore__label { position: relative; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; line-height: 1.25; padding-right: 44px; text-wrap: pretty; }
.pmore__arrow { position: absolute; right: 14px; bottom: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,106,19,0.6); color: var(--accent); display: flex; align-items: center; justify-content: center; transition: transform 0.4s cubic-bezier(.2,.7,.2,1), background 0.3s, color 0.3s; }
.work__empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--muted2); font-size: 15px; }

/* service filter: chips are built from the data by common.js */
.svc-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 24px; }
.svc-filter__label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted3); font-weight: 700; }
.svc-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 16px; border-radius: 100px; border: 1px solid var(--line3); background: transparent; color: var(--muted); font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0C0C0E; }


/* ── About ────────────────────────────────────────────────────────────────── */

.about { background: var(--bg2); border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
.about h2 { font-size: clamp(38px, 6vw, 66px); margin-bottom: 26px; }
.about p { font-size: 15.5px; color: var(--muted); line-height: 1.9; text-wrap: pretty; }
.about p + p { margin-top: 20px; }
.about__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 26px 22px; background: var(--card); border-radius: 16px; border: 1px solid #242427; }
.stat__num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(36px, 4vw, 50px); white-space: nowrap; color: var(--accent); display: block; line-height: 1; margin-bottom: 10px; }
.stat:nth-child(2) .stat__num { color: var(--accent2); }
.stat__label { font-size: 13px; color: var(--muted); letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600; }

.stat__bar { display: block; height: 2px; margin-top: 20px; border-radius: 2px; background: linear-gradient(90deg, #FF6A13, rgba(255,106,19,0)); transform-origin: left; transition: transform 1.6s cubic-bezier(.2,.7,.2,1) 0.2s; }
.stat:nth-child(2) .stat__bar { background: linear-gradient(90deg, #FF9A3D, rgba(255,154,61,0)); transition-delay: 0.35s; }

/* studio photos crossfading in a viewfinder frame, above the stats */
.reel { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); background: var(--bg); }
.kb-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: kenburns 24s ease-in-out var(--d, 0s) infinite; }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,12,14,0.45), transparent 50%); pointer-events: none; }
.reel__frame { position: absolute; inset: 12px; z-index: 2; pointer-events: none; }
.reel__frame > i { position: absolute; width: 22px; height: 22px; border: 0 solid var(--accent); animation: cornerIn 0.8s ease var(--d, 0s) both; }
.reel__frame > i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.reel__frame > i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; --d: 0.1s; }
.reel__frame > i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; --d: 0.2s; }
.reel__frame > i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; --d: 0.3s; }
.reel__label { position: absolute; top: 5px; left: 34px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--rec); }
.rec-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); animation: pulseDot 1s ease-in-out infinite; }

/* ── Footer: contact details, then the bottom bar ─────────────────────────── */

.site-footer { background: var(--footer); border-top: 1px solid var(--line); }
.contact { max-width: 1200px; margin: 0 auto; padding: clamp(70px, 10vw, 110px) clamp(20px, 5vw, 48px) clamp(50px, 7vw, 70px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(40px, 6vw, 72px); align-items: center; }
.contact h2 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 22px; }
.contact__lead { font-size: 16px; color: var(--muted); line-height: 1.8; max-width: 520px; text-wrap: pretty; }
.contact__list { display: flex; flex-direction: column; gap: 26px; }
.contact-item { display: flex; align-items: center; gap: 18px; }
.contact-item > div { min-width: 0; }
.contact-item__icon { width: 50px; height: 50px; border-radius: 13px; background: var(--card); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item__label { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted3); font-weight: 700; margin-bottom: 5px; }
.contact-link { display: inline-block; padding: 5px 0; margin: -5px 0; font-size: 15px; color: var(--ink2); text-decoration: none; transition: color 0.3s; overflow-wrap: anywhere; }
.contact-phones { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; color: #4A4A50; }
.contact-phones a { white-space: nowrap; }
.contact-map { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; margin: 0 0 -6px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }

.footer-bar { border-top: 1px solid var(--line); padding: 28px clamp(20px, 5vw, 48px); }
.footer-bar__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand__tag { font-size: 12px; color: var(--muted3); margin-left: 8px; }
.footer-copy { font-size: 12px; color: var(--muted3); }

/* ── Tablets and small screens ────────────────────────────────────────────── */

@media (min-width: 700px) {
  .partners__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


@media (max-width: 859px) {
  .site-nav { padding: 20px; }
  .site-nav.scrolled { padding: 12px 20px; }
  .nav-desktop, .hero__mark, .svc-head__label { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 599px) {
  .svc-filter__chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .svc-filter__chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
}

/* the narrowest phones: tiles are about 130px wide, so their text steps down a size */
@media (max-width: 359px) {
  .pcard__info { padding: 26px 10px 10px; }
  .pcard__meta { font-size: 8.5px; letter-spacing: 1px; margin-bottom: 4px; }
  .pcard__title { font-size: 12.5px; margin-bottom: 6px; -webkit-line-clamp: 3; }
  .pcard__langs { gap: 4px; margin-bottom: 5px; }
  .pcard__langs span { font-size: 9.5px; padding: 1px 6px; }
  .pcard__services { font-size: 9.5px; }
  .pcard__blank { padding: 14px 12px; gap: 10px; }
  .pcard__blank img { height: 28px; }
  .pcard__blank span { font-size: 14px; }
}

/* short laptop screens: tighten the hero so the credentials bar still fits on the first screen */
@media (min-width: 860px) and (max-height: 720px) {
  .hero__body { padding-top: 92px; }
  .hero__wave { height: 56px; }
}

/* ── Hover effects (pointer devices only, so taps don't leave them stuck) ─── */

@media (hover: hover) {
  a:hover { color: var(--accent2); }
  .nav-link:hover, .contact-link:hover, .back-link:hover { color: var(--accent); }
  .contact-map:hover { color: var(--accent2); }
  .btn-quote:hover { color: #0C0C0E; box-shadow: 0 10px 28px rgba(255,106,19,0.4); }
  .svc-head:hover .svc-head__icon { background: rgba(255,106,19,0.16); }
  .ptile:hover { animation: none; border-color: rgba(255,106,19,0.5); transform: translateY(-4px); }
  .ptile:hover .ptile__plate img { animation: none; opacity: 1; transform: scale(1.08); filter: var(--lf) drop-shadow(0 0 16px rgba(255,106,19,0.5)); }
  .pmore:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 24px 48px rgba(0,0,0,0.55); }
  .pmore:hover .pmore__stack img:nth-child(1) { transform: translateX(-54%) rotate(-14deg) scale(0.88); }
  .pmore:hover .pmore__stack img:nth-child(2) { transform: translateX(54%) rotate(14deg) scale(0.88); }
  .pmore:hover .pmore__stack img:nth-child(3) { transform: translateY(-6px); }
  .pmore:hover .pmore__arrow { transform: translateX(4px); background: var(--accent); color: #0C0C0E; }
  .chip:not([aria-pressed="true"]):hover { color: var(--ink); border-color: var(--accent); }
  .pcard:hover { box-shadow: 0 24px 48px rgba(0,0,0,0.55); border-color: rgba(255,106,19,0.45); }
  .pcard:hover .pcard__img { transform: scale(1.06); }
}

/* the float, glint, sheen, shimmer and language-speak loops stop; the scripts skip the intro, waveform, parallax, tilts and magnets */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero__float, .hero__glow, .shimmer, .wave span, .rec-dot { animation: none !important; }
  .kb-slide { animation: none !important; }
  .kb-slide:first-child { opacity: 1; }
  .ptile, .ptile__plate img { animation: none !important; }
  .ptile__plate img { opacity: 1; }

  .hero__glint, .creds__sheen, .svc-head__ring { display: none; }
  .hero__tilt { transform: none; }
}
