/* ============================================================
   tomerbenbaron.com - v2 "Aurora Editorial" (2026-11)
   Night-blue base · blue+violet aurora · white type · moving numbers
   Self-hosted fonts · scroll-reactive, one-shot motion · loops only in view
   Radius vocabulary: 10px (cards), 6px (inner), pill (chips, buttons)
   ============================================================ */

/* ---------- fonts (self-hosted subsets, hebrew + latin) ---------- */
@font-face{font-family:'Heebo';font-style:normal;font-weight:200;font-display:swap;src:url(/assets/fonts/Heebo-200-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Heebo';font-style:normal;font-weight:200;font-display:swap;src:url(/assets/fonts/Heebo-200-hebrew.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F;}
@font-face{font-family:'Heebo';font-style:normal;font-weight:300;font-display:swap;src:url(/assets/fonts/Heebo-300-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Heebo';font-style:normal;font-weight:300;font-display:swap;src:url(/assets/fonts/Heebo-300-hebrew.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F;}
@font-face{font-family:'Heebo';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/Heebo-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Heebo';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/Heebo-400-hebrew.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F;}
@font-face{font-family:'Heebo';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/Heebo-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Heebo';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/Heebo-400-hebrew.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/IBMPlexMono-400-latin.woff2) format('woff2');}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/IBMPlexMono-500-latin.woff2) format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/Inter-400-latin.woff2) format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/Inter-500-latin.woff2) format('woff2');}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:300;font-display:swap;src:url(/assets/fonts/InterTight-300-latin.woff2) format('woff2');}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/InterTight-400-latin.woff2) format('woff2');}

/* ---------- tokens ---------- */
:root {
  --bg: #0a0c19;
  --bg-2: #0d1024;
  --surface: #121633;
  --surface-2: #181d3f;
  --line: rgba(170, 176, 255, 0.12);
  --line-strong: rgba(170, 176, 255, 0.26);
  --text: #f3f5fc;
  --muted: rgba(222, 228, 252, 0.74);
  --faint: #9aa4c2;
  --accent: #4da3ff;
  --violet: #8e7bff;
  --violet-2: #b8a9ff;
  --grad: linear-gradient(100deg, #6fb6ff 0%, #8e7bff 55%, #c3b5ff 100%);
  --btn-bg: #f4f7ff;
  --btn-ink: #0a0d15;
  --scrim: 7, 9, 20;
  --radius: 10px;
  --radius-sm: 6px;
  --nav-h: 60px;
  --font-head: 'Heebo', system-ui, sans-serif;
  --font-body: 'Heebo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --maxw: 1200px;
  --ls-h1: -0.025em;
  --ls-h2: -0.02em;
  --ls-h3: -0.01em;
  --ls-body: -0.005em;
  --lh-head: 1.14;
  --lh-body: 1.55;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="en"] {
  --font-head: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ls-h1: -0.05em;
  --ls-h2: -0.04em;
  --ls-h3: -0.03em;
  --ls-body: -0.02em;
  --lh-head: 1.06;
  --lh-body: 1.45;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; font-weight: 400;
  letter-spacing: var(--ls-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* aurora atmosphere: fixed, backgrounds only */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 680px at 84% -14%, rgba(142, 123, 255, 0.13), transparent 60%),
    radial-gradient(900px 600px at 4% 28%, rgba(77, 163, 255, 0.07), transparent 55%),
    radial-gradient(900px 640px at 62% 118%, rgba(142, 123, 255, 0.11), transparent 62%),
    var(--bg);
}
::selection { background: var(--violet-2); color: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.ltr { direction: ltr; unicode-bidi: isolate-override; display: inline-block; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed; top: -60px; inset-inline-start: 16px; z-index: 100;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 12px 18px; font-size: 14px; font-weight: 500; transition: top .2s;
}
.skip-link:focus-visible { top: 12px; }

/* ---------- scroll progress hairline ---------- */
.progress {
  position: fixed; top: 0; inset-inline-start: 0; height: 2px; width: 100%; z-index: 90;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
html[dir="rtl"] .progress { transform-origin: 100% 50%; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(10, 12, 25, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; color: var(--text); transition: color .2s;
}
.logo-tag {
  font-family: var(--font-head); font-weight: 400; font-size: 11px; letter-spacing: .04em; color: var(--faint);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 3px 9px; direction: ltr; transition: color .2s, border-color .2s;
}
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { font-size: 13.5px; color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active:not(.nav-cta)::after { content: ""; position: absolute; inset-inline: 0; bottom: -7px; height: 1px; background: currentColor; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px; background: var(--btn-bg); color: var(--btn-ink) !important;
  border-radius: 100px; padding: 8px 16px; font-size: 12.5px; font-weight: 500; transition: opacity .2s, background .2s, color .2s;
}
.nav-cta svg { width: 13px; height: 13px; }
.nav-cta:hover { opacity: .85; }
.lang-switch {
  font-family: var(--font-head); font-weight: 500; font-size: 12px; letter-spacing: .04em; padding: 7px 14px; border: 1px solid var(--line-strong);
  border-radius: 100px; color: var(--text) !important; transition: border-color .2s, color .2s;
}
.lang-switch:hover { border-color: var(--text); }
.nav-burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius);
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .25s, opacity .25s, background .2s; }
body.menu-open .nav-burger span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
/* over the light band the chrome flips to ink */
.nav.on-light { background: rgba(234, 242, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: rgba(20, 22, 48, 0.08); }
.nav.on-light .nav-logo { color: #15172b; }
.nav.on-light .logo-tag { color: #5a5f7a; border-color: rgba(20, 22, 48, 0.22); }
.nav.on-light .nav-links a { color: #41465f; }
.nav.on-light .nav-links a:hover, .nav.on-light .nav-links a.active { color: #15172b; }
.nav.on-light .nav-cta { background: #15172b; color: #fafafa !important; }
.nav.on-light .lang-switch { color: #15172b !important; border-color: rgba(20, 22, 48, 0.28); }
.nav.on-light .nav-burger span { background: #15172b; }
body.menu-open .nav { z-index: 65; }
.menu {
  position: fixed; inset: 0; z-index: 60; background: rgba(9, 11, 22, 0.98);
  display: flex; flex-direction: column; justify-content: center; padding: 80px 28px 48px;
}
.menu[hidden] { display: none; }
.menu-links { display: flex; flex-direction: column; gap: 8px; }
.menu-links a {
  font-family: var(--font-head); font-weight: 300; font-size: clamp(30px, 8vw, 44px);
  letter-spacing: var(--ls-h2); color: var(--muted); padding: 8px 0; line-height: 1.25;
}
.menu-links a:hover, .menu-links a.active { color: var(--text); }
.menu-foot { margin-top: 40px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.menu-foot .lang-switch { padding: 13px 18px; }
@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .nav-links { display: none; }
  .nav.scrolled, body.menu-open .nav { background: rgba(10, 12, 25, 0.9); }
  body.menu-open .nav.on-light { background: transparent; border-color: transparent; }
  body.menu-open .nav.on-light .nav-logo { color: var(--text); }
  body.menu-open .nav.on-light .nav-burger span { background: var(--text); }
}
@media (min-width: 861px) { .menu { display: none !important; } }

/* ---------- type ---------- */
h1 { font-family: var(--font-head); font-weight: 300; font-size: clamp(36px, 4.6vw, 58px); line-height: var(--lh-head); letter-spacing: var(--ls-h1); margin-bottom: 22px; }
h2 { font-family: var(--font-head); font-weight: 300; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: var(--ls-h2); line-height: var(--lh-head); margin-bottom: 14px; }
h3 { font-family: var(--font-head); font-weight: 300; font-size: 24px; letter-spacing: var(--ls-h3); line-height: 1.25; }
.eyebrow {
  font-family: var(--font-head); font-weight: 400; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #b9c3e0;
  margin-bottom: 22px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); flex: none; }
.eyebrow.v::before { background: var(--violet); }
.lead { color: var(--muted); font-size: 17.5px; max-width: 620px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 20px; border-radius: 100px;
  font-size: 13.5px; font-weight: 500; position: relative; overflow: hidden; transition: opacity .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
html[dir="rtl"] .btn:hover svg { transform: translateX(-3px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { opacity: .88; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
@media (pointer: coarse), (max-width: 700px) { .btn { min-height: 46px; padding: 11px 22px; } }

/* ============================================================
   HOME HERO - full viewport, aurora blobs, kinetic headline
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 48px) 0 64px; overflow: hidden; }
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .8; will-change: transform;
  animation: drift 26s ease-in-out infinite alternate; animation-play-state: paused;
}
.hero.anim-run .aurora i { animation-play-state: running; }
.aurora i:nth-child(1) { width: 58vw; height: 58vw; max-width: 760px; max-height: 760px; inset-inline-end: -14vw; top: -22vh; background: radial-gradient(circle at 40% 40%, rgba(142, 123, 255, 0.42), rgba(142, 123, 255, 0) 65%); }
.aurora i:nth-child(2) { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; inset-inline-start: -12vw; bottom: -18vh; background: radial-gradient(circle at 50% 50%, rgba(77, 163, 255, 0.30), rgba(77, 163, 255, 0) 65%); animation-duration: 31s; animation-delay: -9s; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; inset-inline-start: 38vw; top: 8vh; background: radial-gradient(circle at 50% 50%, rgba(184, 169, 255, 0.20), rgba(184, 169, 255, 0) 65%); animation-duration: 22s; animation-delay: -15s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6%, 5%, 0) scale(1.08); }
  100% { transform: translate3d(5%, -6%, 0) scale(0.96); }
}
.grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; width: 100%; }
.hero .eyebrow { margin-bottom: 22px; font-family: var(--font-head); font-weight: 400; font-size: 14px; letter-spacing: 0.1em; color: #b9c3e0; }
.hero .eyebrow .ltr { letter-spacing: 0.1em; }
.hero h1 { margin-bottom: 22px; font-size: clamp(32px, 3.6vw, 48px); }
.hero h1 .ln { display: block; }
.hero h1 .w { display: inline-block; }
.hero.in h1 .w { animation: wordIn .9s var(--ease) both; }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.45em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hero-sub { font-size: 17.5px; color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.hero.in .hero-sub { animation: riseIn .9s .55s var(--ease) both; }
.hero.in .btn-row { animation: riseIn .9s .72s var(--ease) both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-photo { position: relative; justify-self: center; }
.hero.in .hero-photo { animation: riseIn 1.1s .35s var(--ease) both; }
.photo-stage { position: relative; width: clamp(220px, 22vw, 306px); aspect-ratio: 5 / 6; display: flex; align-items: flex-end; justify-content: center; }
.photo-stage::before {
  content: ""; position: absolute; inset: 8% 2% 0; z-index: 0; border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(ellipse at 50% 38%, rgba(142, 123, 255, 0.46), rgba(77, 163, 255, 0.16) 58%, transparent 80%); filter: blur(26px);
}
.photo-stage::after { content: ""; position: absolute; inset: auto 6% 0; height: 44%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 12, 25, 0) 0%, rgba(10, 12, 25, 0.92) 100%); border-radius: 0 0 var(--radius) var(--radius); }
.photo-stage img { position: relative; z-index: 1; width: auto; height: 96%; max-width: 100%; object-fit: contain; object-position: bottom center; }
/* floating stat chips around the portrait */
.hero-chip {
  position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(14, 18, 40, 0.72); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(4, 6, 18, 0.45); will-change: transform;
}
.hero.in .hero-chip { animation: riseIn .8s var(--ease) both; }
.hero.in .hero-chip.c1 { animation-delay: 1s; }
.hero.in .hero-chip.c2 { animation-delay: 1.15s; }
.hero.in .hero-chip.c3 { animation-delay: 1.3s; }
.hero-chip b { font-family: var(--font-head); font-weight: 400; font-size: 22px; line-height: 1; direction: ltr; letter-spacing: -0.02em; }
.hero-chip b.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-chip span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.hero-chip.c1 { top: 12%; inset-inline-start: -22%; }
.hero-chip.c2 { top: 46%; inset-inline-end: -16%; }
.hero-chip.c3 { bottom: 10%; inset-inline-start: -14%; }
.scroll-cue {
  position: absolute; bottom: 26px; inset-inline-start: 28px; display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.scroll-cue i { width: 44px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; display: block; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: cue 2.2s var(--ease) infinite; }
html[dir="rtl"] .scroll-cue i::after { animation-name: cueRtl; }
@keyframes cue { 0% { transform: translateX(-100%); } 60% { transform: translateX(0); } 100% { transform: translateX(100%); } }
@keyframes cueRtl { 0% { transform: translateX(100%); } 60% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@media (max-width: 1200px) {
  .hero-chip.c2 { inset-inline-end: -2%; }
  .hero-chip.c1 { inset-inline-start: -14%; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { justify-self: start; }
  .hero-chip.c1 { inset-inline-start: auto; inset-inline-end: -30%; top: 6%; }
  .hero-chip.c3 { inset-inline-start: auto; inset-inline-end: -36%; bottom: 30%; }
  .hero-chip.c2 { inset-inline-end: auto; inset-inline-start: -6%; top: 60%; }
}
@media (max-width: 600px) {
  .hero { padding: calc(var(--nav-h) + 24px) 0 56px; min-height: 0; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 38px); }
  .hero-sub { font-size: 17px; }
  .photo-stage { width: 210px; }
  .hero-chip { position: static; padding: 8px 12px; }
  .hero.in .hero-chip { animation: none; }
  .hero-chip b { font-size: 18px; }
  .hero-chips-m { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  .scroll-cue { display: none; }
}
@media (min-width: 601px) { .hero-chips-m { display: contents; } }


/* ---------- tools marquee (logos) ---------- */
.tools { padding: 34px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(13, 16, 36, 0.5); overflow: hidden; }
.tools-label { text-align: center; font-family: var(--font-head); font-size: 13px; letter-spacing: .02em; color: var(--faint); margin-bottom: 22px; }
.tools-track { display: flex; width: max-content; will-change: transform; animation: tick 40s linear infinite; animation-play-state: paused; }
.tools.anim-run .tools-track { animation-play-state: running; }
.tools:hover .tools-track { animation-play-state: paused; }
.tools-track > ul { display: flex; list-style: none; direction: ltr; }
.tool { display: inline-flex; align-items: center; gap: 12px; padding: 0 34px; white-space: nowrap; color: rgba(236, 240, 252, 0.78); font-family: 'Inter Tight', 'Inter', var(--font-head); font-weight: 400; font-size: 19px; letter-spacing: -0.01em; }
.tool img, .tool svg { width: 26px; height: 26px; opacity: .9; display: block; }
.tool .wm { font-weight: 500; letter-spacing: -0.02em; }
.tool .wm.pr { font-weight: 500; color: #fff; padding: 2px 9px; border: 1.5px solid rgba(236, 240, 252, 0.6); border-radius: 6px; font-size: 15px; }
html[dir="rtl"] .tools-track { animation-name: tickRtl; }
@media (max-width: 600px) { .tool { padding: 0 22px; font-size: 16px; } .tool img, .tool svg { width: 22px; height: 22px; } }

/* ---------- screen frame for site videos ---------- */
.screen { width: 100%; border-radius: 12px; border: 1px solid var(--line-strong); background: #0d1124; overflow: hidden; box-shadow: 0 30px 70px rgba(4, 6, 18, 0.55); }
.screen-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: rgba(18, 22, 51, 0.9); }
.screen-bar .url { flex: 1; margin-inline-start: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); background: rgba(10, 12, 25, 0.6); border-radius: 6px; padding: 4px 10px; direction: ltr; text-align: left; }
.screen video, .screen img { width: 100%; display: block; aspect-ratio: 1600 / 765; object-fit: cover; }

/* ---------- phone dashboard mock (sales agents) ---------- */
.phone { width: 250px; border-radius: 30px; border: 1px solid rgba(170, 176, 255, 0.35); background: #0b0e20; padding: 10px; box-shadow: 0 30px 70px rgba(4, 6, 18, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.04); direction: rtl; }
.phone-in { border-radius: 22px; background: #f5f7fc; color: #15172b; overflow: hidden; font-family: var(--font-body); }
.ph-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; font-size: 11px; font-weight: 500; }
.ph-top b { font-family: 'Inter Tight', sans-serif; font-weight: 600; letter-spacing: .06em; background: linear-gradient(90deg, #4f46e5, #d946ef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-tabs { display: flex; gap: 6px; padding: 4px 12px 10px; overflow: hidden; }
.ph-tabs span { font-size: 9.5px; padding: 4px 8px; border-radius: 100px; background: #fff; border: 1px solid rgba(20, 22, 48, 0.12); white-space: nowrap; color: #3b4160; }
.ph-tabs span.on { background: #15172b; color: #fff; border-color: #15172b; }
.ph-card { margin: 0 10px 8px; background: #fff; border-radius: 12px; padding: 10px 12px; border: 1px solid rgba(20, 22, 48, 0.08); }
.ph-card .t { font-size: 10px; font-weight: 500; margin-bottom: 8px; display: flex; justify-content: space-between; }
.ph-card .t i { font-style: normal; color: #1e8bff; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 54px; }
.bars i { flex: 1; background: linear-gradient(180deg, #4f8dff, #2563eb); border-radius: 3px 3px 0 0; height: var(--h); transform-origin: bottom; transform: scaleY(0); }
.anim-run .bars i { animation: barUp .8s var(--ease) forwards; }
.bars i:nth-child(2) { animation-delay: .08s !important; } .bars i:nth-child(3) { animation-delay: .16s !important; } .bars i:nth-child(4) { animation-delay: .24s !important; } .bars i:nth-child(5) { animation-delay: .32s !important; } .bars i:nth-child(6) { animation-delay: .4s !important; } .bars i:nth-child(7) { animation-delay: .48s !important; } .bars i:nth-child(8) { animation-delay: .56s !important; }
@keyframes barUp { to { transform: scaleY(1); } }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 10px 12px; }
.kpi { background: #fff; border: 1px solid rgba(20, 22, 48, 0.08); border-radius: 10px; padding: 8px 10px; }
.kpi small { display: block; font-size: 9px; color: #5a6080; margin-bottom: 5px; }
.kpi i { display: block; height: 7px; width: 70%; border-radius: 4px; background: linear-gradient(90deg, #1e8bff, #6fd3ff); }
.kpi.down i { background: linear-gradient(90deg, #f59e0b, #ef4444); width: 45%; }
@media (max-width: 400px) { .phone { width: 220px; } }

/* ---------- method v2: compact horizontal process ---------- */
.method-head { max-width: 780px; margin-bottom: 52px; }
.method-head p { color: var(--muted); font-size: 17px; }
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-top: 36px; }
.process::before { content: ""; position: absolute; top: 8px; inset-inline-start: 12.5%; inset-inline-end: 12.5%; height: 1px; background: var(--line); }
.process .prail { position: absolute; top: 8px; inset-inline-start: 12.5%; height: 1px; width: 0; max-width: 75%; background: linear-gradient(90deg, #4da3ff, #6fd3ff); box-shadow: 0 0 14px rgba(111, 211, 255, .7); transition: width .12s linear; }
.process .prail::after { content: ""; position: absolute; top: -4px; inset-inline-end: -4px; width: 9px; height: 9px; border-radius: 50%; background: #6fd3ff; box-shadow: 0 0 16px #6fd3ff; }
.pstep { position: relative; text-align: center; padding: 0 6px; opacity: .45; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pstep::before { content: ""; position: absolute; top: -32px; inset-inline-start: 50%; margin-inline-start: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); transition: background .3s, box-shadow .3s, border-color .3s; }
.pstep.on { opacity: 1; transform: none; }
.pstep.on::before { background: #6fd3ff; border-color: #6fd3ff; box-shadow: 0 0 0 6px rgba(111, 211, 255, .14), 0 0 14px rgba(111, 211, 255, .8); }
.pstep .n { font-family: var(--font-head); font-size: 12.5px; letter-spacing: .04em; color: #7fcfff; display: block; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.pstep h3 { font-size: 20px; font-weight: 400; margin-bottom: 6px; }
.pstep p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 26px; padding-top: 0; padding-inline-start: 34px; }
  .process::before { top: 6px; bottom: 6px; inset-inline-start: 4px; inset-inline-end: auto; width: 1px; height: auto; }
  .process .prail { inset-inline-start: 4px; top: 6px; width: 1px !important; max-width: none; height: 0; background: linear-gradient(180deg, #4da3ff, #6fd3ff); }
  .process .prail::after { inset-inline-end: -4px; top: auto; bottom: -4px; }
  .pstep { text-align: start; }
  .pstep::before { top: 6px; inset-inline-start: -34px; margin: 0; }
}

/* ---------- ticker (marquee) ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; overflow: hidden; background: rgba(13, 16, 36, 0.5); }
.ticker-track { display: flex; gap: 0; width: max-content; will-change: transform; animation: tick 44s linear infinite; animation-play-state: paused; }
.ticker.anim-run .ticker-track { animation-play-state: running; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track > ul { display: flex; list-style: none; gap: 0; }
.ticker li { display: inline-flex; align-items: center; gap: 22px; padding-inline-end: 22px; font-family: var(--font-head); font-weight: 300; font-size: 15.5px; color: var(--muted); white-space: nowrap; letter-spacing: 0; }
.ticker li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); opacity: .75; }
@keyframes tick { to { transform: translateX(-50%); } }
html[dir="rtl"] .ticker-track { animation-name: tickRtl; }
@keyframes tickRtl { to { transform: translateX(50%); } }

/* ---------- the painted line ---------- */
.drive { padding: 90px 0 70px; }
.drive-line { font-family: var(--font-head); font-weight: 300; font-size: clamp(24px, 3vw, 38px); line-height: 1.25; letter-spacing: var(--ls-h2); max-width: 900px; color: var(--text); }
.drive-line .dw { color: rgba(232, 240, 255, 0.18); transition: color .25s linear; }
.drive-line .dw.on { color: var(--text); }
.drive-note { margin-top: 26px; color: var(--muted); font-size: 17px; max-width: 620px; }

/* ---------- numbers strip ---------- */
.numbers { padding: 0 0 100px; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid var(--line); }
.num { padding: 34px 6px 0; position: relative; }
.num + .num::before { content: ""; position: absolute; inset-inline-start: -14px; top: 34px; bottom: 0; width: 1px; background: var(--line); }
.metric-num {
  font-family: var(--font-head); font-weight: 200; font-size: clamp(34px, 3.9vw, 60px); letter-spacing: -0.03em; line-height: 1;
  direction: ltr; display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.metric-num small { font-size: .42em; letter-spacing: 0; font-weight: 300; vertical-align: .55em; margin-inline-start: 4px; }
.num-label { color: var(--text); font-size: 15.5px; margin-top: 10px; font-weight: 500; line-height: 1.35; }
.num-sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
@media (max-width: 900px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .num + .num::before { display: none; }
  .num:nth-child(3), .num:nth-child(4) { border-top: 1px solid var(--line); }
}

/* ---------- section head ---------- */
section { padding: 80px 0; scroll-margin-top: 64px; }
.sec-head { margin-bottom: 48px; max-width: 640px; }
.sec-head p { color: var(--muted); font-size: 17px; }
.sec-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sec-head.split > div { max-width: 640px; }
.sec-link { margin-top: 22px; font-size: 14.5px; font-weight: 500; color: var(--text); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.sec-link svg { width: 16px; height: 16px; color: var(--accent); transition: transform .3s var(--ease); }
.sec-link:hover svg { transform: translateX(4px); }
html[dir="rtl"] .sec-link svg { transform: scaleX(-1); }
html[dir="rtl"] .sec-link:hover svg { transform: scaleX(-1) translateX(4px); }

/* ============================================================
   STACKING PROJECT CARDS (home)
   ============================================================ */
.stack-sec { padding-top: 40px; padding-bottom: 40px; }
.stack { display: flex; flex-direction: column; gap: 0; }
.stack-card {
  position: sticky; top: calc(var(--nav-h) + 20px);
  min-height: calc(100svh - var(--nav-h) - 130px); max-height: 700px;
  margin-bottom: 48px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 24, 54, 0.98), rgba(14, 17, 38, 0.98));
  box-shadow: 0 -20px 60px rgba(4, 6, 18, 0.5);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  padding: 48px 52px; overflow: hidden; will-change: transform, filter; transform-origin: 50% 0;
}
.stack-card:nth-child(2) { top: calc(var(--nav-h) + 36px); }
.stack-card:nth-child(3) { top: calc(var(--nav-h) + 52px); }
.stack-card:nth-child(4) { top: calc(var(--nav-h) + 68px); }
.stack-card:nth-child(5) { top: calc(var(--nav-h) + 84px); }
.stack-card:nth-child(6) { top: calc(var(--nav-h) + 100px); }
.stack-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(184, 169, 255, 0.5), transparent); }
.stack-card .idx { font-family: var(--font-head); font-size: 13px; letter-spacing: .02em; color: var(--faint); display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.stack-card .idx b { font-weight: 500; color: var(--violet-2); font-variant-numeric: tabular-nums; }
.stack-card .idx::after { content: ""; width: 26px; height: 1px; background: var(--line-strong); }
.stack-card h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 14px; }
.stack-card p { color: var(--muted); font-size: 16px; max-width: 480px; }
.result { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.result b { font-family: var(--font-head); font-weight: 200; font-size: 38px; letter-spacing: -0.03em; line-height: 1; direction: ltr; color: #9fd0ff; }
.result span { font-size: 13.5px; color: var(--muted); }
.stack-card .work-link { margin-top: 22px; }
.stack-visual { position: relative; min-height: 320px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.stack-visual.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.stack-visual.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(10, 12, 25, 0) 40%, rgba(10, 12, 25, 0.55)); }
@media (max-width: 980px) {
  .stack-card { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; min-height: 0; max-height: none; align-items: start; }
  .stack-visual { min-height: 240px; }
  .stack-card h3 { font-size: 26px; }
}
@media (max-width: 600px) {
  .stack-card { position: relative; top: auto !important; padding: 26px 22px; margin-bottom: 20px; box-shadow: none; }
  .result b { font-size: 36px; }
}

/* ---------- flow diagram (direction-aware, CSS only) ---------- */
.flow { width: 100%; display: flex; align-items: center; gap: 0; padding: 20px 6px; }
.flow-node { flex: 1 1 0; min-width: 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.flow-node .ic { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(18, 22, 51, 0.9); display: grid; place-items: center; color: var(--violet-2); box-shadow: 0 10px 30px rgba(4, 6, 18, 0.45); }
.flow-node .ic svg { width: 22px; height: 22px; }
.flow-node.hot .ic { border-color: rgba(142, 123, 255, 0.7); box-shadow: 0 0 0 6px rgba(142, 123, 255, 0.10), 0 10px 30px rgba(4, 6, 18, 0.45); }
.flow-node small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.flow-link { flex: 0 0 56px; height: 1px; background: var(--line-strong); position: relative; margin-bottom: 34px; }
.flow-link::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); inset-inline-start: 0; opacity: 0; box-shadow: 0 0 12px var(--accent); animation: travel 2.4s linear infinite; animation-play-state: paused; }
.anim-run .flow-link::after { animation-play-state: running; }
.flow-link:nth-of-type(2)::after { animation-delay: .6s; }
.flow-link:nth-of-type(4)::after { animation-delay: 1.2s; }
.flow-link:nth-of-type(6)::after { animation-delay: 1.8s; }
@keyframes travel { 0% { inset-inline-start: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { inset-inline-start: calc(100% - 7px); opacity: 0; } }
.flow.vertical { flex-direction: column; align-items: stretch; }
.flow.vertical .flow-link { flex-basis: 34px; width: 1px; height: 34px; margin: 0 auto; }
.flow.vertical .flow-link::after { inset-inline-start: -3px; top: 0; animation-name: travelV; }
@keyframes travelV { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 7px); opacity: 0; } }
@media (max-width: 520px) {
  .flow { flex-direction: column; align-items: stretch; gap: 0; }
  .flow-node { flex-direction: row; text-align: start; gap: 14px; }
  .flow-link { flex-basis: 26px; width: 1px; height: 26px; margin: 0 0 0 25px; }
  html[dir="rtl"] .flow-link { margin: 0 25px 0 0; }
  .flow-link::after { inset-inline-start: -3px; top: 0; animation-name: travelV; }
}

/* ---------- UI mocks: report + chat ---------- */
.mock { width: 100%; max-width: 440px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(12, 15, 36, 0.92); box-shadow: 0 30px 70px rgba(4, 6, 18, 0.55); overflow: hidden; direction: ltr; text-align: left; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(18, 22, 51, 0.9); }
.term-dots { display: flex; gap: 7px; }
.term-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-bar span { font-size: 11px; letter-spacing: .08em; color: var(--faint); }
.mock-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.mrow { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--radius-sm); background: rgba(24, 29, 63, 0.6); }
.vis .mrow, .in .mrow, .anim-run .mrow { animation: lnIn .5s var(--ease) both; }
.mrow:nth-child(2) { animation-delay: .15s !important; } .mrow:nth-child(3) { animation-delay: .3s !important; } .mrow:nth-child(4) { animation-delay: .45s !important; } .mrow:nth-child(5) { animation-delay: .6s !important; } .mrow:nth-child(6) { animation-delay: .75s !important; }
.mrow i { height: 7px; border-radius: 4px; background: rgba(170, 176, 255, 0.22); display: block; }
.mrow i.s { width: 60%; }
.pill { font-size: 10px; letter-spacing: .06em; padding: 3px 8px; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--text); white-space: nowrap; }
.pill.ok { border-color: rgba(77, 163, 255, 0.5); color: #9fd0ff; }
.pill.part { border-color: rgba(184, 169, 255, 0.55); color: var(--violet-2); }
.pill.q { border-color: rgba(255, 255, 255, 0.2); color: var(--faint); }
.mock-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--faint); }
.mock-foot b { color: var(--text); font-weight: 500; }
.chat { gap: 12px; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 10px; font-family: var(--font-body); font-size: 13px; line-height: 1.5; }
.vis .bubble, .in .bubble, .anim-run .bubble { animation: lnIn .5s var(--ease) both; }
.bubble:nth-child(2) { animation-delay: .5s !important; } .bubble:nth-child(3) { animation-delay: 1.1s !important; } .bubble:nth-child(4) { animation-delay: 1.7s !important; }
.bubble.u { align-self: flex-end; background: var(--btn-bg); color: var(--btn-ink); border-end-end-radius: 3px; }
.bubble.a { align-self: flex-start; background: rgba(24, 29, 63, 0.85); border: 1px solid var(--line); color: var(--text); border-end-start-radius: 3px; }
.bubble.a .kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.bubble.a .kv b { color: var(--text); font-weight: 500; }
html[dir="rtl"] .mock.chat { direction: rtl; text-align: right; }
@keyframes lnIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* flagship terminal (one-shot typed reveal) */
.flag-visual { width: 100%; max-width: 460px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(12, 15, 36, 0.92); box-shadow: 0 30px 70px rgba(4, 6, 18, 0.55); padding: 18px 22px 22px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); direction: ltr; text-align: left; line-height: 2.2; overflow: hidden; }
.flag-visual .term-dots { margin-bottom: 10px; }
.flag-visual .ln { display: flex; gap: 10px; white-space: nowrap; }
.flag-visual .ok { color: var(--text); } .flag-visual .ac { color: var(--violet-2); }
.vis .flag-visual .ln, .in .flag-visual .ln, .anim-run .flag-visual .ln { animation: lnIn .4s ease-out both; }
.flag-visual .ln:nth-child(3) { animation-delay: .2s !important; } .flag-visual .ln:nth-child(4) { animation-delay: .55s !important; } .flag-visual .ln:nth-child(5) { animation-delay: .9s !important; } .flag-visual .ln:nth-child(6) { animation-delay: 1.25s !important; } .flag-visual .ln:nth-child(7) { animation-delay: 1.6s !important; }
.cursor { display: inline-block; width: 7px; height: 14px; background: var(--violet-2); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 480px) { .flag-visual { padding: 14px; font-size: 11.5px; line-height: 1.9; } .flag-visual .ln { white-space: normal; } }

/* ---------- method (how I work) ---------- */
.method { position: relative; padding-top: 70px; }
.method-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.method-sticky { position: sticky; top: calc(var(--nav-h) + 40px); }
.method-sticky p { color: var(--muted); font-size: 17.5px; max-width: 460px; }
.steps { position: relative; padding-inline-start: 44px; }
.steps::before { content: ""; position: absolute; inset-inline-start: 11px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.steps .rail { position: absolute; inset-inline-start: 11px; top: 8px; width: 1px; height: 0; background: linear-gradient(180deg, #58c4ff, #4da3ff); box-shadow: 0 0 12px rgba(88, 196, 255, .6); transition: height .1s linear; }
.step { position: relative; padding: 0 0 54px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; inset-inline-start: -39px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); transition: background .3s, border-color .3s, box-shadow .3s; }
.step.on::before { background: #58c4ff; border-color: #58c4ff; box-shadow: 0 0 0 6px rgba(88, 196, 255, 0.16), 0 0 14px rgba(88, 196, 255, .7); }
.step .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: #7fcfff; margin-bottom: 8px; display: block; }
.step h3 { font-size: 26px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16.5px; max-width: 520px; }
@media (max-width: 900px) {
  .method-grid { grid-template-columns: 1fr; gap: 40px; }
  .method-sticky { position: static; }
  .step { padding-bottom: 40px; }
  .step h3 { font-size: 23px; }
}

/* ============================================================
   DEEP BAND (marketing): same palette, one shade deeper
   ============================================================ */
.band-deep { position: relative; padding: 110px 0 120px; background: linear-gradient(180deg, #0a0c19 0%, #10143a 18%, #121748 50%, #0f1338 82%, #0a0c19 100%); }
.band-deep::before, .band-deep::after { content: ""; position: absolute; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(184, 169, 255, 0.35), transparent); }
.band-deep::before { top: 0; } .band-deep::after { bottom: 0; }
.band-deep > .wrap { position: relative; z-index: 1; }
.band-deep .glow { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(70px); }
.band-deep .glow.a { width: 560px; height: 560px; inset-inline-end: -160px; top: 10%; background: rgba(142, 123, 255, 0.18); }
.band-deep .glow.b { width: 480px; height: 480px; inset-inline-start: -160px; bottom: 6%; background: rgba(77, 163, 255, 0.14); }

/* metrics box (marketing) */
.metrics-box { border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(12, 15, 36, 0.55); padding: 46px 40px 36px; margin-bottom: 48px; box-shadow: 0 30px 80px rgba(4, 6, 18, 0.45); }
.metrics-title { font-family: var(--font-head); font-size: 17px; font-weight: 500; color: var(--text); margin-bottom: 30px; text-align: center; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.metric { text-align: center; position: relative; }
.metric + .metric::before { content: ""; position: absolute; inset-inline-start: -14px; top: 15%; height: 70%; width: 1px; background: var(--line); }
.metric .metric-num { font-size: clamp(36px, 3.8vw, 54px); font-weight: 200; }
.metric-label { color: var(--text); font-size: 15px; margin-top: 8px; font-weight: 500; }
.metric-sub { color: var(--muted); font-size: 13px; margin-top: 5px; line-height: 1.5; }
.metrics-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.metrics-inline { margin: 0 0 44px; }
.metrics-inline .metrics-grid { max-width: 900px; }
@media (max-width: 860px) {
  .metrics-box { padding: 34px 22px 28px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .metrics-grid .metric:nth-child(3) { grid-column: span 2; }
  .metric + .metric::before { display: none; }
}

/* photo tiles (home marketing teaser) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; display: block; border: 1px solid var(--line-strong); background: var(--surface-2); box-shadow: 0 24px 60px rgba(4, 6, 18, 0.45); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img, .tile:hover video { transform: scale(1.05); }
.tile.vid video { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.tile.vid:hover video, .tile.vid.playing video { opacity: 1; }
.tile .cz { position: absolute; inset: 0; }
.tile .cz img { position: absolute; inset: 0; opacity: 0; animation: carousel6 18s infinite; animation-play-state: paused; }
.tile .cz.n4 img { animation-name: carousel4; animation-duration: 12s; }
.anim-run .cz img, .tile:hover .cz img { animation-play-state: running; }
.tile .cz img:nth-child(1) { animation-delay: 0s; } .tile .cz img:nth-child(2) { animation-delay: 3s; } .tile .cz img:nth-child(3) { animation-delay: 6s; } .tile .cz img:nth-child(4) { animation-delay: 9s; } .tile .cz img:nth-child(5) { animation-delay: 12s; } .tile .cz img:nth-child(6) { animation-delay: 15s; }
@keyframes carousel6 { 0% { opacity: 0; transform: scale(1.04); } 4% { opacity: 1; } 16.6% { opacity: 1; transform: scale(1); } 21% { opacity: 0; } 100% { opacity: 0; } }
@keyframes carousel4 { 0% { opacity: 0; transform: scale(1.04); } 6% { opacity: 1; } 25% { opacity: 1; transform: scale(1); } 31% { opacity: 0; } 100% { opacity: 0; } }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 25, 0) 45%, rgba(10, 12, 25, 0.82) 100%); }
.tile .t { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 18px 20px; color: #f8fafc; font-family: var(--font-head); font-weight: 400; font-size: 17px; line-height: 1.3; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tile .t svg { width: 18px; height: 18px; flex: none; color: #9fd0ff; }
html[dir="rtl"] .tile .t svg { transform: scaleX(-1); }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 16 / 9; } }

/* ---------- full-bleed film band ---------- */
.media-band { position: relative; padding: 0; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.media-band .band-media { position: absolute; inset: 0; }
.media-band .band-media img, .media-band .band-media video { width: 100%; height: 112%; object-fit: cover; display: block; will-change: transform; }
.media-band .band-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--scrim), 0.78) 0%, rgba(var(--scrim), 0.3) 26%, rgba(var(--scrim), 0.16) 50%, rgba(var(--scrim), 0.92) 100%); }
.media-band .band-content { position: relative; width: 100%; padding: 64px 0; }
.media-band h2, .media-band h3 { color: #f8fafc; }
.media-band p { color: rgba(255, 255, 255, 0.82); max-width: 560px; }
.media-band .eyebrow { color: rgba(255, 255, 255, 0.78); }
.film-box { max-width: 600px; }
.film-box .work-link { color: #f8fafc; }
.film-box .chips { margin-top: 18px; }
.film-box .chip { color: rgba(255, 255, 255, 0.78); border-color: rgba(255, 255, 255, 0.3); }
.play-chip { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 18px; }
.play-chip i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; }
.play-chip svg { width: 11px; height: 11px; fill: #fff; }
@media (max-width: 700px) { .media-band { min-height: 60vh; } }

/* ---------- cards (shared) ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 28px; position: relative; overflow: hidden; transition: border-color .25s, transform .4s var(--ease); display: flex; flex-direction: column; }
.card:hover { border-color: var(--line-strong); }
.card h3 { font-size: 20px; font-weight: 400; margin-bottom: 10px; line-height: 1.3; }
.card p { color: var(--muted); font-size: 15.5px; flex: 1; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-family: var(--font-head); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 4px 11px; direction: ltr; }
.work-link { margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--text); display: inline-flex; align-items: center; gap: 7px; min-height: 24px; }
.work-link svg { width: 15px; height: 15px; color: var(--accent); transition: transform .3s var(--ease); }
.work-link:hover svg { transform: translateX(4px); }
html[dir="rtl"] .work-link svg { transform: scaleX(-1); }
html[dir="rtl"] .work-link:hover svg { transform: scaleX(-1) translateX(4px); }
@media (max-width: 700px) { .work-link { min-height: 44px; margin-top: 8px; } }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
a.visual-link { display: block; }

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero { padding: calc(var(--nav-h) + 86px) 0 60px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -22%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(46% 38% at 76% 24%, rgba(142, 123, 255, 0.36), transparent 68%),
    radial-gradient(54% 46% at 14% 6%, rgba(77, 163, 255, 0.22), transparent 62%),
    radial-gradient(42% 38% at 52% 106%, rgba(142, 123, 255, 0.16), transparent 66%),
    linear-gradient(200deg, #161538, #0a0c19 62%);
  filter: blur(44px); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.page-hero .eyebrow { color: #c0c8e2; }
.page-hero h1 { max-width: 800px; font-size: clamp(32px, 3.8vw, 50px); }
.page-hero .hero-nums { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 36px; }
.page-hero .hero-nums div { display: flex; flex-direction: column; gap: 4px; }
.page-hero .hero-nums b { font-family: var(--font-head); font-weight: 200; font-size: 34px; letter-spacing: -0.03em; line-height: 1; direction: ltr; color: #9fd0ff; }
.page-hero .hero-nums span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .page-hero { padding: calc(var(--nav-h) + 56px) 0 44px; } .page-hero .hero-nums b { font-size: 32px; } }

/* ============================================================
   CASE STUDIES (AI page)
   ============================================================ */
.case-nav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(10, 12, 25, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-nav ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.case-nav ul::-webkit-scrollbar { display: none; }
.case-nav a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; color: var(--muted); padding: 8px 14px; border-radius: 100px; border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.case-nav a i { font-family: var(--font-head); font-size: 11.5px; color: var(--violet-2); font-style: normal; font-variant-numeric: tabular-nums; }
.case-nav a em { font-style: normal; color: var(--text); font-weight: 500; margin-inline-start: 6px; }
.case-nav a:hover { color: var(--text); }
.case-nav a.active { color: var(--text); border-color: var(--line-strong); background: rgba(24, 29, 63, 0.6); }
.cases { padding-top: 40px; }
.case { padding: 70px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 60px); }
.case:last-child { border-bottom: 0; }
.case-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.case.flip .case-grid > .case-visual { order: -1; }
.case .dept { font-family: var(--font-head); font-size: 13px; letter-spacing: .02em; color: var(--faint); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.case .dept b { color: var(--violet-2); font-weight: 500; }
.case .dept::after { content: ""; width: 26px; height: 1px; background: var(--line-strong); }
.case h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 22px; }
.case-visual { position: sticky; top: calc(var(--nav-h) + 90px); display: flex; align-items: center; justify-content: center; min-height: 300px; padding: 24px 8px; }
.case-visual::after { content: ""; position: absolute; inset: 10% 6%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(142, 123, 255, 0.22), rgba(77, 163, 255, 0.08) 55%, transparent 75%); filter: blur(30px); }
.case-visual.photo { padding: 0; border-radius: 14px; overflow: hidden; }
.case-visual.photo img { width: 100%; height: 100%; object-fit: cover; }

.blocks { display: grid; gap: 22px; }
.block { padding-inline-start: 22px; border-inline-start: 1px solid var(--line); }
.block .k { font-family: var(--font-head); font-weight: 500; font-size: 13px; letter-spacing: .02em; color: var(--violet-2); margin-bottom: 6px; display: block; }
.block p { color: var(--muted); font-size: 16px; }
.block.res { border-inline-start-color: var(--violet); }
.block.res p { color: var(--text); }
.case-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.case-stats div { display: flex; flex-direction: column; gap: 4px; }
.case-stats b { font-family: var(--font-head); font-weight: 200; font-size: 36px; letter-spacing: -0.03em; line-height: 1; direction: ltr; color: #9fd0ff; }
.case-stats span { font-size: 13px; color: var(--muted); }
.case .chips { margin-top: 26px; }
@media (max-width: 980px) {
  .case-grid { grid-template-columns: 1fr; gap: 32px; }
  .case.flip .case-grid > .case-visual { order: 0; }
  .case-visual { position: static; min-height: 240px; }
  .case { padding: 56px 0; }
}

/* cert tile */
.cert-visual { background: #f8fafc; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 26px 18px; display: flex; flex-direction: column; gap: 8px; text-align: center; direction: ltr; width: 100%; max-width: 300px; box-shadow: 0 30px 70px rgba(4, 6, 18, 0.45); }
.cert-visual .cv-brand { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: #64748b; }
.cert-visual .cv-line { font-family: var(--font-mono); font-size: 8px; letter-spacing: .22em; color: #64748b; }
.cert-visual .cv-name { font-family: var(--font-head); font-weight: 500; font-size: 18px; color: #0f172a; }
.cert-visual .cv-course { font-size: 12.5px; color: #334155; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); aspect-ratio: 4 / 3; }

/* ============================================================
   MARKETING PAGE - editorial grid
   ============================================================ */
.egrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.egrid .card.photo { padding: 0; }
.egrid .span4 { grid-column: span 4; } .egrid .span2 { grid-column: span 2; } .egrid .span3 { grid-column: span 3; }
.ph-media { position: relative; height: 280px; overflow: hidden; flex: none; border-bottom: 1px solid var(--line); }
.span4 .ph-media { height: 340px; }
.ph-media img, .ph-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.card.photo:hover .ph-media img { transform: scale(1.035); }
.ph-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(var(--scrim), 0) 40%, rgba(var(--scrim), 0.82) 100%); }
.ph-media .ph-title { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 18px 22px; color: #f8fafc; font-family: var(--font-head); font-weight: 400; font-size: 19px; letter-spacing: var(--ls-h3); line-height: 1.3; }
.card.photo .ph-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ph-media.carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: carousel6 18s infinite; animation-play-state: paused; }
.ph-media.carousel.anim-run img { animation-play-state: running; }
.ph-media.carousel img:nth-child(1) { animation-delay: 0s; } .ph-media.carousel img:nth-child(2) { animation-delay: 3s; } .ph-media.carousel img:nth-child(3) { animation-delay: 6s; } .ph-media.carousel img:nth-child(4) { animation-delay: 9s; } .ph-media.carousel img:nth-child(5) { animation-delay: 12s; } .ph-media.carousel img:nth-child(6) { animation-delay: 15s; }
.ph-media.carousel.n4 img { animation-name: carousel4; animation-duration: 12s; }
@media (max-width: 980px) { .egrid { grid-template-columns: 1fr 1fr; } .egrid .span4, .egrid .span2, .egrid .span3 { grid-column: span 1; } .span4 .ph-media { height: 280px; } }
@media (max-width: 640px) { .egrid { grid-template-columns: 1fr; } .ph-media { height: 230px; } }

/* ---------- CTA band + contact ---------- */
.cta-band { padding: 90px 0 100px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(760px 420px at 50% 115%, rgba(142, 123, 255, 0.18), transparent 62%); }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); font-size: 17px; max-width: 540px; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }
.contact-page { padding: calc(var(--nav-h) + 90px) 0 60px; position: relative; overflow: hidden; }
.contact-page::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 460px at 76% 0%, rgba(77, 163, 255, 0.13), transparent 62%), radial-gradient(560px 440px at 12% 100%, rgba(142, 123, 255, 0.12), transparent 62%); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.contact-box { border-radius: 16px; padding: 56px 44px; background: rgba(16, 20, 44, 0.7); border: 1px solid var(--line); position: relative; overflow: hidden; }
.contact-box::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(184, 169, 255, 0.6), transparent); }
.contact-box h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.contact-box p { color: var(--muted); font-size: 17px; max-width: 540px; margin: 0 0 30px; }
.contact-mail { display: inline-block; margin-top: 24px; font-family: var(--font-mono); font-size: 13px; color: var(--faint); direction: ltr; padding: 10px 0; }
.contact-mail:hover { color: var(--text); }
.contact-side { display: grid; gap: 14px; }
.side-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: rgba(16, 20, 44, 0.5); }
.side-item .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-2); display: block; margin-bottom: 8px; }
.side-item p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-box { padding: 40px 26px; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; background: var(--bg-2); position: relative; overflow: hidden; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.footer-brand { font-family: var(--font-head); font-size: 12.5px; letter-spacing: .04em; color: var(--faint); direction: ltr; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.footer-links a { color: var(--muted); font-size: 13.5px; padding: 12px 12px; min-height: 44px; display: inline-flex; align-items: center; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
@media (max-width: 700px) { .footer-inner { justify-content: center; } .footer-brand { width: 100%; text-align: center; } .footer-links { justify-content: center; } }

/* ---------- reveals ---------- */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-up.vis { opacity: 1; transform: none; }
.reveal { opacity: 0; filter: blur(14px); transform: translateY(12px); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
.reveal.vis { opacity: 1; filter: none; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero h1 .w, .hero-sub, .hero .btn-row, .hero-photo, .hero-chip { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  .aurora i, .ticker-track, .scroll-cue i::after, .flow-link::after, .cursor { animation: none !important; }
  .mrow, .bubble, .flag-visual .ln { opacity: 1 !important; transform: none !important; animation: none !important; }
  .ph-media.carousel img { animation: none; opacity: 0; } .ph-media.carousel img:first-child { opacity: 1; }
  .drive-line .dw { color: var(--text); transition: none; }
  .steps .rail { height: 100% !important; }
  .step::before { background: var(--violet); border-color: var(--violet); }
  .nav-burger span { transition: none; }
  .tdot { animation: none; opacity: .6; }
}

/* ============================================================
   ON-PAGE AGENT (logic in agent.js, untouched)
   ============================================================ */
.agent-fab { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: #f4f7ff; color: #0a0d15; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 100px; padding: 10px 16px; font-family: var(--font-body); font-size: 13px; font-weight: 500; cursor: pointer; transition: opacity .2s, background .2s, color .2s, border-color .2s; }
.agent-fab svg { width: 15px; height: 15px; }
.agent-fab:hover { opacity: .85; }
.agent-fab.on-light { background: #15172b; color: #fafafa; border-color: #15172b; }
.agent-panel { position: fixed; bottom: 84px; inset-inline-end: 20px; z-index: 71; width: min(380px, calc(100vw - 40px)); height: min(540px, calc(100dvh - 120px)); display: flex; flex-direction: column; background: #0d1120; border: 1px solid rgba(164, 190, 255, 0.22); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(4, 7, 14, .55); }
.agent-panel[hidden] { display: none; }
.agent-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(164, 190, 255, 0.10); background: #101626; }
.agent-head .term-dots { margin-bottom: 0; }
.agent-title { font-family: var(--font-mono); font-size: 12.5px; color: #f2f5fb; direction: ltr; }
.agent-mode { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #93a0ba; border: 1px solid rgba(164, 190, 255, 0.22); border-radius: 100px; padding: 3px 8px; }
.agent-close { margin-inline-start: auto; width: 34px; height: 34px; border: 0; border-radius: var(--radius-sm); background: transparent; color: #93a0ba; font-size: 20px; line-height: 1; cursor: pointer; transition: color .2s, background .2s; }
.agent-close:hover { color: #f2f5fb; background: #16203a; }
.agent-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 8px; font-size: 14px; line-height: 1.55; }
.msg.bot { align-self: flex-start; background: #16203a; border: 1px solid rgba(164, 190, 255, 0.10); color: #f2f5fb; border-start-start-radius: 4px; }
.msg.bot a { color: #f2f5fb; text-decoration: underline; text-underline-offset: 2px; }
.msg.user { align-self: flex-end; background: #f4f7ff; color: #0a0d15; font-weight: 500; border-start-end-radius: 4px; }
.msg.typing { display: inline-flex; gap: 5px; align-items: center; min-height: 20px; }
.tdot { width: 6px; height: 6px; border-radius: 50%; background: #93a0ba; animation: tblink 1s infinite; }
.tdot:nth-child(2) { animation-delay: .18s; } .tdot:nth-child(3) { animation-delay: .36s; }
@keyframes tblink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.agent-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.agent-chip { font-family: var(--font-body); font-size: 12.5px; color: rgba(222, 232, 252, 0.72); background: transparent; border: 1px solid rgba(164, 190, 255, 0.22); border-radius: 100px; padding: 11px 14px; min-height: 44px; cursor: pointer; transition: border-color .2s, color .2s; }
.agent-chip:hover { border-color: #f2f5fb; color: #f2f5fb; }
.agent-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(164, 190, 255, 0.10); }
.agent-input { flex: 1; background: #16203a; border: 1px solid rgba(164, 190, 255, 0.22); border-radius: 8px; padding: 11px 14px; color: #f2f5fb; font-family: var(--font-body); font-size: 14px; outline: none; transition: border-color .2s; }
.agent-input:focus { border-color: #f2f5fb; }
.agent-input::placeholder { color: #93a0ba; }
.agent-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: #f4f7ff; color: #0a0d15; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: opacity .2s; }
.agent-send svg { width: 17px; height: 17px; }
html[dir="rtl"] .agent-send svg { transform: scaleX(-1); }
.agent-send:hover { opacity: .85; }
.agent-note { padding: 0 16px 12px; text-align: center; font-size: 11px; color: #93a0ba; }
@media (max-width: 600px) {
  .agent-fab { bottom: 14px; inset-inline-end: 14px; padding: 10px 15px; font-size: 12.5px; }
  .agent-panel { inset-inline: 12px; width: auto; bottom: 74px; height: min(520px, calc(100dvh - 96px)); }
}

/* ---------- compact cases (AI page: the two smaller automations) ---------- */
.cases-more { padding: 70px 0 20px; }
.cases-more h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 34px; }
.compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.compact { display: grid; grid-template-columns: 1fr 150px; gap: 22px; align-items: center; padding: 26px 28px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(20, 24, 54, 0.6), rgba(14, 17, 38, 0.6)); }
.compact h3 { font-size: 22px; font-weight: 400; margin-bottom: 8px; }
.compact p { color: var(--muted); font-size: 15.5px; }
.compact .cres { margin-top: 14px; font-size: 14px; color: #9fd0ff; font-weight: 500; }
.compact .cvis { display: flex; align-items: center; justify-content: center; }
.compact .cvis img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.compact .flow.vertical { padding: 0; }
.compact .flow-node small { font-size: 11.5px; }
.compact .flow-node .ic { width: 40px; height: 40px; border-radius: 11px; }
.compact .flow-node .ic svg { width: 18px; height: 18px; }
.compact .flow.vertical .flow-link { height: 18px; flex-basis: 18px; }
@media (max-width: 900px) { .compact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .compact { grid-template-columns: 1fr; } .compact .cvis { justify-content: flex-start; } }

/* ---------- browser surfaces carry the palette ---------- */
html { scrollbar-color: rgba(142, 123, 255, 0.45) rgba(10, 12, 25, 0.9); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0c19; }
::-webkit-scrollbar-thumb { background: rgba(142, 123, 255, 0.4); border-radius: 100px; border: 2px solid #0a0c19; }
::-webkit-scrollbar-thumb:hover { background: rgba(142, 123, 255, 0.65); }

/* ============================================================
   Round 14: calmer, aligned, mobile-first corrections
   ============================================================ */
h1, h2, h3 { text-wrap: balance; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(142, 123, 255, 0.18); }
.tool img.wide { width: 46px; height: 26px; object-fit: contain; }
.tool .wm.pr { font-size: 16px; padding: 3px 12px; }

/* stack cards are fully opaque: nothing shows through the deck */
.stack-card { background: linear-gradient(180deg, #141836, #0e1126); }
.result { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.result b { white-space: nowrap; }
.case-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; max-width: 520px; }
.case-stats b { white-space: nowrap; }

/* marketing band: quieter, closer to the base */
.band-deep { background: linear-gradient(180deg, #0a0c19 0%, #0d1030 22%, #0e1233 60%, #0a0c19 100%); padding: 90px 0 100px; }
.band-deep .glow.a { background: rgba(142, 123, 255, 0.10); }
.band-deep .glow.b { background: rgba(77, 163, 255, 0.09); }
.metrics-inline { margin: 0 0 36px; }
.metrics-inline .metrics-grid { max-width: none; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.metrics-grid .metric:nth-child(3) { grid-column: auto; }
.metric + .metric::before { inset-inline-start: -10px; display: block; }
.tile { aspect-ratio: 16 / 10; }

/* film: clean video, caption underneath */
.film { padding: 0 0 70px; }
.film-media { width: 100%; aspect-ratio: 21 / 9; max-height: 78vh; overflow: hidden; background: #070914; }
.film-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-cap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; }
.film-cap h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 6px; }
.film-cap p { color: var(--muted); font-size: 16px; max-width: 520px; }
.film-cap .work-link { margin-top: 0; }

/* closing */
.cta-band h2 { font-size: clamp(24px, 3vw, 36px); }
.cta-band p { margin-bottom: 6px; }
.cta-big { font-family: var(--font-head); font-weight: 300; font-size: clamp(30px, 4vw, 48px) !important; color: var(--text) !important; margin: 18px auto 26px !important; letter-spacing: var(--ls-h2); }

/* contact: one calm column, process as a line (no boxes) */
.contact-one { max-width: 860px; }
.contact-head h1 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 12px; }
.contact-head p { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.how { margin-top: 72px; padding-top: 34px; border-top: 1px solid var(--line); }
.how h2 { font-size: 20px; font-weight: 400; color: var(--faint); margin-bottom: 26px; }
.how-line { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: how; }
.how-line li { counter-increment: how; position: relative; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.how-line li::before { content: ""; position: absolute; top: -4px; inset-inline-start: 0; width: 7px; height: 7px; border-radius: 50%; background: #6fd3ff; box-shadow: 0 0 12px rgba(111, 211, 255, .7); }
.how-line b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 20px; margin-bottom: 6px; }
.how-line span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .how-line { grid-template-columns: 1fr 1fr; gap: 26px 20px; } }

/* AI page: one consistent layout, text first */
.page-hero { padding-bottom: 44px; }
.case-grid { align-items: center; }
.case-visual { position: relative; top: auto; }
.compact { grid-template-columns: 1fr 230px; }
.compact .cvis img { aspect-ratio: 4 / 3; }

/* ---------- mobile ---------- */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  section { padding: 56px 0; }
  .drive { padding: 60px 0 48px; }
  .sec-head { margin-bottom: 28px; }
  .sec-head.split { gap: 4px; }
  .sec-link { margin-top: 4px; }
  .stack-card { padding: 24px 20px; gap: 20px; border-radius: 14px; }
  .stack-card .idx { margin-bottom: 14px; font-size: 12.5px; }
  .stack-card .idx::after { display: none; }
  .stack-card h3 { font-size: 21px; margin-bottom: 10px; }
  .stack-card p { font-size: 15px; }
  .result { margin-top: 18px; padding-top: 16px; gap: 14px; width: 100%; }
  .result b { font-size: 32px; }
  .result span { font-size: 13px; }
  .stack-card .work-link { margin-top: 6px; }
  .stack-visual { min-height: 0; }
  .stack-card .mrow:nth-child(n+4) { display: none; }
  .phone { width: 210px; }
  /* flows: one compact horizontal row instead of a tall column */
  html body .flow, html body .flow.vertical { flex-direction: row; align-items: flex-start; padding: 6px 0; gap: 0; }
  html body .flow .flow-node { flex: 1 1 0; flex-direction: column; text-align: center; gap: 7px; }
  html body .flow .flow-node .ic { width: 40px; height: 40px; border-radius: 11px; }
  html body .flow .flow-node .ic svg { width: 18px; height: 18px; }
  html body .flow .flow-node small { font-size: 10.5px; line-height: 1.25; }
  html body .flow .flow-link { flex: 0 0 12px; width: auto; height: 1px; margin: 20px 0 0; }
  html body .flow .flow-link::after { top: -3px; inset-inline-start: 0; animation-name: travel; }
  .case { padding: 44px 0; }
  .case-grid { gap: 24px; }
  .case-visual { min-height: 0; padding: 8px 0; }
  .case-stats { gap: 14px 20px; margin-top: 22px; padding-top: 18px; }
  .case-stats b { font-size: 30px; }
  .band-deep { padding: 60px 0 64px; }
  .metrics-inline .metrics-grid, .metrics-box .metrics-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .metric .metric-num { font-size: clamp(24px, 7.4vw, 34px); }
  .metric-label { font-size: 12.5px; margin-top: 4px; }
  .metric-sub { display: none; }
  .metric + .metric::before { inset-inline-start: -4px; }
  .metrics-box { padding: 26px 14px 20px; }
  .tiles { gap: 14px; }
  .film { padding-bottom: 48px; }
  .film-media { aspect-ratio: 16 / 9; }
  .film-cap { padding-top: 18px; gap: 10px; }
  .cta-band { padding: 60px 0 70px; }
  .compact { grid-template-columns: 1fr; }
  .compact .cvis img { aspect-ratio: 16 / 9; }
  .how { margin-top: 48px; }
}
/* calmer LinkedIn carousel on the marketing page: 5s per slide */
.ph-media.carousel img { animation-duration: 30s; }
.ph-media.carousel img:nth-child(2) { animation-delay: 5s; } .ph-media.carousel img:nth-child(3) { animation-delay: 10s; } .ph-media.carousel img:nth-child(4) { animation-delay: 15s; } .ph-media.carousel img:nth-child(5) { animation-delay: 20s; } .ph-media.carousel img:nth-child(6) { animation-delay: 25s; }
