/* ═══════════ CINEMATIC LAYER ═══════════ */

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--gold-2)); z-index: 70; }

/* opening letterbox */
.intro { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.intro .bar { position: absolute; left: 0; right: 0; height: 50.5vh; background: var(--ink); transition: transform 1.1s cubic-bezier(.77,0,.18,1); }
.intro .bar.t { top: 0; }
.intro .bar.b { bottom: 0; }
.intro .mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; transition: opacity .4s; white-space: nowrap; }
.intro .mark img { width: 44px; height: 44px; filter: invert(1); animation: markIn 1s cubic-bezier(.2,.8,.2,1) both; }
.intro .mark span { animation: markIn 1s .15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes markIn { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
.intro.go .mark { opacity: 0; }
.intro.go .bar.t { transform: translateY(-100%); }
.intro.go .bar.b { transform: translateY(100%); }
.intro.done { display: none; }

/* hero: drifting clouds, light sweep, film grain */
.clouds { position: absolute; inset: -10%; pointer-events: none; z-index: 0; }
.clouds i { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.75), rgba(255,255,255,0)); filter: blur(8px); animation: drift linear infinite; }
.clouds i:nth-child(1) { width: 60vw; height: 22vw; top: 18%; left: -30%; animation-duration: 70s; }
.clouds i:nth-child(2) { width: 45vw; height: 16vw; top: 52%; left: -20%; animation-duration: 95s; animation-delay: -40s; opacity: .8; }
.clouds i:nth-child(3) { width: 70vw; height: 26vw; top: 70%; left: -40%; animation-duration: 120s; animation-delay: -70s; opacity: .7; }
.clouds i:nth-child(4) { width: 35vw; height: 12vw; top: 8%; left: -15%; animation-duration: 85s; animation-delay: -20s; opacity: .6; }
@keyframes drift { to { transform: translateX(170vw); } }
.hero .sweep { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); background-size: 250% 100%; animation: sweep 9s ease-in-out infinite; mix-blend-mode: soft-light; }
@keyframes sweep { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.grain { position: absolute; inset: -50%; z-index: 0; 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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); } 40% { transform: translate(3%,-4%); } 60% { transform: translate(-3%,5%); } 80% { transform: translate(4%,2%); } }
.hero-in { will-change: transform, opacity; }

/* hero headline: word-by-word blur rise */
.hero h1 .w { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(40px) scale(.96); transition: opacity 1.1s cubic-bezier(.2,.8,.2,1), filter 1.1s cubic-bezier(.2,.8,.2,1), transform 1.1s cubic-bezier(.2,.8,.2,1); }
.hero.play h1 .w { opacity: 1; filter: blur(0); transform: none; }
.hero .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.hero.play .fade-up { opacity: 1; transform: none; }

/* split-line headings */
[data-split] .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .ln > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
[data-split].in .ln > span { transform: none; }

/* image reveal */
.img-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(.77,0,.18,1); }
.img-reveal img { transform: scale(1.25); transition: transform 1.8s cubic-bezier(.2,.8,.2,1); }
.img-reveal.in { clip-path: inset(0 0 0 0); }
.img-reveal.in img { transform: scale(1); }

/* big outlined marquee (speed follows scroll) */
.bigtype { padding: 70px 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.bigtype .row-t { display: flex; width: max-content; will-change: transform; }
.bigtype span { font-size: clamp(3.4rem, 9vw, 8rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; white-space: nowrap; padding-right: .5em; color: transparent; -webkit-text-stroke: 1.2px #c3c8d0; }
.bigtype span:nth-child(3n+2) { color: var(--ink); -webkit-text-stroke: 0; }
.bigtype span em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold); -webkit-text-stroke: 0; }

/* pinned horizontal showreel */
.reel { background: var(--ink); color: #fff; position: relative; padding: 0; }
.reel-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.reel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.reel-head .count { font-size: .9rem; color: #8b93a0; font-variant-numeric: tabular-nums; }
.reel-track { display: flex; gap: 28px; padding-left: max(20px, calc((100vw - 1160px) / 2 + 20px)); will-change: transform; }
.shot, .shot.wide { flex: 0 0 auto; width: min(42vw, 560px, 80vh); position: relative; margin: 0; }
.shot .frame, .shot.wide .frame { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; position: relative; background: #1b1f27; }
.shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.shot .frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7)); }
.shot figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.shot figcaption small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.shot figcaption b { font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; }
.reel-end { flex: 0 0 auto; width: min(40vw, 420px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding-right: 8vw; }
.reel-end h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }

/* spotlight on dark sections */
.spot { position: relative; overflow: hidden; }
.spot::before { content: ''; position: absolute; width: 700px; height: 700px; left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%,-50%); background: radial-gradient(closest-side, rgba(217,173,79,.16), transparent); pointer-events: none; }
.spot > * { position: relative; }

/* story */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-nums div { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.story-nums b { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.story-nums small { display: block; color: var(--muted); margin-top: 10px; font-size: .9rem; }
.chapter { display: grid; grid-template-columns: 140px 1fr; gap: 40px; padding: 56px 0; border-top: 1px solid var(--line); }
.chapter .yr { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--gold); line-height: 1; }
.chapter h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -.03em; }
.chapter p { color: var(--ink-2); margin-top: 12px; max-width: 640px; font-size: 1.05rem; }
.chapter .hl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.chapter .hl span { font-size: .85rem; padding: 8px 14px; border-radius: 999px; background: var(--soft); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.pillars div { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px; background: rgba(255,255,255,.02); }
.pillars b { display: block; font-size: 1.2rem; font-weight: 600; margin: 14px 0 8px; }
.pillars p { color: #aab1bd; font-size: .93rem; }
.pillars i { font-style: normal; font-size: 1.6rem; }

/* clients logo grid */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 48px; }
.logo-grid div { aspect-ratio: 3 / 2; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px; background: #fff; transition: background .3s; }
.logo-grid div:hover { background: var(--soft); }
.logo-grid img { max-height: 72%; max-width: 72%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s, transform .4s; mix-blend-mode: multiply; }
.logo-grid div:hover img { filter: none; opacity: 1; transform: scale(1.06); }

@media (max-width: 960px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .chapter { grid-template-columns: 1fr; gap: 12px; padding: 44px 0; }
}
/* showreel falls back to native swipe on small screens */
@media (max-width: 760px) {
  .reel { height: auto !important; }
  .reel-pin { position: static; height: auto; padding: 90px 0; }
  .reel-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 20px; transform: none !important; scrollbar-width: none; }
  .reel-track::-webkit-scrollbar { display: none; }
  .shot, .shot.wide { width: 78vw; scroll-snap-align: center; }
  .reel-end { width: 70vw; padding-right: 0; }
}
@media (max-width: 600px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .intro, .clouds, .sweep, .grain { display: none; }
  .hero h1 .w, .hero .fade-up, [data-split] .ln > span { opacity: 1; filter: none; transform: none; transition: none; }
  .img-reveal { clip-path: none; } .img-reveal img { transform: none; }
}

/* ═══════════ VIDEO GALLERY ═══════════ */
.vfilters button { background: transparent; color: #c9ced6; border-color: rgba(255,255,255,.18); }
.vfilters button.on, .vfilters button:hover { background: #fff; color: var(--ink); border-color: #fff; }
.vgrid { display: grid; gap: 18px; margin-top: 36px; }
.vgrid.v { grid-template-columns: repeat(4, 1fr); }
.vgrid.h { grid-template-columns: repeat(3, 1fr); }
.vgrid:empty, .vgrid.none { display: none; }
.vcard { position: relative; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: #1b1f27; cursor: pointer; color: #fff; text-align: left; font: inherit; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.vcard.v { aspect-ratio: 9 / 16; }
.vcard.h { aspect-ratio: 16 / 9; }
.vcard:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.vcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.vcard:hover video { transform: scale(1.05); }
.vcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 50%, rgba(0,0,0,.75)); pointer-events: none; }
.vplay { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.35); transition: background .3s, transform .3s; }
.vcard:hover .vplay { background: var(--gold); transform: scale(1.08); }
.vcap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.vcap small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.vcap b { font-size: 1.02rem; font-weight: 500; letter-spacing: -.01em; }
.vcard.hide { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,10,14,.92); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 24px; animation: lbIn .35s ease; }
.lightbox[hidden] { display: none; }
.lightbox video { max-width: min(100%, 1200px); max-height: 88vh; border-radius: 14px; background: #000; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.2); }
@keyframes lbIn { from { opacity: 0; } }
@media (max-width: 960px) { .vgrid.v { grid-template-columns: repeat(3, 1fr); } .vgrid.h { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .vgrid.v { grid-template-columns: 1fr 1fr; gap: 12px; } .vgrid.h { grid-template-columns: 1fr; } .vcap b { font-size: .9rem; } .vplay { width: 36px; height: 36px; } }

/* ═══════════ LOGO MARQUEE ═══════════ */
.lm { display: grid; gap: 16px; margin-top: 48px; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos .lm { margin-top: 0; }
.lm-row { display: flex; gap: 16px; width: max-content; animation: lmScroll 45s linear infinite; }
.lm-row.rev { animation-direction: reverse; animation-duration: 52s; }
.lm:hover .lm-row { animation-play-state: paused; }
.lm-tile { flex: 0 0 auto; width: 200px; height: 110px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, box-shadow .3s, transform .3s; }
.lm-tile img { height: 66px; width: auto; max-width: 156px; object-fit: contain; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.lm-tile:hover { border-color: var(--gold-2); box-shadow: 0 12px 30px rgba(14,17,22,.08); transform: translateY(-3px); }
.lm-tile:hover img { transform: scale(1.08); }
@keyframes lmScroll { to { transform: translateX(calc(-50% - 8px)); } }
@media (max-width: 600px) { .lm-tile { width: 150px; height: 86px; border-radius: 12px; } .lm-tile img { height: 54px; max-width: 120px; } .lm-row { animation-duration: 35s; } }
@media (prefers-reduced-motion: reduce) { .lm-row { animation: none; flex-wrap: wrap; width: auto; } .lm-row [aria-hidden] { display: none; } .lm-row.rev { display: none; } }
