/* ==========================================================================
   DRIFTX — Business, Evolved.
   Design system + all sections. Zero external dependencies.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* Base surfaces (deep navy / graphite) */
  --bg-0: #070A14;
  --bg-1: #0B1020;
  --bg-2: #10152A;
  --bg-3: #161C34;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-strong: rgba(255, 255, 255, 0.18);

  /* Brand + living accents */
  --brand: #F7A200;        /* DriftX signature orange (the X star) */
  --brand-soft: #FFB733;
  --blue: #2E7DFF;         /* electric blue */
  --violet: #8B5CF6;       /* violet */
  --turq: #22D3EE;         /* turquoise */
  --lime: #A3E635;         /* lime */
  --coral: #FF6B5B;        /* warm coral */
  --yellow: #FFD400;       /* electric yellow (brand heritage) */
  --acid: #C6FF3A;         /* acid green */
  --pink: #FF2E7E;         /* hot pink */
  --purple: #A855F7;       /* purple */

  /* Per-section "world" accent — overridden by [data-world] */
  --accent: var(--brand);
  --accent-2: var(--coral);

  /* Text */
  --ink: #F4F7FC;
  --ink-2: #C4CCDE;
  --ink-3: #8B95AC;
  --ink-4: #5C6580;

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    system-ui, "Helvetica Neue", Arial, "Noto Sans Hebrew", "Noto Sans Arabic", sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 28px;
  --nav-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  /* Gradients */
  --grad-brand: linear-gradient(100deg, var(--brand), var(--coral));
  --grad-cool: linear-gradient(120deg, var(--blue), var(--violet) 55%, var(--turq));
  --grad-text: linear-gradient(100deg, #fff 0%, #cfd8ec 100%);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .cursor-dot, .cursor-ring { display: none !important; }
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---- Living background: gradient mesh ---- */
.mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg-0);
}
.mesh::before, .mesh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.mesh::before {
  width: 60vmax; height: 60vmax;
  left: -10vmax; top: -15vmax;
  background: radial-gradient(circle at 30% 30%, var(--blue), transparent 60%);
  animation: drift1 28s var(--ease) infinite alternate;
}
.mesh::after {
  width: 55vmax; height: 55vmax;
  right: -12vmax; top: 20vmax;
  background: radial-gradient(circle at 60% 40%, var(--violet), transparent 60%);
  animation: drift2 34s var(--ease) infinite alternate;
}
.mesh .blob-3 {
  position: absolute;
  width: 45vmax; height: 45vmax;
  left: 40%; bottom: -20vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  background: radial-gradient(circle at 50% 50%, var(--turq), transparent 60%);
  animation: drift3 40s var(--ease) infinite alternate;
}
.mesh .grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}
@keyframes drift1 { to { transform: translate(15vmax, 10vmax) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-12vmax, 8vmax) scale(1.15); } }
@keyframes drift3 { to { transform: translate(-15vmax, -10vmax) scale(1.25); } }

/* ==========================================================================
   Custom cursor
   ========================================================================== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { display: none; } /* native cursor stays visible; ring is an additive accent */
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: width .25s var(--ease), height .25s var(--ease),
    border-color .25s var(--ease), background .25s var(--ease);
}
.cursor-ring.is-hover {
  width: 74px; height: 74px;
  border-color: var(--brand);
  background: rgba(247,162,0,0.08);
  backdrop-filter: blur(2px);
}
.cursor-ring .cursor-label {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--brand); opacity: 0;
  white-space: nowrap; text-transform: uppercase;
  display: grid; place-items: center; height: 100%;
  transition: opacity .2s;
}
.cursor-ring.is-hover .cursor-label { opacity: 1; }
@media (max-width: 900px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
/* Native cursor is always visible; the ring is a subtle trailing accent only. */

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 12, 24, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--stroke);
}
.nav__inner {
  width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  position: relative; padding: 6px 0; transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--grad-brand); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 18px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 2px; font-weight: 800;
  font-size: 24px; letter-spacing: -0.02em; color: var(--ink); }
.logo__x { width: 26px; height: 26px; margin-left: 1px; }
.logo__x path { fill: var(--brand); }

/* Language switcher */
.lang { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--stroke);
  border-radius: 999px; background: var(--surface); }
.lang button {
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  color: var(--ink-3); transition: all .2s; letter-spacing: .02em;
}
.lang button.active { background: var(--grad-brand); color: #1a1300; }

/* Menu toggle (full-screen) */
.menu-toggle { display: none; align-items: center; gap: 10px; font-weight: 600;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.menu-toggle .bars { width: 22px; height: 12px; position: relative; }
.menu-toggle .bars span { position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { bottom: 0; }

.btn-talk {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600;
  padding: 11px 20px; border-radius: 999px;
  background: var(--grad-brand); color: #1a1300;
  transition: transform .25s var(--ease), box-shadow .25s;
  box-shadow: 0 6px 22px rgba(247,162,0,0.25);
}
.btn-talk:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(247,162,0,0.4); }

/* Full-screen navigation overlay */
.fsnav {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7,10,20,0.9);
  backdrop-filter: blur(24px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.fsnav.open { opacity: 1; visibility: visible; }
.fsnav__list { text-align: center; display: grid; gap: 6px; }
.fsnav__list a {
  font-size: clamp(30px, 6vw, 62px); font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink-3); line-height: 1.08; transition: color .3s, transform .3s;
  opacity: 0; transform: translateY(30px);
}
.fsnav.open .fsnav__list a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 0.05s); }
.fsnav__list a:hover { color: var(--ink); }
.fsnav__list a:hover .fsnav__x { color: var(--brand); }
.fsnav__x { color: var(--ink-4); }
.fsnav__close { position: absolute; top: 28px; right: var(--gutter); font-size: 30px; color: var(--ink-2); }
.fsnav__meta { position: absolute; bottom: 32px; left: 0; right: 0; text-align: center;
  color: var(--ink-4); font-size: 13px; letter-spacing: .08em; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.section { position: relative; padding: clamp(80px, 12vh, 150px) 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 900px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-soft); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--brand); display: inline-block; }

h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
.h-display { font-size: clamp(40px, 7vw, 88px); }
.h1 { font-size: clamp(34px, 5.5vw, 66px); }
.h2 { font-size: clamp(28px, 4vw, 46px); }
.h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.gradient-text { background: var(--grad-brand); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.cool-text { background: var(--grad-cool); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }

.x-mark { color: var(--brand); font-weight: 700; padding: 0 .12em; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; padding: 14px 26px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
}
.btn--primary { background: var(--grad-brand); color: #1a1300; box-shadow: 0 8px 26px rgba(247,162,0,0.28); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(247,162,0,0.42); }
.btn--ghost { border: 1px solid var(--stroke-strong); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--brand); background: var(--surface-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: var(--nav-h); overflow: hidden; }
#universe { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero__inner { position: relative; z-index: 2; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero__sub { font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; color: var(--ink-2);
  letter-spacing: .01em; margin-bottom: 22px; }
.hero__sub .x-mark { font-size: 1.1em; }
.hero__text { max-width: 56ch; margin-bottom: 34px; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-4); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.hero__scroll .line { width: 1px; height: 40px; background: linear-gradient(var(--brand), transparent);
  animation: scrolldn 2s var(--ease) infinite; }
@keyframes scrolldn { 0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; } }
.hero__legend { position: absolute; z-index: 2; bottom: 26px; right: var(--gutter);
  font-size: 12px; color: var(--ink-4); max-width: 220px; text-align: right; }

/* ==========================================================================
   "What we do" — problems
   ========================================================================== */
.problems { display: grid; gap: 16px; margin-top: 46px; }
.problem-row { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--stroke); }
.problem-row .n { font-weight: 800; color: var(--brand); font-size: 15px; }
.verbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.verb { padding: 10px 18px; border: 1px solid var(--stroke); border-radius: 999px;
  font-weight: 700; font-size: 15px; color: var(--ink);
  background: var(--surface); transition: transform .25s var(--ease), border-color .25s, color .25s; }
.verb:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand-soft); }

/* ==========================================================================
   Feature blocks (Sales / Marketing / Web / Systems ...)
   ========================================================================== */
.feature { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(70px, 10vh, 130px); }
.feature--rev .feature__media { order: -1; }
.feature__title { margin-bottom: 20px; }
.feature__text { margin-bottom: 26px; }
.chk { display: grid; gap: 12px; margin-top: 8px; }
.chk li { position: relative; padding-left: 30px; color: var(--ink-2); }
.chk li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 16px;
  border-radius: 5px; background: var(--grad-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Card grids */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 12px; }
.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--stroke);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(247,162,0,0.12), transparent 45%);
  transition: opacity .35s; }
.card:hover { transform: translateY(-4px); border-color: var(--stroke-strong); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card__icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--stroke); margin-bottom: 16px; color: var(--brand-soft); }
.card h4 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-3); }
.card--glow-blue .card__icon { color: var(--blue); }
.card--glow-violet .card__icon { color: var(--violet); }
.card--glow-turq .card__icon { color: var(--turq); }

/* Media panels */
.panel { position: relative; border-radius: var(--radius-lg); padding: 30px;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--stroke); overflow: hidden; }
.panel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at 80% -10%, rgba(46,125,255,0.14), transparent 55%); }

/* ==========================================================================
   Lead Journey (leak detector)
   ========================================================================== */
.journey { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px,5vw,70px); align-items: center; }
.funnel { display: grid; gap: 10px; }
.funnel__step { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke);
  position: relative; transition: all .4s var(--ease); overflow: hidden; }
.funnel__step .label { font-weight: 600; }
.funnel__step .val { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.funnel__step .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(46,125,255,0.16), rgba(139,92,246,0.10)); transition: width 1s var(--ease); z-index: 0; }
.funnel__step .label, .funnel__step .val { position: relative; z-index: 1; }
.funnel__step.leak { border-color: var(--coral); }
.funnel__step.leak .val { color: var(--coral); }
.leak-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--coral);
  padding: 4px 10px; border: 1px solid var(--coral); border-radius: 999px;
  opacity: 0; transform: scale(.8); transition: all .4s var(--ease); }
.funnel__step.leak.show .leak-tag { opacity: 1; transform: none; }
.journey__note { padding: 26px; border-radius: var(--radius); border: 1px dashed var(--stroke-strong); background: var(--surface); }
.journey__note .big { font-size: clamp(24px,3vw,34px); font-weight: 800; margin-bottom: 10px; }

/* ==========================================================================
   Process (How we consult)
   ========================================================================== */
.process { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.step { padding: 26px 24px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--stroke); position: relative; transition: transform .3s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-4px); border-color: var(--stroke-strong); }
.step .num { font-size: 42px; font-weight: 800; line-height: 1;
  background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px; opacity: .9; }
.step h4 { font-size: 17px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--ink-3); }
.banner-quote { text-align: center; margin: 0 auto; max-width: 20ch; }

/* ==========================================================================
   AI — from manual to intelligent
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: stretch; }
.split__col { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--stroke); }
.split__col.old { background: rgba(255,107,91,0.04); border-color: rgba(255,107,91,0.2); }
.split__col.new { background: rgba(34,211,238,0.05); border-color: rgba(34,211,238,0.22); }
.split__col h4 { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.split__col.old h4 { color: var(--coral); }
.split__col.new h4 { color: var(--turq); }
.flowlist { display: grid; gap: 10px; }
.flowlist li { padding: 12px 16px; border-radius: 11px; background: var(--surface); font-weight: 600; font-size: 15px; }
.split__col.old .flowlist li { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(255,107,91,.5); }
.split__col.new .flowlist li { color: var(--ink); border: 1px solid rgba(34,211,238,0.18); }
.split__arrow { display: grid; place-items: center; color: var(--brand); font-size: 30px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split__arrow { transform: rotate(90deg); } }

/* ==========================================================================
   One connected system (orbit)
   ========================================================================== */
.orbit-wrap { position: relative; display: grid; place-items: center; min-height: 520px; margin-top: 30px; }
.orbit-core { position: absolute; z-index: 3; width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 15px; letter-spacing: .04em;
  background: var(--grad-brand); color: #1a1300; box-shadow: 0 0 60px rgba(247,162,0,0.4); }
.orbit-ring { position: absolute; border: 1px dashed var(--stroke); border-radius: 50%; }
.orbit-ring.r1 { width: 340px; height: 340px; }
.orbit-ring.r2 { width: 500px; height: 500px; }
.orbit-node { position: absolute; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  background: rgba(11,16,32,0.85); border: 1px solid var(--stroke-strong); white-space: nowrap; backdrop-filter: blur(6px);
  transform: translate(-50%, -50%); transition: transform .3s var(--ease), border-color .3s, color .3s; }
.orbit-node:hover { border-color: var(--brand); color: var(--brand-soft); }
@media (max-width: 720px) { .orbit-wrap { min-height: auto; } .orbit-ring { display: none; }
  .orbit-core { position: static; margin: 0 auto 24px; }
  .orbit-nodes { position: static !important; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .orbit-node { position: static; transform: none; } }

/* ==========================================================================
   AI Business Scan
   ========================================================================== */
.scan { border-radius: var(--radius-lg); border: 1px solid var(--stroke); overflow: hidden;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); }
.scan__head { padding: clamp(28px,5vw,48px); border-bottom: 1px solid var(--stroke); }
.scan__body { padding: clamp(28px,5vw,48px); }
.scan__progress { height: 5px; background: var(--surface); border-radius: 999px; overflow: hidden; margin-top: 22px; }
.scan__progress span { display: block; height: 100%; width: 0; background: var(--grad-brand); transition: width .5s var(--ease); }
.q-num { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-soft); margin-bottom: 12px; }
.q-text { font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 26px; }
.q-options { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.q-option { text-align: left; padding: 18px 20px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--stroke); font-weight: 600; transition: all .25s var(--ease); }
.q-option:hover { border-color: var(--brand); transform: translateY(-2px); background: var(--surface-2); }
.q-option.selected { border-color: var(--brand); background: rgba(247,162,0,0.1); }
.scan__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
/* Result */
.scan-result { display: none; }
.scan-result.show { display: block; }
.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 18px; margin: 28px 0; }
.score { text-align: center; padding: 22px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--stroke); }
.score .ring { --p: 0; width: 92px; height: 92px; margin: 0 auto 12px; border-radius: 50%;
  background: conic-gradient(var(--c, var(--brand)) calc(var(--p) * 1%), var(--surface-2) 0);
  display: grid; place-items: center; position: relative; }
.score .ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--bg-1); }
.score .ring b { position: relative; z-index: 1; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.score .lbl { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; }
.improve { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 30px; }
.improve span { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--stroke-strong);
  font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface); }

/* ==========================================================================
   Case studies
   ========================================================================== */
.case { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius-lg);
  border: 1px solid var(--stroke); overflow: hidden; background: var(--surface); }
.case + .case { margin-top: 18px; }
.case__cell { padding: 28px 26px; border-right: 1px solid var(--stroke); }
.case__cell:last-child { border-right: none; }
.case__cell .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; }
.case__cell .v { color: var(--ink-2); font-size: 15px; }
.case__cell.result { background: rgba(163,230,53,0.06); }
.case__cell.result .big { font-size: 30px; font-weight: 800; color: var(--lime); }
@media (max-width: 800px) { .case { grid-template-columns: 1fr 1fr; }
  .case__cell:nth-child(2n) { border-right: none; } }

/* ==========================================================================
   Philosophy
   ========================================================================== */
.philosophy { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; }
.phil { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--stroke); background: var(--surface); }
.phil .tag { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.phil:nth-child(1) .tag { color: var(--brand-soft); }
.phil:nth-child(2) .tag { color: var(--blue); }
.phil:nth-child(3) .tag { color: var(--violet); }
.phil:nth-child(4) .tag { color: var(--turq); }
.phil:nth-child(5) .tag { color: var(--lime); }
.phil p { font-size: 15px; color: var(--ink-3); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px,5vw,70px); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--stroke); color: var(--ink); font-family: inherit; font-size: 15px; transition: border-color .25s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); outline: none; }
.field textarea { resize: vertical; min-height: 110px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .2s; }
.chip.active { border-color: var(--brand); background: rgba(247,162,0,0.12); color: var(--brand-soft); }
.form__note { font-size: 13px; color: var(--ink-4); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: clamp(60px,9vh,110px) 0 40px; border-top: 1px solid var(--stroke); position: relative; }
.footer__brand { font-size: clamp(48px, 12vw, 150px); font-weight: 800; letter-spacing: -0.04em; line-height: .9;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.footer__grid h5 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 16px; }
.footer__grid a { display: block; color: var(--ink-2); padding: 5px 0; font-size: 15px; transition: color .2s; }
.footer__grid a:hover { color: var(--brand-soft); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 26px; border-top: 1px solid var(--stroke); color: var(--ink-4); font-size: 13.5px; }
.footer__tag { color: var(--ink-3); font-weight: 600; }

/* ==========================================================================
   Marquee (partners / disciplines)
   ========================================================================== */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); padding: 26px 0; border-block: 1px solid var(--stroke); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: scrollx 30s linear infinite; }
.marquee__track span { font-size: clamp(20px,3vw,34px); font-weight: 800; color: var(--ink-4); letter-spacing: -0.02em; white-space: nowrap; }
.marquee__track .x-mark { color: var(--brand); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ==========================================================================
   RTL
   ========================================================================== */
[dir="rtl"] .eyebrow::before { }
[dir="rtl"] .chk li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .chk li::before { left: auto; right: 0; }
[dir="rtl"] .q-option { text-align: right; }
[dir="rtl"] .nav__links a::after { right: 0; left: auto; }
[dir="rtl"] .hero__legend { right: auto; left: var(--gutter); text-align: left; }
[dir="rtl"] .logo__x { margin-left: 0; margin-right: 1px; }
[dir="rtl"] .case__cell { border-right: none; border-left: 1px solid var(--stroke); }
[dir="rtl"] .case__cell:last-child { border-left: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 921px) {
  .hero__grid { grid-template-columns: 1fr; max-width: 900px; }
}
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .menu-toggle { display: flex; }
  .btn-talk { display: none; }
}
@media (max-width: 920px) {
  .feature, .journey, .contact { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .case { grid-template-columns: 1fr; }
  .case__cell { border-right: none; border-bottom: 1px solid var(--stroke); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__right { gap: 12px; }
}

/* ==========================================================================
   V2 — Bold / colorful / young "DriftX Universe" layer
   ========================================================================== */

/* Per-section world accents */
[data-world="sales"]     { --accent: #FFD400; --accent-2: #FF9E00; }
[data-world="marketing"] { --accent: #FF2E7E; --accent-2: #FF7AC0; }
[data-world="business"]  { --accent: #FF7A1A; --accent-2: #FFB020; }
[data-world="tech"]      { --accent: #2E7DFF; --accent-2: #22D3EE; }
[data-world="ai"]        { --accent: #C6FF3A; --accent-2: #A855F7; }

.accent { color: var(--accent); }
.grad-accent {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Logo as real image (original brand asset) */
.logo__img { height: 30px; width: auto; display: block; }
@media (max-width: 560px) { .logo__img { height: 26px; } }

/* Giant typography */
.giant { font-size: clamp(60px, 15vw, 220px); font-weight: 900; letter-spacing: -0.05em; line-height: 0.82; }
.mega  { font-size: clamp(44px, 9vw, 130px); font-weight: 900; letter-spacing: -0.045em; line-height: 0.9; }

/* Multi-colour living blobs (adds to base .mesh) */
.mesh .blob-4, .mesh .blob-5 { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; }
.mesh .blob-4 { width: 40vmax; height: 40vmax; right: 10vmax; bottom: 10vmax;
  background: radial-gradient(circle, var(--pink), transparent 60%); animation: drift1 32s var(--ease) infinite alternate; }
.mesh .blob-5 { width: 34vmax; height: 34vmax; left: 20vmax; top: 30vmax;
  background: radial-gradient(circle, var(--acid), transparent 60%); animation: drift2 38s var(--ease) infinite alternate; }

/* ---- HERO v2 ---- */
.hero2 { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
.hero2 .brandline { font-size: clamp(15px,1.8vw,20px); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.hero2 .evolved { font-size: clamp(20px,3vw,34px); font-weight: 800; color: var(--ink); margin-bottom: 30px; }
.hero2 .evolved b { color: var(--brand); }
.hero2 .build { line-height: .9; }

/* Rotating word */
.rotator { display: inline-grid; vertical-align: top; }
.rotator > span { grid-area: 1/1; opacity: 0; transform: translateY(0.35em); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rotator > span.on { opacity: 1; transform: none; }
.rotator .w-sales { color: var(--yellow); }
.rotator .w-marketing { color: var(--pink); }
.rotator .w-business { color: #FF7A1A; }
.rotator .w-tech { color: var(--blue); }
.rotator .w-ai { color: var(--acid); }
.rotator .w-next { background: linear-gradient(100deg,var(--brand),var(--pink)); -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent; }

/* Hero X portal (original brand X-shaped image, zooms on scroll) */
.hero2__x { position: absolute; z-index: 0; right: -6vw; top: 50%; width: min(58vw, 700px); transform: translateY(-50%); pointer-events: none; will-change: transform, opacity; }
.hero2__x img { width: 100%; filter: drop-shadow(0 30px 80px rgba(0,0,0,.5)); }
@media (max-width: 900px) { .hero2__x { right: -22vw; opacity: .3; width: 92vw; } }

/* ---- Stickers ---- */
.sticker { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .02em;
  padding: 9px 15px; border-radius: 14px; color: #0b0b0b; background: var(--yellow);
  box-shadow: 0 8px 24px rgba(0,0,0,.3); transform: rotate(-4deg); line-height: 1.15; }
.sticker--pink { background: var(--pink); color: #fff; transform: rotate(3deg); }
.sticker--acid { background: var(--acid); transform: rotate(-2deg); }
.sticker--blue { background: var(--blue); color: #fff; transform: rotate(2deg); }
.sticker--outline { background: transparent; color: var(--ink); border: 1.5px dashed var(--stroke-strong); }
.sticker-float { position: absolute; z-index: 3; }

/* ---- Colourful marquee ---- */
.marquee--color .marquee__track span { color: var(--ink); }
.marquee--color .c1 { color: var(--yellow); } .marquee--color .c2 { color: var(--pink); }
.marquee--color .c3 { color: var(--blue); } .marquee--color .c4 { color: var(--acid); }
.marquee--color .c5 { color: var(--brand); } .marquee--color .c6 { color: var(--purple); }

/* ---- Service world block ---- */
.world { position: relative; padding: clamp(60px,9vh,120px) 0; border-top: 1px solid var(--stroke); overflow: hidden; }
.world__glow { position: absolute; inset: 0; z-index: -1; opacity: .16;
  background: radial-gradient(60vmax circle at var(--gx,80%) var(--gy,30%), var(--accent), transparent 60%); }
.world__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px,5vw,70px); align-items: center; }
.world--rev .world__media { order: -1; }
.world__label { font-size: clamp(46px,9vw,120px); font-weight: 900; letter-spacing: -.04em; line-height: .9; color: var(--accent); }
.world__lines { font-size: clamp(22px,3.4vw,40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 14px 0 22px; }
.world__lines .muted2 { color: var(--ink-3); }
.world__more { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink);
  border-bottom: 2px solid var(--accent); padding-bottom: 4px; transition: gap .25s; }
.world__more:hover { gap: 16px; }
.world__media img { width: 100%; height: auto; }
.world__media { position: relative; }
@media (max-width: 900px) { .world__grid { grid-template-columns: 1fr; } .world--rev .world__media { order: 0; } }

/* ---- Video: this is DriftX (circle grows) ---- */
.film { position: relative; padding: clamp(60px,9vh,120px) 0; text-align: center; }
.film__stage { position: relative; margin: 30px auto 0; width: 100%; max-width: 1100px; aspect-ratio: 16/9; display: grid; place-items: center; }
.film__media { position: absolute; inset: 0; margin: auto; overflow: hidden; clip-path: circle(var(--r, 18%) at 50% 50%); border-radius: 10px; }
.film__media video { width: 100%; height: 100%; object-fit: cover; }
.film__overlay { position: absolute; z-index: 2; pointer-events: none; font-weight: 900; letter-spacing: -.03em; font-size: clamp(40px,8vw,110px); color: #fff; mix-blend-mode: difference; }
.filmwords { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 26px; }
.filmwords span { font-weight: 900; font-size: clamp(20px,3vw,40px); letter-spacing: -.03em; color: var(--ink-4); transition: color .3s; }
.filmwords span.on { color: var(--ink); }

/* ---- Trend culture ---- */
.trendlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.trendlist span { padding: 9px 16px; border: 1px solid var(--stroke-strong); border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.trendwall { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: 14px; margin-top: 40px; }
.trendwall figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--stroke); background: var(--surface); }
.trendwall img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trendwall .t-tall { grid-row: span 2; }
.trendwall .t-wide { grid-column: span 2; }
.trendwall .t-word { display: grid; place-items: center; font-weight: 900; font-size: clamp(24px,3vw,52px); color: #0b0b0b; background: var(--acid); border: none; letter-spacing: -.04em; }
@media (max-width: 760px) { .trendwall { grid-template-columns: repeat(3, 1fr); } }

/* ---- Contact v2 ---- */
.haveproblem { font-weight: 900; letter-spacing: -.03em; line-height: .95; }
.haveproblem .rotator .w0 { color: var(--pink); } .haveproblem .rotator .w1 { color: var(--yellow); }
.haveproblem .rotator .w2 { color: var(--blue); } .haveproblem .rotator .w3 { color: var(--acid); }
.haveproblem .rotator .w4 { color: var(--brand); } .haveproblem .rotator .w5 { color: var(--purple); }

/* ---- Acid footer ---- */
.footer--acid { background: var(--yellow); color: #0b0b0b; border: none; }
.footer--acid .footer__stand { font-size: clamp(44px,11vw,150px); font-weight: 900; letter-spacing: -.05em; line-height: .85; color: #0b0b0b; margin-bottom: 30px; }
.footer--acid a, .footer--acid .footer__tag, .footer--acid .muted, .footer--acid h5, .footer--acid span { color: #0b0b0b; }
.footer--acid .footer__grid a:hover { color: #444; }
.footer--acid .footer__bottom { border-top-color: rgba(0,0,0,.2); }
.footer--acid .footer__brand { background: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.03)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer--acid .btn--primary { background: #0b0b0b; color: var(--yellow); box-shadow: none; }
.footer--acid .btn--primary:hover { background: #222; }

/* character floats */
.char-float { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }

/* ==========================================================================
   DriftX visual universe — vector "3D" scenes (no stock imagery)
   ========================================================================== */
.scene { width: 100%; height: auto; display: block; overflow: visible; }
.scene .glass { fill: rgba(255,255,255,0.05); stroke: rgba(255,255,255,0.14); stroke-width: 1.5; }
.scene .glass-2 { fill: rgba(255,255,255,0.03); stroke: rgba(255,255,255,0.10); stroke-width: 1.5; }
.scene .ink { fill: var(--ink); }
.scene .ink-3 { fill: var(--ink-3); }
.scene .acc { fill: var(--accent); }
.scene .acc2 { fill: var(--accent-2); }
.scene .acc-s { stroke: var(--accent); fill: none; }
.scene .line { stroke: rgba(255,255,255,0.18); fill: none; stroke-width: 1.5; }
.scene .dash { stroke: var(--accent); fill: none; stroke-width: 2; stroke-dasharray: 4 6; stroke-linecap: round; }

/* floating / motion (killed under reduced-motion by the global rule) */
.scene .float  { animation: floaty 6s ease-in-out infinite; }
.scene .float2 { animation: floaty 7.5s ease-in-out infinite; animation-delay: -2s; }
.scene .float3 { animation: floaty 5.2s ease-in-out infinite; animation-delay: -1s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.scene .spin { transform-box: fill-box; transform-origin: center; animation: spin 16s linear infinite; }
.scene .spin-r { transform-box: fill-box; transform-origin: center; animation: spin 12s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene .pulse { animation: pulseo 3s ease-in-out infinite; }
.scene .pulse2 { animation: pulseo 2.2s ease-in-out infinite; animation-delay: -1s; }
@keyframes pulseo { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.scene .dashmove { stroke-dasharray: 4 6; animation: dashmove 1.4s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -20; } }

/* stage glow behind each scene */
.scene .stage-glow { fill: var(--accent); opacity: .18; filter: blur(26px); }

/* Scene wrapper gets mouse parallax via JS (--px/--py) */
.world__media .scene-wrap { transition: transform .2s var(--ease); transform: translate(calc(var(--px,0) * 1px), calc(var(--py,0) * 1px)); }

/* Hero engine canvas */
#engine { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero2__engine { position: absolute; inset: 0; z-index: 0; will-change: transform, opacity; }

/* trend wall vector tiles */
.trendwall .t-scene { display: grid; place-items: center; padding: 14px; }
.trendwall .t-scene svg { width: 100%; height: 100%; }
.tile-a { background: linear-gradient(140deg, rgba(255,46,126,.25), rgba(168,85,247,.18)); }
.tile-b { background: linear-gradient(140deg, rgba(46,125,255,.22), rgba(34,211,238,.16)); }
.tile-c { background: linear-gradient(140deg, rgba(198,255,58,.20), rgba(255,212,0,.16)); }

/* ==========================================================================
   WHAT WE REALLY DO — calm, premium, 60/40 with a subtle system visual
   ========================================================================== */
.what2 { min-height: 82vh; display: flex; align-items: center; }
.what2__grid { display: grid; grid-template-columns: 58% 42%; gap: clamp(28px, 5vw, 64px); align-items: center; width: 100%; }
.what2 .eyebrow { margin-bottom: 30px; }
.what2__head { font-size: clamp(31px, 4.3vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; max-width: 16ch; }
.what2__lead { max-width: 660px; margin-top: 22px; line-height: 1.75; }
@media (max-width: 900px) {
  .what2 { min-height: auto; }
  .what2__grid { grid-template-columns: 1fr; gap: 40px; }
  .what2__head { max-width: 100%; }
}

/* system visualization */
.sysviz { width: 100%; height: auto; overflow: visible; }
.sysviz .node-c { fill: rgba(255,255,255,0.05); stroke: rgba(255,255,255,0.16); stroke-width: 1.5; }
.sysviz .node-glow { fill: var(--accent); opacity: 0.12; filter: blur(9px); }
.sysviz text { fill: var(--ink-2); font-weight: 700; font-size: 14px; }
.sysviz .conn { stroke: var(--accent); fill: none; stroke-width: 1.5; opacity: 0.38;
  stroke-dasharray: 440; stroke-dashoffset: 440; transition: stroke-dashoffset 1.8s var(--ease-out); }
.reveal.in .sysviz .conn { stroke-dashoffset: 0; }
.sysviz .dot { fill: var(--accent); }
.sysviz .f1 { animation: floaty 8s ease-in-out infinite; }
.sysviz .f2 { animation: floaty 9.5s ease-in-out infinite; animation-delay: -3s; }
.sysviz .f3 { animation: floaty 7.5s ease-in-out infinite; animation-delay: -1.5s; }
.sysviz .f4 { animation: floaty 10s ease-in-out infinite; animation-delay: -4s; }

/* ==========================================================================
   DriftX miniature world — cinematic scene cards (masonry, editorial)
   Drop real renders into assets/scenes/<name>.jpg to replace placeholders.
   ========================================================================== */
.lego-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; margin-top: 40px; }
.lego {
  position: relative; overflow: hidden; border-radius: 20px; display: block;
  border: 1px solid var(--stroke); background: var(--bg-2);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.lego:hover { border-color: var(--stroke-strong); box-shadow: 0 22px 50px rgba(0,0,0,.4); }
.lego__media { position: absolute; inset: 0; overflow: hidden; }
.lego__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .6s var(--ease); }
.lego:hover .lego__media img { transform: scale(1.05); }
/* placeholder (shown until a real render is dropped in) */
.lego__ph { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .6s var(--ease);
  background:
    radial-gradient(120% 90% at 70% 15%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%),
    linear-gradient(150deg, var(--bg-3), var(--bg-1)); }
.lego:hover .lego__ph { transform: scale(1.05); }
.lego__ph svg { width: 46%; max-width: 150px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); opacity: .92; }
.lego__ph .tag { position: absolute; top: 14px; left: 14px; font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-4); border: 1px solid var(--stroke); padding: 4px 9px; border-radius: 999px; }
.lego__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 22px;
  background: linear-gradient(transparent, rgba(6,9,18,.85) 70%); }
.lego__cap h4 { font-size: clamp(18px,2vw,24px); font-weight: 800; letter-spacing: -.01em; }
.lego__cap p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.lego__cap .u { width: 36px; height: 3px; border-radius: 2px; background: var(--accent); margin-top: 10px; }

/* editorial spans */
.lego--ai      { grid-column: span 2; grid-row: span 2; }
.lego--sales   { grid-column: span 2; }
.lego--build   { grid-column: span 1; }
.lego--train   { grid-column: span 1; }
.lego--analyze { grid-column: span 2; }
.lego--grow    { grid-column: span 2; }

@media (max-width: 860px) {
  .lego-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .lego--ai { grid-column: span 2; grid-row: span 2; }
  .lego--sales, .lego--analyze, .lego--grow { grid-column: span 2; }
  .lego--build, .lego--train { grid-column: span 1; }
}
@media (max-width: 520px) {
  .lego-grid { grid-template-columns: 1fr; }
  .lego { grid-column: auto !important; grid-row: auto !important; min-height: 190px; }
}

/* ==========================================================================
   MOBILE — a dedicated premium experience (not a scaled-down desktop)
   ========================================================================== */

/* dynamic viewport for the hero (accounts for mobile browser chrome) */
@supports (height: 100svh) {
  .hero2 { min-height: 100svh; }
}

@media (max-width: 640px) {
  :root { --gutter: 22px; --nav-h: 66px; }
  html, body { overflow-x: hidden; max-width: 100%; }

  /* safe areas */
  .nav__inner { padding-top: env(safe-area-inset-top); }
  .container { padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); }

  /* tap targets */
  .btn, .btn-talk, .lang button, .q-option, .chip { min-height: 48px; }
  .btn { padding: 14px 22px; }

  /* ---- HERO ---- */
  .hero2 { min-height: 100svh; padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + 12px); align-items: center; }
  .hero2 .container > div { max-width: 100%; }
  .hero2__engine { opacity: .45; }            /* clean behind the headline */
  .hero2 .brandline { font-size: 13px; letter-spacing: .32em; }
  .hero2 .evolved { font-size: clamp(18px, 6vw, 26px); margin-bottom: 20px; }
  .giant.build { font-size: clamp(40px, 14.5vw, 66px); line-height: .95; }
  .hero2 .lead { font-size: 16px; margin: 18px 0 26px; max-width: 92%; }
  .hero2 .btn-row { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 360px; }
  .hero2 .btn { justify-content: center; width: 100%; }
  .hero2 .sticker-float { display: none; }    /* declutter — one strong moment */
  .hero__scroll { bottom: calc(14px + env(safe-area-inset-bottom)); }

  /* entrance: gentle stagger already via .reveal[data-delay]; slow it a touch */
  .hero2 .reveal { transition-duration: .9s; }

  /* ---- WHAT / system viz ---- */
  .what2 { min-height: auto; padding-top: 90px; }
  .what2__head { font-size: clamp(30px, 8.5vw, 42px); }
  .sysviz { max-width: 380px; margin: 8px auto 0; }

  /* ---- Service worlds ---- */
  .world { padding: 64px 0; }
  .world__label { font-size: clamp(44px, 15vw, 72px); }
  .world__lines { font-size: clamp(21px, 6vw, 30px); }
  .world__media { max-width: 92vw; margin: 0 auto; }

  /* ---- Miniature-world cards: full-width, tall, scene-dominant, snap ---- */
  .lego-grid {
    grid-template-columns: 1fr; grid-auto-rows: auto; gap: 16px;
    scroll-snap-type: y proximity; scroll-padding-top: 90px;
  }
  .lego { grid-column: auto !important; grid-row: auto !important; min-height: 384px; scroll-snap-align: center; }
  .lego__cap { padding: 20px; }
  .lego__cap h4 { font-size: 24px; }

  /* ---- Trend list wraps nicely ---- */
  .trendlist span { font-size: 13px; }

  /* ---- "This is DriftX" video: vertical framed, tap for sound ---- */
  .film__stage { aspect-ratio: 4 / 5; max-width: 92vw; }
  .film__media { clip-path: inset(0 round 20px) !important; border-radius: 20px; }
  .film__overlay { font-size: clamp(30px, 9vw, 46px); opacity: 0 !important; }
  .film__tap { position: absolute; z-index: 3; bottom: 14px; right: 14px; font-size: 11px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.5);
    padding: 8px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
  .filmwords span { font-size: clamp(16px, 5vw, 24px); }

  /* ---- Contact / footer ---- */
  .haveproblem { font-size: clamp(38px, 12vw, 60px); }
  .contact { gap: 32px; }
  .footer--acid .footer__stand { font-size: clamp(40px, 15vw, 84px); }
  .footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

  /* case studies stack cleanly */
  .case { border-radius: 16px; }
}

/* very small phones (iPhone SE / 320) */
@media (max-width: 360px) {
  .giant.build { font-size: 38px; }
  .world__label { font-size: 42px; }
  .lego { min-height: 340px; }
}

/* foldables / large phones landscape-ish: keep hero from getting cramped */
@media (max-width: 640px) and (max-height: 680px) {
  .hero2 { min-height: auto; padding-top: 120px; padding-bottom: 60px; }
}

/* Approved DriftX universe image (used as-is) */
.universe { margin-top: 10px; }
.universe-img { width: 100%; height: auto; display: block; border-radius: 22px; }
@media (max-width: 640px) { .universe-img { border-radius: 16px; } }

/* ==========================================================================
   RTL TYPE SYSTEMS — designed in Hebrew (Heebo) & Arabic (Alexandria),
   not translated. Relaxed tracking, calmer weight, more air.
   ========================================================================== */

/* Font family per language */
html[lang="he"] body, html[lang="he"] input, html[lang="he"] textarea,
html[lang="he"] select, html[lang="he"] button { font-family: "Heebo", var(--font); }
html[lang="ar"] body, html[lang="ar"] input, html[lang="ar"] textarea,
html[lang="ar"] select, html[lang="ar"] button { font-family: "Alexandria", var(--font); }

/* Hero headline: English rotator (LTR) vs. art-directed RTL line */
.build-rtl { display: none; }
[dir="rtl"] .build { display: none; }
[dir="rtl"] .build-rtl { display: block; }

/* Display headings — never copy the aggressive English tracking to RTL */
[dir="rtl"] .giant, [dir="rtl"] .mega, [dir="rtl"] .h-display,
[dir="rtl"] .h1, [dir="rtl"] .h2, [dir="rtl"] .h3,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] .what2__head, [dir="rtl"] .world__lines,
[dir="rtl"] .footer__stand, [dir="rtl"] .build-rtl {
  letter-spacing: 0; line-height: 1.15; font-weight: 800;
}

/* Hebrew: a hair tighter leading, minimal negative tracking */
[lang="he"] .giant, [lang="he"] .mega, [lang="he"] .build-rtl,
[lang="he"] .what2__head, [lang="he"] h1, [lang="he"] h2 {
  letter-spacing: -0.01em; line-height: 1.08;
}

/* Arabic (Alexandria): connected script — normal tracking, more leading, cap weight at 800 */
[lang="ar"] .giant, [lang="ar"] .mega, [lang="ar"] .build-rtl,
[lang="ar"] .what2__head, [lang="ar"] h1, [lang="ar"] h2,
[lang="ar"] .footer__stand, [lang="ar"] .world__lines {
  letter-spacing: 0; line-height: 1.2; font-weight: 800;
}
[lang="ar"] .brandline { letter-spacing: .1em; }

/* Fluid RTL heading sizes — smaller & wider than the EN giants (2–3 lines) */
[dir="rtl"] .hero2 .build-rtl { font-size: clamp(40px, 6vw, 92px); }
[dir="rtl"] .mega { font-size: clamp(34px, 5vw, 66px); }
[dir="rtl"] .what2__head { font-size: clamp(30px, 4.2vw, 54px); max-width: 20ch; }
[dir="rtl"] .h1 { font-size: clamp(30px, 4vw, 56px); }

/* Body — significantly more breathing room */
[dir="rtl"] .lead, [dir="rtl"] p { line-height: 1.85; }
[dir="rtl"] .lead { font-weight: 400; font-size: clamp(17px, 1.4vw, 20px); max-width: 72ch; }
[dir="rtl"] .hero2 .lead { max-width: 46ch; }
[dir="rtl"] .what2__lead { max-width: 46ch; }

/* Buttons / nav / tags — medium weight, relaxed tracking (no 900) */
[dir="rtl"] .btn, [dir="rtl"] .btn-talk, [dir="rtl"] .world__more, [dir="rtl"] .verb,
[dir="rtl"] .chip, [dir="rtl"] .nav__links a, [dir="rtl"] .lang button, [dir="rtl"] .eyebrow {
  letter-spacing: 0; font-weight: 600;
}

/* Mobile RTL — dedicated sizes; keep 2–3 line headings, never one word per line */
@media (max-width: 640px) {
  [dir="rtl"] .hero2 .build-rtl { font-size: clamp(34px, 10.5vw, 56px); line-height: 1.12; }
  [dir="rtl"] .mega, [dir="rtl"] .what2__head { font-size: clamp(28px, 8.5vw, 44px); }
  [dir="rtl"] .h1 { font-size: clamp(27px, 8vw, 42px); }
  [dir="rtl"] .lead { font-size: 16.5px; line-height: 1.8; }
  [dir="rtl"] .world__label { font-size: clamp(40px, 14vw, 66px); }
}
