/* ==========================================================================
   STUDIO — Motion layer (2026-10 restructure)
   Rainbow CTA · showreel hero · interactive services · marquee · mid CTA ·
   film showcase · film player · halftone footer.
   Pointer/scroll values come from assets/js/motion.js as CSS variables.
   ========================================================================== */

/* Lenis owns smooth scrolling; native smooth scroll would fight it */
html.lenis { scroll-behavior: auto; }

/* ---- Rainbow button (port of the shadcn RainbowButton) --------------- */
.btn--rainbow {
  --btn-fg: #fff; --rb-fill: #121213; --rb-fade: rgba(18,18,19,.6); --rb-clear: rgba(18,18,19,0);
  --rb: linear-gradient(90deg, hsl(var(--color-1)), hsl(var(--color-5)), hsl(var(--color-3)), hsl(var(--color-4)), hsl(var(--color-2)));
  border: 2px solid transparent;
  background:
    linear-gradient(var(--rb-fill), var(--rb-fill)) padding-box,
    linear-gradient(var(--rb-fill) 50%, var(--rb-fade) 80%, var(--rb-clear)) border-box,
    var(--rb) border-box;
  background-size: 200%;
  animation: rainbow var(--speed, 2.4s) linear infinite;
  overflow: visible;
}
.btn--rainbow::before { display: none; }
.btn--rainbow::after {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -20%; width: 60%; height: 20%;
  translate: -50% 0; background: var(--rb); background-size: 200%;
  filter: blur(.8rem); animation: rainbow var(--speed, 2.4s) linear infinite;
  transition: opacity var(--t-base), width var(--t-base) var(--ease-out);
}
.btn--rainbow:hover::after { width: 80%; }
.btn--rainbow-light { --btn-fg: #0B0B0D; --rb-fill: #fff; --rb-fade: rgba(255,255,255,.6); --rb-clear: rgba(0,0,0,0); }
.btn--rainbow-light:hover { box-shadow: 0 10px 40px -10px rgba(255,255,255,.35); }
@keyframes rainbow { from { background-position: 0%; } to { background-position: 200%; } }

/* ==========================================================================
   HERO — showreel is the main visual
   ========================================================================== */
/* "maverick / labs" in dots fills the first screen; the showreel peeks below */
.hero--mark { --nav-h: 88px; --cue-h: clamp(76px, 10vh, 104px); --peek: clamp(72px, 12vh, 128px);
  padding: var(--nav-h) 0 clamp(56px, 7vw, 112px); }
.hero-mark { position: relative; width: 100%; touch-action: pan-y;
  height: max(220px, min(calc(100svh - var(--nav-h) - var(--cue-h) - var(--peek)), 64vw)); }
.hero-mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero--mark .hero__stage { margin-top: 0; perspective: none; }

/* scroll cue: rotating "Scroll · Showreel" ring around a bouncing arrow */
.scroll-cue { position: relative; display: grid; place-items: center; width: var(--cue-h); height: var(--cue-h); margin: 0 auto; color: var(--ink); border-radius: 50%; }
.scroll-cue__text { position: absolute; inset: 0; width: 100%; height: 100%; animation: ix-spin 14s linear infinite; }
.scroll-cue__text text { font: 600 8px var(--font-mono); text-transform: uppercase; fill: var(--ink-3); }
.scroll-cue__arrow { display: grid; place-items: center; width: 44%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--bg);
  transition: transform var(--t-base) var(--ease-spring), background var(--t-base); }
.scroll-cue__arrow svg { width: 50%; height: 50%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: cue-bob 1.8s var(--ease-in-out) infinite; }
.scroll-cue:hover .scroll-cue__arrow { transform: scale(1.12); background: var(--accent); color: #fff; }
.scroll-cue:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@keyframes cue-bob { 0%, 100% { transform: translateY(-14%); } 50% { transform: translateY(14%); } }

.hero-film {
  --hp: 0; --px: 0; --py: 0;
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--r-2xl) - var(--hp) * 28px);
  background: var(--night) url("/assets/video/maverick-promo.jpg") center / cover;
  box-shadow: 0 0 0 1px var(--line-2), 0 0 0 10px rgba(11,11,13,.035), var(--shadow-float);
  transform: perspective(1800px) rotateX(calc(var(--py) * -1.6deg)) rotateY(calc(var(--px) * 2.2deg)) scale(calc(.94 + var(--hp) * .06));
  transform-origin: 50% 0; will-change: transform; transition: transform 500ms var(--ease-out);
}
.hero-film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-film__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 22%, transparent 70%, rgba(0,0,0,.42)); }
.hero-film__tag, .hero-film__sound {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-radius: var(--r-pill);
  background: rgba(12,12,14,.42); color: #fff; -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.hero-film__tag { top: clamp(14px, 2vw, 28px); left: clamp(14px, 2vw, 28px); }
.hero-film__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: rec 1.6s infinite; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(255,91,31,.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255,91,31,0); } }
.hero-film__sound { bottom: clamp(16px, 2vw, 28px); right: clamp(14px, 2vw, 28px); border: 0; cursor: pointer; font-family: var(--font-text); font-weight: 550; text-transform: none; letter-spacing: 0; font-size: 13.5px; transition: background var(--t-base), transform var(--t-base) var(--ease-out); }
.hero-film__sound:hover { background: rgba(12,12,14,.62); transform: translateY(-1px); }
.hero-film__sound:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-film__sound-off, .hero-film__sound[aria-pressed="true"] .hero-film__sound-on { display: none; }
.hero-film__sound[aria-pressed="true"] .hero-film__sound-off { display: inline; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 2.5px; height: 30%; border-radius: 2px; background: currentColor; transition: height 300ms; }
[aria-pressed="true"] .eq i { animation: eq 900ms var(--ease-in-out) infinite alternate; }
[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -300ms; } [aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -600ms; } [aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -150ms; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.hero-film__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: rgba(255,255,255,.12); }
.hero-film__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--prog, 0)); }

/* ==========================================================================
   SERVICES — bento of living icons
   ========================================================================== */
/* Centred divider heading: hairlines draw outward and the words fill from
   faded to solid as the section scrolls in (--fp / --wp come from motion.js) */
.divider-head { --fp: 0; display: grid; justify-items: center; gap: clamp(20px, 2.4vw, 32px); text-align: center; margin-bottom: clamp(56px, 7vw, 104px); }
.divider-head__rule { display: flex; align-items: center; gap: 20px; width: 100%; }
.divider-head__rule i { flex: 1; height: 1px; background: var(--line-3); transform: scaleX(var(--fp)); transform-origin: right; }
.divider-head__rule i:last-child { transform-origin: left; }
.divider-head__title { font-family: var(--font-sans); font-weight: 650; font-size: clamp(2.9rem, 1.2rem + 6.4vw, 7.5rem); line-height: .98; letter-spacing: var(--tracking-display); max-width: 12ch; }
.divider-head .lead { max-width: 52ch; }
.sf-w { --wp: 0; --sf-ink: var(--ink); --sf-faded: color-mix(in srgb, var(--ink) 13%, transparent);
  color: transparent; -webkit-background-clip: text; background-clip: text; background-repeat: no-repeat;
  background-image: linear-gradient(90deg, var(--sf-ink) calc(var(--wp) * 100%), var(--sf-faded) calc(var(--wp) * 100%)); }
.sf-w:last-child { --sf-ink: var(--accent); }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.svc2 { grid-column: span 2; }
.svc2--web { grid-column: span 4; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc2, .svc2--web { grid-column: span 1; } .svc2--web { grid-column: 1 / -1; } }
@media (max-width: 620px)  { .bento { grid-template-columns: 1fr; } .svc2--web { grid-column: auto; } }

.svc2 {
  --px: 0; --py: 0; --mx: 50%; --my: 50%;
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); background: var(--bg-elev);
  box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1);
}
/* pointer tilt takes over once the reveal has finished (motion.js adds .is-ready) */
.svc2.is-ready { transform: perspective(1000px) rotateX(calc(var(--py) * -3deg)) rotateY(calc(var(--px) * 4deg)); transition: box-shadow var(--t-base), transform 600ms var(--ease-out); }
.svc2.is-ready.is-hover { box-shadow: 0 0 0 1px var(--line-3), var(--shadow-3); transition: box-shadow var(--t-base), transform 120ms linear; }
.svc2::before { /* spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity var(--t-base);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,91,31,.10), transparent 60%);
}
.svc2.is-hover::before { opacity: 1; }
.svc2__stage {
  position: relative; height: clamp(190px, 17vw, 230px); overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0) 0 0 / 16px 16px,
    linear-gradient(180deg, var(--bg-sunk), var(--bg-elev));
  border-bottom: 1px solid var(--line);
}
.svc2__text { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px 28px 30px; }
.svc2__text p { color: var(--ink-3); max-width: 34ch; }
.svc2__num { position: absolute; top: 28px; right: 26px; font-size: 12px; color: var(--ink-4); }
.svc2 .h3 { transition: color var(--t-base); }
.svc2.is-hover .h3 { color: var(--accent); }
/* Animations idle while off-screen (motion.js toggles .is-live) */
.svc2:not(.is-live) *, .svc2:not(.is-live) *::before, .svc2:not(.is-live) *::after { animation-play-state: paused !important; }

/* parallax helper: layers drift against the pointer */
.svc2__stage > * { transform: translate(calc(var(--px) * var(--depth, -8px)), calc(var(--py) * var(--depth, -8px))); transition: transform 600ms var(--ease-out); }
.svc2.is-hover .svc2__stage > * { transition: transform 120ms linear; }

/* ---- 01 Websites: a page that builds itself, a cursor that clicks --- */
.ix-web { --depth: -10px; position: absolute; left: 50%; top: 26px; width: min(560px, 74%); height: 260px; margin-left: calc(min(560px, 74%) / -2);
  border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 24px 48px -20px rgba(11,11,13,.28); overflow: visible; }
.ix-web__bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.ix-web__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-3); }
.ix-web__bar span { margin-left: 10px; width: 34%; height: 10px; border-radius: 99px; background: var(--bg-sunk); }
.ix-web__page { padding: 12px 16px; display: grid; gap: 14px; overflow: hidden; border-radius: 0 0 12px 12px; }
.ix-web__nav { display: flex; align-items: center; gap: 8px; }
.ix-web__nav b { width: 46px; height: 9px; border-radius: 3px; background: var(--ink); }
.ix-web__nav i { width: 26px; height: 5px; border-radius: 3px; background: var(--line-3); }
.ix-web__nav i:first-of-type { margin-left: auto; }
.ix-web__nav em { width: 44px; height: 14px; border-radius: 99px; background: var(--ink); }
.ix-web__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.ix-web__copy { display: grid; gap: 7px; }
.ix-web__copy i { height: 11px; border-radius: 3px; background: var(--ink); }
.ix-web__copy i:nth-child(2) { width: 78%; }
.ix-web__copy i:nth-child(3) { width: 90%; height: 5px; margin-top: 4px; background: var(--line-3); }
.ix-web__btn { position: relative; overflow: hidden; width: 74px; height: 20px; margin-top: 6px; border-radius: 99px; background: var(--accent); }
.ix-web__ripple { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgba(255,255,255,.7); transform: scale(0); animation: ix-ripple 6s infinite; }
.ix-web__img { position: relative; height: 92px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #FFB088, var(--accent) 55%, #C2410C); }
.ix-web__img span { position: absolute; width: 34px; height: 34px; right: 18px; top: 16px; border-radius: 50%; background: #FFE3D3; box-shadow: 0 0 24px #FFE3D3; animation: ix-sun 6s var(--ease-in-out) infinite; }
.ix-web__img::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -30px; height: 64px; border-radius: 50%; background: rgba(11,11,13,.28); }
.ix-web__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ix-web__cards i { height: 44px; border-radius: 8px; background: var(--bg-sunk); box-shadow: inset 0 0 0 1px var(--line); transition: transform 500ms var(--ease-spring), background 400ms; }
/* build sequence: every block pops in, holds, then the page resets */
.ix-web__nav > *, .ix-web__copy > *, .ix-web__img, .ix-web__cards i { animation: ix-pop 6s var(--ease-out) infinite both; }
.ix-web__nav > *:nth-child(1) { animation-delay: 0ms; } .ix-web__nav > *:nth-child(2) { animation-delay: 80ms; } .ix-web__nav > *:nth-child(3) { animation-delay: 140ms; } .ix-web__nav > *:nth-child(4) { animation-delay: 200ms; } .ix-web__nav > *:nth-child(5) { animation-delay: 260ms; }
.ix-web__copy > *:nth-child(1) { animation-delay: 360ms; } .ix-web__copy > *:nth-child(2) { animation-delay: 440ms; } .ix-web__copy > *:nth-child(3) { animation-delay: 520ms; } .ix-web__copy > *:nth-child(4) { animation-delay: 620ms; }
.ix-web__img { animation-name: ix-wipe; animation-delay: 420ms; }
.ix-web__cards i:nth-child(1) { animation-delay: 760ms; } .ix-web__cards i:nth-child(2) { animation-delay: 840ms; } .ix-web__cards i:nth-child(3) { animation-delay: 920ms; }
@keyframes ix-pop  { 0% { opacity: 0; transform: translateY(8px) scale(.92); } 9%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes ix-wipe { 0% { clip-path: inset(0 100% 0 0 round 8px); } 12%, 88% { clip-path: inset(0 0 0 0 round 8px); } 96%, 100% { clip-path: inset(0 0 0 100% round 8px); } }
@keyframes ix-sun  { 0%, 20% { transform: translateY(30px); } 50%, 100% { transform: none; } }
@keyframes ix-ripple { 0%, 49% { transform: scale(0); opacity: 1; } 60% { transform: scale(9); opacity: 0; } 100% { transform: scale(9); opacity: 0; } }
.ix-web__cursor { position: absolute; z-index: 3; left: 0; top: 0; width: 18px; height: 18px; pointer-events: none;
  background: var(--ink); clip-path: polygon(0 0, 0 78%, 24% 60%, 42% 100%, 56% 94%, 40% 56%, 72% 56%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.2));
  animation: ix-cursor 6s var(--ease-in-out) infinite; }
@keyframes ix-cursor {
  0%, 18% { transform: translate(440px, 240px); opacity: 0; }
  24% { opacity: 1; }
  44% { transform: translate(60px, 132px) scale(1); opacity: 1; }
  48% { transform: translate(60px, 132px) scale(.82); }
  53% { transform: translate(60px, 132px) scale(1); }
  80% { transform: translate(260px, 200px); opacity: 1; }
  90%, 100% { transform: translate(300px, 230px); opacity: 0; }
}
.ix-web__score { position: absolute; z-index: 2; right: -22px; top: 40px; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 14px;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-2);
  font-size: 13px; animation: ix-float 5s var(--ease-in-out) infinite; }
.ix-web__score svg { width: 28px; height: 28px; rotate: -90deg; }
.ix-web__score circle { fill: none; stroke: var(--line-2); stroke-width: 3.5; }
.ix-web__score circle + circle { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 100; animation: ix-ring 6s var(--ease-out) infinite; }
@keyframes ix-ring  { 0%, 15% { stroke-dashoffset: 100; } 45%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes ix-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.svc2--web.is-hover .ix-web__cards i:nth-child(1) { transform: translateY(-6px); background: var(--accent-soft); }
.svc2--web.is-hover .ix-web__cards i:nth-child(2) { transform: translateY(-10px); transition-delay: 60ms; }
.svc2--web.is-hover .ix-web__cards i:nth-child(3) { transform: translateY(-6px); transition-delay: 120ms; }
@media (max-width: 620px) { .ix-web__score { right: -8px; } }

/* ---- 02 Web apps: a dashboard that never sits still ----------------- */
.ix-app { --depth: -8px; position: absolute; inset: 24px 14% -24px; border-radius: 14px; background: #fff; padding: 16px 18px;
  box-shadow: 0 0 0 1px var(--line-2), 0 24px 48px -20px rgba(11,11,13,.28); display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.ix-app__kpi { display: flex; align-items: baseline; gap: 10px; }
.ix-app__kpi b { font-family: var(--font-sans); font-size: 26px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ix-app__up { font: 600 11px var(--font-mono); color: var(--ok); }
.ix-app__bars { position: relative; display: flex; align-items: flex-end; gap: 7px; height: 96px; }
.ix-app__bars i { flex: 1; height: var(--h, 40%); border-radius: 5px 5px 2px 2px; background: var(--bg-sunk); box-shadow: inset 0 0 0 1px var(--line-2); transition: height 900ms var(--ease-spring), background 400ms; }
.ix-app__bars i:nth-child(5) { background: var(--ink); box-shadow: none; }
.svc2--app.is-hover .ix-app__bars i { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(255,91,31,.3); }
.svc2--app.is-hover .ix-app__bars i:nth-child(5) { background: var(--accent); }
.ix-app__line { position: absolute; left: 18px; right: 18px; bottom: 30px; height: 70px; width: calc(100% - 36px); overflow: visible; pointer-events: none; }
.ix-app__line path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 160; animation: ix-draw 4s var(--ease-in-out) infinite; }
@keyframes ix-draw { 0% { stroke-dashoffset: 160; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -160; } }
.ix-app__toggle { position: absolute; top: 18px; right: 18px; width: 34px; height: 20px; border-radius: 99px; background: var(--line-2); animation: ix-tog-bg 3s steps(1) infinite; }
.ix-app__toggle i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); animation: ix-tog 3s var(--ease-spring) infinite; }
@keyframes ix-tog { 0%, 45% { transform: none; } 55%, 95% { transform: translateX(14px); } 100% { transform: none; } }
@keyframes ix-tog-bg { 0% { background: var(--line-2); } 50% { background: var(--ok); } }

/* ---- 03 Digital products: screens fanning out ----------------------- */
.ix-prod { --depth: -6px; position: absolute; inset: 0; }
.ix-prod__card { position: absolute; left: 50%; top: 30px; width: 108px; height: 190px; margin-left: -54px; padding: 14px 12px; border-radius: 18px; display: grid; align-content: start; gap: 8px;
  background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 18px 36px -16px rgba(11,11,13,.3);
  transform-origin: 50% 120%; transition: transform 700ms var(--ease-spring); animation: ix-bob 5s var(--ease-in-out) infinite; }
.ix-prod__card i { height: 7px; border-radius: 3px; background: var(--line-2); }
.ix-prod__card i:first-child { height: 46px; border-radius: 8px; background: var(--bg-sunk); }
.ix-prod__card--1 { transform: rotate(calc(-12deg + var(--px) * 5deg)) translateX(-46px) scale(.9); animation-delay: -1.6s; }
.ix-prod__card--2 { transform: rotate(calc(12deg + var(--px) * 5deg)) translateX(46px) scale(.9); animation-delay: -3.2s; }
.ix-prod__card--3 { transform: rotate(calc(var(--px) * 4deg)); background: var(--ink); z-index: 1; }
.ix-prod__card--3 b { height: 60px; border-radius: 10px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.ix-prod__card--3 i { background: rgba(255,255,255,.22); }
.ix-prod__card--3 i:first-of-type { height: 7px; width: 70%; border-radius: 3px; background: rgba(255,255,255,.85); }
.ix-prod__card--3 em { margin-top: 20px; height: 22px; border-radius: 99px; background: #fff; }
@keyframes ix-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.svc2--product.is-hover .ix-prod__card--1 { transform: rotate(calc(-22deg + var(--px) * 8deg)) translateX(-74px) translateY(-6px) scale(.9); }
.svc2--product.is-hover .ix-prod__card--2 { transform: rotate(calc(22deg + var(--px) * 8deg)) translateX(74px) translateY(-6px) scale(.9); }
.svc2--product.is-hover .ix-prod__card--3 { transform: rotate(calc(var(--px) * 6deg)) translateY(-12px) scale(1.04); }

/* ---- 04 AI: pulses through a network -------------------------------- */
.ix-ai { --depth: -6px; position: absolute; inset: 14px 8%; width: 84%; height: calc(100% - 28px); overflow: visible; }
.ix-ai__edges path { fill: none; stroke: var(--line-3); stroke-width: 1.4; stroke-dasharray: 3 4; animation: ix-flow 1.2s linear infinite; transition: stroke 400ms; }
@keyframes ix-flow { to { stroke-dashoffset: -14; } }
.ix-ai__pulses circle { fill: var(--ink); }
.ix-ai__pulses .is-hot { fill: var(--accent); }
.ix-ai__nodes circle { fill: #fff; stroke: var(--ink); stroke-width: 1.6; transition: fill 400ms, stroke 400ms; }
.ix-ai__core { fill: var(--ink); transition: fill 400ms; }
.ix-ai__ring { fill: none; stroke: var(--accent); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: ix-ping 2.4s var(--ease-out) infinite; }
@keyframes ix-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.ix-ai__spark { fill: #fff; transform-box: fill-box; transform-origin: center; animation: ix-spin 6s linear infinite; }
@keyframes ix-spin { to { transform: rotate(360deg); } }
.svc2--ai.is-hover .ix-ai__edges path { stroke: var(--accent); stroke-dasharray: 2 3; }
.svc2--ai.is-hover .ix-ai__nodes circle { fill: var(--accent-soft); stroke: var(--accent); }
.svc2--ai.is-hover .ix-ai__core { fill: var(--accent); }

/* ---- 05 Video: a timeline you can scrub ----------------------------- */
.ix-vid { --depth: -6px; --scrub: 0; position: absolute; inset: 22px 12% 18px; display: grid; grid-template-rows: 1fr auto auto; gap: 8px; cursor: ew-resize; }
.ix-vid__frame { position: relative; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, #1B1D24, #0B0B0D 60%), #0B0B0D; box-shadow: 0 0 0 1px rgba(11,11,13,.2), 0 18px 36px -18px rgba(11,11,13,.5); }
.ix-vid__frame::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from calc(var(--scrub) * 360deg), transparent, rgba(255,91,31,.55), transparent 30%, rgba(90,140,255,.35), transparent 60%); filter: blur(18px); animation: ix-spin 8s linear infinite; }
.ix-vid.is-scrub .ix-vid__frame::before { animation: none; }
.ix-vid__play { position: relative; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform 400ms var(--ease-spring); }
.ix-vid__play::after { content: ""; position: absolute; left: 15px; top: 12px; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; transition: all 300ms var(--ease-out); }
.svc2--video.is-hover .ix-vid__play { transform: scale(1.15); }
.svc2--video.is-hover .ix-vid__play::after { left: 14px; top: 13px; width: 12px; height: 14px; border: 0; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.ix-vid__rec { position: absolute; top: 8px; left: 10px; display: flex; align-items: center; gap: 5px; font-size: 9px; color: rgba(255,255,255,.8); letter-spacing: .1em; }
.ix-vid__rec i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: ix-blink 1.2s steps(1) infinite; }
@keyframes ix-blink { 50% { opacity: 0; } }
.ix-vid__wave { display: flex; align-items: center; gap: 3px; height: 22px; padding: 0 2px; }
.ix-vid__wave i { flex: 1; height: 100%; border-radius: 2px; background: var(--line-3); transform: scaleY(.3); animation: ix-wave 1.1s var(--ease-in-out) infinite alternate; }
.ix-vid__wave i:nth-child(3n) { animation-delay: -.3s; } .ix-vid__wave i:nth-child(3n+1) { animation-delay: -.7s; } .ix-vid__wave i:nth-child(4n) { animation-duration: .8s; } .ix-vid__wave i:nth-child(5n) { animation-duration: 1.4s; }
@keyframes ix-wave { to { transform: scaleY(1); } }
.ix-vid__track { display: grid; grid-template-columns: 1.4fr 1fr .7fr 1.2fr; gap: 3px; height: 16px; }
.ix-vid__track i { border-radius: 4px; background: var(--ink); }
.ix-vid__track i:nth-child(2) { background: var(--accent); } .ix-vid__track i:nth-child(3) { background: var(--ink-3); } .ix-vid__track i:nth-child(4) { background: var(--accent-2); }
.ix-vid__head { position: absolute; top: -6px; bottom: -4px; left: 0; width: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 3px rgba(255,91,31,.18);
  animation: ix-head 5s linear infinite; }
.ix-vid__head::before { content: ""; position: absolute; top: -2px; left: -4px; width: 10px; height: 8px; border-radius: 2px 2px 5px 5px; background: var(--accent); }
@keyframes ix-head { from { left: 0; } to { left: 100%; } }
.ix-vid.is-scrub .ix-vid__head { animation: none; left: calc(var(--scrub) * 100%); }

/* ---- Marquee: capabilities, speed reacts to scroll ------------------- */
.marquee { margin-top: clamp(56px, 7vw, 96px); overflow: hidden; border-block: 1px solid var(--line-2); padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px);
  font-family: var(--font-sans); font-size: clamp(1.6rem, 1rem + 2.4vw, 3.2rem); font-weight: 600; letter-spacing: -0.035em; color: var(--ink); white-space: nowrap; }
.marquee__track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--ink-3); }
.marquee__track span::after { content: ""; width: .32em; height: .32em; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   MID-PAGE CTA
   ========================================================================== */
.cta-band { padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 96px); }
.cta-band__inner { --gx: 70%; --gy: 50%; position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap;
  padding: clamp(36px, 5vw, 72px); border-radius: var(--r-xl); background: var(--night); color: var(--ink-inv);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), var(--shadow-float); }
.cta-band__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--gx) var(--gy), rgba(255,91,31,.28), transparent 60%),
              linear-gradient(to right, var(--line-inv) 1px, transparent 1px) 0 0 / 56px 56px,
              linear-gradient(to bottom, var(--line-inv) 1px, transparent 1px) 0 0 / 56px 56px; }
.cta-band__title { color: var(--ink-inv); margin-top: 16px; max-width: 18ch; }
.cta-band__text { color: var(--ink-inv-2); margin-top: 14px; max-width: 46ch; font-size: var(--fs-lead); line-height: 1.5; }
.eyebrow--inv { color: var(--ink-inv-2); }

/* ==========================================================================
   FILMS — expanding video panels
   ========================================================================== */
.films { overflow: clip; }
.cta-band + .section { padding-top: clamp(40px, 5vw, 88px); }
.films__grid { display: flex; gap: 16px; height: clamp(320px, 31vw, 480px); }
.film { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--night);
  box-shadow: 0 0 0 1px var(--line-2), var(--shadow-2);
  transition: flex 800ms var(--ease-out), box-shadow var(--t-base), opacity var(--t-reveal) var(--ease-out), clip-path 1200ms var(--ease-out);
  transition-delay: 0s, 0s, calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms); }
.film[data-reveal] { transform: none; clip-path: inset(18% 0 0 0 round var(--r-lg)); }
.film[data-reveal].is-in { clip-path: inset(0 round var(--r-lg)); }
.film.is-active { flex-grow: 2.4; box-shadow: 0 0 0 1px var(--line-3), var(--shadow-float); }
.film__btn { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; text-align: left; }
.film__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: saturate(.7) brightness(.82); transition: transform 1200ms var(--ease-out), filter 600ms; }
.film.is-active .film__video { transform: scale(1); filter: none; }
.film__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.66)); transition: opacity 600ms; }
.film__meta { position: absolute; left: clamp(18px, 2vw, 28px); bottom: clamp(18px, 2vw, 26px); right: 90px; display: grid; gap: 4px; }
.film__num { font-size: 11px; opacity: .6; letter-spacing: .1em; }
.film__name { font-family: var(--font-sans); font-size: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; white-space: nowrap; }
.film__kind { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.film__play { position: absolute; right: clamp(16px, 2vw, 24px); bottom: clamp(16px, 2vw, 24px); display: flex; align-items: center; gap: 0; height: 48px; padding: 0 0 0 48px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); transition: background var(--t-base), padding 500ms var(--ease-out); }
.film__play i { position: absolute; left: 19px; top: 16px; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.film__play em { font-style: normal; font-size: 13.5px; font-weight: 550; white-space: nowrap; max-width: 0; overflow: hidden; opacity: 0; transition: max-width 500ms var(--ease-out), opacity 300ms, padding 500ms var(--ease-out); }
.film.is-active .film__play em { max-width: 160px; opacity: 1; padding-right: 18px; }
.film__btn:hover .film__play { background: var(--accent); box-shadow: none; }
.films__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: clamp(28px, 3vw, 40px); }
@media (max-width: 820px) {
  .films__grid { flex-direction: column; height: auto; }
  .film, .film.is-active { flex: none; aspect-ratio: 16 / 9; }
  .film .film__video { transform: none; filter: none; }
  .film .film__play em, .film.is-active .film__play em { max-width: 0; opacity: 0; padding-right: 0; }
}

/* ---- Film player ----------------------------------------------------- */
.player { position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; place-items: center; padding: var(--gutter); visibility: hidden; opacity: 0; transition: opacity var(--t-base), visibility 0s var(--t-base); }
.player.is-open { visibility: visible; opacity: 1; transition: opacity var(--t-base); }
.player__scrim { position: absolute; inset: 0; background: rgba(8,9,11,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.player__panel { position: relative; width: min(1200px, 100%); display: grid; gap: 14px; transform: translateY(16px) scale(.98); transition: transform 500ms var(--ease-out); }
.player.is-open .player__panel { transform: none; }
.player__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; }
.player__head b { font-family: var(--font-sans); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.player__head .lightbox__close { color: #fff; background: rgba(255,255,255,.12); }
.player__video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-md); background: #000; box-shadow: var(--shadow-float); }

/* ---- CrewSwap status: live ------------------------------------------ */
.status-pill--live { background: rgba(22,163,74,.12); color: #15803D; }
.status-pill--live i { background: var(--ok); animation: pulse 2.4s infinite; }

/* ==========================================================================
   FOOTER — dark link footer (halftone wordmark lives in the hero)
   ========================================================================== */
.hwf { --hwf-bg: var(--night); --hwf-ink: var(--ink-inv);
  position: relative; width: 100%; padding-bottom: clamp(28px, 3.4vw, 48px); overflow: hidden; isolation: isolate;
  background: var(--hwf-bg); color: var(--hwf-ink); -webkit-font-smoothing: antialiased; }
.hwf__top { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 24px;
  padding: clamp(28px, 3.4vw, 48px) clamp(20px, 3.4vw, 48px) 0;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.9; }
.hwf__brand strong { display: block; font-weight: 500; }
.hwf__brand > span { opacity: .45; }
.hwf__col h3 { margin: 0; font: inherit; opacity: .4; font-weight: 500; }
.hwf__col a, .hwf__col button, .hwf__up {
  color: inherit; text-decoration: none; opacity: .78; background: none; border: 0; padding: 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: opacity .25s ease, background-size .35s cubic-bezier(.2,.7,.1,1);
}
.hwf__col a:hover, .hwf__col button:hover, .hwf__up:hover { opacity: 1; background-size: 100% 1px; }
.hwf__col a:focus-visible, .hwf__col button:focus-visible, .hwf__up:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; opacity: 1; }
.hwf__col [data-config-email] { text-transform: none; letter-spacing: .04em; }
.hwf__rule { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin: clamp(18px, 2.6vw, 30px) clamp(20px, 3.4vw, 48px) 0; padding-top: 12px;
  border-top: .5px solid color-mix(in srgb, var(--hwf-ink) 16%, transparent);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.hwf__rule > span { opacity: .45; }
@media (max-width: 720px) {
  .hwf__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 22px; }
  .hwf__brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   LIGHT / DARK — toggle in the nav, html[data-theme="dark"] swaps the tokens
   ========================================================================== */
.theme-toggle { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin-left: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(11,11,13,.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); transition: background var(--t-base), transform var(--t-base) var(--ease-out); }
.theme-toggle:hover { transform: rotate(-12deg); background: var(--bg-elev); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { position: absolute; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 600ms var(--ease-spring), opacity 300ms; }
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(.4); }
[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: none; }

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0C0E; --bg-elev: #15161A; --bg-sunk: #1C1D22;
  --night: #050607; --night-2: #0C0D10; --night-3: #14161B;
  --ink: #F5F5F2; --ink-2: #D6D6D2; --ink-3: #9C9CA4; --ink-4: #6E6E76;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12); --line-3: rgba(255,255,255,.20);
  --accent-soft: rgba(255,91,31,.16);
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -8px rgba(0,0,0,.5);
  --shadow-3: 0 2px 4px rgba(0,0,0,.4), 0 40px 80px -24px rgba(0,0,0,.7);
  --shadow-float: 0 24px 48px -12px rgba(0,0,0,.6), 0 80px 120px -40px rgba(0,0,0,.7);
  --glass-bg: rgba(21,22,26,.72); --glass-border: rgba(255,255,255,.08);
}
[data-theme="dark"] .theme-toggle, [data-theme="dark"] .lang { background: rgba(255,255,255,.06); }
[data-theme="dark"] .nav__links { background-color: transparent; }
@media (max-width: 820px) { [data-theme="dark"] .nav.is-open .nav__links { background: rgba(21,22,26,.94); } }
[data-theme="dark"] .contact { background: linear-gradient(180deg, var(--bg), var(--bg-sunk)); }
[data-theme="dark"] .sc-card__info { background: rgba(21,22,26,.78); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-3); }
[data-theme="dark"] .sc-card__cta, [data-theme="dark"] .chip__icon, [data-theme="dark"] .choice__opts input:checked + span { color: var(--bg); }
[data-theme="dark"] .consent__box::after { border-color: var(--bg); }
[data-theme="dark"] .btn--light { --btn-fg: #0B0B0D; }
[data-theme="dark"] .btn--rainbow { --btn-fg: #0B0B0D; --rb-fill: #fff; --rb-fade: rgba(255,255,255,.6); --rb-clear: rgba(0,0,0,0); }
[data-theme="dark"] .cta-band__inner, [data-theme="dark"] .final { box-shadow: 0 0 0 1px var(--line-2); }
[data-theme="dark"] .hwf { border-top: 1px solid var(--line); }
[data-theme="dark"] .brand__mark rect { fill: #F5F5F2; }
[data-theme="dark"] .brand__mark path { fill: #0B0B0D; }
/* service icons: white "paper" turns to dark surfaces */
[data-theme="dark"] .ix-web, [data-theme="dark"] .ix-app, [data-theme="dark"] .ix-prod__card { background: var(--bg-elev); }
[data-theme="dark"] .ix-prod__card--3 { background: #2A2C33; }
[data-theme="dark"] .ix-ai__nodes circle { fill: var(--bg-elev); }
[data-theme="dark"] .ix-ai__core { fill: var(--ink); }
[data-theme="dark"] .ix-ai__spark { fill: var(--bg); }

/* ---- Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .btn--rainbow, .btn--rainbow::after, .marquee__track,
  .svc2 *, .svc2 *::before, .svc2 *::after { animation: none !important; }
  .svc2, .hero-film { transform: none !important; }
  .ix-web__cursor { display: none; }
  .scroll-cue__text, .scroll-cue__arrow svg { animation: none; }
  .divider-head { --fp: 1 !important; }
  .sf-w { --wp: 1 !important; }
  .film[data-reveal] { clip-path: none; }
  .hwf__col a, .hwf__col button, .hwf__up { transition: none; }
}
