/* ============================================================
   MOTION + NEW SECTIONS: interactive layer, agents bento,
   process, demo band, lead form, HUD placement fixes.
   ============================================================ */

/* ---------- layout chrome ---------- */
.skip-link {
  position: fixed; top: 10px; inset-inline-start: 10px; z-index: 210;
  background: var(--acc); color: #0b0b0c; padding: 0.6em 1em; border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* REC sits under the nav button; the scene label steps aside where it would collide */
.hud-tc { top: 72px; right: 28px; }
.hud-item { transition: opacity 0.4s; }
body.in-hero .hud-scene { opacity: 0; }
.hero { min-height: 100dvh; }
.hero-title .serif { padding-inline-end: 0.04em; }

/* ---------- click feedback ---------- */
.click-ring {
  position: fixed; z-index: 99; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border: 1.5px solid var(--acc); border-radius: 50%; pointer-events: none;
  animation: click-ring 0.55s var(--ease-out) forwards;
}
@keyframes click-ring { to { transform: scale(7); opacity: 0; } }

.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 78, 0, 0.32), transparent 62%);
  animation: ripple 0.7s var(--ease-out) forwards;
}
@keyframes ripple { from { transform: scale(0.1); opacity: 1; } to { transform: scale(1); opacity: 0; } }

/* ---------- cursor ---------- */
.cursor { transition: width 0.25s, height 0.25s, background 0.25s, opacity 0.3s, scale 0.18s var(--ease-out); }
.cursor.is-down { scale: 0.72; }
.cursor.is-typing { opacity: 0; }
body.has-cursor input, body.has-cursor textarea { cursor: text; }
html[lang="ar"] .cursor span { font-family: "Alexandria", sans-serif; letter-spacing: 0; font-size: 0.72rem; }

/* ---------- kinetic text ---------- */
.kw { display: inline-block; white-space: nowrap; }
.kc { display: inline-block; will-change: transform; }
.hero-title.is-live .hline { overflow: visible; }
.hero-title .kc { color: color-mix(in srgb, var(--acc) calc(var(--f, 0) * 100%), currentColor); }

[data-react] .kc {
  color: color-mix(in srgb, var(--ink) calc(var(--f, 0) * 100%), currentColor);
  transform: translateY(calc(var(--f, 0) * -2px));
}


/* ---------- buttons ---------- */
.btn {
  isolation: isolate;
  transition: color 0.3s, border-color 0.3s, scale 0.16s var(--ease-out);
}
.btn > span { position: relative; z-index: 1; }
.btn::before {
  inset: auto;
  left: var(--x, 50%); top: var(--y, 50%);
  width: 260%; aspect-ratio: 1;
  margin: -130% 0 0 -130%;
  border-radius: 50%;
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: scale(1); }
.btn:active { scale: 0.96; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.nav-links a { transition: color 0.25s, translate 0.25s var(--ease-out); }
.nav-links a:hover { translate: 0 -2px; }
.nav-links a:active { translate: 0 1px; }

/* ---------- agents bento ---------- */
.agents {
  grid-auto-flow: dense;
  overflow: visible;
  background: transparent;
  border: 0;
  gap: 12px;
  margin-bottom: var(--space-4);
  perspective: 1400px;
}
.agent {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg1);
  transform: translateY(calc(var(--lift, 0px) * -1)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease-out), border-color 0.3s, background 0.3s;
  display: flex; flex-direction: column;
}
.agents.is-lit .agent { border-color: var(--line-strong); }
.agent::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 78, 0, 0.22), transparent 70%);
  transition: opacity 0.4s;
}
.agents.is-lit .agent::after { opacity: 1; }
.agent:active { scale: 0.99; }
.agent.is-featured { grid-column: span 2; }
.agent.is-featured .agent-name { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.agent.is-featured .agent-desc { font-size: var(--fs-body); max-width: 56ch; }
.agent-desc { flex: 1; }
.agent-status { color: var(--ink2); }
.agent-status.is-pilot { color: var(--amber); }

@media (max-width: 1024px) {
  .agents { grid-template-columns: repeat(2, 1fr); }
  .agent.is-featured { grid-column: span 1; }
}
@media (max-width: 640px) {
  .agents { grid-template-columns: 1fr; }
}

/* ---------- demo band ---------- */
.demo-card {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 120% at 90% 0%, rgba(255, 78, 0, 0.2), transparent 60%),
    var(--bg1);
  position: relative;
  overflow: hidden;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
}
.demo-card.is-tilt { transition: transform 0.08s linear; border-color: var(--acc); }
.demo-card-title {
  font-size: var(--fs-h2);
  font-variation-settings: "wdth" 118, "wght" 860;
  font-weight: 860; line-height: 1; text-transform: uppercase;
}
.demo-card-sub { color: var(--ink2); max-width: 56ch; font-size: var(--fs-body); }
.demo-card-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-1); }
.demo-card-list li {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.4em 0.9em; font-size: var(--fs-small); color: var(--ink);
}

.sec-note { color: var(--ink2); max-width: 56ch; }

/* ---------- lead form ---------- */
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-3);
  max-width: 880px;
  margin-bottom: var(--space-3);
}
.lead-field { display: grid; gap: 0.5rem; align-content: start; }
.lead-field--wide { grid-column: 1 / -1; }
.lead-field label { font-size: var(--fs-small); color: var(--ink); font-weight: 600; }
.lead-field input, .lead-field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--bg1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.85em 1em;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.lead-field input:hover, .lead-field textarea:hover { border-color: var(--ink2); }
.lead-field input:focus, .lead-field textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: transparent; background: var(--bg2); }
.lead-field [aria-invalid="true"] { border-color: var(--rec); }
.lead-error { color: #ff9a92; font-size: var(--fs-small); }
.lead-help { color: var(--ink2); font-size: var(--fs-small); align-self: end; padding-bottom: 0.9em; }
.lead-trap { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.lead-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.lead-status { color: var(--ink); font-size: var(--fs-small); }
@media (max-width: 640px) {
  .lead-form { grid-template-columns: 1fr; }
  .lead-help { padding-bottom: 0; }
}

.contact-meta { line-height: 1.8; }

/* ---------- scroll-linked entrance, native only ---------- */
@supports (animation-timeline: view()) {
  @media all {
    .demo-card-list li {
      animation: drift-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
    @keyframes drift-in { from { translate: 0 40px; } to { translate: 0 0; } }
  }
}

html.motion-off .agent, html.motion-off .demo-card { transform: none !important; }
html.motion-off .click-ring, html.motion-off .ripple, html.motion-off .mouse-glow, html.motion-off .cursor-dot, html.motion-off .page-fluid { display: none; }

.work-kicker, .work-title, .work-role { display: block; }
.agent-stack span { border-radius: var(--radius); }
.stat-slash { color: var(--acc) !important; opacity: 1 !important; margin: 0 0.04em; }

.stat .stat-slash { font: inherit; }


/* ---------- page-wide field and pointer ---------- */
.page-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
main, .footer, .marquee { position: relative; z-index: 1; }
.nav { z-index: 60; }
.mouse-glow {
  position: fixed; top: 0; left: 0; z-index: 0; width: 760px; height: 760px; pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 78, 0, 0.13), transparent 62%);
}
.cursor-dot { position: fixed; top: 0; left: 0; z-index: 101; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); pointer-events: none; }
body:not(.has-cursor) .cursor-dot, body:not(.has-cursor) .mouse-glow { display: none; }

html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* the entrance runs on the letters, so the old line slide stands down */
body.hero-gsap .hmask { transform: none !important; }
.hero-title:not(.is-live) .hline { overflow: hidden; padding-bottom: 0.14em; }
.hero-inner { transform-style: preserve-3d; will-change: transform; }
.hero-title .kc { transform-origin: 50% 80%; }

/* ---------- curtain between pages ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 300; background: var(--acc); pointer-events: none;
  transform: scaleY(0); transform-origin: bottom;
}
.curtain.is-enter { transform: scaleY(1); transition: transform 0.5s var(--ease-snap); }
.curtain.is-cover { transform: scaleY(1); transform-origin: top; }
.curtain.is-leave { transform: scaleY(0); transform-origin: top; transition: transform 0.7s var(--ease-snap); }

/* ---------- pipelines ---------- */
.pipes-grid { perspective: 1400px; }
.pipe {
  position: relative;
  background: var(--bg1);
  transition: border-color 0.3s;
}
.pipe::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 78, 0, 0.18), transparent 70%);
  transition: opacity 0.35s;
}
.pipe.is-tilt::after { opacity: 1; }

/* ---------- demo card ---------- */
.demo-band { padding-top: var(--space-5); }
.demo-card { will-change: clip-path, transform; }

/* ---------- work thumbnails ---------- */
.work-thumb { transition: transform 0.7s var(--ease-out); overflow: hidden; }
.work-thumb img.cover { translate: 0 var(--py, 0px); scale: 1.2; }
.work-title { transition: transform 0.6s var(--ease-out), color 0.3s; }
.work-thumb video.gifPreview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.3s; z-index: 1;
}
.work-thumb video.gifPreview.is-on { opacity: 1; }
.work-play { z-index: 2; }
.work-row { position: relative; }

/* ---------- timeline: rail, playhead and diamonds on one axis, diamonds on top ---------- */
.tl { --tl-pad: clamp(1.6rem, 4vw, 3rem); margin-inline-start: 8px; margin-inline-end: 0; padding-inline-start: var(--tl-pad); padding-inline-end: 0; }
.tl::before, .tl::after { z-index: 0; inset-inline-start: 0; inset-inline-end: auto; left: auto; right: auto; }
html[dir="rtl"] .tl::before, html[dir="rtl"] .tl::after { right: 0; }
html:not([dir="rtl"]) .tl::before, html:not([dir="rtl"]) .tl::after { left: 0; }
.tl::before { width: 2px; }
.tl::after { width: 2px; }
.tl-item { z-index: 1; }
.tl-item::before {
  z-index: 2;
  width: 12px; height: 12px;
  left: auto; right: auto;
  inset-inline-start: calc(-1 * var(--tl-pad) - 5px);
  background: var(--bg2);
  border: 1px solid var(--ink2);
}
.tl-item.is-in::before { background: var(--acc); border-color: var(--acc); box-shadow: 0 0 14px var(--acc); }



html, body, main { overflow-x: clip; }

/* ---------- ink under everything ---------- */
.page-fluid { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }

/* ---------- section titles rise letter by letter ---------- */
.sec-title { clip-path: inset(-0.25em -0.5em -0.3em -0.5em); }
.sec-title > span { display: block; }
.sec-title .kc { will-change: transform; }

/* ---------- cursor lens over big type ---------- */
.cursor { width: 30px; height: 30px; transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), background 0.35s, border-color 0.35s, opacity 0.3s, scale 0.25s var(--ease-out); }
.cursor.is-big { width: 92px; height: 92px; }
.cursor.is-lens { width: 150px; height: 150px; background: #fff; border-color: #fff; mix-blend-mode: difference; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cursor.is-lens span { opacity: 0; }

/* ---------- text-mask reel ---------- */
.reelmask { position: relative; z-index: 2; height: 100dvh; }
.reelmask-pin { position: relative; width: 100%; height: 100dvh; overflow: hidden; background: #000; isolation: isolate; }
.reelmask-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reelmask-cover {
  position: absolute; inset: 0; background: #000; mix-blend-mode: multiply;
  display: grid; place-items: center; overflow: hidden;
}
.reelmask-word {
  color: #fff; display: block; white-space: nowrap;
  font-size: min(19vw, 22rem);
  font-variation-settings: "wdth" 125, "wght" 900;
  font-weight: 900; line-height: 1; letter-spacing: -0.01em;
  will-change: transform;
}
.reelmask-cap {
  position: absolute; inset-inline: var(--gutter); bottom: 9vh; z-index: 3;
  font-size: clamp(1.2rem, 2.6vw, 2.4rem); font-weight: 700; color: #fff; opacity: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7);
}
html[lang="ar"] .reelmask-word { font-family: "Alexandria", sans-serif; font-variation-settings: normal; font-weight: 900; font-size: min(26vw, 26rem); }
html.motion-off .reelmask { display: none; }

/* ---------- process: slides stack while each scene plays ---------- */
.proc.section { padding-bottom: var(--space-3); }
.stack { position: relative; z-index: 2; height: 100dvh; overflow: hidden; }
body.in-stack .hud-tc, body.in-stack .hud-scene { opacity: 0; }
.slide {
  position: absolute; inset: 3dvh clamp(12px, 2vw, 28px);
  display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(1rem, 3vw, 3.5rem);
  padding: clamp(1.4rem, 3vw, 3.4rem) clamp(1.5rem, 4.5vw, 5rem);
  border-radius: 32px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(70% 90% at 85% 15%, rgba(255, 78, 0, 0.16), transparent 62%), #131316;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.55);
  will-change: transform;
}
.slide-text { position: relative; z-index: 2; }
.slide h3 {
  font-size: clamp(2.4rem, 5.6vw, 6.2rem);
  font-variation-settings: "wdth" 118, "wght" 860;
  font-weight: 860; line-height: 1; margin-bottom: 1.4rem;
}
.slide p { color: var(--ink2); font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1.55; max-width: 34ch; }
.slide-scene { min-width: 0; height: 100%; display: grid; place-items: center; }

/* shared scene language: soft pills, one glowing core */
.scn { position: relative; width: 100%; max-height: 100%; aspect-ratio: 1000 / 820; }
.scn > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scn .glow {
  position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 78, 0, 0.3), transparent 66%); filter: blur(10px);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 50% { scale: 1.18; opacity: 0.7; } }
.pill { position: absolute; translate: -50% -50%; z-index: 2; }
.pill-in {
  display: inline-flex; align-items: center; gap: 0.6em; white-space: nowrap;
  padding: 0.82em 1.35em 0.82em 1.1em; border-radius: 999px;
  font-size: clamp(0.82rem, 1.45vw, 1.4rem);
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: float 6s ease-in-out infinite;
  transition: background 0.5s, color 0.5s, box-shadow 0.5s, border-color 0.5s;
}
.pill:nth-of-type(2n) .pill-in { animation-delay: -2s; }
.pill:nth-of-type(3n) .pill-in { animation-delay: -4s; }
.pill-in b { font-weight: 600; }
.ic { width: 1.35em; height: 1.35em; flex: none; color: var(--acc); transition: color 0.5s; }
@keyframes float { 50% { transform: translateY(-9px); } }
.pill.is-hot .pill-in {
  background: linear-gradient(135deg, #ff6a1f, #ff4e00); border-color: transparent; color: #140700;
  box-shadow: 0 16px 50px rgba(255, 78, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.pill.is-hot .ic { color: #140700; }

.ring { position: absolute; inset: 0; margin: auto; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); }
.ring.r1 { width: 40%; } .ring.r2 { width: 66%; border-color: rgba(255, 255, 255, 0.08); } .ring.r3 { width: 92%; border-color: rgba(255, 255, 255, 0.05); }
.ring::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 14px var(--acc); }
@keyframes ring-spin { to { rotate: 360deg; } }
.ring.r1 { animation: ring-spin 16s linear infinite; }
.ring.r2 { animation: ring-spin 26s linear infinite reverse; }
.ring.r3 { animation: ring-spin 38s linear infinite; }
.p-task.is-pick .pill-in { font-size: clamp(1rem, 1.9vw, 1.9rem); }

.orb {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3;
  width: 25%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 0.3em;
  color: #140700; font-size: clamp(0.85rem, 1.4vw, 1.35rem);
  background: radial-gradient(circle at 32% 28%, #ffa066, #ff4e00 58%, #c23800);
  box-shadow: 0 0 0 10px rgba(255, 78, 0, 0.12), 0 0 80px rgba(255, 78, 0, 0.55);
  animation: orb 3.4s ease-in-out infinite;
}
.orb .ic { color: #140700; width: 2em; height: 2em; }
.orb b { font-weight: 800; }
@keyframes orb { 50% { box-shadow: 0 0 0 20px rgba(255, 78, 0, 0.07), 0 0 120px rgba(255, 78, 0, 0.7); } }

.s2-wire, .s3-line, .fl-wire { fill: none; stroke: var(--acc); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.s3-base { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 2.5; }
.s2-pkt, .fl-pkt { fill: #ffb48f; filter: drop-shadow(0 0 7px var(--acc)); }
.s3-dot { fill: #ffd2bb; filter: drop-shadow(0 0 10px var(--acc)); opacity: 0; }
.s3-cursor { position: absolute; left: 0; top: 0; z-index: 4; color: #fff; font-size: 2rem; opacity: 0; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
.s3-cursor .ic { color: #fff; }
html[lang="ar"] .scn, html[lang="ar"] .flow2-stage { direction: ltr; }
html[lang="ar"] .pill-in b, html[lang="ar"] .orb b { font-family: "Alexandria", sans-serif; direction: rtl; }
html[lang="ar"] .slide h3 { font-family: "Alexandria", sans-serif; font-variation-settings: normal; font-weight: 800; line-height: 1.3; }
html[lang="ar"] .slide p { line-height: 1.9; }
@media (max-width: 860px) {
  .slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); inset: 2dvh 10px; gap: 0.6rem; padding: 1.6rem 1.1rem 1rem; border-radius: 24px; }
  .slide h3 { font-size: 2.3rem; margin-bottom: 0.6rem; }
  .slide p { font-size: 0.98rem; }
  .pill-in { font-size: 0.72rem; padding: 0.6em 0.9em; gap: 0.4em; }
}
html.motion-off .stack { height: auto; overflow: visible; }
html.motion-off .slide { position: relative; inset: auto; margin: 16px; }
html.motion-off .s2-wire, html.motion-off .s3-line, html.motion-off .fl-wire { stroke-dashoffset: 0; }

/* ---------- agent flow ---------- */
.flow2 { margin-bottom: var(--space-4); }
.flow2-stage { position: relative; aspect-ratio: 1400 / 380; }
.flow2-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orb--sm { width: auto; height: 62%; left: 44%; font-size: clamp(0.7rem, 1.1vw, 1.1rem); }
.flow2 figcaption { color: var(--ink2); max-width: 70ch; margin-top: var(--space-3); line-height: 1.7; }
@media (max-width: 860px) {
  .flow2-stage { aspect-ratio: auto; display: grid; justify-items: center; gap: 1.1rem; padding-block: 1rem; position: relative; }
  .flow2-stage > svg { display: none; }
  .flow2-stage::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: linear-gradient(transparent, var(--acc), transparent); }
  .flow2-stage .pill, .flow2-stage .orb { position: relative; left: auto !important; top: auto !important; translate: none; }
  .orb--sm { height: auto; width: 120px; }
}

/* ---------- footer wordmark ---------- */
.footer-word {
  overflow: hidden; text-align: center; color: var(--ink);
  font-size: 15.6vw; line-height: 0.95; white-space: nowrap;
  font-variation-settings: "wdth" 125, "wght" 900;
  font-weight: 900; letter-spacing: -0.01em;
  padding-top: var(--space-3);
}
.footer-word .kc { display: inline-block; }
.motion-toggle { color: var(--ink3); text-transform: none; letter-spacing: 0; transition: color 0.25s; }
.motion-toggle:hover { color: var(--acc); }
html[lang="ar"] .motion-toggle { font-family: "Alexandria", sans-serif; }

/* ---------- agents: the outer cell rides the scroll, the card follows the pointer ---------- */
.agent-cell { min-width: 0; display: flex; transform-style: preserve-3d; }
.agent-cell.is-featured { grid-column: span 2; }
.agent-cell > .agent { flex: 1; min-width: 0; }
@media (max-width: 1024px) { .agent-cell.is-featured { grid-column: span 1; } }

/* shed the full-screen grain on machines that cannot keep up */
html.fx-low body::after { animation: none; opacity: 0.03; }

/* ---------- form: softer fields that fold into place ---------- */
.lead-form { perspective: 1200px; }
.lead-field input, .lead-field textarea { border-radius: 16px; }
.lead-field { transform-style: preserve-3d; }
.lead-field input:focus, .lead-field textarea:focus { box-shadow: 0 0 0 4px rgba(255, 78, 0, 0.15), 0 10px 40px rgba(255, 78, 0, 0.14); }
.lead-field label { transition: color 0.3s, translate 0.4s var(--ease-out); }
.lead-field:focus-within label { color: var(--acc-ink); translate: 6px 0; }

/* ---------- small touches ---------- */
.nav-links a > span { display: block; overflow: hidden; }
.nav-links a > span > i { display: block; font-style: normal; transition: transform 0.55s var(--ease-out); }
.nav-links a > span > i + i { position: absolute; inset-inline-start: 0; top: 100%; color: var(--acc); }
.nav-links a > span { position: relative; }
.nav-links a:hover > span > i { transform: translateY(-100%); }
.nav-links a:hover { translate: 0; }
.agent-stack span { transition: translate 0.45s var(--ease-out), color 0.3s, border-color 0.3s; }
.agent:hover .agent-stack span { translate: 0 -5px; border-color: var(--acc); }
.agent:hover .agent-stack span:nth-child(2) { transition-delay: 0.05s; }
.agent:hover .agent-stack span:nth-child(3) { transition-delay: 0.1s; }
.agent:hover .agent-stack span:nth-child(4) { transition-delay: 0.15s; }
.tl-item.is-in::before { animation: diamond 0.9s var(--ease-out) both; }
@keyframes diamond { from { scale: 0; } 60% { scale: 1.7; } to { scale: 1; } }
.demo-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 78, 0, 0.26), transparent 70%);
  transition: opacity 0.4s;
}
.demo-card.is-tilt::after { opacity: 1; }
.pipe-list li { transition: translate 0.4s var(--ease-out), color 0.3s; }
.pipe-list li:hover { translate: 10px 0; }
html[lang="ar"] .pipe-list li:hover { translate: -10px 0; }

.lead-human { grid-column: 1 / -1; min-height: 65px; }
