/* ==========================================================================
   AIT.MA — Dark Cinematic Portfolio (v3 — color + creative pass)
   ========================================================================== */

:root {
  --bg: #050308;
  --bg-soft: #0b0813;
  --panel: rgba(16, 12, 26, 0.58);
  --panel-strong: rgba(9, 7, 15, 0.85);
  --ink: #f8f6f8;
  --ink-dim: #aca7bb;
  --line: rgba(248, 246, 248, 0.12);

  --gold: #ff9d3d;
  --gold-soft: rgba(255, 157, 61, 0.18);
  --coral: #ff2e88;
  --violet: #7c3aed;
  --cyan: #22d3ee;

  --grad-warm: linear-gradient(120deg, #ffce54 0%, #ff9d3d 28%, #ff2e88 68%, #b026c9 100%);
  --grad-cool: linear-gradient(120deg, #22d3ee 0%, #7c3aed 55%, #ff2e88 100%);
  --grad-text: linear-gradient(100deg, #ffce54, #ff9d3d 22%, #ff2e88 48%, #c026e8 72%, #22d3ee 100%);
  --grad-holo: conic-gradient(from var(--angle, 0deg), #ff2e88, #7c3aed, #22d3ee, #ffce54, #ff2e88);
  --grad-badge: linear-gradient(150deg, #1c1030 0%, #4a1568 40%, #a4177e 75%, #ff2e88 100%);

  --font-display: "Syne", "Fraunces", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1180px;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--violet), var(--coral)); border-radius: 10px; border: 2px solid var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: none; font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
::selection { background: var(--gold); color: #0a0a0a; }

/* ---------- Gradient text utility ---------- */
.grad-text, .hero-title em, .subpage-title em {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-style: normal;
  animation: gradShift 8s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(255,46,136,.4)) drop-shadow(0 0 46px rgba(124,58,237,.28));
}
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- Ambient cursor spotlight ---------- */
#cursorGlow {
  position: fixed; top: 0; left: 0; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,46,136,.16) 0%, rgba(124,58,237,.12) 42%, rgba(34,211,238,.05) 68%, transparent 72%);
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 1; mix-blend-mode: screen; filter: blur(6px);
  opacity: 0; transition: opacity .5s ease; will-change: transform;
}
body.cursor-ready #cursorGlow { opacity: 1; }
@media (hover: none), (pointer: coarse) { #cursorGlow { display: none; } }

/* ---------- Custom cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  body, a, button, .btn, .nav-toggle { cursor: none; }
}
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px; background: var(--gold);
  transition: opacity .2s ease, background .3s ease;
}
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid rgba(255,157,61,.55);
  display: flex; align-items: center; justify-content: center;
  transition: width .28s cubic-bezier(.22,1,.36,1), height .28s cubic-bezier(.22,1,.36,1),
              border-color .3s ease, background .3s ease, opacity .2s ease;
}
body.cursor-hover .cursor-ring { width: 68px; height: 68px; background: rgba(255,157,61,.08); border-color: var(--gold); }
body.cursor-hover .cursor-dot { background: var(--coral); }
body:not(.cursor-ready) .cursor-dot, body:not(.cursor-ready) .cursor-ring { opacity: 0; }

/* Contextual cursor label — a small pill of text (Play / View / Send…)
   that appears inside the ring when hovering elements tagged with
   data-cursor, so the cursor itself communicates the action on hover. */
.cursor-label {
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #140a05; opacity: 0; white-space: nowrap; pointer-events: none;
  transition: opacity .2s ease;
}
body.cursor-label-on .cursor-ring { width: 86px; height: 86px; background: var(--grad-warm); border-color: transparent; }
body.cursor-label-on .cursor-dot { opacity: 0; }
body.cursor-label-on .cursor-label { opacity: 1; }

/* Magnetic pull — buttons and pills nudge toward the cursor on hover,
   via inline transforms set in js/script.js. */
.btn, .nav-cta, .filter-btn { transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease; }
#backToTop { transition: opacity .3s ease, transform .22s cubic-bezier(.22,1,.36,1), visibility .3s ease, border-color .3s ease, background .3s ease; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body, a, button { cursor: auto; }
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo { width: 52px; height: auto; margin: 0 auto 28px; opacity: .95; animation: pulseLogo 1.8s ease-in-out infinite; }
@keyframes pulseLogo { 0%,100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.preloader-bar { width: 220px; height: 2px; background: var(--line); position: relative; border-radius: 2px; overflow: hidden; }
.preloader-bar-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: var(--grad-warm); transition: width .2s ease; }
.preloader-pct { display: block; margin-top: 14px; font-size: 12px; letter-spacing: .12em; color: var(--ink-dim); font-family: var(--font-body); }

/* ---------- Fixed cinematic background ---------- */
.site-bg { position: fixed; inset: 0; z-index: 0; background: #000; }
#bgCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.site-bg-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(4,3,8,.86) 0%, rgba(4,3,8,.48) 14%, rgba(4,3,8,.52) 86%, rgba(4,3,8,.92) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 32%, rgba(0,0,0,.45) 100%);
}
.site-bg-noise { position: absolute; inset: 0; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-nav, .site-footer { position: relative; z-index: 2; }

/* ---------- Floating gradient blobs ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: -1; opacity: .48; }
.blob-warm { background: var(--grad-warm); }
.blob-cool { background: var(--grad-cool); }
@keyframes floatBlob { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-30px) scale(1.08); } }
.blob { animation: floatBlob 14s ease-in-out infinite; }
/* These blobs get injected as a plain child of section containers (several
   of which are also .panel elements, e.g. about-grid/contact-grid). The
   ".panel > *" rule further down forces position:relative on every direct
   child of a panel, which was silently overriding this position:absolute —
   turning the decorative blob into a real grid item and reserving it an
   extra, empty track (a large blank gap at the bottom of the panel).
   Restoring position:absolute here (specificity beats ".panel > *") keeps
   it purely decorative and out of layout entirely. */
.panel > .blob { position: absolute; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; top: 20px; left: 50%; z-index: 500;
  transform: translateX(-50%);
  width: calc(100% - 44px); max-width: 1260px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 12px 12px;
  border-radius: 999px;
  background: rgba(12, 9, 20, .55);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  transition: top .35s ease, padding .35s ease, background .35s ease, box-shadow .35s ease;
}
.site-nav::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: 999px; padding: 1.5px;
  background: var(--grad-holo);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .6; pointer-events: none; z-index: -1;
  animation: spinAngle 7s linear infinite;
}
@keyframes spinAngle { to { --angle: 360deg; } }
.site-nav.scrolled { top: 12px; background: rgba(9,7,15,.82); box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); }
.nav-logo { display: flex; align-items: center; }
.nav-logo-badge {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 18px;
  background: var(--grad-badge);
  box-shadow: 0 8px 22px -6px rgba(255,46,136,.55), 0 0 32px -6px rgba(124,58,237,.5), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
  position: relative;
  animation: badgePulse 3.4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 8px 22px -6px rgba(255,46,136,.55), 0 0 30px -6px rgba(124,58,237,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
  50% { box-shadow: 0 10px 32px -4px rgba(255,46,136,.8), 0 0 50px -2px rgba(34,211,238,.7), inset 0 0 0 1px rgba(255,255,255,.18); }
}
.nav-logo-badge img { width: 36px; height: auto; object-fit: contain; display: block; filter: drop-shadow(0 0 10px rgba(255,255,255,.5)); }
.nav-logo:hover .nav-logo-badge { transform: scale(1.1) rotate(-6deg); box-shadow: 0 12px 30px -6px rgba(255,46,136,.75), 0 0 44px -4px rgba(34,211,238,.6), inset 0 0 0 1px rgba(255,255,255,.12); animation-play-state: paused; }
.footer-inner .nav-logo-badge { width: 46px; height: 46px; border-radius: 14px; }
.footer-inner .nav-logo-badge img { width: 27px; }

/* ---------- Scroll progress bar ---------- */
#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--grad-warm); box-shadow: 0 0 14px rgba(255,46,136,.7), 0 0 6px rgba(124,58,237,.6); z-index: 600; transition: width .1s linear; }

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed; right: 26px; bottom: 26px; z-index: 400;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,10,16,.75); backdrop-filter: blur(12px);
  border: 1px solid var(--line); color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, border-color .3s ease, background .3s ease;
  font-size: 16px;
}
#backToTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { border-color: var(--gold); background: rgba(255,157,61,.14); }
.nav-links { display: flex; gap: 34px; }
.nav-link { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--ink-dim); position: relative; padding: 4px 0; transition: color .25s ease; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--grad-warm); transition: width .3s ease; border-radius: 2px; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }
.nav-cta {
  position: relative; border: none; padding: 12px 26px; border-radius: 999px; overflow: hidden;
  font-size: 13px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700;
  color: #150816; background: var(--grad-warm); background-size: 200% auto; background-position: 0% 50%;
  box-shadow: 0 8px 22px -8px rgba(255,46,136,.55);
  transition: transform .25s ease, box-shadow .25s ease, background-position .4s ease;
}
.nav-cta:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 14px 30px -8px rgba(255,46,136,.75); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 22px; height: 1px; background: var(--ink); display: block; }

/* ---------- Hero ---------- */
.hero-pin { position: relative; height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 780px; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin: 0 0 22px;
  background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(46px, 7.6vw, 106px); line-height: 1.0; margin: 0 0 24px; letter-spacing: -.015em; }
.hero-title span { display: block; }
.hero-sub { font-size: 17.5px; color: var(--ink-dim); max-width: 480px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; color: var(--ink-dim); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.scroll-cue-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { 0%,100% { transform: scaleY(1); opacity: 1;} 50% { transform: scaleY(.5); opacity: .4; } }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 15px 32px; border-radius: 999px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; transition: transform .25s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease; border: 1px solid transparent; overflow: hidden; z-index: 0; }
.btn-primary { background: var(--grad-warm); background-size: 200% auto; background-position: 0% 50%; color: #140a05; }
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 14px 34px -12px rgba(255,46,136,.5); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 1px var(--gold-soft); }
.btn-full { width: 100%; }
.btn:active { transform: translateY(0) scale(.98); }

/* Shine sweep on primary CTAs */
.btn-primary::after, .nav-cta::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-20deg); pointer-events: none; transition: left .65s cubic-bezier(.22,1,.36,1);
}
.btn-primary:hover::after, .nav-cta:hover::after { left: 130%; }

/* Holographic spin utility (reused on hover states) */
.holo-ring { position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; background: var(--grad-holo);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s ease; pointer-events: none; z-index: -1; }

/* ---------- Sections & glass panels ---------- */
.section { padding: 130px 0; position: relative; }
.section-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin: 0 0 18px; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 46px); line-height: 1.16; max-width: 780px; margin: 0 0 40px; letter-spacing: -.01em; }

.panel {
  position: relative; overflow: hidden; background: var(--panel);
  backdrop-filter: blur(26px) saturate(165%); -webkit-backdrop-filter: blur(26px) saturate(165%);
  border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  box-shadow: 0 1px 0 0 rgba(255,255,255,.08) inset, 0 24px 60px -32px rgba(0,0,0,.65);
  transition: box-shadow .4s ease, border-color .4s ease;
}
.panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(155deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.03) 22%, rgba(255,255,255,0) 45%);
}
.panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: 17px; padding: 1px;
  background: var(--grad-holo); opacity: 0; transition: opacity .4s ease;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 1;
}
.panel:hover::before { opacity: .7; animation: spinAngle 4s linear infinite; }
.panel:hover { box-shadow: 0 1px 0 0 rgba(255,255,255,.12) inset, 0 30px 70px -30px rgba(255,46,136,.4); border-color: rgba(255,255,255,.22); }
.panel > * { position: relative; z-index: 1; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 60px; align-items: center; padding: 56px; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }
.about-media-frame { position: absolute; top: 16px; left: 16px; right: -16px; bottom: -16px; border: 1px solid transparent; background: var(--grad-warm); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; z-index: -1; border-radius: 10px; opacity: .6; }
.about-text { color: var(--ink-dim); font-size: 16px; max-width: 560px; margin-bottom: 40px; }
.about-stats { display: flex; gap: 48px; }
.about-stats strong { font-family: var(--font-display); font-size: 36px; display: block; font-weight: 700; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stats span { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- Clients ---------- */
.clients { padding: 70px 0; }
.clients .panel { padding: 44px 48px; }
.clients-label { text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 38px; }
.clients-row { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.client-chip {
  display: flex; align-items: center; justify-content: center;
  width: 148px; height: 92px; padding: 16px 20px; border-radius: 16px;
  background: linear-gradient(160deg, #fbfaf7, #ece8e0);
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.04);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.client-chip:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 20px 40px -16px rgba(255,46,136,.4), inset 0 0 0 1px rgba(0,0,0,.04); }
.client-chip img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 720px) { .client-chip { width: 118px; height: 76px; padding: 12px 16px; } }

/* ---------- Small company logo chip (career timeline, web list) ---------- */
.company-logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px; padding: 7px;
  background: linear-gradient(160deg, #fbfaf7, #ece8e0);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.04);
  flex-shrink: 0;
}
.company-logo-chip img { max-width: 100%; max-height: 100%; object-fit: contain; }
.company-monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: var(--grad-badge); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 15px; box-shadow: 0 6px 16px -6px rgba(255,46,136,.5);
}
.timeline-company-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.timeline-company-row .timeline-company { margin-bottom: 0; }

/* ---------- Service icon badges ---------- */
.service-icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 15px; margin-bottom: 22px;
  background: var(--grad-badge);
  box-shadow: 0 10px 24px -8px rgba(255,46,136,.5), 0 0 26px -8px rgba(124,58,237,.5), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.service-icon-badge svg { width: 25px; height: 25px; }
.service-card:hover .service-icon-badge, .service-index-card:hover .service-icon-badge { transform: scale(1.1) rotate(-6deg); }
.service-index-card .service-icon-badge { position: absolute; top: 22px; right: 22px; margin-bottom: 0; z-index: 2; }

/* ---------- Services (home teaser) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.service-card { position: relative; padding: 40px 32px; transition: background .3s ease, transform .3s ease, border-color .3s ease; display: block; overflow: hidden; }
.service-card:hover { transform: translateY(-6px); background: rgba(11,10,16,.82); }
.service-index { font-family: var(--font-display); font-size: 14px; font-weight: 700; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.service-card h3 { font-size: 21px; margin: 18px 0 12px; font-weight: 700; font-family: var(--font-display); }
.service-card p { color: var(--ink-dim); font-size: 14.5px; margin: 0 0 18px; }
.service-card .card-link { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.services-more { text-align: center; margin-top: 40px; }

/* ---------- Career / Timeline ---------- */
.timeline { padding: 10px 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 36px 44px; margin-bottom: 14px; }
.timeline-date { font-family: var(--font-display); font-size: 19px; font-weight: 700; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timeline-body h3 { margin: 0 0 6px; font-size: 21px; font-family: var(--font-display); font-weight: 700; }
.timeline-body h3 span { color: var(--ink-dim); font-weight: 400; font-size: 15px; font-family: var(--font-body); }
.timeline-company { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 14px; }
.timeline-body p { color: var(--ink-dim); max-width: 640px; margin: 0; font-size: 15px; }

/* ---------- Motion / Work ---------- */
.motion-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 14px; position: relative; }
.motion-card { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); display: block; transition: transform .35s ease, box-shadow .35s ease; }
.motion-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(124,58,237,.4); }
.motion-card.featured { grid-column: span 2; grid-row: span 2; }
.motion-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.motion-card:hover img { transform: scale(1.08); }
.motion-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.1)); }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; font-size: 14px; z-index: 2; color: #fff; backdrop-filter: blur(4px); transition: border-color .3s ease, background .3s ease; }
.motion-card:hover .play-icon { border-color: var(--gold); background: var(--grad-warm); color: #140a05; }
.motion-card-label { position: absolute; left: 20px; bottom: 20px; z-index: 2; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.link-more { display: inline-block; margin-top: 36px; font-size: 14px; letter-spacing: .03em; font-weight: 700; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; border-bottom: 1px solid transparent; transition: opacity .25s ease; }
.link-more:hover { opacity: .75; }

/* ---------- Portfolio ---------- */
.portfolio-sub { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); margin: 56px 0 22px; font-weight: 700; }
.portfolio-sub:first-of-type { margin-top: 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portfolio-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); display: block; transition: transform .35s ease, box-shadow .35s ease; }
.portfolio-grid a:hover figure { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(124,58,237,.5); }
.portfolio-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s ease; }
.portfolio-grid a:hover img { transform: scale(1.06); }
.portfolio-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-size: 12px; letter-spacing: .04em; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); opacity: 0; transition: opacity .3s ease; }
.portfolio-grid a:hover figcaption { opacity: 1; }

.web-list { display: grid; gap: 1px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.web-item { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: rgba(11,10,16,.5); transition: background .25s ease; }
.web-item:hover { background: rgba(11,10,16,.85); }
.web-item-name { font-size: 16px; font-weight: 700; min-width: 160px; font-family: var(--font-display); }
.web-item small { color: var(--ink-dim); font-size: 13px; flex: 1; }
.web-item em { font-style: normal; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 56px; }
.contact-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; font-size: 21px; font-family: var(--font-display); font-weight: 700; }
.contact-links a { transition: color .25s ease; }
.contact-links a:hover { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.social-row { display: flex; gap: 26px; flex-wrap: wrap; }
.social-row a { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--ink-dim); border-bottom: 1px solid transparent; padding-bottom: 3px; transition: color .25s ease, border-color .25s ease; }
.social-row a:hover { color: var(--gold); border-color: var(--gold); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea { background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--ink); padding: 14px 16px; border-radius: 10px; font-family: var(--font-body); font-size: 15px; outline: none; transition: border-color .25s ease, background .25s ease; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.05); }
.contact-form textarea { resize: vertical; }
.contact-form select { appearance: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); background: rgba(4,3,8,.55); backdrop-filter: blur(10px); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-inner p { color: var(--ink-dim); font-size: 13px; margin: 0; }
.footer-top { font-size: 13px; color: var(--ink-dim); transition: color .25s ease; }
.footer-top:hover { color: var(--gold); }

/* ---------- Reveal animations ---------- */
.reveal, .reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in-view, .reveal-up.in-view { opacity: 1; transform: translateY(0); }
.hero-actions.reveal { transition-delay: .15s; }

/* ==========================================================================
   Sub-pages: services.html + services/*.html
   ========================================================================== */
.subpage-hero { position: relative; padding: 200px 0 90px; overflow: hidden; border-bottom: 1px solid var(--line); }
.subpage-hero-bg { position: absolute; inset: 0; z-index: 0; }
.subpage-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.subpage-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6,5,10,.35) 0%, rgba(6,5,10,.78) 75%, rgba(6,5,10,1) 100%); }
.subpage-hero-content { position: relative; z-index: 1; max-width: 760px; }
.subpage-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; font-weight: 700; }
.subpage-kicker a { color: var(--ink-dim); transition: color .2s ease; }
.subpage-kicker a:hover { color: var(--ink); }
.subpage-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 6vw, 68px); line-height: 1.04; margin: 0 0 26px; letter-spacing: -.01em; }
.subpage-lead { color: var(--ink-dim); font-size: 18px; max-width: 620px; margin: 0 0 36px; }

.services-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 100px 0 140px; }
.service-index-card { position: relative; border-radius: 18px; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; border: 1px solid var(--line); transition: transform .4s ease, box-shadow .4s ease; }
.service-index-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(255,46,136,.45); }
.service-index-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; opacity: .6; }
.service-index-card:hover img { transform: scale(1.06); opacity: .75; }
.service-index-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,3,8,.96) 10%, rgba(4,3,8,.3) 60%, rgba(4,3,8,.5) 100%); }
.service-index-card-body { position: relative; z-index: 1; padding: 36px; width: 100%; }
.service-index-num { font-family: var(--font-display); font-size: 14px; font-weight: 700; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.service-index-card h3 { font-size: 29px; margin: 14px 0 10px; font-family: var(--font-display); font-weight: 700; }
.service-index-card p { color: var(--ink-dim); font-size: 14.5px; max-width: 380px; margin: 0 0 16px; }
.service-index-card .card-link { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.service-index-card:hover .card-link { color: var(--gold); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 20px 0 60px; }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-grid figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); transition: transform .35s ease, box-shadow .35s ease; }
.gallery-grid figure:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(124,58,237,.5); }
.gallery-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .5s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid.square img { aspect-ratio: 1/1; }

.video-embed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 20px 0 60px; }
.video-embed { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; position: relative; transition: transform .35s ease, box-shadow .35s ease; }
.video-embed:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(124,58,237,.4); }
.video-embed video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.video-embed .video-label { position: absolute; left: 16px; bottom: 14px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #fff; z-index: 2; text-shadow: 0 2px 8px rgba(0,0,0,.6); font-weight: 600; }
.video-embed::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%); pointer-events:none; }

.related-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 60px 0 120px; }
.related-services .service-card { border-radius: 14px; border: 1px solid var(--line); }

.cta-band { text-align: center; padding: 90px 0; border-top: 1px solid var(--line); }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); margin: 0 0 28px; font-weight: 700; }

/* ---------- Portfolio teaser (homepage) ---------- */
.portfolio-teaser-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 20px; margin-bottom: 40px; }
.teaser-item { position: relative; display: block; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease; }
.teaser-item.featured { grid-column: span 2; grid-row: span 2; }
.teaser-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.teaser-item:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(255,46,136,.45); }
.teaser-item:hover img { transform: scale(1.08); }
.teaser-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,46,136,0) 60%, rgba(255,46,136,.22) 100%); opacity: 0; transition: opacity .3s ease; }
.teaser-item:hover::after { opacity: 1; }
.teaser-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 18px 20px; font-size: 13px; letter-spacing: .03em; font-weight: 700;
  color: #fff; background: linear-gradient(to top, rgba(0,0,0,.88), transparent 75%);
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.teaser-item.featured .teaser-caption { font-size: 17px; padding: 26px 28px; font-family: var(--font-display); }
.teaser-item:hover .teaser-caption { opacity: 1; transform: translateY(0); }

/* ---------- Portfolio page: filters + masonry ---------- */
.portfolio-filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 80px 0 40px; }
.filter-btn {
  padding: 11px 24px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.02); color: var(--ink-dim);
  font-size: 13px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600;
  transition: border-color .25s ease, color .25s ease, background .25s ease, transform .25s ease;
}
.filter-btn:hover { color: var(--ink); border-color: var(--gold-soft); }
.filter-btn.active { color: #140a05; background: var(--grad-warm); border-color: transparent; }

.portfolio-masonry { column-count: 4; column-gap: 18px; margin-bottom: 70px; position: relative; }
.portfolio-item { display: block; break-inside: avoid; margin-bottom: 18px; transition: opacity .3s ease, transform .3s ease; }
.portfolio-item.is-hidden { display: none; }
.portfolio-item figure { position: relative; margin: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); transition: transform .35s ease, box-shadow .35s ease; }
.portfolio-item:hover figure { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(124,58,237,.5); }
.portfolio-item img { width: 100%; display: block; transition: transform .5s ease; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-size: 12px; letter-spacing: .04em; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.82), transparent); opacity: 0; transition: opacity .3s ease; }
.portfolio-item:hover figcaption { opacity: 1; }
.portfolio-item .play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 50%; border: 1px solid rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; color: #fff; backdrop-filter: blur(4px); z-index: 2; }

@media (max-width: 980px) { .portfolio-masonry { column-count: 3; } }
@media (max-width: 720px) { .portfolio-masonry { column-count: 2; column-gap: 12px; } .portfolio-item { margin-bottom: 12px; } .portfolio-filters { margin: 50px 0 30px; } }

/* ---------- Grid overflow fix ----------
   Grid tracks default to a minimum size based on their content (e.g. an
   <img width:100%> contributes its natural pixel size as a minimum), which
   can force columns — and everything sharing that column, like the About
   stats or Contact form — wider than their panel on narrow screens, clipping
   text and photos. min-width: 0 lets these items shrink to their track. */
.about-media, .about-copy, .contact-copy, .contact-form, .timeline-body,
.services-grid > *, .motion-grid > *, .portfolio-teaser-grid > *,
.services-index-grid > *, .related-services > *, .gallery-grid > *,
.video-embed-grid > *, .web-item, .client-chip, .company-logo-chip {
  min-width: 0;
}

/* ---------- Video lightbox (on-site playback for YouTube / Facebook / local mp4) ---------- */
.video-lightbox {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: center; justify-content: center; padding: 60px 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
.video-lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
.video-lightbox-backdrop { position: absolute; inset: 0; background: rgba(4,3,8,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.video-lightbox-inner {
  position: relative; z-index: 1; width: min(1100px, 100%);
  aspect-ratio: 16/9; border-radius: 18px; overflow: hidden;
  background: #000; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.04);
  transform: scale(.94); transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.video-lightbox.open .video-lightbox-inner { transform: scale(1); }
.video-lightbox-stage { width: 100%; height: 100%; }
.video-lightbox-stage video, .video-lightbox-stage iframe { width: 100%; height: 100%; display: block; border: 0; background: #000; }
.video-lightbox-close {
  position: absolute; top: -16px; right: -16px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  background: var(--grad-warm); color: #140a05; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(255,46,136,.6);
  transition: transform .25s ease;
}
.video-lightbox-close:hover { transform: scale(1.1) rotate(90deg); }
body.lightbox-open { overflow: hidden; }
@media (max-width: 720px) {
  .video-lightbox { padding: 0; }
  .video-lightbox-inner { width: 100%; border-radius: 0; aspect-ratio: auto; height: 100vh; }
  .video-lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 18px; }
}

/* ---------- Contact form: honeypot + AJAX status message ---------- */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { font-size: 13.5px; margin: 2px 0 0; min-height: 18px; transition: color .2s ease; }
.form-status.success { color: #4ade80; }
.form-status.error { color: #ff6b6b; }

/* ---------- Logo design portfolio cards (light card so dark-mark logos stay legible) ---------- */
.portfolio-item.logo-card figure { background: linear-gradient(160deg, #fbfaf7, #ece8e0); display: flex; align-items: center; justify-content: center; padding: 40px; }
.portfolio-item.logo-card img { width: 100%; height: auto; object-fit: contain; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 36px; }
  .services-grid, .related-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .motion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .motion-card.featured { grid-column: span 2; }
  .portfolio-grid, .photo-grid, .gallery-grid, .gallery-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-item { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 28px 28px; }
  .services-index-grid { grid-template-columns: minmax(0, 1fr); }
  .video-embed-grid { grid-template-columns: minmax(0, 1fr); }
  .portfolio-teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 210px; }
  .teaser-item.featured { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 720px) {
  .cursor-dot, .cursor-ring { display: none; }
  body, a, button { cursor: auto; }
  .site-nav { top: 12px; width: calc(100% - 24px); padding: 8px 14px 8px 8px; }
  .nav-logo-badge { width: 48px; height: 48px; border-radius: 14px; }
  .nav-logo-badge img { width: 29px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.nav-open .nav-links { display: flex; position: fixed; inset: 0; top: 0; height: 100vh; width: 100%; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
  .site-nav.nav-open .nav-links .nav-link { font-size: 22px; }
  .container { padding: 0 20px; }
  .section { padding: 90px 0; }
  .clients-row { gap: 30px; }
  .web-item { flex-wrap: wrap; }
  .web-item small { flex: none; width: 100%; order: 3; }
  .about-grid, .contact-grid, .clients .panel, .timeline-item { padding: 26px; }
  .subpage-hero { padding: 150px 0 60px; }
}
