/* ==========================================================================
   Think Build Creation — cinematic layer
   Loaded after main.css and legacy-fx.css. Dark, graded, editorial.
   ========================================================================== */

:root {
  --r-card: 4px;
  --r-field: 2px;
  --ink: #07080b;          /* deepest black: hero, viewer */
  --char-1: #0b0d12;       /* page */
  --char-2: #0f1218;       /* raised section */
  --char-3: #161a22;       /* panels */
  --text: #eceff5;
  --text-2: #a3adbf;
}

/* ---------- bright palette ---------- */
:root { --paper: #ffffff; --paper-2: #f5f7fb; --paper-3: #eef2f8; --ink-text: #131722; --ink-2: #5a6478; }
html, body { background: var(--paper); color: var(--ink-text); }
::selection { background: #2d62ff; color: #fff; }

/* Dark sections become bright too: flip their tokens so every component inside follows. */
.section--dark {
  --black: var(--paper-2);
  --white: var(--ink-text);
  --graphite: #ffffff;
  --fog: var(--ink-2);
  --steel: var(--ink-2);
  --mist: var(--paper-3);
  --line-d: rgba(19, 23, 34, .12);
  background: var(--paper-2); color: var(--ink-text);
}
.section--light { background: var(--paper); }
.section--mist { background: var(--paper-3); }
.section-lead, .section--dark .section-lead { color: var(--ink-2); }
.enquiry { background: var(--paper-3); }
.field input, .field select, .field textarea { border-color: #d5dbe5; }
.field input:focus, .field select:focus, .field textarea:focus { outline-color: #2d62ff; border-color: #2d62ff; }
.btn--accent { color: #fff; background: #2d62ff; }
.btn--accent:hover { background: #1f4fe0; filter: none; }
.section--dark .btn--light { background: #131722; color: #fff; }

/* Header: minimal, transparent over film */
.site-header.is-solid { background: rgba(19, 23, 34, .92); }

/* ---------- editorial typography ---------- */
.section-h { font-size: clamp(2.3rem, 4.6vw, 4.4rem); font-variation-settings: "wdth" 112; font-weight: 600; letter-spacing: -.025em; line-height: 1; margin-bottom: 20px; }
.section-lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--text-2); line-height: 1.55; }
.section--dark .section-lead { color: var(--text-2); }
.statement { font-weight: 400; letter-spacing: -.025em; }
.phero-title { font-size: clamp(2.6rem, 6vw, 5.6rem); font-weight: 600; letter-spacing: -.03em; line-height: .98; }

.btn { border-radius: 999px; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; min-height: 50px; padding: 0 28px; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #dfe6f3; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.section--light .btn--ghost, .section--mist .btn--ghost, .section--dark .btn--ghost { color: var(--ink-text); border-color: rgba(19, 23, 34, .35); }
.section--light .btn--ghost:hover, .section--mist .btn--ghost:hover, .section--dark .btn--ghost:hover { background: rgba(19, 23, 34, .05); border-color: var(--ink-text); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

/* ---------- hero ---------- */
.hero--cine { background: #131722; }
.hero--cine .hero-video { opacity: 1; filter: contrast(1.04) saturate(1.08) brightness(.92); transform: scale(1.04); transform-origin: 50% 40%; will-change: transform; }
.hero-grade { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(19, 23, 34, .62) 0%, rgba(19, 23, 34, .22) 45%, transparent 70%),
    linear-gradient(180deg, rgba(19, 23, 34, .45) 0%, transparent 28%, transparent 62%, rgba(19, 23, 34, .7) 100%); }
.hero--cine .hero-gl.gl-screen { mix-blend-mode: screen; opacity: .9; }
.hero--cine .hero-inner { will-change: transform, opacity; }

.hero-brand { display: flex; flex-wrap: wrap; gap: 0 .2em; margin: 0 0 30px; font: 600 .74rem/1 var(--display); text-transform: uppercase; color: #a9bdd9; }
.hero-brand span { opacity: 0; letter-spacing: 1.1em; filter: blur(6px); animation: hb-in 1.6s var(--ease) forwards; }
.hero-brand span:nth-child(1) { animation-delay: .15s; }
.hero-brand span:nth-child(2) { animation-delay: .35s; }
.hero-brand span:nth-child(3) { animation-delay: .55s; color: #3b82f6; }
@keyframes hb-in { to { opacity: 1; letter-spacing: .48em; filter: none; } }

.hero-title--cine { font-family: var(--display); text-transform: uppercase; font-weight: 700; font-variation-settings: "wdth" 116;
  font-size: clamp(2.4rem, min(7.2vw, 11.5vh), 8.2rem); line-height: .93; letter-spacing: -.012em; max-width: 13ch; }
.hero-title--cine .ln { display: block; overflow: hidden; padding: .02em 0 .05em; }
.hero-title--cine .ln > span { display: block; transform: translate3d(0, 108%, 0); animation: ln-up 1.35s cubic-bezier(.16, .84, .2, 1) forwards; }
.hero-title--cine .ln:nth-child(1) > span { animation-delay: .55s; }
.hero-title--cine .ln:nth-child(2) > span { animation-delay: .72s; color: transparent; -webkit-text-stroke: 1.4px rgba(255, 255, 255, .9); }
.hero-title--cine .ln:nth-child(3) > span { animation-delay: .89s; }
@keyframes ln-up { to { transform: none; } }
.hero--cine .hero-sub { color: #c3cbd9; max-width: 30em; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.6; }
.hero--cine .hero-sub, .hero--cine .hero-ctas { opacity: 0; transform: translateY(16px); animation: fade-up 1.2s var(--ease) 1.25s forwards; }
.hero--cine .hero-ctas { animation-delay: 1.4s; }
@keyframes fade-up { to { opacity: 1; transform: none; } }
.hero--cine .hero-index { background: rgba(7, 8, 11, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* division heroes: graded, deep */
.dhero { background: var(--ink); }
.dhero video { filter: contrast(1.1) saturate(.8) brightness(.6); }

/* ---------- video presentation: borderless, no player chrome ---------- */
video::-webkit-media-controls, video::-webkit-media-controls-enclosure, video::-webkit-media-controls-panel { display: none !important; }
video::-internal-media-controls-download-button { display: none !important; }
[data-cine] { position: relative; cursor: pointer; }
/* a glass layer over each clip so hover tools can't grab the bare video element */
[data-cine]::before { content: ""; position: absolute; inset: 0; z-index: 2; }
[data-cine] video { filter: contrast(1.06) saturate(.9); transition: transform 1.2s var(--ease), filter .6s var(--ease); }
[data-cine]:hover video, [data-cine]:focus-visible video { transform: scale(1.04); filter: contrast(1.1) saturate(1); }
[data-cine]:focus-visible { outline: 2px solid #3b82f6; outline-offset: 3px; }
.cine-play { position: absolute; left: 50%; top: 50%; z-index: 3; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); background: rgba(7, 8, 11, .25); backdrop-filter: blur(4px); pointer-events: none; transition: transform .4s var(--ease), background .4s; }
.cine-play::before { content: ""; position: absolute; left: 26px; top: 21px; border-left: 16px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
[data-cine]:hover .cine-play, [data-cine-yt]:hover .cine-play { transform: scale(1.1); background: #2d62ff; border-color: #2d62ff; }
.embed--video, .embed--yt { display: block; width: 100%; padding: 0; border: 0; background: #000; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-card); cursor: pointer; }
.embed--video video, .embed--yt img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* reels + UGC: film strips */
.reel, .ugc-item { border-radius: var(--r-card); }
.reel figcaption { z-index: 3; font: 600 .7rem/1 var(--display); letter-spacing: .22em; text-transform: uppercase; left: 16px; bottom: 16px; opacity: .85; }
.reel::after { z-index: 2; background: linear-gradient(180deg, transparent 55%, rgba(7, 8, 11, .75)); }
.reel { transition: transform .6s var(--ease); }
.reel:hover { transform: translateY(-6px); }

/* ---------- immersive viewer ---------- */
html.cv-open { overflow: hidden; }
.cine-view { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; }
.cine-view[hidden] { display: none; }
.cv-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 6, .96); opacity: 0; transition: opacity .45s ease; }
.cv-stage { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: start; transform: scale(.94); opacity: 0; transition: transform .6s cubic-bezier(.16, .84, .2, 1), opacity .45s ease; }
.cine-view.on .cv-backdrop { opacity: 1; }
.cine-view.on .cv-stage { transform: none; opacity: 1; }
.cv-frame { --ar: 1.7778; position: relative; width: min(92vw, calc(84vh * var(--ar))); aspect-ratio: var(--ar); background: #000; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
.cine-view.is-tall .cv-frame { width: min(92vw, calc(86vh * var(--ar))); }
.cv-frame video, .cv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #000; }
.cv-title { margin: 0; font: 600 .72rem/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: #8d97aa; }
.cv-close { position: fixed; top: 18px; right: 18px; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; transition: background .3s, transform .3s; }
.cv-close:hover { background: rgba(255, 255, 255, .14); transform: rotate(90deg); }
.cv-close:focus-visible, .cv-btn:focus-visible, .cv-bar:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.cv-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 40px 16px 14px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7)); opacity: 0; transition: opacity .4s ease; }
.cine-view.ui-on .cv-ui, .cv-ui:focus-within { opacity: 1; }
.cv-btn { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; opacity: .9; }
.cv-btn:hover { opacity: 1; }
.cv-bar { flex: 1; height: 3px; background: rgba(255, 255, 255, .22); cursor: pointer; position: relative; }
.cv-bar::before { content: ""; position: absolute; inset: -10px 0; }
.cv-bar i { display: block; height: 100%; width: 0; background: #fff; }
@media (hover: none) { .cv-ui { opacity: 1; } }

/* ---------- portfolio: premiere wall ---------- */
.pf-head { align-items: flex-end; }
.pf-tabs { gap: 0 28px; }
.pf-tab { border: 0; border-radius: 0; padding: 10px 0; background: none; color: #7a8497; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 600; position: relative; }
.pf-tab span { display: none; }
.pf-tab::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: #2d62ff; transition: right .45s var(--ease); }
.pf-tab:hover { color: var(--ink-text); }
.pf-tab.is-on { background: none; color: var(--ink-text); }
.pf-tab.is-on::after { right: 0; }
.section--light .pf-tab, .section--mist .pf-tab { border: 0; }

.pf-grid { display: block; columns: 3 340px; column-gap: 6px; transition: opacity .26s ease, transform .26s ease; }
.pf-grid > .pf-card { width: 100%; margin: 0 0 6px; break-inside: avoid; }
.pf-grid.pf-out { opacity: 0; transform: translateY(10px); }
.pf-grid.pf-anim .pf-card:not([hidden]) { animation: pf-in .7s cubic-bezier(.16, .84, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes pf-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.pf-card { border-radius: 10px; background: #dfe5ee; }
.pf-card--short { aspect-ratio: 9 / 16; }
.pf-card img { opacity: 1; filter: none; transition: transform 1.4s var(--ease), opacity .6s, filter .6s; }
.pf-card:hover img, .pf-card:focus-visible img { transform: scale(1.06); opacity: 1; filter: contrast(1.1) saturate(1); }
.pf-card::after { background: linear-gradient(180deg, transparent 55%, rgba(19, 23, 34, .7)); }
.pf-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(7, 8, 11, .25); border: 1px solid rgba(255, 255, 255, .7); box-shadow: none; backdrop-filter: blur(4px); opacity: 0; transform: scale(.85); transition: opacity .4s, transform .4s var(--ease), background .4s; }
.pf-play::before { left: 26px; top: 21px; }
.pf-card:hover .pf-play, .pf-card:focus-visible .pf-play { opacity: 1; transform: none; background: #2d62ff; border-color: #2d62ff; }
.pf-label { left: 18px; bottom: 16px; font: 600 .68rem/1 var(--display); letter-spacing: .24em; color: #fff; opacity: .75; transform: translateY(4px); transition: opacity .4s, transform .4s var(--ease); }
.pf-card:hover .pf-label { opacity: 1; transform: none; }
@media (hover: none) { .pf-play { opacity: .9; transform: none; } }
@media (max-width: 600px) { .pf-grid { columns: 2; column-gap: 4px; } .pf-grid > .pf-card { margin-bottom: 4px; } .pf-tabs { gap: 0 20px; } }

/* ---------- four businesses ---------- */
.div-tile { border-radius: 14px; background: #fff; box-shadow: 0 1px 0 rgba(19,23,34,.06), 0 12px 40px rgba(19,23,34,.07); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.div-tile:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(19, 23, 34, .14); }
.div-art--film { position: relative; overflow: hidden; background: #000; }
.div-art--film .tile-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); transform: scale(1.02); transition: transform 2.4s var(--ease), filter .8s; }
.div-tile:hover .tile-vid { transform: scale(1); }
.tile-grade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%); mix-blend-mode: normal; }

/* ---------- scroll story: reveals ---------- */
.rv-line { clip-path: inset(0 0 100% 0); transform: translateY(.35em); transition: clip-path 1.2s cubic-bezier(.16, .84, .2, 1) var(--d, 0s), transform 1.2s cubic-bezier(.16, .84, .2, 1) var(--d, 0s); }
.rv-line.is-in { clip-path: inset(-10% -5% -20% -5%); transform: none; }
.rv-up { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s cubic-bezier(.16, .84, .2, 1) var(--d, 0s); }
.rv-up.is-in { opacity: 1; transform: none; }
.rv-zoom { transform: scale(1.14); transition: transform 2s cubic-bezier(.16, .84, .2, 1); }
.rv-zoom.is-in { transform: scale(1); }

/* ---------- horizontal Think / Build / Create ---------- */
.approach.hs-on { padding: 0; }
.approach.hs-on .hs-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.approach.hs-on .wrap:last-child { max-width: none; padding: 0; overflow: visible; }
.approach.hs-on .steps { display: flex; border-top: 0; padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); padding-right: 12vw; will-change: transform; }
.approach.hs-on .step { flex: 0 0 min(64vw, 820px); padding: 40px 6vw 0 0; border-left: 0; border-top: 1px solid rgba(236, 239, 245, .14); margin-right: 4vw; }
.approach.hs-on .step + .step { padding-left: 0; border-left: 0; }
.approach.hs-on .step-word { font-size: clamp(5rem, 14vw, 13rem); line-height: .85; letter-spacing: -.03em; }
.approach.hs-on .step-n { font: 600 .74rem/1 var(--display); letter-spacing: .3em; color: #3b82f6; }
.approach.hs-on .step p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-2); max-width: 30ch; }
.approach .step-2 .step-word { color: transparent; -webkit-text-stroke: 1.5px #131722; }

/* ---------- misc premium details ---------- */
.ai-card, .case-card, .work-media, .cover--wide, .gallery img { border-radius: var(--r-card); }
.trusted-marquee-section { background: #fff; }
.trusted-logo-item img { filter: grayscale(1); opacity: .65; transition: filter .4s, opacity .4s; }
.trusted-logo-item:hover img { filter: none; opacity: 1; }
.movie-ctl { display: none !important; }   /* no play bar */

@media (prefers-reduced-motion: reduce) {
  .hero-brand span, .hero-title--cine .ln > span, .hero--cine .hero-sub, .hero--cine .hero-ctas { animation: none; opacity: 1; transform: none; filter: none; letter-spacing: .48em; }
  .hero-title--cine .ln > span { letter-spacing: inherit; }
  .rv-line, .rv-up, .rv-zoom { clip-path: none; opacity: 1; transform: none; }
  .pf-grid.pf-anim .pf-card { animation: none; }
}

/* AI showcase on bright */
.ai-card { background: #fff; border-color: rgba(19, 23, 34, .1); box-shadow: 0 10px 30px rgba(19, 23, 34, .05); border-radius: 14px; }
.ai-card p { color: var(--ink-2); }
.ai-card li { background: rgba(14, 165, 233, .1); color: #0369a1; }
.ai-n { color: #0284c7; }

/* reels / ugc / cases cards a little softer on bright */
.reel, .ugc-item { border-radius: 14px; }
.reel { box-shadow: 0 14px 40px rgba(19, 23, 34, .12); }

/* ---------- video collages: each clip in a frame of its own 9:16 shape ---------- */
.mem { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin: 8px auto 48px; max-width: 880px; }
.mem--side { max-width: 420px; margin: 32px 0 0; }
.mem-cell { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 16px; background: #dfe5ee; box-shadow: 0 18px 44px rgba(19, 23, 34, .12); }
.mem-cell video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mem--n3 .mem-cell:nth-child(2) { transform: translateY(28px); }
@media (max-width: 640px) { .mem { gap: 6px; margin-bottom: 36px; } .mem-cell { border-radius: 10px; } .mem--n3 .mem-cell:nth-child(2) { transform: translateY(14px); } }

/* ---------- business tiles: footage in a portrait frame beside the text ---------- */
.div-tile { grid-template-rows: none; grid-template-columns: 1fr minmax(140px, 36%); align-items: stretch; }
.div-tile > .div-art { order: 2; aspect-ratio: auto; height: auto; min-height: 0; margin: 14px 14px 14px 0; border-radius: 12px; overflow: hidden; }
.div-tile > .div-art--film { aspect-ratio: 9 / 16; align-self: start; }
.div-tile > .div-art--film .tile-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none !important; }
.div-tile > .div-art:not(.div-art--film) { align-self: start; aspect-ratio: 9 / 16; }
.div-tile > .div-art:not(.div-art--film) svg { width: 100%; height: 100%; display: block; }
.div-tile > .div-body { order: 1; }
@media (max-width: 640px) { .div-tile { grid-template-columns: 1fr 38%; } .div-tile > .div-art { margin: 10px 10px 10px 0; } }
