/* =========================================================
   TL FINTECH IT SDN BHD — corporate site
   ========================================================= */
:root {
  /* Brand colours — indigo/sky, matching the TL Fintech mark */
  --brand-yellow: #6366f1;   /* indigo-500, primary accent */
  --brand-navy: #f8fafc;     /* readable on top of the accent */

  --bg: #080d18;
  --bg-2: #0d1320;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: var(--brand-yellow);
  --on-accent: var(--brand-navy);
  --accent-2: #38bdf8;    /* sky-400, secondary accent */
  --accent-3: #818cf8;    /* indigo-400, light highlight */
  --grad: linear-gradient(120deg, #818cf8 0%, var(--accent) 45%, #38bdf8 100%);
  --radius: 22px;
  --font: "Space Grotesk", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
html[lang="zh"] { --font: "Noto Sans SC", "Space Grotesk", system-ui, sans-serif; }

html, body { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }

a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--on-accent); }

.text-muted-2 { color: var(--muted) !important; }

/* ---------- Background layers ---------- */
#webgl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  transition: opacity .8s var(--ease);
}
.no-webgl #webgl { display: none; }
/* Fallback when WebGL is unavailable: CSS aurora + dot matrix */
.no-webgl body::before, .no-webgl body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.no-webgl body::before {
  inset: -20%;
  background:
    radial-gradient(40% 40% at 75% 25%, rgba(47, 111, 224, .7), transparent 70%),
    radial-gradient(35% 35% at 20% 75%, rgba(249, 181, 26, .6), transparent 70%),
    radial-gradient(30% 30% at 60% 80%, rgba(122, 168, 255, .4), transparent 70%);
  filter: blur(40px);
  animation: aurora 22s ease-in-out infinite alternate;
}
.no-webgl body::after {
  background: radial-gradient(circle, rgba(255, 255, 255, .22) 1.2px, transparent 1.7px) 0 0 / 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
@keyframes aurora {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(-6%, 4%) rotate(8deg) scale(1.1); }
  100% { transform: translate(5%, -5%) rotate(-6deg) scale(1.05); }
}
.grain {
  position: fixed; inset: -50%;
  z-index: 1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-5%, 3%); }
  50% { transform: translate(4%, -4%); } 75% { transform: translate(-2%, 5%); }
}
main, footer { position: relative; z-index: 2; }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .7s var(--ease), visibility .7s;
}
#loader.done { opacity: 0; visibility: hidden; }
/* safety net: never keep the loader longer than ~4s, even if scripts are slow */
#loader:not(.done) { animation: loaderOut .7s ease 3.6s forwards; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0 16px; text-align: center; }
.loader-text { font-size: clamp(1rem, 2.4vw, 1.35rem); letter-spacing: .02em; }
.loader-text::after { content: "|"; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Dots ---------- */
.rec-dot, .brand-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(99, 102, 241, .6);
  animation: pulse 1.8s infinite;
}
.brand-dot { margin-right: 8px; transform: translateY(-1px); }
.brand-dot.big { width: 22px; height: 22px; margin: 0; }
.rec-dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulseGreen 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, .6); }
  70% { box-shadow: 0 0 0 14px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
  70% { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- Custom cursor (fine pointers only) ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9000;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: #fff; mix-blend-mode: difference;
  pointer-events: none; display: none;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s;
}
.cursor-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: #000; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.has-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; mix-blend-mode: normal; background: var(--text); }
.cursor.has-label .cursor-label { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; }
}

/* ---------- Navbar ---------- */
#mainNav {
  height: var(--nav-h);
  transition: background .4s, backdrop-filter .4s, border-color .4s, height .4s;
  border-bottom: 1px solid transparent;
  z-index: 1030;
}
#mainNav.scrolled {
  background: rgba(6, 10, 20, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.navbar-brand { color: var(--text) !important; font-weight: 700; letter-spacing: .14em; font-size: 1.15rem; display: inline-flex; align-items: center; }
.navbar .nav-link { color: var(--muted); font-weight: 500; padding: .5rem 1rem !important; position: relative; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--text); }
.navbar .nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease);
}
.navbar .nav-link.active::after { transform: translateX(-50%) scale(1); }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang-btn { background: none; border: 0; color: var(--muted); font-size: .8rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; transition: .25s; }
.lang-btn.active { background: var(--text); color: var(--bg); }

.navbar-toggler { border: 0; box-shadow: none !important; width: 42px; height: 42px; display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 9px; }
.toggler-bar { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:first-child { transform: translateY(4px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(6, 10, 20, .96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 24px;
  }
  #mainNav.menu-open { background: rgba(6, 10, 20, .96); }
  .navbar .nav-link { font-size: 1.6rem; padding: .55rem 0 !important; color: var(--text); }
  .navbar .nav-link::after { left: auto; right: 0; top: 50%; transform: translateY(-50%) scale(0); }
  .navbar .nav-link.active::after { transform: translateY(-50%) scale(1.6); }
}

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .7rem 1.5rem; display: inline-flex; align-items: center; gap: .5rem; transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; }
.btn-accent { background: var(--accent); color: var(--on-accent); border: 0; box-shadow: 0 10px 30px -10px rgba(249, 181, 26, .7); }
.btn-accent:hover, .btn-accent:focus { background: #ffc94d; color: var(--on-accent); box-shadow: 0 14px 40px -10px rgba(249, 181, 26, .9); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--surface); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); background: var(--surface-2); }
.magnetic { will-change: transform; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 110px;
  position: relative;
}
.hero-meta { display: flex; gap: 22px; align-items: center; font-size: .8rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 24px; flex-wrap: wrap; }
.rec { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.timecode { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.hero-title {
  font-size: clamp(2.9rem, 9.5vw, 8.6rem);
  line-height: .95; font-weight: 700; letter-spacing: -.035em;
  margin: 0;
}
html[lang="zh"] .hero-title { letter-spacing: 0; line-height: 1.12; font-size: clamp(2.6rem, 8.5vw, 7.4rem); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.loaded .hero-title .line > span { transform: none; }
.loaded .hero-title .line:nth-child(2) > span { transition-delay: .1s; }
.loaded .hero-title .line:nth-child(3) > span { transition-delay: .2s; }
.outline {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c9c9d4; max-width: 560px; margin: 0; }
.hero-hint { position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.scroll-cue { position: absolute; right: 32px; bottom: 32px; width: 26px; height: 42px; border: 1.5px solid var(--line); border-radius: 14px; display: flex; justify-content: center; }
.scroll-cue span { width: 4px; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--text); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; border-block: 1px solid var(--line); background: rgba(6, 10, 20, .55); backdrop-filter: blur(6px); overflow: hidden; padding: 18px 0; }
.marquee-track { display: inline-flex; gap: 34px; white-space: nowrap; animation: marquee 34s linear infinite; font-size: clamp(1.2rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.01em; }
.marquee-track i { font-style: normal; color: var(--accent); font-size: .6em; align-self: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 10, 20, .0) 0%, rgba(6, 10, 20, .22) 18%, rgba(6, 10, 20, .22) 82%, rgba(6, 10, 20, 0) 100%);
}
.eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.section-title { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.06; font-weight: 700; letter-spacing: -.03em; margin-bottom: 22px; }
.section-title.big { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
html[lang="zh"] .section-title { letter-spacing: 0; line-height: 1.25; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.stat { border-top: 1px solid var(--line); padding-top: 14px; }
.stat .num { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .lbl { display: block; font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.35; }

.about-card { border-radius: var(--radius); padding: 1px; background: linear-gradient(140deg, rgba(255,255,255,.18), rgba(255,255,255,.02) 40%, rgba(255,61,87,.4)); }
.about-card-inner { border-radius: calc(var(--radius) - 1px); background: rgba(11, 18, 34, .82); backdrop-filter: blur(10px); padding: clamp(18px, 3vw, 30px); }
.viewfinder { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(47, 111, 224, .45), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(249, 181, 26, .4), transparent 55%),
    radial-gradient(circle at 60% 20%, rgba(122, 168, 255, .25), transparent 50%), #0b0b12;
  animation: vfShift 12s ease-in-out infinite alternate; background-size: 140% 140%;
}
@keyframes vfShift { to { background-position: 100% 100%; } }
.vf { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, .8); }
.vf.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.vf.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.vf.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.vf.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.about-illus { position: absolute; left: 6%; top: 5%; width: 88%; height: 80%; object-fit: contain; transition: transform .8s var(--ease); }
.about-card:hover .about-illus { transform: scale(1.04); }
.vf-info { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 18px; font: 600 .7rem/1 ui-monospace, Menlo, monospace; letter-spacing: .1em; color: rgba(255, 255, 255, .8); }
.pillars { list-style: none; padding: 0; margin: 22px 0 0; }
.pillars li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.pillars li span { color: var(--accent); font-size: .8rem; font-weight: 600; }
.pillars b { font-weight: 500; }

/* ---------- Services ---------- */
.service-card {
  position: relative; height: 100%;
  padding: 30px 26px 26px; border-radius: var(--radius);
  background: rgba(11, 18, 34, .5); border: 1px solid var(--line);
  backdrop-filter: blur(10px); overflow: hidden;
  transition: border-color .4s, background .4s;
  transform-style: preserve-3d;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(249, 181, 26, .18), transparent 60%);
}
.service-card:hover { border-color: rgba(255, 255, 255, .22); }
.service-card:hover::before { opacity: 1; }
.service-card.featured { background: linear-gradient(160deg, rgba(47, 111, 224, .22), rgba(11, 18, 34, .75) 60%); }
.svc-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 26px; transition: transform .5s var(--ease), background .4s; }
.service-card:hover .svc-icon { transform: rotate(-8deg) scale(1.08); background: var(--accent); color: var(--on-accent); }
.svc-no { position: absolute; top: 26px; right: 26px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.service-card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .97rem; }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .75rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: #c8c8d2; }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
@media (min-width: 992px) { .filters { justify-content: flex-end; } }
.filter { background: var(--surface); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 8px 18px; font-weight: 500; font-size: .9rem; transition: .25s; }
.filter:hover { color: var(--text); }
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.work-item { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.work-item.hide { display: none; }
.work-item.fade { opacity: 0; transform: scale(.96); }
.work-card { display: flex; flex-direction: column; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); height: 100%; }
.work-card:hover { color: var(--text); }
.work-visual { position: relative; flex: 1 1 auto; aspect-ratio: 16 / 10; overflow: hidden; }
.col-lg-8 .work-visual { aspect-ratio: 16 / 8.6; }
.work-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6, 10, 20, .8)); }
.wv-orb { position: absolute; inset: -20%; transition: transform 1.2s var(--ease); filter: saturate(1.2); }
.work-card:hover .wv-orb { transform: scale(1.12) rotate(4deg); }
.wc-1 .wv-orb { background: radial-gradient(circle at 30% 40%, #6366f1 0, transparent 38%), radial-gradient(circle at 70% 60%, #38bdf8 0, transparent 42%), conic-gradient(from 200deg at 50% 50%, #0a1222, #171a3a, #0c1d38, #0a1222); }
.wc-2 .wv-orb { background: radial-gradient(circle at 60% 30%, #818cf8 0, transparent 35%), radial-gradient(circle at 30% 70%, #6366f1 0, transparent 40%), #10152a; }
.wc-3 .wv-orb { background: radial-gradient(circle at 50% 50%, #38bdf8 0, transparent 30%), radial-gradient(circle at 20% 20%, #6366f1 0, transparent 40%), #071520; }
.wc-4 .wv-orb { background: radial-gradient(circle at 50% 35%, #818cf8 0, transparent 28%), radial-gradient(circle at 70% 80%, #38bdf8 0, transparent 40%), #0d1428; }
.wc-5 .wv-orb { background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 18px), radial-gradient(circle at 40% 50%, #6366f1 0, transparent 45%), #0a0f1c; }
.wc-6 .wv-orb { background: radial-gradient(circle, rgba(255,255,255,.35) 1px, transparent 1.5px) 0 0 / 18px 18px, radial-gradient(circle at 60% 50%, #38bdf8 0, transparent 45%), #06141a; }
.wc-7 .wv-orb { background: radial-gradient(circle at 50% 50%, #818cf8 0, transparent 8%), radial-gradient(circle at 50% 50%, rgba(56,189,248,.25) 0, transparent 40%), #0b0b16; }
.play { position: absolute; z-index: 2; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .3); transform: scale(.8); opacity: 0; transition: .5s var(--ease); }
.work-card:hover .play { transform: scale(1); opacity: 1; background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.wv-img { position: absolute; left: 8%; top: 5%; width: 84%; height: 64%; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .35)); transition: transform 1s var(--ease); }
.work-card:hover .wv-img { transform: scale(1.06) translateY(-2%); }
@media (hover: none) { .play { opacity: 1; transform: scale(.9); } }
.work-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px 24px; }
.wk-cat { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.work-info h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 600; margin: 6px 0 0; }

/* ---------- Screening room ---------- */
/* Premiere spotlight */
.premiere { position: relative; display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(18px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; margin-bottom: 36px; isolation: isolate; }
.premiere:empty { display: none; }
.premiere::before { content: ""; position: absolute; inset: -40px; z-index: -2; background: var(--poster) center / cover no-repeat; filter: blur(40px) saturate(1.3); opacity: .55; transform: scale(1.1); }
.premiere::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 10, 20, .55), rgba(6, 10, 20, .9) 45%); }
.premiere-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); cursor: pointer; border: 0; padding: 0; background: var(--bg-2); }
.premiere-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.premiere-poster:hover img { transform: scale(1.05); }
.premiere-kicker { font: 600 .75rem/1 ui-monospace, Menlo, monospace; letter-spacing: .22em; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.premiere h3 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; margin: 14px 0 10px; }
html[lang="zh"] .premiere h3 { letter-spacing: 0; line-height: 1.2; }
.premiere-tagline { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #d3d8e4; margin-bottom: 14px; }
.premiere-meta { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.countdown { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.cd-box { min-width: 72px; padding: 10px 12px 8px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); text-align: center; backdrop-filter: blur(6px); }
.cd-box b { display: block; font: 700 clamp(1.5rem, 3vw, 2.1rem)/1 "Space Grotesk", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.cd-box small { display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.premiere-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 767.98px) {
  .premiere { grid-template-columns: 1fr; }
  .premiere-poster { max-width: 220px; }
  .cd-box { min-width: 0; flex: 1; }
  .premiere-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Poster wall */
.poster-rail-wrap { position: relative; }
.poster-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 21vw, 250px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px; padding: 6px 4px 18px; scrollbar-width: none; }
.poster-rail::-webkit-scrollbar { display: none; }
.rail-btn { position: absolute; top: 38%; z-index: 3; width: 46px; height: 46px; border-radius: 50%; place-items: center; border: 1px solid var(--line); background: rgba(6, 10, 20, .8); color: var(--text); backdrop-filter: blur(8px); transition: .3s var(--ease); }
.rail-btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.rail-btn.prev { left: -18px; } .rail-btn.next { right: -18px; }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }

.poster-card { scroll-snap-align: start; text-align: left; background: none; border: 0; padding: 0; color: var(--text); }
.poster-card.hide { display: none; }
.poster-img { position: relative; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.poster-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.poster-card:hover .poster-img, .poster-card:focus-visible .poster-img { transform: translateY(-6px); box-shadow: 0 26px 50px -20px rgba(250, 183, 5, .35); border-color: rgba(250, 183, 5, .5); }
.poster-card:hover .poster-img img { transform: scale(1.06); }
.poster-card:focus-visible { outline: none; }
.poster-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 20, .75)); pointer-events: none; }
.poster-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: var(--accent); color: var(--on-accent); transform: scale(.6); opacity: 0; transition: .4s var(--ease); }
.poster-card:hover .poster-play { transform: scale(1); opacity: 1; }
.poster-badges { position: absolute; z-index: 2; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.poster-date { position: absolute; z-index: 2; left: 12px; bottom: 10px; font: 600 .72rem/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; color: #fff; }
.poster-cap { padding: 12px 2px 0; }
.poster-cap h4 { font-size: 1.05rem; font-weight: 600; margin: 0 0 4px; }
.poster-cap span { font-size: .8rem; color: var(--muted); }
.scr-empty { padding: 30px 0; }

/* Badges */
.pbadge { display: inline-flex; align-items: center; gap: 6px; font: 700 .64rem/1 "Space Grotesk", sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
html[lang="zh"] .pbadge { letter-spacing: .06em; font-family: var(--font); }
.pbadge.now { background: var(--accent); color: var(--on-accent); }
.pbadge.now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e0261b; animation: pulseDot 1.4s infinite; }
@keyframes pulseDot { 50% { opacity: .2; } }
.pbadge.soon { background: rgba(6, 10, 20, .7); color: var(--accent); border: 1px solid var(--accent); backdrop-filter: blur(6px); }
.pbadge.type { background: rgba(6, 10, 20, .65); color: #dfe4ee; border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.pbadge.sample { background: transparent; color: #c4cbd8; border: 1px dashed rgba(255, 255, 255, .45); }

/* Details + trailer popup */
.modal-backdrop.show { opacity: .8; }
.prod-modal { position: relative; background: #0b1222; color: var(--text); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.prod-close { position: absolute; top: 14px; right: 14px; z-index: 5; background-color: rgba(255, 255, 255, .12); border-radius: 50%; padding: 10px; opacity: 1; }
.prod-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.prod-media { position: relative; background: #000; aspect-ratio: 16 / 9; align-self: start; }
.prod-modal.is-vertical .prod-grid { grid-template-columns: auto minmax(0, 1fr); }
.prod-modal.is-vertical .prod-media { aspect-ratio: 9 / 16; height: min(78vh, 680px); }
.prod-media iframe, .prod-media video, .prod-media img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.prod-media video { object-fit: contain; background: #000; }
.prod-media .no-trailer { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, rgba(6, 10, 20, .2), rgba(6, 10, 20, .85)); padding: 20px; }
.no-trailer span { font: 600 .8rem/1.4 ui-monospace, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.prod-info { padding: clamp(22px, 3.5vw, 40px); display: flex; flex-direction: column; overflow-y: auto; max-height: min(78vh, 680px); }
.prod-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.prod-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 10px; }
.prod-tagline { color: #d3d8e4; font-size: 1.05rem; }
.prod-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .9rem; margin: 6px 0 18px; padding: 14px 0; border-block: 1px solid var(--line); }
.prod-meta dt { color: var(--muted); font-weight: 500; }
.prod-meta dd { margin: 0; }
.prod-synopsis { color: var(--muted); font-size: .97rem; }
.prod-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; }
.prod-actions:empty { display: none; }
@media (max-width: 991.98px) {
  .prod-grid, .prod-modal.is-vertical .prod-grid { grid-template-columns: 1fr; }
  .prod-modal.is-vertical .prod-media { height: auto; width: min(100%, 360px); margin: 0 auto; max-height: 70vh; }
  .prod-info { max-height: none; }
}

/* ---------- Process ---------- */
.process { position: relative; }
.process-line { position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.process-line span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s linear; }
.step { position: relative; padding-top: 44px; }
.step-dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.step-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.step-k { font: 600 .78rem/1 ui-monospace, Menlo, monospace; letter-spacing: .2em; color: var(--muted); }
.step h3 { font-size: 1.3rem; font-weight: 600; margin: 12px 0 10px; }
.step p { color: var(--muted); font-size: .96rem; }
@media (max-width: 991.98px) {
  .process-line { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .process-line span { width: 100% !important; height: var(--fill, 0%); }
  .step { padding: 0 0 0 46px; }
}

/* ---------- Team ---------- */
.person-card { display: flex; gap: 28px; align-items: flex-start; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); background: rgba(11, 18, 34, .75); backdrop-filter: blur(10px); }
.person-figure { flex: 0 0 230px; border-radius: 30px; padding: 3px; background: linear-gradient(150deg, var(--accent), rgba(79, 134, 255, .7)); box-shadow: 0 30px 60px -30px rgba(249, 181, 26, .45); transition: transform .6s var(--ease); }
.person-figure svg { display: block; width: 100%; height: auto; border-radius: 27px; }
.person-card:hover .person-figure { transform: translateY(-6px) rotate(-1.5deg); }
.person-card { align-items: center; }
/* illustration motion */
.director-svg .d-eye { transform-box: fill-box; transform-origin: center; animation: dBlink 5.5s infinite; }
.director-svg .d-pupil { transition: transform .25s ease-out; }
.director-svg .d-ring { transform-box: fill-box; transform-origin: center; animation: dSpin 40s linear infinite; }
.director-svg .d-float { animation: dBob 4s ease-in-out infinite; }
.director-svg .d-f2 { animation-duration: 5s; animation-delay: -1s; }
.director-svg .d-f3 { animation-duration: 6s; animation-delay: -2s; }
.director-svg .d-earring { transform-box: fill-box; transform-origin: 50% -60%; animation: dSwing 3s ease-in-out infinite; }
.director-svg .d-clap-top { transform-box: fill-box; transform-origin: 0% 100%; animation: dClap 4s ease-in-out infinite; }
.director-svg .d-rec { animation: pulseDot 1.2s steps(1) infinite; }
.person-card:hover .director-svg .d-clap { animation: dWave .6s ease-in-out; }
@keyframes dClap { 0%, 80%, 100% { transform: rotate(0deg); } 86% { transform: rotate(16deg); } 90% { transform: rotate(16deg); } }
@keyframes dWave { 50% { transform: translate(250px, 296px) rotate(-14deg); } }
@keyframes dBlink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
@keyframes dSpin { to { transform: rotate(360deg); } }
@keyframes dBob { 50% { transform: translateY(-10px); } }
@keyframes dSwing { 50% { transform: rotate(8deg); } }
.person-role { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.person-card h3 { font-size: 1.9rem; font-weight: 700; margin: 4px 0 12px; }
.person-card p { color: var(--muted); margin: 0; }
@media (max-width: 767.98px) { .person-card { flex-direction: column; align-items: flex-start; } .person-figure { flex: none; width: 100%; max-width: 280px; } }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; }
.contact-list li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.contact-list i { color: var(--accent); font-size: 1.15rem; margin-top: 2px; }
.contact-list a, .contact-list span { word-break: break-word; }

.brief { padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); background: rgba(11, 18, 34, .8); backdrop-filter: blur(12px); }
.brief-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: transparent; border: 1px solid var(--line); color: var(--text); padding: 9px 16px; border-radius: 999px; font-size: .9rem; transition: .25s var(--ease); }
.chip:hover { border-color: rgba(255, 255, 255, .4); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
.form-floating > .form-control { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--text); border-radius: 14px; }
.form-floating > .form-control:focus { background: rgba(255, 255, 255, .05); border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(249, 181, 26, .2); color: var(--text); }
.form-floating > label { color: var(--muted); }
.form-floating > .form-control:focus ~ label, .form-floating > .form-control:not(:placeholder-shown) ~ label { color: var(--muted); }
.form-floating > .form-control:focus ~ label::after, .form-floating > .form-control:not(:placeholder-shown) ~ label::after { background: transparent; }
.form-control.is-invalid { border-color: var(--accent) !important; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; padding: 0 0 0; border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(249, 181, 26, .10), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(47, 111, 224, .16), transparent 60%),
    rgba(6, 10, 20, .94);
  backdrop-filter: blur(8px);
}
.footer-cta-title { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; margin-bottom: 14px; }
html[lang="zh"] .footer-cta-title { letter-spacing: 0; line-height: 1.25; }

/* ---------- Idea Lab (clapperboard) ---------- */
.idea-lab { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.lab-alt { color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 18px; }
.lab-alt a { color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.lab-alt a:hover { color: var(--accent); }
.lab-alt i { color: var(--accent); }

.chatbox { position: relative; }
.chat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.chat-avatar {
  position: relative; display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%; overflow: visible;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  color: #fff; font: 700 1.1rem/1 "Space Grotesk", Arial, sans-serif;
}
.chat-avatar-dot { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; background: #27c93f; border: 2.5px solid var(--bg); box-shadow: 0 0 0 0 rgba(39, 201, 63, .6); animation: pulseGreen 1.8s infinite; }
.chat-head-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chat-head-meta b { font-size: 1rem; }
.chat-head-meta small { font: 600 .72rem/1 ui-monospace, Menlo, monospace; letter-spacing: .04em; color: var(--muted); }
.chat-head-meta small b { font: inherit; color: var(--text); }
html[lang="zh"] .chat-head-meta small { font-family: var(--font); letter-spacing: 0; }

.chat-bubble {
  position: relative; border-radius: 4px 22px 22px 22px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(99, 102, 241, .12), transparent 55%),
    linear-gradient(180deg, #0d1528, #0a1120);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: clamp(18px, 3.5vw, 30px) clamp(18px, 3.5vw, 34px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  transition: box-shadow .6s ease-out;
}
.chatbox.snap .chat-bubble { animation: flash .6s ease-out; }
.chatbox.snap .chat-avatar-dot { animation: pulseGreen .6s ease-out 1; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); } 30% { box-shadow: 0 0 0 4px rgba(99, 102, 241, .35), 0 0 60px rgba(99, 102, 241, .25); } 100% { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); } }

.lab-sentence { font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.6; font-weight: 500; letter-spacing: -.01em; margin: 0; }
html[lang="zh"] .lab-sentence { letter-spacing: 0; line-height: 1.75; }
.reel {
  display: inline-flex; vertical-align: baseline; position: relative; overflow: hidden;
  font: inherit; color: var(--accent); background: rgba(99, 102, 241, .1);
  border: 1px dashed rgba(99, 102, 241, .55); border-radius: 10px;
  padding: 0 .35em; margin: 0 .05em; line-height: 1.35; cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.reel:hover, .reel:focus-visible { background: rgba(99, 102, 241, .18); border-style: solid; transform: translateY(-2px); outline: none; }
.reel > span { display: inline-block; }
.reel.tick > span { animation: reelIn .22s var(--ease); }
.reel.land > span { animation: reelLand .5s var(--ease); }
@keyframes reelIn { from { transform: translateY(70%); opacity: 0; filter: blur(3px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes reelLand { 0% { transform: translateY(70%); opacity: 0; } 60% { transform: translateY(-8%); opacity: 1; } 100% { transform: none; } }
.lab-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
#labRoll i { transition: transform .5s var(--ease); }
#labRoll:hover i { transform: rotate(180deg); }
@media (max-width: 575.98px) { .lab-actions .btn { flex: 1 1 auto; justify-content: center; } }

/* highlight the brief after "Make this real" */
.brief.pulse { animation: briefPulse 1.4s ease-out; }
@keyframes briefPulse { 0% { box-shadow: 0 0 0 0 rgba(249, 181, 26, .5); } 100% { box-shadow: 0 0 0 26px rgba(249, 181, 26, 0); } }

.footer-cols { padding: clamp(40px, 6vw, 64px) 0 8px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .14em; font-size: 1.25rem; color: var(--text); }
.footer-brand img { height: 40px; width: auto; transition: transform .5s var(--ease); }
.footer-brand:hover { color: var(--text); }
.footer-brand:hover img { transform: scale(1.05); }
.footer-reg { color: rgba(149, 160, 181, .7); }
.footer-h { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }
.footer-links a { color: #c4cbd8; font-size: .94rem; position: relative; }
.footer-links a::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .3s var(--ease); }
.footer-links a:hover { color: var(--text); padding-left: 2px; }
.footer-links a:hover::before { transform: scale(1); }
.footer address { font-style: normal; line-height: 1.7; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 10px; padding: 4px 0; }
.footer-contact i { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 36px; padding: 20px 0; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.to-top-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.to-top-link i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: .3s var(--ease); }
.to-top-link:hover { color: var(--text); }
.to-top-link:hover i { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-wordmark {
  font-size: clamp(5rem, 24vw, 22rem); font-weight: 700; letter-spacing: -.05em; line-height: .78;
  text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  margin-bottom: -.08em; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(249, 181, 26, .22), rgba(249, 181, 26, 0) 75%);
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767.98px) {
  :root { --nav-h: 66px; --radius: 18px; }
  body { font-size: 1rem; }
  .container-xl { padding-left: 16px; padding-right: 16px; }
  .row.g-5 { --bs-gutter-x: 2rem; }
  .hero { padding-bottom: 90px; }
  .hero .btn-lg { padding: .8rem 1.4rem; }
  .scroll-cue { right: 16px; bottom: 24px; }
  .service-card { padding: 24px 20px 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Logo ---------- */
.brand-logo { height: 32px; width: auto; display: block; transition: transform .5s var(--ease); }
.navbar-brand:hover .brand-logo { transform: scale(1.05); }
.loader-logo { height: 52px; width: auto; animation: logoPulse 1.6s ease-in-out infinite; }
@keyframes logoPulse { 50% { transform: scale(.94); opacity: .7; } }
@media (max-width: 767.98px) { .brand-logo { height: 26px; } }
