/* ==========================================================================
   Orvix design system
   Light base, one brand colour (lime). Shared by every page, LTR and RTL.

   Rules this file follows:
   - Lime is a FILL colour only (buttons, badges, highlights) with dark ink on
     top. Lime text on white fails contrast, so text accents use --lime-ink.
   - Logical properties (inline-start/end) everywhere, so RTL needs no overrides
     except the few marked [RTL].
   - No JavaScript is required for anything visible; main.js only improves
     the mobile menu.

   Sections:
   1. Tokens          6. Header & mobile menu   11. Comparison
   2. Reset           7. Hero                   12. Steps
   3. Base & type     8. Tools strip            13. FAQ
   4. Layout          9. Cards & icons          14. CTA band & footer
   5. Buttons        10. Split & notes          15. Responsive / a11y / print
   ========================================================================== */


/* 1. Tokens --------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Surfaces */
  --white: #ffffff;
  --soft: #f6f7f9;          /* alternate section background */
  --dark: #0b0d12;          /* CTA band, footer */
  --dark-2: #161a21;

  /* Text  (contrast on white: ink 19:1, ink-2 10:1, muted 5.9:1) */
  --ink: #0b0d12;
  --ink-2: #3d434f;
  --muted: #5b6472;
  --on-dark: #f4f5f7;
  --on-dark-muted: #a3acba;

  /* Brand */
  --lime: #c6ff3d;          /* fills only */
  --lime-hover: #b5f01f;
  --lime-soft: #f2ffd4;     /* tinted backgrounds */
  --lime-ink: #3f6a00;      /* lime-family text on white, 6.4:1 */

  /* Lines (line-strong is 3.3:1 on white: visible control borders) */
  --line: #e5e8ed;
  --line-strong: #858e9c;
  --line-dark: #2a2f38;

  /* Shape & space */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 72px;

  --shadow-sm: 0 1px 2px rgb(11 13 18 / .05);
  --shadow: 0 1px 3px rgb(11 13 18 / .06), 0 8px 24px rgb(11 13 18 / .05);

  /* Type */
  --font-latin: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-arabic: "Tajawal", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
}


/* 2. Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, summary { font: inherit; color: inherit; }


/* 3. Base & typography ---------------------------------------------------- */
body {
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}
html[lang="ar"] body {
  font-family: var(--font-arabic);
  font-size: 17px;
  line-height: 1.8;
}

h1, h2, h3 { color: var(--ink); text-wrap: balance; }

h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 800;
}
h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 800;
  max-width: 22ch;
}
h3 {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* Arabic is cursive: never track it, and give dots and ascenders room. */
:lang(ar) :is(h1, h2, h3, .eyebrow, .badge) { letter-spacing: 0; }
:lang(ar) h1 { line-height: 1.3; }
:lang(ar) h2 { line-height: 1.4; }

p { max-width: 68ch; }

.lead {
  margin-top: var(--space-5);
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-2);
  max-width: 60ch;
}
.muted { color: var(--muted); }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 8px; height: 8px;
  margin-inline-end: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgb(11 13 18 / .15);
}
:lang(ar) .eyebrow { font-size: 14px; text-transform: none; }

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--ink); }

/* Keep phone numbers and Latin brand names readable inside RTL text. */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }


/* 4. Layout --------------------------------------------------------------- */
.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.wrap-narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section-soft { background: var(--soft); }
.section-head { margin-bottom: var(--space-7); }
.section-head.center { text-align: center; }
.section-head.center :is(h2, .lead) { margin-inline: auto; }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }


/* 5. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--lime);
  color: var(--ink);
  border-color: rgb(11 13 18 / .12);   /* defines the edge on white */
}
.btn-primary:hover { background: var(--lime-hover); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #262b35; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }

/* Arrow icon: one glyph, mirrored for RTL instead of a second character. */
.arrow { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .arrow { transform: scaleX(-1); }                      /* [RTL] */
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }


/* 6. Header & mobile menu ------------------------------------------------- */
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: rgb(255 255 255 / .8);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-latin);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  direction: ltr;
  unicode-bidi: isolate;
}
.logo-mark { width: 28px; height: 28px; }

.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav-links a { padding-block: 8px; }
.nav-links a:hover { color: var(--ink); }

.nav-end { display: flex; align-items: center; gap: var(--space-3); }
.lang-switch { padding: 10px 8px; font-size: 14px; color: var(--ink-2); }
.lang-switch:hover { color: var(--ink); }

/* Mobile menu: a <details> element, so it opens without JavaScript. */
.menu { display: none; position: relative; }
.menu summary {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-icon { width: 20px; height: 20px; }
.menu-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  display: grid;
  gap: 2px;
  width: min(280px, 100vw - 2 * var(--gutter));
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.menu-panel a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.menu-panel a:hover { background: var(--soft); }


/* 7. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 10vw, 136px) clamp(56px, 7vw, 96px);
  text-align: center;
  overflow: hidden;
}
/* Decorative background: lime glow + faint grid that fades out. Behind content. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  pointer-events: none;
}
.hero::before {
  top: -40%;
  height: 90%;
  background: radial-gradient(closest-side, rgb(198 255 61 / .35), transparent);
}
.hero::after {
  top: 0;
  height: 720px;
  background-image:
    linear-gradient(to right, rgb(11 13 18 / .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(11 13 18 / .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero h1 { max-width: 24ch; margin-inline: auto; }
.hero .lead { margin-inline: auto; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: var(--space-6);
}
.hero .hero-actions { justify-content: center; }

.hero-note {
  margin-top: var(--space-4);
  margin-inline: auto;
  font-size: 14px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-5);
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
[dir="rtl"] .badge { padding: 6px 8px 6px 14px; }                 /* [RTL] */
.badge-dot {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
}


/* 8. Tools strip ---------------------------------------------------------- */
.tools {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.tools-label { margin-inline: auto; font-size: 14px; color: var(--muted); }
.tools-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.tools-list li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-latin);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  direction: ltr;
}


/* 9. Cards & icons -------------------------------------------------------- */
.card {
  min-width: 0;
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.section-soft .card { box-shadow: var(--shadow-sm); }
.card p { margin-top: var(--space-3); color: var(--muted); }

.card-list { display: grid; gap: var(--space-3); margin-top: var(--space-5); color: var(--ink-2); }
.card-list li {
  position: relative;
  padding-inline-start: 26px;
}
.card-list li::before {                       /* tick mark, direction-neutral */
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .55em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%230b0d12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: var(--space-5);
  border-radius: 14px;
  background: var(--lime-soft);
  color: var(--lime-ink);
}
.icon svg { width: 24px; height: 24px; }

.tag {
  display: block;
  margin-bottom: var(--space-3);
  font-size: 13px;
  font-weight: 700;
  color: var(--lime-ink);
}

.price-note {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

@media (hover: hover) {
  .card-hover:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
}


/* 10. Split blocks & notes ------------------------------------------------ */
.note {
  padding: var(--space-6);
  border-radius: var(--radius);
  background: var(--lime-soft);
  border-inline-start: 4px solid var(--lime);
  color: var(--ink-2);
}
.note h3 + p { margin-top: var(--space-3); }

.contact-list { display: grid; gap: var(--space-3); margin-top: var(--space-5); font-size: 17px; }
.contact-list a { font-weight: 700; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }


/* 11. Comparison ---------------------------------------------------------- */
.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: stretch;
}
.compare-col {
  min-width: 0;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
}
.compare-col.is-orvix {
  position: relative;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}
.compare-col h3 { margin-bottom: var(--space-5); }
.compare-col li {
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}
.compare-col li strong { display: block; font-size: 16px; }
.compare-col li span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.compare-col:not(.is-orvix) li strong { color: var(--ink-2); font-weight: 600; }

.compare-flag {
  position: absolute;
  top: -14px;
  inset-inline-start: var(--space-6);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--lime);
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
}


/* 12. Steps --------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  counter-reset: step;
}
.step {
  min-width: 0;
  padding-top: var(--space-5);
  border-top: 2px solid var(--ink);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-block;
  margin-bottom: var(--space-4);
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lime);
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 800;
}
.step p { margin-top: var(--space-2); color: var(--muted); }


/* 13. FAQ ----------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
  padding-block: var(--space-4);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--soft);
  font-size: 20px;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; background: var(--lime); }
.faq details p { padding-bottom: var(--space-5); color: var(--ink-2); }


/* 14. CTA band & footer --------------------------------------------------- */
.cta-band {
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: var(--on-dark);
}
.cta-band :is(h2, h3) { color: var(--white); }
.cta-band .eyebrow { color: var(--on-dark-muted); }
.cta-band .lead { color: var(--on-dark-muted); }
.cta-band .btn-ghost { color: var(--white); border-color: #5b6472; }
.cta-band .btn-ghost:hover { border-color: var(--white); }
.cta-band .contact-list { color: var(--white); }
.cta-band .muted { color: var(--on-dark-muted); }

.site-footer {
  padding-block: var(--space-7);
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: 14px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.site-footer a:hover { color: var(--white); }
.site-footer .logo { color: var(--white); font-size: 20px; }
/* The mark is a dark square: outline it so it stays visible on the dark footer. */
.site-footer .logo-mark { border-radius: 7px; box-shadow: 0 0 0 1px var(--line-dark); }


/* 15. Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .grid-3, .grid-2, .split, .compare { grid-template-columns: minmax(0, 1fr); }
  .split { gap: var(--space-6); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .menu { display: block; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .card, .compare-col, .note { padding: var(--space-5); }
  .hero h1 br { display: none; }
  .nav-cta { display: none; }           /* CTA stays in the menu and hero */
  .faq summary { font-size: 17px; }
}

/* Very narrow phones (320px) and large text zoom. */
@media (max-width: 360px) {
  .logo { font-size: 20px; }
  .lang-switch { padding-inline: 4px; }
}

/* Notched phones in landscape. */
@supports (padding: max(0px)) {
  .wrap { width: min(var(--max), 100% - 2 * max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right))); }
}


/* Accessibility ----------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { border-radius: 999px; }
.cta-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--lime); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .btn:active, .btn:hover .arrow { transform: none; }
  [dir="rtl"] .btn:hover .arrow { transform: scaleX(-1); }
}

/* Windows High Contrast: backgrounds disappear, so keep real borders. */
@media (forced-colors: active) {
  .btn, .card, .compare-col, .badge, .tools-list li, .menu summary { border: 1px solid CanvasText; }
  .eyebrow::before, .step::before, .card-list li::before { forced-color-adjust: none; }
}


/* Print ------------------------------------------------------------------- */
@media print {
  .site-header, .skip, .hero::before, .hero::after, .menu, .hero-actions { display: none !important; }
  body { font-size: 12pt; }
  .section { padding-block: 24px; }
  .cta-band, .site-footer { background: none; color: #000; }
  .cta-band h2 { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
}


/* ==========================================================================
   PART 2: Showcase components (homepage)
   16. Product previews (mockups)   20. Tech stack
   17. Chat mockup                  21. Sector bento
   18. Dashboard mockup             22. Timeline
   19. Orbit + capability tiles     23. Pricing band, FAQ split, big footer
   Mockups are decorative illustrations: every one carries a visible
   "demo" label, and sample data is never presented as a client result.
   ========================================================================== */


/* 16. Product previews ---------------------------------------------------- */
.previews {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
  text-align: start;
}
.preview {
  position: relative;
  min-width: 0;
  min-height: 380px;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.preview-lime  { background: var(--lime-soft); border: 1px solid #e2f5b3; }
.preview-white { background: var(--soft); border: 1px solid var(--line); }
.preview-dark  { background: var(--dark); color: var(--on-dark); }
.preview:nth-child(2) { margin-top: 40px; }   /* staggered row, like a product shot */

.demo-label {
  display: inline-block;
  margin-bottom: var(--space-4);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / .7);
  border: 1px solid rgb(11 13 18 / .08);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.preview-dark .demo-label { background: var(--dark-2); border-color: var(--line-dark); color: var(--on-dark-muted); }
.preview-title { font-size: 15px; font-weight: 700; margin-bottom: var(--space-3); }

/* Browser frame (website mockup) */
.browser {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d5d9e0; }
.browser-url {
  margin-inline-start: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--white);
  font-size: 11px;
  color: var(--muted);
  direction: ltr;
}
.listing { display: grid; gap: 10px; padding: 12px; }
.listing-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.listing-img {
  height: 60px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgb(198 255 61 / .55), transparent 60%),
    linear-gradient(200deg, #dfe4ea, #c9d0d9);
}
.listing-card strong { display: block; font-size: 13px; }
.listing-card span { display: block; font-size: 12px; color: var(--muted); }
.listing-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lime);
  font-size: 11px;
  font-weight: 700;
}

/* Lead list (dark panel) */
.leads { display: grid; gap: 10px; }
.lead-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: var(--dark-2);
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #262b35;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}
.lead-row div > strong { display: block; font-size: 13px; color: var(--white); }
.lead-row div > span { display: block; font-size: 12px; color: var(--on-dark-muted); }
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.pill-hot  { background: var(--lime); color: var(--ink); }
.pill-warm { background: #2f3540; color: var(--on-dark); }
.pill-soft { background: var(--soft); color: var(--ink-2); border: 1px solid var(--line); }


/* 17. Chat mockup --------------------------------------------------------- */
.chat {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.chat-head .logo-mark { width: 32px; height: 32px; }
.chat-head strong { display: block; font-size: 13px; }
.chat-head span { display: block; font-size: 11px; color: var(--lime-ink); font-weight: 700; }
.chat-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #fafbf7; }
.msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}
.msg-user { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-end-start-radius: 4px; }
.msg-bot  { align-self: flex-end; background: var(--lime); border-end-end-radius: 4px; }
.msg time { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); text-align: end; }
.msg-bot time { color: var(--lime-ink); }


/* 18. Dashboard mockup ---------------------------------------------------- */
.dash {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dash-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  background: var(--dark);
}
.dash-side .logo-mark { width: 28px; height: 28px; }
.dash-side i { width: 22px; height: 22px; border-radius: 7px; background: var(--dark-2); }
.dash-side i:first-of-type { background: var(--lime); }
.dash-main { min-width: 0; padding: var(--space-5); }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash-top strong { font-size: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: var(--space-4); }
.kpi { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.kpi span { display: block; font-size: 12px; color: var(--muted); }
.kpi strong { display: block; font-size: 22px; letter-spacing: -.02em; font-family: var(--font-latin); }
.chart { margin-top: var(--space-4); padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.chart svg { width: 100%; height: 120px; }
.chart-label { font-size: 12px; color: var(--muted); }
.dash-table { margin-top: var(--space-4); font-size: 13px; }
.dash-table li {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.dash-table li span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* 20. Tech stack ---------------------------------------------------------- */
/* Five category columns side by side; a lime light walks across them (Part 7a). */
.stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
  padding-top: 22px;                     /* room for the beam track */
}
.stack-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-5) var(--space-4);
  background: rgb(255 255 255 / .7);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.stack-row h3 { font-size: 15px; color: var(--ink-2); }
.stack-tiles { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.stack-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-latin);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  direction: ltr;
  overflow-wrap: anywhere;
}
.stack-tile i { flex: none; }
.stack-tile i {
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--dot, var(--ink));
}
.stack-tile:nth-child(odd) i { --dot: var(--lime); box-shadow: 0 0 0 1px rgb(11 13 18 / .2); }


/* 21. Sector bento -------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, auto);
  gap: var(--space-4);
}
.bento-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.bento-item .icon { margin-bottom: auto; }
.bento-item h3 { margin-top: var(--space-5); font-size: 18px; }
.bento-item p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.bento-featured {
  grid-column: span 2;
  grid-row: span 2;
  padding: var(--space-6);
  background: var(--dark);
  border-color: var(--dark);
  color: var(--on-dark);
}
.bento-featured h3 { margin-top: 0; font-size: clamp(24px, 2.6vw, 34px); color: var(--white); }
.bento-featured p { font-size: 16px; color: var(--on-dark-muted); }
.bento-featured .card-list { color: var(--on-dark); }
.bento-featured .hero-actions { margin-top: auto; padding-top: var(--space-6); }
.bento-featured .btn-ghost { color: var(--white); border-color: #5b6472; }
.bento-featured .btn-ghost:hover { border-color: var(--white); }
.bento-featured .pill { align-self: flex-start; margin-bottom: var(--space-5); }


/* 22. Timeline (process) -------------------------------------------------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  counter-reset: tl;
}
.timeline::before {                      /* connecting line behind the dots */
  content: "";
  position: absolute;
  top: 24px;
  inset-inline: 24px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.tl-step { position: relative; min-width: 0; }
.tl-step::before {
  counter-increment: tl;
  content: counter(tl);
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: var(--space-5);
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
  font-family: var(--font-latin);
  font-weight: 800;
}
.tl-step:first-child::before { background: var(--lime); }
.tl-box {
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transform-origin: 50% 0;
}
.tl-step p { margin-top: var(--space-2); color: var(--muted); }


/* 23. FAQ split, big footer ----------------------------------------------- */

.faq-split {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: var(--space-8);
  align-items: start;
}

.cta-center { text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-center h2 { margin-inline: auto; max-width: 20ch; }
.cta-center .lead { margin-inline: auto; }
.cta-center .hero-actions { justify-content: center; }
.cta-center::before {                    /* faint lime glow on the dark band */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% 20% auto;
  height: 80%;
  background: radial-gradient(closest-side, rgb(198 255 61 / .18), transparent);
  pointer-events: none;
}

.footer-big { padding-block: var(--space-8) var(--space-6); }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-8);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--line-dark);
}
.footer-top h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 44px); }
.footer-top .lead { color: var(--on-dark-muted); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.footer-cols h3 { margin-bottom: var(--space-3); font-size: 14px; color: var(--white); }
.footer-cols ul { display: grid; gap: var(--space-2); }
.footer-bottom { padding-top: var(--space-5); }


/* Part 2 responsive ------------------------------------------------------- */
@media (max-width: 1080px) {
  .previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview:nth-child(2) { margin-top: 0; }
  .preview:nth-child(3) { grid-column: span 2; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .faq-split, .footer-top { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-7); }
  .timeline::before { display: none; }
  .stack { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding-top: 0; }
}
@media (max-width: 640px) {
  .previews { grid-template-columns: minmax(0, 1fr); }
  .preview:nth-child(3) { grid-column: auto; }
  .preview { min-height: 0; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-featured { grid-column: auto; grid-row: auto; }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .kpi { padding: 8px; }
  .kpi strong { font-size: 17px; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side { display: none; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (forced-colors: active) {
  .preview, .chat, .dash, .stack-tile, .stack-row, .tl-box, .bento-item, .pill { border: 1px solid CanvasText; }
}


/* ==========================================================================
   PART 3: Hero with the Orvix core (homepage, TR + AR)
   24. Layout & floor     26. Core visual & explode
   25. Copy & facts       27. Stage cards, hint, intro motion
   The core is static SVG; main.js only adds tilt, spotlight and
   open/close. Without JS the hero renders complete in its rest state.
   ========================================================================== */


/* 24. Layout & floor ------------------------------------------------------ */
.hero-core {
  --floor-mask: radial-gradient(ellipse 75% 80% at 72% 70%, #000 20%, transparent 100%);
  position: relative;
  isolation: isolate;
  padding-block: clamp(32px, 5vw, 56px);
  text-align: start;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 55% 65% at 72% 52%, rgb(255 255 255 / .95), transparent 70%),
    radial-gradient(ellipse 40% 45% at 76% 58%, rgb(198 255 61 / .14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgb(229 232 237 / .7), transparent 70%),
    var(--white);
}
.hero-core::before, .hero-core::after { content: none; }   /* replaces the generic hero glow */
[dir="rtl"] .hero-core {                                                   /* [RTL] */
  --floor-mask: radial-gradient(ellipse 75% 80% at 28% 70%, #000 20%, transparent 100%);
  background:
    radial-gradient(ellipse 55% 65% at 28% 52%, rgb(255 255 255 / .95), transparent 70%),
    radial-gradient(ellipse 40% 45% at 24% 58%, rgb(198 255 61 / .14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 0%, rgb(229 232 237 / .7), transparent 70%),
    var(--white);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  min-height: calc(100svh - var(--header-h) - 112px);
}

/* Floor: .hero-floor only carries the cursor position (main.js).
   ::before is the quiet grey grid, masked to fade toward the copy;
   .hero-floor-lit is a lime copy seen through a round window at the cursor. */
.hero-floor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-floor::before,
.hero-floor-lit {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}
.hero-floor::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48'%3E%3Cpath d='M0 24L42 0L84 24M0 24L42 48L84 24' fill='none' stroke='%23cfd4db' stroke-width='.8'/%3E%3C/svg%3E");
  opacity: .6;
  -webkit-mask-image: var(--floor-mask);
  mask-image: var(--floor-mask);
}
.hero-floor-lit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48'%3E%3Cpath d='M0 24L42 0L84 24M0 24L42 48L84 24' fill='none' stroke='%2384c000' stroke-width='1.2'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(circle 170px at var(--mx, -999px) var(--my, -999px), #000, transparent);
  mask-image: radial-gradient(circle 170px at var(--mx, -999px) var(--my, -999px), #000, transparent);
  opacity: 0;
  transition: opacity .4s ease;
}
.hero-floor[data-spot="on"] .hero-floor-lit { opacity: .8; }


/* 25. Copy & facts -------------------------------------------------------- */
.hero-title {
  margin-top: var(--space-5);
  max-width: 17ch;
  font-size: clamp(40px, 1rem + 3.4vw, 68px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.04em;
}
:lang(ar) .hero-title { font-weight: 700; line-height: 1.3; letter-spacing: 0; max-width: 14ch; }
/* The accent words: a lime marker stroke behind dark ink (lime text would fail contrast). */
.hero-title mark {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--lime) 58% 92%, transparent 92%);
  padding-inline: .06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-copy .lead { max-width: 32rem; }
.hero-copy .hero-actions { margin-top: var(--space-6); }

.play-dot {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.play-dot svg { width: 8px; height: 8px; }
[dir="rtl"] .play-dot svg { transform: scaleX(-1); }                     /* [RTL] */

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  margin-top: clamp(40px, 6vw, 72px);
}
.hero-facts > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline-end: clamp(14px, 1.6vw, 24px);
}
.hero-facts > div + div { padding-inline-start: clamp(14px, 1.6vw, 24px); border-inline-start: 1px solid var(--line); }
.hero-facts svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--ink); }
.hero-facts dl { display: flex; flex-direction: column-reverse; }  /* value above label */
.hero-facts dt { font-size: 13px; color: var(--muted); line-height: 1.4; }
.hero-facts dd { font-size: 15px; font-weight: 700; line-height: 1.4; }
.hero-facts :is(dt, dd) { white-space: nowrap; }


/* 26. Core visual & explode ----------------------------------------------- */
.core-visual { position: relative; container-type: inline-size; }
.core-stage {
  position: relative;
  aspect-ratio: 1;
  perspective: 1400px;
}
.core-tilt {
  position: absolute;
  inset: 0;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.core-visual.is-open .core-tilt { transform: rotateX(calc(var(--tilt-x, 0deg) + 4deg)) rotateY(var(--tilt-y, 0deg)); }
.core-svg, .core-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Slow float of the stack, and the breathing light in the seam. */
.core-float { animation: core-float 6.5s ease-in-out infinite alternate; }
@keyframes core-float { to { transform: translateY(-10px); } }
.core-pulse { animation: core-pulse 4.8s ease-in-out infinite alternate; }
@keyframes core-pulse { from { opacity: .7; } to { opacity: 1; } }

/* Each plate moves to its own spot (custom properties written by the generator). */
.core-plate {
  transform-box: view-box;
  transform-origin: 500px var(--oy);
  transition: transform .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms);
}
.core-visual.is-open .core-plate { transform: translateY(var(--ty)) scale(var(--s)); }
.core-cast, .core-skirt, .core-ai-ring, .core-num { opacity: 0; transition: opacity .6s ease; }
.core-visual.is-open :is(.core-skirt, .core-ai-ring, .core-num) { opacity: 1; }
.core-visual.is-open .core-cast { opacity: .16; }
.core-orbits, .core-svg > g[clip-path], .core-shadow { transition: opacity .6s ease; }
.core-visual.is-open :is(.core-orbits, .core-svg > g[clip-path]) { opacity: .15; }
.core-visual.is-open .core-shadow { opacity: .55; }

.core-links { opacity: 0; transition: opacity .5s ease; }
.core-visual.is-open .core-links { opacity: 1; transition-delay: .35s; }

/* Invisible hit area over the core: hover (mouse), tap or keyboard opens it. */
.core-hit {
  position: absolute;
  top: 30%; left: 22%;
  width: 56%; height: 44%;
  border: 0;
  border-radius: 3rem;
  background: transparent;
  cursor: pointer;
}
.core-hit:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 3rem; }


/* 27. Stage cards, hint, intro motion ------------------------------------- */
.stage-cards {
  position: absolute;
  inset: 0;
  font-size: clamp(12px, 1.9cqw, 14px);
  pointer-events: none;
}
.stage-card {
  position: absolute;
  top: var(--top);
  left: var(--x);              /* physical: the SVG never mirrors, so RTL needs no override */
  width: var(--w);
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr);
  gap: 0 .5em;
  padding: .85em .95em;
  border: 1px solid rgb(11 13 18 / .07);
  border-radius: 1.2em;
  background: rgb(255 255 255 / .9);
  box-shadow: 0 1px 2px rgb(11 13 18 / .04), 0 14px 34px -18px rgb(11 13 18 / .3);
  opacity: 0;
  visibility: hidden;
  translate: 0 -50%;
  transition: visibility .5s, opacity .5s ease, transform .9s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, box-shadow .3s ease;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .stage-card { background: rgb(255 255 255 / .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.stage-card[data-side="left"]  { transform: translateX(10px); }
.stage-card[data-side="right"] { transform: translateX(-10px); }
.core-visual.is-open .stage-card { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s, .25s, 0s, 0s, 0s; }
.stage-card.is-lit { border-color: var(--ink); box-shadow: 0 18px 38px -18px rgb(11 13 18 / .35), 0 0 0 3px var(--lime); }

.stage-num { font-family: var(--font-latin); font-size: .8em; font-weight: 700; color: var(--muted); line-height: 1.9; }
.stage-title { font-size: 1.05em; font-weight: 700; line-height: 1.3; }
.stage-items { margin-top: .25em; font-size: .88em; color: var(--muted); line-height: 1.45; }
.stage-tag {
  display: inline-block;
  margin-inline-start: .4em;
  padding: .1em .55em;
  border-radius: 999px;
  background: var(--lime);
  font-size: .68em;
  font-weight: 700;
  vertical-align: middle;
}
.stage-chips { display: flex; flex-wrap: wrap; gap: .35em; margin-top: .55em; }
.stage-chips span {
  padding: .15em .6em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-latin);
  font-size: .78em;
  font-weight: 700;
  direction: ltr;
}

.core-hint {
  position: absolute;
  top: 86%;
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;                      /* shown only once main.js can act on it */
  transition: opacity .4s ease;
}
.core-visual.js-ready:not(.is-open) .core-hint { opacity: 1; }
.core-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgb(198 255 61 / .35); }
.core-visual.is-open .core-hint { opacity: 0; }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-hover { display: none; } }

/* Intro: CSS, so the copy paints immediately (good for LCP), no JS needed. */
.rise { animation: rise .7s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: var(--delay, 0s); }
.enter { animation: enter 1.1s cubic-bezier(.22, 1, .36, 1) .25s backwards; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes enter { from { opacity: 0; scale: .97; } }

/* Keyboard users without JS still get the open state. */
.core-visual:has(.core-hit:focus-visible) .core-plate { transform: translateY(var(--ty)) scale(var(--s)); }
.core-visual:has(.core-hit:focus-visible) .stage-card { opacity: 1; visibility: visible; transform: none; }
.core-visual:has(.core-hit:focus-visible) .core-links { opacity: 1; }


/* Part 3 responsive ------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero-core, [dir="rtl"] .hero-core { --floor-mask: radial-gradient(ellipse 90% 60% at 50% 75%, #000 20%, transparent 100%); }
  .hero-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .core-stage { width: min(100%, 760px); margin-inline: auto; }
}
/* Phones: the cards leave the visual and become a list below it. */
@media (max-width: 767px) {
  .stage-cards {
    position: static;
    display: grid;
    gap: 10px;
    margin-top: var(--space-4);
    font-size: 13px;
    pointer-events: auto;
  }
  .stage-card, .stage-card[data-side], .core-visual.is-open .stage-card {
    position: static;
    width: auto;
    translate: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .core-links, .core-hint { display: none; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-facts > div, .hero-facts > div + div { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; border: 0; }
  .hero-facts svg { width: 24px; height: 24px; }
  .hero-facts :is(dt, dd) { white-space: normal; }
}
@media (min-width: 640px) and (max-width: 767px) {
  .stage-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .core-float, .core-pulse, .rise, .enter { animation: none; }
  .core-tilt { transform: none !important; }
}
@media (forced-colors: active) {
  .stage-card { border: 1px solid CanvasText; }
  .hero-title mark { forced-color-adjust: none; }
}
@media print {
  .core-visual, .hero-floor { display: none; }
}


/* ==========================================================================
   PART 4: Animated scenarios (customer → Orvix AI → sources → reply)
   28. Panel & bento      30. Sources card     32. States (driven by main.js)
   29. Flow card          31. Steps card       33. Responsive
   Without JS (or with reduced motion) every scenario shows its finished
   state: question, reply, all sources and all steps done.
   ========================================================================== */


/* 28. Panel & bento ------------------------------------------------------- */
.sc-panel {
  position: relative;
  padding: clamp(28px, 4vw, 56px) clamp(18px, 3.5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--white);
  background-image: repeating-linear-gradient(135deg, rgb(11 13 18 / .035) 0 1px, transparent 1px 11px);
  overflow: hidden;
}
.sc-title {
  max-width: 24ch;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 800;
}
:lang(ar) .sc-title { line-height: 1.4; letter-spacing: 0; }

.sc-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.sc-card {
  position: relative;
  min-width: 0;
  padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(180deg, var(--white), #fbfbfc);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.sc-card h4 { font-size: 15px; font-weight: 700; margin-bottom: var(--space-4); }
.sc-flow { grid-column: 1 / -1; }

/* Corner brackets: a quiet technical frame that opens on hover. */
.sc-card::before,
.sc-card::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 0 solid var(--line-strong);
  pointer-events: none;
  transition: translate .35s cubic-bezier(.2, .8, .2, 1), border-color .3s ease;
}
.sc-card::before { top: -6px; inset-inline-start: -6px; border-top-width: 1.5px; border-inline-start-width: 1.5px; }
.sc-card::after { bottom: -6px; inset-inline-end: -6px; border-bottom-width: 1.5px; border-inline-end-width: 1.5px; }
@media (hover: hover) {
  .sc-card:hover::before { translate: -3px -3px; border-color: var(--ink); }
  .sc-card:hover::after { translate: 3px 3px; border-color: var(--ink); }
  [dir="rtl"] .sc-card:hover::before { translate: 3px -3px; }              /* [RTL] */
  [dir="rtl"] .sc-card:hover::after { translate: -3px 3px; }
}


/* 29. Flow card ----------------------------------------------------------- */
.sc-flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(32px, 5vw, 72px) auto clamp(32px, 5vw, 72px) minmax(0, 1fr);
  align-items: center;
  margin-top: var(--space-2);
}
.sc-who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.sc-who .avatar { width: 28px; height: 28px; font-size: 12px; background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.sc-bubble {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-start-start-radius: 4px;
  background: var(--white);
  font-size: 14px;
  line-height: 1.55;
}
.sc-bubble-bot { background: var(--lime-soft); border-color: #dcf5a0; border-radius: 16px; border-start-end-radius: 4px; }
.sc-a-label { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sc-chips span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

/* The wire between the cards; a lime packet runs along it while active. */
.sc-wire {
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px);
  transition: background .3s ease;
}
.sc-wire i {
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgb(11 13 18 / .35), 0 0 12px var(--lime);
  opacity: 0;
}
@keyframes wire-x { from { inset-inline-start: 0; } to { inset-inline-start: calc(100% - 9px); } }
@keyframes wire-y { from { top: 0; } to { top: calc(100% - 9px); } }

.sc-hub { display: grid; justify-items: center; gap: 8px; text-align: center; }
.sc-hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-latin);
  font-size: 14px;
  letter-spacing: .02em;
  transition: box-shadow .4s ease;
}
[dir="rtl"] .sc-hub-chip { padding: 10px 10px 10px 16px; }              /* [RTL] */
.sc-mark { width: 26px; height: 26px; }
.sc-hub-chip .sc-mark rect { fill: #161a21; }
.sc-status { min-height: 1.5em; font-size: 12px; font-weight: 700; color: var(--lime-ink); white-space: nowrap; }

.sc-typing { display: none; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--lime-soft); }
.sc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-ink); animation: typing 1s ease-in-out infinite; }
.sc-typing i:nth-child(2) { animation-delay: .15s; }
.sc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { opacity: .3; translate: 0 0; } 50% { opacity: 1; translate: 0 -3px; } }


/* 30. Sources card -------------------------------------------------------- */
.sc-src-svg { width: 100%; height: auto; max-height: 190px; overflow: visible; }
[dir="rtl"] .sc-src-svg { transform: scaleX(-1); }   /* [RTL] keeps tiles in the same order as the list */
.sc-path { fill: none; stroke: var(--line-strong); stroke-width: 1.3; stroke-dasharray: 3 4; transition: stroke .3s ease; }
.sc-pk { fill: var(--lime); stroke: #0b0d12; stroke-opacity: .4; opacity: 0; transition: opacity .2s ease; }
.sc-tile { color: var(--ink-2); }
.sc-tile rect { fill: var(--white); stroke: var(--line-strong); transition: fill .3s ease, stroke .3s ease; }
.sc-svg-hub { filter: drop-shadow(0 6px 10px rgb(11 13 18 / .15)); }

.sc-src-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin-top: var(--space-4);
  font-size: 13px;
  color: var(--muted);
}
.sc-src-list li { display: flex; align-items: center; gap: 8px; transition: color .3s ease; }
.sc-src-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgb(11 13 18 / .2);
  transition: background .3s ease;
}


/* 31. Steps card ---------------------------------------------------------- */
.sc-log { display: grid; gap: 12px; }
.sc-log li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  transition: opacity .35s ease;
}
.sc-log strong { display: block; font-size: 14px; line-height: 1.4; }
.sc-log span:not(.sc-tick) { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.sc-tick {
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%230b0d12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: background-color .3s ease, border-color .3s ease;
}
.sc-note { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }


/* 32. States (main.js sets data-step 0–5 and data-src 0–3) --------------- */
.sc-q, .sc-answer { transition: opacity .5s ease, translate .6s cubic-bezier(.16, 1, .3, 1); }
.scenario[data-step="0"] .sc-q { opacity: 0; translate: 0 12px; }
.scenario[data-step]:not([data-step="5"]) .sc-answer { opacity: 0; translate: 0 10px; }
.scenario[data-step="4"] .sc-typing { display: inline-flex; }
.scenario[data-step="4"] .sc-answer { display: none; }

.scenario:is([data-step="1"], [data-step="2"]) .sc-wire-in,
.scenario[data-step="4"] .sc-wire-out { background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px); }
.scenario:is([data-step="1"], [data-step="2"]) .sc-wire-in i,
.scenario[data-step="4"] .sc-wire-out i { opacity: 1; animation: wire-x .9s linear infinite; }

.scenario:is([data-step="2"], [data-step="3"], [data-step="4"]) .sc-hub-chip {
  box-shadow: 0 0 0 4px var(--lime-soft), 0 0 0 9px rgb(198 255 61 / .35);
  animation: hub-pulse 1.4s ease-in-out infinite;
}
@keyframes hub-pulse { 50% { box-shadow: 0 0 0 6px var(--lime-soft), 0 0 0 14px rgb(198 255 61 / .12); } }

.scenario[data-step] .sc-src-list li::before { background: #d5d9e0; box-shadow: none; }
.scenario:is([data-step="4"], [data-step="5"]) .sc-src-list li::before { background: var(--lime); box-shadow: 0 0 0 1px rgb(11 13 18 / .2); }

.scenario[data-src="0"] .src-0 rect, .scenario[data-src="1"] .src-1 rect,
.scenario[data-src="2"] .src-2 rect, .scenario[data-src="3"] .src-3 rect { fill: var(--lime-soft); stroke: var(--ink); }
.scenario[data-src="0"] .sc-tile.src-0, .scenario[data-src="1"] .sc-tile.src-1,
.scenario[data-src="2"] .sc-tile.src-2, .scenario[data-src="3"] .sc-tile.src-3 { color: var(--ink); }
.scenario[data-src="0"] .sc-path.src-0, .scenario[data-src="1"] .sc-path.src-1,
.scenario[data-src="2"] .sc-path.src-2, .scenario[data-src="3"] .sc-path.src-3 { stroke: var(--ink); }
.scenario[data-src="0"] .sc-pk.src-0, .scenario[data-src="1"] .sc-pk.src-1,
.scenario[data-src="2"] .sc-pk.src-2, .scenario[data-src="3"] .sc-pk.src-3 { opacity: 1; }
.scenario[data-src="0"] li.src-0, .scenario[data-src="1"] li.src-1,
.scenario[data-src="2"] li.src-2, .scenario[data-src="3"] li.src-3 { color: var(--ink); font-weight: 700; }
.scenario[data-src="0"] li.src-0::before, .scenario[data-src="1"] li.src-1::before,
.scenario[data-src="2"] li.src-2::before, .scenario[data-src="3"] li.src-3::before { background: var(--lime); box-shadow: 0 0 0 4px rgb(198 255 61 / .35); }

.scenario[data-step] .sc-log li:not(.is-done):not(.is-active) strong { color: var(--muted); }   /* dim by colour, not opacity: keeps 4.5:1 */
.scenario[data-step] .sc-log li:not(.is-done) .sc-tick { background: var(--white); border-color: var(--line-strong); }
.scenario[data-step] .sc-log li.is-active .sc-tick {
  border-color: var(--line);
  border-top-color: var(--ink);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { rotate: 1turn; } }


/* 33. Responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .sc-bento { grid-template-columns: minmax(0, 1fr); }
  .sc-flow-row { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .sc-hub { justify-self: center; }
  .sc-wire {
    justify-self: center;
    width: 2px; height: 36px;
    margin-block: 6px;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 4px, transparent 4px 8px);
  }
  .sc-wire i { top: 0; inset-inline-start: 50%; margin: 0 0 0 -4.5px; }
  [dir="rtl"] .sc-wire i { margin: 0 -4.5px 0 0; }
  .scenario:is([data-step="1"], [data-step="2"]) .sc-wire-in,
  .scenario[data-step="4"] .sc-wire-out { background: repeating-linear-gradient(180deg, var(--ink) 0 4px, transparent 4px 8px); }
  .scenario:is([data-step="1"], [data-step="2"]) .sc-wire-in i,
  .scenario[data-step="4"] .sc-wire-out i { animation-name: wire-y; }
}
@media (max-width: 480px) {
  .sc-src-list { grid-template-columns: minmax(0, 1fr); }
  .sc-status { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-typing i, .sc-tick, .sc-hub-chip, .sc-wire i { animation: none !important; }
}
@media (forced-colors: active) {
  .sc-card, .sc-panel { border: 1px solid CanvasText; }
}


/* ==========================================================================
   PART 5: Site-wide floor grid + scroll motion
   34. Grid rails: the hero's isometric grid continues down the page along
       the edges (masked away from the content column), aligned to the
       hero's own grid. Soft sections let it show through faintly; the dark
       CTA band and footer carry a dark version.
   35. Reveal: elements enter as they scroll into view. Hidden states exist
       only while html has .js-motion (set inline in <head>; removed by a
       safety timer if main.js never runs) and motion is allowed.
   ========================================================================== */


/* 34. Grid rails ---------------------------------------------------------- */
body { position: relative; isolation: isolate; }
main { overflow-x: clip; }   /* entrance slides never cause sideways scroll (not on body: it would propagate to the viewport) */
body::before {
  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='84' height='48'%3E%3Cpath d='M0 24L42 0L84 24M0 24L42 48L84 24' fill='none' stroke='%23d5d9e0' stroke-width='.8'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, #000 0, rgb(0 0 0 / .4) 10%, transparent 24%, transparent 76%, rgb(0 0 0 / .4) 90%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0, rgb(0 0 0 / .4) 10%, transparent 24%, transparent 76%, rgb(0 0 0 / .4) 90%, #000 100%);
  opacity: .6;
}
/* The hero grid starts below the sticky header: shift it so its lines meet the rails. */
.hero-floor::before, .hero-floor-lit { background-position: 0 calc(var(--header-h) * -1); }

.section-soft { background: rgb(246 247 249 / .82); }

.cta-band { position: relative; isolation: isolate; overflow: hidden; }
.cta-band::after,
.site-footer::before {
  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='84' height='48'%3E%3Cpath d='M0 24L42 0L84 24M0 24L42 48L84 24' fill='none' stroke='%23343a45' stroke-width='.8'/%3E%3C/svg%3E");
}
.cta-band::after {
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 100%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 100%, #000 10%, transparent 75%);
}
.site-footer { position: relative; isolation: isolate; }
.site-footer::before {
  opacity: .7;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
  mask-image: linear-gradient(180deg, #000, transparent 60%);
}

@media (max-width: 767px) {
  body::before { opacity: .35; }
}
@media print {
  body::before, .cta-band::after, .site-footer::before { display: none; }
}


/* 35. Scroll reveal ------------------------------------------------------- */
@media screen and (prefers-reduced-motion: no-preference) {
  .js-motion :is(.grid > *, .orbit, .bento > *, .tl-step, .faq, .dash, .stack-row, .cta-band, .footer-top, .sc-panel, .split > *, .sc-card) {
    transition:
      opacity .9s cubic-bezier(.16, 1, .3, 1) var(--rd, 0ms),
      translate 1.1s cubic-bezier(.16, 1, .3, 1) var(--rd, 0ms),
      scale 1.1s cubic-bezier(.16, 1, .3, 1) var(--rd, 0ms),
      transform 1.2s cubic-bezier(.16, 1, .3, 1) var(--rd, 0ms),
      clip-path 1.1s cubic-bezier(.16, 1, .3, 1) var(--rd, 0ms);
  }

  /* Default entrance: rise and settle. */
  .js-motion :is(.grid > *, .bento > *, .tl-step, .faq, .dash, .stack-row, .footer-top, .split > *):not(.in) {
    opacity: 0;
    translate: 0 48px;
  }
  /* Headings: each line wipes up from behind a mask, one after another.
     The mask sits on the children, so the observed .section-head keeps its
     full box (a clipped target would never count as "in view"). */
  .js-motion .section-head > * {
    transition:
      opacity .8s cubic-bezier(.16, 1, .3, 1),
      translate 1s cubic-bezier(.16, 1, .3, 1),
      clip-path 1s cubic-bezier(.16, 1, .3, 1);
  }
  .js-motion .section-head > :nth-child(2) { transition-delay: .1s; }
  .js-motion .section-head > :nth-child(3) { transition-delay: .2s; }
  .js-motion .section-head:not(.in) > * { opacity: 0; translate: 0 28px; clip-path: inset(0 0 100% 0); }
  .js-motion .section-head.in > * { clip-path: inset(-20% -10% -30% -10%); }
  /* Orbit: grows from the centre. */
  .js-motion .orbit:not(.in) { opacity: 0; scale: .82; }
  /* Scenario panels tip forward in 3D, then their cards follow. */
  .js-motion .sc-panel:not(.in) { opacity: 0; transform: perspective(1400px) rotateX(14deg) translateY(80px) scale(.96); transform-origin: 50% 0; }
  .js-motion .sc-card:not(.in) { opacity: 0; translate: 0 32px; }
  /* Dark CTA band expands into place. */
  .js-motion .cta-band:not(.in) { opacity: 0; scale: .9; }
  /* Process line draws across once the timeline is in view. */
  .js-motion .timeline::before { transition: scale 1.4s cubic-bezier(.16, 1, .3, 1) .2s; transform-origin: 0 50%; }
  [dir="rtl"].js-motion .timeline::before { transform-origin: 100% 50%; }
  .js-motion .timeline:not(.in)::before { scale: 0 1; }
}


/* ==========================================================================
   PART 6: Problems, comparison and services motion (6a, 6b, 6c)
   ========================================================================== */

/* PART 6a: problems (three small looping illustrations in the cards) -------- */
/* Static markup is the final frame; loops start only under .js-motion + .in. */
.pb-viz {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  grid-template-rows: repeat(3, 28px);
  column-gap: 10px;
  row-gap: 2px;
  margin-bottom: var(--space-5);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.pb-s { grid-column: 1; }
.pb-w { grid-column: 2; }
.pb-e { grid-column: 3; }
.pb-r1 { grid-row: 1; }
.pb-r2 { grid-row: 2; }
.pb-r3 { grid-row: 3; }
.pb-all { grid-row: 1 / 4; }

.pb-t {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-2);
}
.pb-t svg { position: relative; z-index: 1; width: 16px; height: 16px; }
.pb-t::after {                                  /* "active" layer, faded in/out via opacity */
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--ink);
  border-radius: inherit;
  background: var(--lime-soft);
  opacity: 0;
}
.pb-t.is-win::after { opacity: 1; }
.pb-t.is-win { color: var(--ink); }
.pb-all { border-radius: 10px; }
.pb-inbox { border-style: dashed; color: var(--muted); }

.pb-w {
  position: relative;
  align-self: center;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px);
}
.pb-w::before {                                 /* solid ink wire = delivered */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
}
.pb-w.is-win::before { opacity: 1; }
.pb-w i {
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgb(11 13 18 / .35), 0 0 12px var(--lime);
  opacity: 0;
}
.pb-cut::after {                                /* the break in the wire */
  content: "";
  position: absolute;
  inset-inline-start: 56%;
  top: -6px; bottom: -6px;
  width: 14px;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) 0 50% / 2px 10px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 100% 50% / 2px 10px no-repeat,
    var(--soft);
}

.pb-b {                                         /* small badge on the end tile */
  position: absolute;
  z-index: 2;
  top: -6px;
  inset-inline-end: -6px;
  display: grid;
  place-items: center;
  width: 14px; height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
}
.pb-b svg { width: 10px; height: 10px; stroke-width: 2.4; }
.pb-b-w { width: 22px; color: var(--ink-2); }
.pb-b-w svg { grid-area: 1 / 1; }
.pb-ok { border-color: var(--ink); background: var(--lime); }
.pb-q { border-color: var(--ink); }
.pb-dots {
  grid-area: 1 / 1;
  display: flex;
  gap: 2px;
  opacity: 0;
}
.pb-dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-2); }
.pb-dots i:nth-child(2) { animation-delay: .15s; }
.pb-dots i:nth-child(3) { animation-delay: .3s; }

.pb-late .is-late { color: var(--muted); }
.pb-lost .pb-d1 { --d: .6s; }
.pb-lost .pb-d2 { --d: 1.2s; }
.pb-ads .pb-d1 { --d: .3s; }
.pb-ads .pb-d2 { --d: .6s; }
[dir="rtl"] .pb-flip svg { transform: scaleX(-1); }   /* [RTL] megaphone points to the end side */

@media screen and (prefers-reduced-motion: no-preference) {
  .js-motion .card.in .pb-lost .pb-w i { animation: pb-lost 5s linear var(--d, 0s) infinite both; }
  .js-motion .card.in .pb-late .pb-w i,
  .js-motion .card.in .pb-ads .pb-w i { animation: pb-go 5s linear var(--d, 0s) infinite both; }

  .js-motion .card.in .pb-late .is-win::before,
  .js-motion .card.in .pb-late .is-win::after,
  .js-motion .card.in .pb-late .is-win .pb-b,
  .js-motion .card.in .pb-late .is-late .pb-b { animation: pb-win 5s linear infinite both; }
  .js-motion .card.in .pb-late .is-late { animation: pb-lose 5s linear infinite both; }
  .js-motion .card.in .pb-late .pb-dots { animation: pb-dots 5s linear infinite both; }
  .js-motion .card.in .pb-late .pb-dots i { animation: typing 1s ease-in-out infinite; }
  .js-motion .card.in .pb-late .pb-b-w svg { animation: pb-clock 5s linear infinite both; }

  .js-motion .card.in .pb-ads .pb-q { animation: pb-pop 5s linear var(--d, 0s) infinite both; }
}

@keyframes pb-lost {                            /* stops at the break and vanishes */
  0%   { inset-inline-start: 0; opacity: 0; }
  6%   { opacity: 1; }
  30%  { inset-inline-start: calc(56% - 9px); opacity: 1; }
  38%, 100% { inset-inline-start: calc(56% - 9px); opacity: 0; }
}
@keyframes pb-go {
  0%   { inset-inline-start: 0; opacity: 0; }
  6%   { opacity: 1; }
  30%  { inset-inline-start: calc(100% - 9px); opacity: 1; }
  34%, 100% { inset-inline-start: calc(100% - 9px); opacity: 0; }
}
@keyframes pb-win  { 0%, 34% { opacity: 0; } 40%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes pb-lose { 0%, 34% { opacity: 1; } 70%, 92% { opacity: .45; } 100% { opacity: 1; } }
@keyframes pb-dots { 0%, 36% { opacity: 0; } 42%, 62% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes pb-clock { 0%, 66% { opacity: 0; } 74%, 100% { opacity: 1; } }
@keyframes pb-pop {
  0%, 28% { opacity: 0; transform: scale(.4); }
  36%     { opacity: 1; transform: scale(1.15); }
  42%, 88% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(1); }
}

@media (forced-colors: active) {
  .pb-viz, .pb-t, .pb-b { border-color: CanvasText; }
  .pb-w { background: repeating-linear-gradient(90deg, CanvasText 0 4px, transparent 4px 8px); }
  .pb-w i { background: Highlight; }
}

/* PART 6b: Comparison transition (classic -> Orvix) */
/* Final state (no JS / reduced motion): classic titles struck + x marks, Orvix ticks, static bridge. */
.compare { --cmp-d: 1; --cmp-t: .8s; }                      /* --cmp-d: flow direction, --cmp-t: start delay */
[dir="rtl"] .compare { --cmp-d: -1; }                       /* [RTL] */
.compare-col { border-width: 2px; }                         /* equal borders keep the subgrid rows aligned */
.compare-col li { position: relative; padding-inline-start: 34px; }
:is(.cmp-link, .compare li):nth-child(1) { --i: 0; }
:is(.cmp-link, .compare li):nth-child(2) { --i: 1; }
:is(.cmp-link, .compare li):nth-child(3) { --i: 2; }
:is(.cmp-link, .compare li):nth-child(4) { --i: 3; }

/* Classic: wrapped-line-safe strike (inline box + background line), drawn from the inline start. */
.compare-col:not(.is-orvix) li strong {
  display: inline;
  background: linear-gradient(currentColor, currentColor) no-repeat left 58% / 100% 1.5px;
}
[dir="rtl"] .compare-col:not(.is-orvix) li strong { background-position: right 58%; }   /* [RTL] */

/* Markers: x (classic) and tick (Orvix) */
.compare-col li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: calc(var(--space-4) + 3px);
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border-radius: 50%;
  background: center / 100% no-repeat;
}
.compare-col:not(.is-orvix) li::before {
  border: 1.5px solid var(--line-strong);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17'%3E%3Cpath d='M5.5 5.5l6 6M11.5 5.5l-6 6' stroke='%233b4250' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.compare-col.is-orvix li::before {
  border: 1.5px solid var(--ink);
  background-color: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17'%3E%3Cpath d='M4.6 8.7l2.7 2.7 5-5.4' fill='none' stroke='%230b0d12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Bridge: hidden unless a layout below can align it */
.cmp-bridge { display: none; }
.cmp-link { position: relative; isolation: isolate; }
.cmp-link::before {                                         /* Orvix mark chip */
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%23161a21'/%3E%3Ccircle cx='28' cy='32' r='14' fill='none' stroke='%23fff' stroke-width='7'/%3E%3Ccircle cx='48' cy='44' r='5' fill='%23c6ff3d'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.cmp-link::after {                                          /* lime packet, visible only while travelling */
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  z-index: 0;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  opacity: 0;
}

/* Desktop: 3 columns on a shared 5-row grid so every row lines up (needs subgrid, else plain 2 columns) */
@media (min-width: 961px) {
  @supports (grid-template-rows: subgrid) {
    .compare {
      grid-template-columns: minmax(0, 1fr) clamp(56px, 7vw, 88px) minmax(0, 1fr);
      grid-template-rows: repeat(5, auto);
      gap: 0 var(--space-3);
    }
    .compare-col { display: grid; grid-template-rows: subgrid; grid-row: 1 / span 5; }
    .compare-col ul { display: contents; }
    .compare-col:not(.is-orvix) { grid-column: 1; }
    .compare-col.is-orvix { grid-column: 3; }
    .cmp-bridge { display: grid; grid-template-rows: subgrid; grid-column: 2; grid-row: 2 / span 4; }
    .cmp-link { background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px) center / 100% 2px no-repeat; }
  }
}

/* Stacked (same breakpoint as the old 1-column rule): vertical connector, packet runs top -> bottom */
@media (max-width: 960px) {
  .compare { gap: 0; }
  .cmp-bridge { display: block; height: 64px; }
  .cmp-link:not(:first-child) { display: none; }
  .cmp-link { display: block; height: 100%; background: repeating-linear-gradient(180deg, var(--line-strong) 0 4px, transparent 4px 8px) center / 2px 100% no-repeat; }
  .cmp-link::after { top: 0; inset-inline: 0; margin: 0 auto; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  /* Columns slide in from opposite sides */
  .js-motion .compare-col {
    transition: opacity .9s cubic-bezier(.16, 1, .3, 1), translate 1.1s cubic-bezier(.16, 1, .3, 1);
  }
  .js-motion .compare:not(.in) .compare-col { opacity: 0; translate: calc(var(--cmp-d) * -56px) 0; }
  .js-motion .compare:not(.in) .compare-col.is-orvix { translate: calc(var(--cmp-d) * 56px) 0; }

  /* Classic: strike draws, x pops */
  .js-motion .compare-col:not(.is-orvix) li strong {
    transition: background-size .45s cubic-bezier(.22, 1, .36, 1) calc(var(--cmp-t) + var(--i) * .45s);
  }
  .js-motion .compare:not(.in) .compare-col:not(.is-orvix) li strong { background-size: 0 1.5px; }
  .js-motion .compare-col li::before {
    transition: scale .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--cmp-t) + var(--i) * .45s + .25s);
  }
  .js-motion .compare:not(.in) .compare-col li::before { scale: 0; }

  /* Orvix: each item arrives after the packet, tick pops last */
  .js-motion .compare-col.is-orvix li {
    transition:
      opacity .5s ease calc(var(--cmp-t) + var(--i) * .45s + .55s),
      translate .7s cubic-bezier(.22, 1, .36, 1) calc(var(--cmp-t) + var(--i) * .45s + .55s);
  }
  .js-motion .compare-col.is-orvix li::before { transition-delay: calc(var(--cmp-t) + var(--i) * .45s + .7s); }
  .js-motion .compare:not(.in) .compare-col.is-orvix li { opacity: 0; translate: calc(var(--cmp-d) * -28px) 0; }

  /* Bridge: chip pops, packet hops once per row */
  .js-motion .cmp-link::before {
    transition: scale .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--cmp-t) + var(--i) * .45s + .1s);
  }
  .js-motion .compare:not(.in) .cmp-link::before { scale: 0; }
  .js-motion .compare.in .cmp-link::after {
    animation: cmp-hop .45s cubic-bezier(.4, 0, .2, 1) calc(var(--cmp-t) + var(--i) * .45s + .2s) both;
  }

  /* After the last row: one-time lime ring + lift on the Orvix column (no fill, so the entrance slide is untouched) */
  .js-motion .compare.in .compare-col.is-orvix { animation: cmp-ring 1.1s ease-out calc(var(--cmp-t) + 2.5s); }
}
@media screen and (prefers-reduced-motion: no-preference) and (max-width: 960px) {
  /* One connector serves all four rows: 4 passes, top -> bottom */
  .js-motion .compare.in .cmp-link:first-child::after {
    animation: cmp-drop .45s cubic-bezier(.4, 0, .2, 1) calc(var(--cmp-t) + .2s) 4 both;
  }
}

@keyframes cmp-hop {
  0%       { inset-inline-start: 0; opacity: 0; }
  15%, 85% { opacity: 1; }
  100%     { inset-inline-start: calc(100% - 12px); opacity: 0; }
}
@keyframes cmp-drop {
  0%       { top: 0; opacity: 0; }
  15%, 85% { opacity: 1; }
  100%     { top: calc(100% - 12px); opacity: 0; }
}
@keyframes cmp-ring {
  0%   { box-shadow: var(--shadow), 0 0 0 0 rgb(198 255 61 / .95); translate: 0 0; }
  40%  { translate: 0 -6px; }
  100% { box-shadow: var(--shadow), 0 0 0 20px rgb(198 255 61 / 0); translate: 0 0; }
}

@media (forced-colors: active) {
  .cmp-link::before { border: 1px solid CanvasText; }
  .compare-col:not(.is-orvix) li strong { background: none; text-decoration: line-through; }
}

/* PART 6c: services (orbit that bursts into six cards) --------------------- */
/* Base = the open look, so no-JS (or html.js-motion removed) keeps every card visible; the folded look is scoped to .js-motion (set before first paint, so no flash). */
.svc-visual { container-type: inline-size; max-width: 1100px; margin-inline: auto; }
.svc-stage { position: relative; aspect-ratio: 1100 / 460; font-size: clamp(13px, 1.45cqw, 15px); }

/* Orbit: centred, 460/1100 of the stage wide. Positions are physical (the art never mirrors). */
.svc-orbit { position: absolute; top: 0; left: 29.0909%; width: 41.8182%; height: 100%; }
.svc-orbit svg { display: block; width: 100%; height: 100%; overflow: visible; }
.svc-orbit text { font-family: inherit; font-size: 13px; font-weight: 700; fill: var(--ink); }
.svc-labels { opacity: 0; transition: opacity .3s ease; }
.svc-bg { fill: var(--lime-soft); stroke: var(--ink); transition: fill .4s ease, stroke .4s ease; }
.svc-dot { fill: var(--lime); stroke: rgb(11 13 18 / .25); transition: fill .4s ease; }
.svc-pulse { fill: var(--lime); opacity: 0; transform-box: fill-box; transform-origin: center; }

.svc-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.svc-leaders path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.25;
  stroke-dasharray: 1;
  transition: stroke-dashoffset .6s cubic-bezier(.22, 1, .36, 1) calc(var(--d, 0ms) + .15s), opacity .3s ease calc(var(--d, 0ms) + .15s);
}

/* Invisible hit area over the orbit: hover (mouse), tap or Enter/Space opens it. */
.svc-hit {
  position: absolute;
  top: 0; left: 29.0909%;
  width: 41.8182%; height: 100%;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.svc-hit:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.svc-visual:not(.js-ready) .svc-hit { display: none; }

/* Cards: two physical columns, three rows aligned with the nodes. */
.svc-cards { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.svc-card {
  position: absolute;
  width: 27%;
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  gap: 0 .75em;
  align-items: start;
  padding: .85em .95em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(11 13 18 / .04), 0 14px 34px -18px rgb(11 13 18 / .3);
  translate: 0 -50%;
  pointer-events: auto;
  transition: opacity .5s ease var(--d, 0ms), translate .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms), scale .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms);
}
.svc-card[data-side="left"]  { left: 0;   --dx: 36.5cqw; }
.svc-card[data-side="right"] { left: 73%; --dx: -36.5cqw; }
.svc-card[data-row="1"] { top: 18.04%; --dy: 13.37cqw; }
.svc-card[data-row="2"] { top: 50%;    --dy: 0cqw; }
.svc-card[data-row="3"] { top: 81.96%; --dy: -13.37cqw; }
.svc-card .icon { width: 2.6em; height: 2.6em; margin: 0; border-radius: .8em; }
.svc-card .icon svg { width: 1.3em; height: 1.3em; }
.svc-card h3 { font-size: 1.05em; line-height: 1.3; }
.svc-card p { margin-top: .25em; font-size: .93em; line-height: 1.45; color: var(--muted); }

/* Closed (JS only): cards sit folded into the core, leaders undrawn, labels shown. */
.js-motion .svc-visual:not(.is-open) .svc-card {
  opacity: 0;
  visibility: hidden;
  translate: var(--dx) calc(var(--dy) - 50%);
  scale: .6;
  pointer-events: none;
  transition: opacity .3s ease, translate .45s ease, scale .45s ease, visibility 0s .45s;
}
.js-motion .svc-visual:not(.is-open) .svc-leaders path { stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .3s ease, opacity .2s ease; }
.js-motion .svc-visual:not(.is-open) .svc-labels { opacity: 1; }
.js-motion .svc-visual:not(.is-open) .svc-bg { fill: var(--white); stroke: #d5d9e0; }
.js-motion .svc-visual:not(.is-open) .svc-dot { fill: var(--ink); stroke: none; }
.js-motion .svc-visual:not(.is-open) .svc-dot[data-lime] { fill: var(--lime); stroke: rgb(11 13 18 / .25); }

/* Hint, same idea as the hero one (.hint-hover / .hint-touch are defined in Part 3). */
.svc-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: none;
  margin-top: var(--space-4);
  font-size: 13px;
  color: var(--muted);
  opacity: 0;
  transition: opacity .4s ease;
}
.svc-visual.js-ready:not(.is-open) .svc-hint { opacity: 1; }
.svc-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgb(198 255 61 / .35); }

/* One lime ripple from the core each time it opens. */
@keyframes svc-ring { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(2); } }
@media screen and (prefers-reduced-motion: no-preference) {
  .svc-visual.is-open .svc-pulse { animation: svc-ring 1s cubic-bezier(.22, 1, .36, 1); }
}

/* Reduced motion: cards and leaders only fade, nothing flies or draws. */
@media (prefers-reduced-motion: reduce) {
  .svc-card, .js-motion .svc-visual:not(.is-open) .svc-card { translate: 0 -50%; scale: 1; transition: opacity .3s ease, visibility 0s; }
  .svc-leaders path, .js-motion .svc-visual:not(.is-open) .svc-leaders path { stroke-dashoffset: 0; transition: opacity .3s ease; }
}
@media (forced-colors: active) {
  .svc-card { border: 1px solid CanvasText; }
}

/* Narrow stage: no burst. The orbit sits on top, the cards are a plain list below. */
@container (max-width: 859px) {
  .svc-stage { aspect-ratio: auto; font-size: 14px; }
  .svc-orbit { position: relative; left: auto; width: min(100%, 300px); height: auto; aspect-ratio: 1; margin-inline: auto; }
  .svc-leaders, .svc-hit, .svc-hint, .svc-labels, .svc-pulse { display: none; }
  .svc-cards { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: var(--space-5); }
  .svc-card, .js-motion .svc-visual:not(.is-open) .svc-card {
    position: static;
    width: auto;
    translate: none;
    scale: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .svc-bg, .js-motion .svc-visual:not(.is-open) .svc-bg { fill: var(--lime-soft); stroke: var(--ink); }
  .svc-dot, .js-motion .svc-visual:not(.is-open) .svc-dot { fill: var(--lime); stroke: rgb(11 13 18 / .25); }
}
@container (max-width: 559px) {
  .svc-cards { grid-template-columns: minmax(0, 1fr); }
}


/* PART 6d: Pause button (WCAG 2.2.2) --------------------------------------- */
/* Shown by main.js only when looping motion can run; html.motion-off stops every loop. */
.motion-ctl { display: flex; justify-content: center; max-width: none; margin: calc(var(--space-5) * -1) 0 var(--space-6); }
.motion-ctl[hidden] { display: none; }
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.motion-toggle svg { width: 14px; height: 14px; }
.motion-toggle:hover { border-color: var(--ink); color: var(--ink); }
.motion-toggle:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.motion-toggle[aria-pressed="true"] { background: var(--lime); border-color: var(--ink); color: var(--ink); }
html.motion-off :is(.pb-viz *, .core-float, .core-pulse) { animation: none !important; }
@media (forced-colors: active) {
  .motion-toggle { border-color: ButtonText; }
  .motion-toggle[aria-pressed="true"] { outline: 2px solid Highlight; }
}


/* ==========================================================================
   PART 7: Tech stack beam (7a), sector flows (7b), process steps (7c),
           rail glow (7d)
   Loops run only with .js-motion, motion allowed, not paused (html.motion-off)
   and once the block is in view (.in from main.js). Otherwise the static,
   finished look stays (no-JS, reduced motion, paused).
   ========================================================================== */

/* 7a. Tech stack: a lime beam walks across the columns, lighting each one -- */
.stack-row:nth-child(1) { --k: 0s; }
.stack-row:nth-child(2) { --k: 1.8s; }
.stack-row:nth-child(3) { --k: 3.6s; }
.stack-row:nth-child(4) { --k: 5.4s; }
.stack-row:nth-child(5) { --k: 7.2s; }
.stack::before,
.stack::after { content: ""; position: absolute; top: 0; height: 3px; border-radius: 3px; pointer-events: none; }
.stack::before { inset-inline: 0; background: var(--line); }
.stack::after {
  display: none;
  inset-inline-start: 0;
  width: calc((100% - 4 * var(--space-4)) / 5);
  background: var(--lime);
  box-shadow: 0 0 0 1px rgb(11 13 18 / .15), 0 0 18px 2px rgb(198 255 61 / .8);
}
/* Column i starts at i * (100% + gap) / 5; each column owns 20% of the 9 s loop. */
@keyframes stk-beam {
  0%       { inset-inline-start: 0; opacity: 0; }
  2%, 17%  { inset-inline-start: 0; opacity: 1; }
  20%, 37% { inset-inline-start: calc((100% + var(--space-4)) / 5); }
  40%, 57% { inset-inline-start: calc((100% + var(--space-4)) * 2 / 5); }
  60%, 77% { inset-inline-start: calc((100% + var(--space-4)) * 3 / 5); }
  80%, 97% { inset-inline-start: calc((100% + var(--space-4)) * 4 / 5); opacity: 1; }
  100%     { inset-inline-start: calc((100% + var(--space-4)) * 4 / 5); opacity: 0; }
}
@keyframes stk-col {
  0%, 22%, 100% { border-color: var(--line); background: rgb(255 255 255 / .7); box-shadow: 0 0 0 0 rgb(198 255 61 / 0); }
  4%, 17%       { border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px var(--lime), 0 22px 44px -18px rgb(132 192 0 / .65); }
}
@keyframes stk-tile {
  0%, 22%, 100% { border-color: var(--line); }
  4%, 17%       { border-color: var(--lime-ink); }
}
@keyframes stk-dot {
  0%, 22%, 100% { background: var(--dot, var(--ink)); scale: 1; box-shadow: 0 0 0 1px rgb(11 13 18 / .2); }
  4%, 17%       { background: var(--lime); scale: 1.3; box-shadow: 0 0 0 1px rgb(11 13 18 / .3), 0 0 10px 2px rgb(198 255 61 / .9); }
}
@media screen and (prefers-reduced-motion: no-preference) {
  html.js-motion:not(.motion-off) .stack.in::after { display: block; animation: stk-beam 9s cubic-bezier(.65, 0, .35, 1) infinite; }
  html.js-motion:not(.motion-off) .stack.in .stack-row { animation: stk-col 9s ease-in-out var(--k) infinite; }
  html.js-motion:not(.motion-off) .stack.in .stack-tile { animation: stk-tile 9s ease-in-out var(--k) infinite; }
  html.js-motion:not(.motion-off) .stack.in .stack-tile i { animation: stk-dot 9s ease-in-out var(--k) infinite; }
}
@media (max-width: 960px) {
  .stack::before, .stack::after { display: none !important; }   /* columns wrap: no single track to walk */
}


/* 7b. Sectors: hover / focus / tap reveals how the agent works there ------- */
/* The flow is real text (read by screen readers); visually it is clipped until shown. */
.sector { --fx: 48px; position: relative; overflow: hidden; isolation: isolate; min-height: 232px; }
[dir="rtl"] .sector { --fx: calc(100% - 48px); }                            /* [RTL] */
.sector:focus { outline: none; }
.sector:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sector:is(:hover, :focus) { border-color: var(--dark); box-shadow: 0 0 0 2px var(--lime), 0 26px 50px -22px rgb(132 192 0 / .75); }

.sector-hint {
  position: absolute;
  top: var(--space-5);
  inset-inline-end: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.sector-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgb(198 255 61 / .35); }

.sector-flow {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: radial-gradient(circle at var(--fx) 0%, rgb(198 255 61 / .18), transparent 65%), var(--dark);
  color: var(--on-dark);
  clip-path: circle(0 at var(--fx) 48px);
  pointer-events: none;
}
.sector:is(:hover, :focus) .sector-flow { clip-path: circle(150% at var(--fx) 48px); }
.sector-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(198 255 61 / .14);
  color: var(--lime);                    /* lime text only on the dark panel */
  font-size: 12px;
  font-weight: 700;
}
.sector-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

.sf-steps { position: relative; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sf-steps::before,
.sf-steps::after { content: ""; position: absolute; inset-inline-start: 8px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; }
.sf-steps::before { background: rgb(255 255 255 / .14); }
.sf-steps::after { background: var(--lime); box-shadow: 0 0 10px rgb(198 255 61 / .7); transform-origin: 50% 0; }
.sf-steps li { position: relative; z-index: 1; max-width: none; padding-inline-start: 30px; font-size: 13.5px; line-height: 1.4; color: var(--on-dark); }
.sf-steps li:last-child { font-weight: 700; color: var(--white); }
.sf-steps li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 18px; height: 18px;
  box-sizing: border-box;
  border: 2px solid var(--lime);
  border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%230b0d12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

@keyframes sf-blink { 50% { opacity: .25; } }
@media screen and (prefers-reduced-motion: no-preference) {
  .sector, .js-motion .bento > .bento-item.sector {
    transition:
      opacity .9s cubic-bezier(.16, 1, .3, 1) var(--rd, 0ms),
      translate 1.1s cubic-bezier(.16, 1, .3, 1) var(--rd, 0ms),
      box-shadow .45s ease, border-color .45s ease;
  }
  .sector-flow { transition: clip-path .75s cubic-bezier(.7, 0, .2, 1); }
  .sf-steps li { transition: opacity .35s ease, translate .5s cubic-bezier(.16, 1, .3, 1); }
  .sf-steps li::before { transition: background-color .3s ease, border-color .3s ease, background-size .3s ease; }
  .sf-steps::after { transition: scale .9s cubic-bezier(.65, 0, .35, 1); }
  /* Resting (not shown): steps waiting, nodes empty, line undrawn. Shown: they play in order. */
  .sector:not(:hover):not(:focus) .sf-steps li { opacity: 0; translate: 0 10px; }
  .sector:not(:hover):not(:focus) .sf-steps li::before { background-color: var(--dark); background-size: 0; border-color: rgb(255 255 255 / .3); }
  .sector:not(:hover):not(:focus) .sf-steps::after { scale: 1 0; }
  .sector:is(:hover, :focus) .sf-steps li { transition-delay: calc(.3s + var(--n) * .35s); }
  .sector:is(:hover, :focus) .sf-steps li::before { transition-delay: calc(.55s + var(--n) * .35s); }
  .sector:is(:hover, :focus) .sf-steps::after { transition-delay: .5s; }
  html:not(.motion-off) .sector:is(:hover, :focus) .sector-tag i { animation: sf-blink 1.1s ease-in-out infinite; }
}
@media (forced-colors: active) {
  .sector-flow { border: 1px solid CanvasText; }
}


/* 7c. Process: a lime line runs step to step; each step grows as it is reached */
.tl-step { z-index: 1; }                 /* steps sit above the running line */
.tl-step:nth-child(1) { --k: 0s; }
.tl-step:nth-child(2) { --k: 2.5s; }
.tl-step:nth-child(3) { --k: 5s; }
.tl-step:nth-child(4) { --k: 7.5s; }
.timeline::after {
  content: "";
  position: absolute;
  top: 23px;
  inset-inline-start: 24px;
  z-index: 0;
  display: none;
  width: calc(75% + var(--space-5) * .75);   /* first dot centre to last dot centre */
  height: 4px;
  border-radius: 4px;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgb(11 13 18 / .2), 0 0 16px rgb(198 255 61 / .8);
  transform-origin: 0 50%;
}
[dir="rtl"] .timeline::after { transform-origin: 100% 50%; }                /* [RTL] */
@keyframes tl-fill {
  0%, 20%  { scale: 0 1; opacity: 1; }
  27%, 45% { scale: .3334 1; }
  52%, 70% { scale: .6667 1; }
  77%, 95% { scale: 1 1; opacity: 1; }
  100%     { scale: 1 1; opacity: 0; }
}
@keyframes tl-box {
  0%, 30%, 100% { scale: 1; border-color: var(--line); box-shadow: 0 0 0 0 rgb(198 255 61 / 0); }
  6%, 24%       { scale: 1.07; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime), 0 26px 50px -22px rgb(132 192 0 / .7); }
}
@keyframes tl-dot {
  0%, 30%, 100% { background: var(--white); scale: 1; box-shadow: 0 0 0 0 rgb(198 255 61 / 0); }
  6%, 24%       { background: var(--lime); scale: 1.18; box-shadow: 0 0 0 7px rgb(198 255 61 / .35); }
}
@media screen and (prefers-reduced-motion: no-preference) {
  html.js-motion:not(.motion-off) .timeline.in .tl-box { animation: tl-box 10s cubic-bezier(.22, 1, .36, 1) var(--k) infinite; }
  html.js-motion:not(.motion-off) .timeline.in .tl-step::before { animation: tl-dot 10s cubic-bezier(.22, 1, .36, 1) var(--k) infinite; }
}
@media screen and (prefers-reduced-motion: no-preference) and (min-width: 961px) {
  html.js-motion:not(.motion-off) .timeline.in::after { display: block; animation: tl-fill 10s cubic-bezier(.65, 0, .35, 1) infinite; }
}


/* 7d. Rail glow: the side grid lights up softly under the mouse ------------ */
/* main.js adds one fixed .rail-lit layer and feeds it the cursor and scroll. */
.rail-lit {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48'%3E%3Cpath d='M0 24L42 0L84 24M0 24L42 48L84 24' fill='none' stroke='%2384c000' stroke-width='1.2'/%3E%3C/svg%3E");
  background-position: 0 var(--sy, 0px);   /* stays on the page grid while scrolling */
  -webkit-mask-image:
    radial-gradient(circle 170px at var(--rx, -999px) var(--ry, -999px), #000, transparent),
    linear-gradient(90deg, #000 0, rgb(0 0 0 / .4) 10%, transparent 24%, transparent 76%, rgb(0 0 0 / .4) 90%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle 170px at var(--rx, -999px) var(--ry, -999px), #000, transparent),
    linear-gradient(90deg, #000 0, rgb(0 0 0 / .4) 10%, transparent 24%, transparent 76%, rgb(0 0 0 / .4) 90%, #000 100%);
  mask-composite: intersect;
  opacity: 0;
  transition: opacity .4s ease;
}
.rail-lit[data-on] { opacity: .85; }
@media print { .rail-lit { display: none; } }
