/* ==========================================================================
   KAF TECK — Design System & Stylesheet
   --------------------------------------------------------------------------
   Table of contents
   01. Design tokens
   02. Surface themes (dark / light)
   03. Reset & base
   04. Typography
   05. Layout primitives
   06. Utilities
   07. Components — buttons
   08. Components — chips, badges, eyebrows
   09. Components — cards
   10. Components — header & navigation
   11. Components — footer
   12. Components — marquee
   13. Components — timeline
   14. Components — accordion / tabs
   15. Components — forms
   16. Sections — hero
   17. Sections — content blocks
   18. Motion — scroll reveal & keyframes
   19. Decorative — grid, glow, noise
   19b. Internationalisation — RTL (Arabic)
   20. Responsive
   21. Accessibility & print
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */

:root {
  /* --- Brand palette ---------------------------------------------------- */
  --black: #0b0f0e;
  --violet: #4d46ff;
  --off-white: #f5f5f3;
  --gray: #6b6b6b;

  /* Backwards-compatible semantic aliases. Every alias resolves to one of
     the four official brand colours above. */
  --ink-900: var(--black);
  --ink-850: var(--black);
  --ink-800: var(--black);
  --ink-700: var(--black);
  --ink-600: var(--black);
  --ink-500: var(--gray);
  --ink-400: var(--gray);

  --ivory-050: var(--off-white);
  --ivory-100: var(--off-white);
  --ivory-200: var(--off-white);
  --ivory-300: var(--off-white);
  --ivory-400: var(--gray);

  --aqua: var(--violet);
  --aqua-dim: var(--violet);
  --iris: var(--violet);
  --iris-dim: var(--violet);
  --amber: var(--violet);
  --danger: var(--violet);
  --success: var(--violet);

  /* --- Gradients -------------------------------------------------------- */
  --grad-brand: var(--violet);
  --grad-brand-soft: rgba(77, 70, 255, .14);
  --grad-text: linear-gradient(100deg, var(--off-white) 0%, var(--off-white) 42%, var(--violet) 100%);
  --grad-line: linear-gradient(90deg, transparent, rgba(77, 70, 255, .72), transparent);

  /* --- Typography ------------------------------------------------------- */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid type scale (min → max between 380px and 1440px) */
  --fs-3xs: .6875rem;                                   /* 11px  */
  --fs-2xs: .75rem;                                     /* 12px  */
  --fs-xs: clamp(.8125rem, .78rem + .15vw, .875rem);
  --fs-sm: clamp(.875rem, .84rem + .18vw, .9375rem);
  --fs-base: clamp(.9375rem, .9rem + .22vw, 1.0625rem);
  --fs-md: clamp(1.0625rem, 1rem + .35vw, 1.1875rem);
  --fs-lg: clamp(1.1875rem, 1.08rem + .5vw, 1.375rem);
  --fs-xl: clamp(1.375rem, 1.2rem + .85vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.45rem + 1.4vw, 2.5rem);
  --fs-3xl: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem);
  --fs-4xl: clamp(2.25rem, 1.6rem + 2.9vw, 3.75rem);
  --fs-5xl: clamp(2.4rem, 1.6rem + 3.4vw, 3.9rem);

  --lh-tight: 1.04;
  --lh-snug: 1.16;
  --lh-body: 1.68;
  --tracking-tight: -.03em;
  --tracking-snug: -.015em;
  --tracking-wide: .14em;

  /* --- Spacing scale ---------------------------------------------------- */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 5rem;
  --sp-11: 6.5rem;
  --sp-12: 8rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);

  /* --- Layout ----------------------------------------------------------- */
  --wrap: 1240px;
  --wrap-narrow: 880px;
  --wrap-wide: 1500px;
  --gutter: clamp(1.25rem, .6rem + 2.6vw, 2.75rem);
  --header-h: 76px;

  /* --- Radii ------------------------------------------------------------ */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-pill: 999px;

  /* --- Elevation -------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(11, 15, 14, .28), 0 2px 8px rgba(11, 15, 14, .16);
  --shadow-md: 0 4px 12px rgba(11, 15, 14, .3), 0 14px 40px rgba(11, 15, 14, .28);
  --shadow-lg: 0 12px 32px rgba(11, 15, 14, .34), 0 40px 90px rgba(11, 15, 14, .4);
  --shadow-glow: 0 0 0 1px rgba(77, 70, 255, .25), 0 18px 60px rgba(77, 70, 255, .18);

  /* --- Motion ----------------------------------------------------------- */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 620ms;
  --dur-reveal: 900ms;

  --z-base: 1;
  --z-sticky: 60;
  --z-header: 100;
  --z-drawer: 90;
  --z-toast: 120;

  color-scheme: dark;
}


/* ==========================================================================
   02. SURFACE THEMES
   Every component reads from these semantic variables, so a section can flip
   between the dark (default) and ivory surface with a single attribute.
   ========================================================================== */

:root,
[data-surface="dark"] {
  --bg: var(--ink-900);
  --bg-raised: var(--ink-800);
  --bg-sunken: rgba(11, 15, 14, .82);
  --surface: rgba(245, 245, 243, .035);
  --surface-strong: rgba(245, 245, 243, .065);
  --surface-hover: rgba(245, 245, 243, .085);
  --line: rgba(245, 245, 243, .1);
  --line-strong: rgba(245, 245, 243, .22);
  --fg: var(--off-white);
  --fg-strong: var(--off-white);
  --fg-muted: rgba(245, 245, 243, .68);
  --fg-faint: rgba(245, 245, 243, .52);
  --accent: var(--aqua);
  --accent-2: var(--iris);
  --accent-contrast: var(--ink-900);
  --shadow-card: 0 1px 0 rgba(245, 245, 243, .06) inset, 0 18px 48px rgba(11, 15, 14, .38);
}

[data-surface="light"] {
  --bg: var(--ivory-100);
  --bg-raised: var(--ivory-050);
  --bg-sunken: var(--ivory-200);
  --surface: rgba(11, 15, 14, .03);
  --surface-strong: rgba(11, 15, 14, .055);
  --surface-hover: rgba(11, 15, 14, .075);
  --line: rgba(11, 15, 14, .12);
  --line-strong: rgba(11, 15, 14, .25);
  --fg: var(--black);
  --fg-strong: var(--black);
  --fg-muted: var(--gray);
  --fg-faint: var(--gray);
  --accent: var(--violet);
  --accent-2: var(--violet);
  --accent-contrast: var(--off-white);
  --shadow-card: 0 1px 0 rgba(245, 245, 243, .9) inset, 0 12px 34px rgba(11, 15, 14, .08);
  color-scheme: light;
}

/* Ink-blue section variant — used for the CTA and feature panels */
[data-surface="deep"] {
  --bg: var(--ink-800);
  --bg-raised: var(--ink-700);
  --bg-sunken: var(--ink-900);
  --surface: rgba(245, 245, 243, .04);
  --surface-strong: rgba(245, 245, 243, .07);
  --surface-hover: rgba(245, 245, 243, .095);
  --line: rgba(245, 245, 243, .11);
  --line-strong: rgba(245, 245, 243, .22);
  --fg: var(--off-white);
  --fg-strong: var(--off-white);
  --fg-muted: rgba(245, 245, 243, .68);
  --fg-faint: rgba(245, 245, 243, .52);
  --accent: var(--aqua);
  --accent-2: var(--iris);
  --accent-contrast: var(--ink-900);
  --shadow-card: 0 1px 0 rgba(245, 245, 243, .06) inset, 0 20px 54px rgba(11, 15, 14, .42);
  color-scheme: dark;
}


/* ==========================================================================
   03. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  background: var(--ink-900);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

svg { flex-shrink: 0; }

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; padding: 0; }

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(77, 70, 255, .45);
  color: var(--off-white);
}

/* Custom scrollbar — desktop only, subtle */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 11px; }
  ::-webkit-scrollbar-track { background: var(--ink-900); }
  ::-webkit-scrollbar-thumb {
    background: var(--ink-500);
    border: 3px solid var(--ink-900);
    border-radius: var(--r-pill);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }
}

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ==========================================================================
   04. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--fg-strong);
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--fs-3xl); line-height: 1.08; letter-spacing: var(--tracking-tight); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }

p { text-wrap: pretty; }

.lead {
  font-size: var(--fs-md);
  color: var(--fg-muted);
  line-height: 1.62;
  max-width: 62ch;
}

.text-muted { color: var(--fg-muted); }
.text-faint { color: var(--fg-faint); }
.text-strong { color: var(--fg-strong); }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-surface="light"] .text-gradient {
  background: var(--violet);
  -webkit-background-clip: text;
  background-clip: text;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .06em;
  text-transform: uppercase;
}


/* ==========================================================================
   05. LAYOUT PRIMITIVES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--wrap-narrow); }
.container--wide { max-width: var(--wrap-wide); }

.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bg);
  color: var(--fg);
  isolation: isolate;
  /* `clip` rather than `hidden`: it contains the ambient glows (which would
     otherwise widen the document, badly in RTL) without turning the section
     into a scroll container, so `position: sticky` children keep working. */
  overflow: clip;
}

.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* Section heading block */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 780px;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.section-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.section-head--split {
  max-width: none;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-7);
  flex-wrap: wrap;
}

.section-head--split .section-head__text { max-width: 720px; }

.section-head p { color: var(--fg-muted); font-size: var(--fs-md); max-width: 62ch; }
.section-head--center p { margin-inline: auto; }

.grid {
  display: grid;
  gap: var(--sp-5);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack { display: flex; flex-direction: column; }
.stack-2 { gap: var(--sp-2); }
.stack-3 { gap: var(--sp-3); }
.stack-4 { gap: var(--sp-4); }
.stack-5 { gap: var(--sp-5); }
.stack-6 { gap: var(--sp-6); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

.split--top { align-items: start; }
.split--asym { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }

/* Long form beside a narrower information rail */
.split--form { grid-template-columns: minmax(0, 1.42fr) minmax(0, .88fr); }


/* ==========================================================================
   06. UTILITIES
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: var(--z-toast);
  padding: .75rem 1.25rem;
  background: var(--aqua);
  color: var(--ink-900);
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus { top: var(--sp-4); }

.hairline {
  height: 1px;
  border: 0;
  background: var(--line);
}

.hairline--glow { background: var(--grad-line); opacity: .6; }

.center { text-align: center; }
.mt-auto { margin-top: auto; }
.full { width: 100%; }


/* ==========================================================================
   07. COMPONENTS — BUTTONS
   ========================================================================== */

.btn {
  --btn-py: .95rem;
  --btn-px: 1.6rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1;
  min-height: 48px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease-spring),
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.btn:active { transform: scale(.972); }

.btn__icon {
  display: inline-flex;
  transition: transform var(--dur-base) var(--ease-out);
}

.btn:hover .btn__icon { transform: translateX(3px); }

/* Primary — decisive violet action with a restrained light sweep */
.btn--primary {
  background: var(--grad-brand);
  color: var(--off-white);
  box-shadow: 0 6px 20px rgba(77, 70, 255, .24), 0 1px 0 rgba(245, 245, 243, .28) inset;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 25%, rgba(245, 245, 243, .32) 45%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
}

.btn--primary:hover {
  box-shadow: 0 10px 34px rgba(77, 70, 255, .36), 0 1px 0 rgba(245, 245, 243, .34) inset;
  transform: translateY(-2px);
}

.btn--primary:hover::after { transform: translateX(120%); }

/* Secondary — glass outline */
.btn--ghost {
  background: var(--surface-strong);
  color: var(--fg-strong);
  border-color: var(--line-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Solid inverse — for use on light surfaces */
.btn--solid {
  background: var(--fg-strong);
  color: var(--bg);
}

.btn--solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Quiet text link with animated underline */
.btn--link {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--fg-strong);
  overflow: visible;
}

.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--fg-strong);
  padding-bottom: 3px;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out);
}

.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }
.link-underline svg { transition: transform var(--dur-base) var(--ease-out); }
.link-underline:hover svg { transform: translateX(4px); }

.btn--lg { --btn-py: 1.15rem; --btn-px: 2.1rem; font-size: var(--fs-base); }
.btn--sm { --btn-py: .7rem; --btn-px: 1.15rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}


/* ==========================================================================
   08. COMPONENTS — CHIPS, BADGES, EYEBROWS
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.section-head--center .eyebrow { align-self: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem;
  font-size: var(--fs-2xs);
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 3px rgba(77, 70, 255, .18);
  animation: pulse-dot 2.4s var(--ease-in-out) infinite;
}

/* Placeholder marker — flags content awaiting real agency data */
.badge--placeholder {
  color: var(--amber);
  border-color: rgba(77, 70, 255, .3);
  background: rgba(77, 70, 255, .09);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition:
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.chip:hover {
  color: var(--fg-strong);
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.chip__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .8;
}


/* ==========================================================================
   09. COMPONENTS — CARDS
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

/* Pointer-tracked spotlight — coordinates come from script.js */
.card--spotlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(77, 70, 255, .14),
    transparent 62%
  );
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}

.card--spotlight:hover::before { opacity: 1; }

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--grad-brand-soft);
  border: 1px solid var(--line);
  color: var(--accent);
  transition: transform var(--dur-base) var(--ease-spring), color var(--dur-base) var(--ease-out);
}

.card:hover .card__icon { transform: translateY(-2px) rotate(-4deg) scale(1.04); }

.card__title {
  font-size: var(--fs-lg);
  font-weight: 500;
}

.card__text {
  color: var(--fg-muted);
  font-size: var(--fs-sm);
  line-height: 1.68;
}

.card__index {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--fg-faint);
  letter-spacing: .1em;
}

.values-grid .card {
  min-height: clamp(170px, 15vw, 205px);
  justify-content: space-between;
}

.values-grid .card__index {
  color: var(--accent);
  font-size: clamp(1.15rem, .95rem + .7vw, 1.6rem);
  letter-spacing: .06em;
  line-height: 1;
}

/* Feature card — larger, with a top gradient hairline on hover */
.card--feature { padding: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); }

.card--feature::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: var(--grad-line);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.card--feature:hover::after { opacity: 1; }

/* Service category card */
.service-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: var(--sp-2);
}

.service-card__list li {
  font-size: var(--fs-2xs);
  font-family: var(--font-mono);
  letter-spacing: .02em;
  color: var(--fg-muted);
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--bg-sunken);
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

.card:hover .service-card__list li { border-color: var(--line-strong); }

/* Value / why-us list rows */
.value-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
}

.value-row:last-child { border-bottom: 1px solid var(--line); }

.value-row__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-spring);
}

.value-row:hover .value-row__mark {
  background: var(--grad-brand-soft);
  transform: scale(1.08);
}

/* Stat card with animated counter */
.stat {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: var(--sp-5) 0;
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--fg-strong);
  display: flex;
  align-items: baseline;
  gap: .1em;
}

.stat__suffix { color: var(--accent); }

.stat__label {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  max-width: 24ch;
}

/* Industry tile */
.industry {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out);
}

.industry::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur-base) var(--ease-out);
}

.industry:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.industry:hover::after { transform: scaleY(1); transform-origin: top; }

.industry__icon { color: var(--accent); opacity: .85; }
.industry__name { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-base); }
.industry__meta { font-size: var(--fs-xs); color: var(--fg-muted); }

/* Compact sector index — lives inside About instead of a standalone section. */
.about-sectors {
  display: grid;
  gap: 1rem;
  margin-top: .5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.about-sectors__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.about-sectors__head p {
  max-width: 34ch;
  color: var(--fg-muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.sector-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.sector-index li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: .35rem;
  min-height: 42px;
  padding: .55rem .65rem .55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-strong);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  transition: color var(--dur-fast) var(--ease-out), padding-inline var(--dur-base) var(--ease-out);
}

.sector-index li:nth-child(even) { padding-inline-start: .8rem; }
.sector-index li span { color: var(--accent); font-family: var(--font-mono); font-size: var(--fs-3xs); }
.sector-index li:hover { color: var(--accent); padding-inline-start: .35rem; }
.sector-index li:nth-child(even):hover { padding-inline-start: 1.15rem; }

.about-sectors--full {
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.about-sectors--full .about-sectors__head {
  display: grid;
  align-content: start;
  justify-content: start;
}

.about-sectors--full .sector-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.about-sectors--home {
  grid-template-columns: minmax(210px, .55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.about-sectors--home .about-sectors__head {
  display: grid;
  align-content: start;
  justify-content: start;
}

.about-sectors--home .sector-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ==========================================================================
   10. COMPONENTS — HEADER & NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-header);
  transition: transform var(--dur-slow) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: var(--header-h);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(11, 15, 14, .82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.header.is-scrolled::before {
  opacity: 1;
  border-bottom-color: rgba(245, 245, 243, .1);
}

.is-locked .header::before {
  opacity: 1;
  border-bottom-color: rgba(245, 245, 243, .1);
}

.header.is-hidden { transform: translateY(-104%); }

/* Scroll progress bar */
.header__progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.header.is-scrolled .header__progress { opacity: 1; }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.02em;
  color: var(--off-white);
  z-index: 2;
}

.logo__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--black);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(77, 70, 255, .3);
  transition: transform var(--dur-base) var(--ease-spring);
}

.logo__mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.55);
}

.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }

.logo__text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo__name { font-size: 1rem; }
.logo__tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 500;
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: .35rem; }

.nav__link {
  position: relative;
  padding: .6rem .9rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(245, 245, 243, .66);
  border-radius: var(--r-sm);
  transition: color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.nav__link:hover { color: var(--off-white); background: rgba(245, 245, 243, .06); }

.nav__link[aria-current="page"] { color: var(--off-white); }

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--aqua);
}

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }

/* Language dropdown */
.language-picker {
  position: relative;
  z-index: 4;
}

.language-picker__trigger {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  min-width: 132px;
  height: 44px;
  padding: 0 .8rem;
  border: 1px solid rgba(245, 245, 243, .14);
  border-radius: var(--r-pill);
  background: rgba(245, 245, 243, .055);
  color: var(--off-white);
  font-size: var(--fs-2xs);
  font-weight: 500;
  white-space: nowrap;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.language-picker__trigger:hover,
.language-picker__trigger:focus-visible,
.language-picker.is-open .language-picker__trigger {
  border-color: rgba(77, 70, 255, .62);
  background: rgba(77, 70, 255, .11);
  box-shadow: 0 0 0 3px rgba(77, 70, 255, .08);
}

.language-picker__globe {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(245, 245, 243, .78);
  border-radius: 50%;
}

.language-picker__globe::before,
.language-picker__globe::after {
  content: "";
  position: absolute;
  inset: 3px 6px;
  border: 1px solid rgba(245, 245, 243, .68);
  border-top: 0;
  border-bottom: 0;
  border-radius: 50%;
}

.language-picker__globe::after {
  inset: 7px 1px auto;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: rgba(245, 245, 243, .68);
}

.language-picker__name { flex: 1; text-align: start; }
.language-picker__code { display: none; font-family: var(--font-mono); letter-spacing: .06em; }

.language-picker__chevron {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: .72;
  transform: rotate(45deg);
  transition: transform var(--dur-fast) var(--ease-out), margin var(--dur-fast) var(--ease-out);
}

.language-picker.is-open .language-picker__chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

.language-picker__menu {
  position: absolute;
  top: calc(100% + .65rem);
  inset-inline-end: 0;
  width: 218px;
  padding: .5rem;
  border: 1px solid rgba(245, 245, 243, .14);
  border-radius: var(--r-md);
  background:
    linear-gradient(145deg, rgba(77, 70, 255, .09), transparent 42%),
    rgba(17, 22, 21, .98);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .42), 0 0 0 1px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
  animation: language-menu-in 160ms var(--ease-out) both;
}

.language-picker__menu[hidden] { display: none; }

.language-picker__option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: .72rem;
  width: 100%;
  min-height: 50px;
  padding: .42rem .55rem;
  border-radius: calc(var(--r-sm) + 2px);
  color: rgba(245, 245, 243, .72);
  font-size: var(--fs-sm);
  text-align: start;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.language-picker__option:hover,
.language-picker__option:focus-visible {
  color: var(--off-white);
  background: rgba(245, 245, 243, .065);
  outline: none;
}

.language-picker__option[aria-checked="true"] {
  color: var(--off-white);
  background: rgba(77, 70, 255, .14);
}

.language-picker__option-code {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border: 1px solid rgba(245, 245, 243, .12);
  border-radius: 8px;
  background: rgba(245, 245, 243, .05);
  color: rgba(245, 245, 243, .64);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .06em;
}

.language-picker__option[aria-checked="true"] .language-picker__option-code {
  border-color: rgba(77, 70, 255, .5);
  background: var(--violet);
  color: white;
}

.language-picker__check {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(245, 245, 243, .2);
  border-radius: 50%;
}

.language-picker__option[aria-checked="true"] .language-picker__check {
  border-color: var(--violet);
  background: var(--violet);
}

.language-picker__option[aria-checked="true"] .language-picker__check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 7px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

@keyframes language-menu-in {
  from { opacity: 0; transform: translateY(-7px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(245, 245, 243, .13);
  background: rgba(245, 245, 243, .05);
  z-index: 2;
}

.nav-toggle__bar {
  position: absolute;
  left: 50%;
  width: 18px; height: 1.5px;
  margin-left: -9px;
  background: var(--off-white);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) linear;
}

.nav-toggle__bar:nth-child(1) { top: 18px; }
.nav-toggle__bar:nth-child(2) { top: 23px; }
.nav-toggle__bar:nth-child(3) { top: 28px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  background: rgba(11, 15, 14, .98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  overflow-y: auto;
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    visibility 0s linear var(--dur-base);
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  border-top: 1px solid rgba(245, 245, 243, .1);
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem .25rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--off-white);
  border-bottom: 1px solid rgba(245, 245, 243, .1);
  opacity: 0;
  transform: translateY(14px);
}

.drawer.is-open .drawer__link {
  animation: drawer-in 520ms var(--ease-out) forwards;
  animation-delay: calc(60ms * var(--i, 0) + 80ms);
}

.drawer__link span {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--aqua);
  opacity: .7;
}

.drawer__footer {
  margin-top: auto;
  padding-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}


/* ==========================================================================
   11. COMPONENTS — FOOTER
   ========================================================================== */

.footer {
  position: relative;
  background: var(--ink-850);
  border-top: 1px solid rgba(245, 245, 243, .08);
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  color: rgba(245, 245, 243, .62);
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.footer__brand { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 34ch; }
.footer__brand p { font-size: var(--fs-sm); line-height: 1.7; }

.footer-logo-lockup {
  display: block;
  width: min(100%, 310px);
  height: 92px;
  border: 1px solid rgba(245, 245, 243, .14);
  border-radius: var(--r-md);
  background: var(--off-white);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .2);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.footer-logo-lockup:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 70, 255, .65);
}

.footer-logo-lockup picture,
.footer-logo-lockup img {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-logo-lockup img {
  object-fit: cover;
  object-position: center;
}

.footer__title {
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: var(--sp-4);
}

.footer__list { display: flex; flex-direction: column; gap: .7rem; }

.footer__list a,
.footer__list span {
  font-size: var(--fs-sm);
  color: rgba(245, 245, 243, .62);
  transition: color var(--dur-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.footer__list a:hover { color: var(--off-white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(245, 245, 243, .08);
  font-size: var(--fs-xs);
  color: rgba(245, 245, 243, .56);
}

.footer__socials { display: none; gap: .5rem; }

.footer__social {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(245, 245, 243, .11);
  color: rgba(245, 245, 243, .62);
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.footer__social:hover {
  color: var(--aqua);
  border-color: rgba(77, 70, 255, .55);
  transform: translateY(-2px);
}

/* Oversized watermark wordmark */
.footer__watermark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 16vw, 15rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .8;
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, rgba(245, 245, 243, .07), transparent 75%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
  margin-bottom: -.12em;
  padding-top: 1rem;
}


/* ==========================================================================
   12. COMPONENTS — MARQUEE
   ========================================================================== */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--black) 12%, var(--black) 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--black) 12%, var(--black) 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--sp-8);
  animation: marquee 42s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--fg-muted);
  white-space: nowrap;
  letter-spacing: -.01em;
}

.marquee__item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}


/* ==========================================================================
   13. COMPONENTS — TIMELINE (Methodology)
   ========================================================================== */

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

/* Rail + animated progress fill */
.timeline__rail {
  position: absolute;
  left: 27.5px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}

.timeline__rail::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: var(--fill, 0%);
  background: var(--grad-brand);
  transition: height 240ms linear;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--sp-5);
  padding-block: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  align-items: start;
}

.step__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  transition:
    border-color var(--dur-slow) var(--ease-out),
    color var(--dur-slow) var(--ease-out),
    background-color var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-spring);
}

.step.is-active .step__dot {
  color: var(--off-white);
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 0 0 6px rgba(77, 70, 255, .12), 0 8px 26px rgba(77, 70, 255, .24);
  transform: scale(1.05);
}

.step__body { display: flex; flex-direction: column; gap: var(--sp-3); padding-top: .5rem; }

.step__label {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  transition: color var(--dur-slow) var(--ease-out);
}

.step.is-active .step__label { color: var(--accent); }

.step__title {
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--fg-muted);
  transition: color var(--dur-slow) var(--ease-out);
}

.step.is-active .step__title { color: var(--fg-strong); }

.step__text { color: var(--fg-muted); max-width: 58ch; font-size: var(--fs-sm); }

.step__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: var(--sp-2);
}

.step__meta li {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--fg-faint);
  padding: .3rem .65rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
}


/* ==========================================================================
   14. COMPONENTS — ACCORDION / TABS
   ========================================================================== */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  width: fit-content;
  max-width: 100%;
}

.tab {
  padding: .7rem 1.35rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fg-muted);
  border-radius: var(--r-pill);
  transition: color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.tab:hover { color: var(--fg-strong); }

.tab[aria-selected="true"] {
  color: var(--accent-contrast);
  background: var(--grad-brand);
}

.tabpanel[hidden] { display: none; }

.tabpanel { animation: fade-up 520ms var(--ease-out) both; }

/* Accordion */
.accordion { border-top: 1px solid var(--line); }

.accordion__item { border-bottom: 1px solid var(--line); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--fg);
  transition: color var(--dur-base) var(--ease-out);
}

.accordion__trigger:hover { color: var(--fg-strong); }
.accordion__trigger[aria-expanded="true"] { color: var(--fg-strong); }

.accordion__icon {
  position: relative;
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg);
  background: var(--grad-brand-soft);
}

.accordion__panel {
  overflow: hidden;
  height: 0;
  transition: height var(--dur-base) var(--ease-out);
}

.accordion__inner { padding-bottom: var(--sp-5); color: var(--fg-muted); max-width: 70ch; }


/* ==========================================================================
   15. COMPONENTS — FORMS
   ========================================================================== */

.form { display: flex; flex-direction: column; gap: var(--sp-7); }

.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.fieldset__legend {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0;
  margin-bottom: var(--sp-2);
  width: 100%;
}

.fieldset__legend::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.field { display: flex; flex-direction: column; gap: .55rem; }
.field--full { grid-column: 1 / -1; }

.field__label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: .35rem;
}

.field__label .req { color: var(--accent); }
.field__hint { font-size: var(--fs-2xs); color: var(--fg-faint); }

.input,
.select,
.textarea {
  width: 100%;
  padding: .95rem 1.1rem;
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  color: var(--fg-strong);
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition:
    border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  appearance: none;
  min-height: 48px;
}

.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.input::placeholder,
.textarea::placeholder { color: var(--fg-faint); }

.input:hover,
.select:hover,
.textarea:hover { border-color: var(--line-strong); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(77, 70, 255, .13);
}

/* Select with custom chevron */
.select-wrap { position: relative; }

.select { padding-right: 2.75rem; cursor: pointer; }

.select-wrap::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--fg-muted);
  border-bottom: 1.5px solid var(--fg-muted);
  transform: rotate(45deg);
  pointer-events: none;
  transition: border-color var(--dur-base) var(--ease-out);
}

.select-wrap:focus-within::after { border-color: var(--accent); }

.select option { background: var(--black); color: var(--off-white); }
[data-surface="light"] .select option { background: var(--off-white); color: var(--black); }

/* Checkbox pill group — services of interest */
.service-picker {
  display: grid;
  gap: 1.35rem;
}

.service-picker__group {
  display: grid;
  gap: .7rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .018);
}

.service-picker__title {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--fg-strong);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.service-picker__title span {
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .08em;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: .6rem;
}

.check {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-sunken);
  cursor: pointer;
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  transition:
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.check:hover { border-color: var(--line-strong); color: var(--fg); }
.check:active { transform: scale(.99); }

.check input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}

.check__box {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.check__box::after {
  content: "✓";
  color: var(--off-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: scale(.5);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}

.check input:checked ~ .check__box {
  background: var(--grad-brand);
  border-color: transparent;
}

.check input:checked ~ .check__box::after { opacity: 1; transform: scale(1); }

.check:has(input:checked) {
  border-color: rgba(77, 70, 255, .55);
  color: var(--fg-strong);
  background: var(--grad-brand-soft);
}

.check input:focus-visible ~ .check__box {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

/* Validation states */
.field__error {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-2xs);
  color: var(--danger);
  min-height: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--dur-fast) var(--ease-out), max-height var(--dur-fast) var(--ease-out);
}

.field.is-invalid .field__error { opacity: 1; max-height: 3rem; }

.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(77, 70, 255, .12);
}

.field.is-valid .input,
.field.is-valid .select,
.field.is-valid .textarea { border-color: rgba(77, 70, 255, .55); }

.form__error-summary {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(77, 70, 255, .45);
  background: rgba(77, 70, 255, .1);
  border-radius: var(--r-md);
  color: var(--danger);
  font-size: var(--fs-sm);
}

.form__error-summary[hidden] { display: none; }

/* Submit row */
.form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-2);
}

.form__consent { font-size: var(--fs-2xs); color: var(--fg-faint); max-width: 46ch; }

/* Loading spinner inside submit button */
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label,
.btn.is-loading .btn__icon { opacity: 0; }

.btn__spinner {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
}

.btn.is-loading .btn__spinner { display: grid; }

.btn__spinner::after {
  content: "";
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(11, 15, 14, .28);
  border-top-color: var(--ink-900);
  animation: spin .7s linear infinite;
}

/* Success panel */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  text-align: center;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 3rem);
  border: 1px solid rgba(77, 70, 255, .35);
  background:
    radial-gradient(600px circle at 50% -10%, rgba(77, 70, 255, .14), transparent 65%),
    var(--surface);
  border-radius: var(--r-xl);
  animation: fade-up 700ms var(--ease-out) both;
}

.form-success[hidden] { display: none; }

.form-success__icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--off-white);
  box-shadow: 0 10px 40px rgba(77, 70, 255, .32);
  animation: pop-in 700ms var(--ease-spring) both 120ms;
}

.form-success h3 { font-size: var(--fs-2xl); }
.form-success p { color: var(--fg-muted); max-width: 52ch; }

.form-success__recap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  padding-top: var(--sp-2);
}


/* ==========================================================================
   16. SECTIONS — HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(100svh, 960px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6rem));
  padding-bottom: clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
  background: var(--ink-900);
  isolation: isolate;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: .62;
}

/* Layered aurora glows behind the canvas */
.hero__aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: -3;
  pointer-events: none;
}

.hero__aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .44;
  will-change: transform;
}

.hero__aurora span:nth-child(1) {
  width: 46vw; height: 46vw;
  top: 2%; left: 48%;
  background: radial-gradient(circle, rgba(77, 70, 255, .52), transparent 68%);
  animation: drift-a 22s var(--ease-in-out) infinite alternate;
}

.hero__aurora span:nth-child(2) {
  width: 40vw; height: 40vw;
  top: 28%; left: 6%;
  background: radial-gradient(circle, rgba(77, 70, 255, .28), transparent 68%);
  animation: drift-b 26s var(--ease-in-out) infinite alternate;
}

.hero__aurora span:nth-child(3) {
  width: 28vw; height: 28vw;
  top: 62%; left: 62%;
  background: radial-gradient(circle, rgba(245, 245, 243, .08), transparent 68%);
  animation: drift-c 30s var(--ease-in-out) infinite alternate;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  align-items: center;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
  max-width: 700px;
}

/* Children default to stretch so the values rule spans the column */
.hero__content > .hero__lead,
.hero__content > h1,
.hero__content > .hero__values { align-self: stretch; }

.hero h1 { font-size: var(--fs-5xl); }

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__title-line > span {
  display: block;
  transform: translateY(105%);
  animation: line-rise 1s var(--ease-out) forwards;
  animation-delay: calc(90ms * var(--i, 0) + 120ms);
}

.hero__lead {
  font-size: var(--fs-md);
  color: rgba(245, 245, 243, .68);
  max-width: 54ch;
  line-height: 1.6;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); padding-top: var(--sp-2); }

.hero__values {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: var(--sp-5);
  margin-top: var(--sp-3);
  border-top: 1px solid rgba(245, 245, 243, .1);
}

/* Fade-in cascade for the hero's non-heading elements */
.hero__fade {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 900ms var(--ease-out) forwards;
  animation-delay: calc(110ms * var(--i, 0) + 420ms);
}

/* Hero visual — floating glass panel */
.hero__visual {
  position: relative;
  perspective: 1400px;
}

.panel {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid rgba(245, 245, 243, .15);
  background:
    linear-gradient(160deg, rgba(245, 245, 243, .08), rgba(245, 245, 243, .02)),
    rgba(11, 15, 14, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out);
  animation: float-panel 9s var(--ease-in-out) infinite alternate;
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.15rem;
  border-bottom: 1px solid rgba(245, 245, 243, .1);
  background: rgba(245, 245, 243, .03);
}

.panel__dots { display: flex; gap: 6px; }
.panel__dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(245, 245, 243, .16);
}
.panel__dots i:first-child { background: rgba(77, 70, 255, .9); }

.panel__title {
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245, 245, 243, .56);
}

.panel__body { padding: 1.25rem; display: flex; flex-direction: column; gap: .85rem; }

.node-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(245, 245, 243, .09);
  background: rgba(245, 245, 243, .025);
  font-size: var(--fs-xs);
  color: var(--off-white);
}

.node-row__icon {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--grad-brand-soft);
  color: var(--aqua);
  flex: 0 0 auto;
}

.node-row__meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  color: var(--aqua);
  letter-spacing: .05em;
}

.node-row--muted .node-row__meta { color: rgba(245, 245, 243, .52); }

/* Animated progress bar inside the panel */
.node-bar {
  height: 4px;
  border-radius: var(--r-pill);
  background: rgba(245, 245, 243, .08);
  overflow: hidden;
}

.node-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad-brand);
  animation: bar-fill 3.4s var(--ease-in-out) infinite;
}

/* Floating stat pill attached to the panel */
.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(245, 245, 243, .14);
  background: rgba(11, 15, 14, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-2xs);
  color: rgba(245, 245, 243, .62);
  white-space: nowrap;
}

.hero__float--a { top: -12%; left: -12%; animation: float-a 7s var(--ease-in-out) infinite alternate; }
.hero__float--b { bottom: -12%; right: -10%; animation: float-b 8.5s var(--ease-in-out) infinite alternate; }

.hero__float strong { color: var(--off-white); font-family: var(--font-display); font-size: var(--fs-sm); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(245, 245, 243, .52);
}

.hero__scroll i {
  display: block;
  width: 1px; height: 42px;
  background: linear-gradient(180deg, transparent, var(--aqua));
  animation: scroll-hint 2.2s var(--ease-in-out) infinite;
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 2.5rem + 5vw, 7rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--ink-900);
  overflow: hidden;
  isolation: isolate;
}

.page-hero__glow {
  position: absolute;
  top: -40%; left: 50%;
  width: 900px; height: 900px;
  margin-left: -450px;
  z-index: -1;
  background: radial-gradient(circle, rgba(77, 70, 255, .24), rgba(77, 70, 255, .08) 45%, transparent 68%);
  filter: blur(40px);
  pointer-events: none;
}

.page-hero__inner { display: flex; flex-direction: column; gap: var(--sp-5); max-width: 900px; }
.page-hero h1 { font-size: var(--fs-4xl); }
.page-hero p { font-size: var(--fs-md); color: rgba(245, 245, 243, .68); max-width: 62ch; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(245, 245, 243, .56);
}

.breadcrumb a { transition: color var(--dur-fast) var(--ease-out); }
.breadcrumb a:hover { color: var(--aqua); }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; color: rgba(245, 245, 243, .42); }


/* ==========================================================================
   17. SECTIONS — CONTENT BLOCKS
   ========================================================================== */

/* Stat band */
.statband {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0;
  border-block: 1px solid var(--line);
}

.statband .stat { border-left: 1px solid var(--line); padding-left: var(--sp-5); }
.statband .stat:first-child { border-left: 0; padding-left: 0; }

/* Big pull-quote / manifesto block */
.manifesto {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: var(--tracking-snug);
  color: var(--fg-strong);
  max-width: 22ch;
}

.manifesto em { font-style: normal; color: var(--accent); }

/* Feature panel — the "AI-first" differentiator */
.panel-feature {
  position: relative;
  padding: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(900px circle at 15% 0%, rgba(77, 70, 255, .11), transparent 55%),
    radial-gradient(700px circle at 90% 100%, rgba(77, 70, 255, .06), transparent 55%),
    var(--surface);
  overflow: hidden;
}

.panel-feature--manifesto {
  margin-bottom: 3rem;
}

.panel-feature--manifesto::after {
  content: "";
  position: absolute;
  inset-inline: 12%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .72;
  animation: manifesto-signal 4.8s var(--ease-in-out) infinite;
}

.vision-visual {
  position: relative;
  min-height: clamp(300px, 34vw, 460px);
  border: 1px solid rgba(245, 245, 243, .1);
  border-radius: var(--r-xl);
  background: var(--black);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
  overflow: hidden;
  isolation: isolate;
}

.vision-visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 1;
  background: radial-gradient(circle at 72% 48%, rgba(77, 70, 255, .22), transparent 32%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: vision-glow 5.5s var(--ease-in-out) infinite alternate;
}

.vision-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(245, 245, 243, .05), inset 0 -70px 100px rgba(11, 15, 14, .24);
  pointer-events: none;
}

.vision-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  animation: vision-float 9s var(--ease-in-out) infinite alternate;
}

.iconless-grid .card {
  justify-content: flex-end;
}

.iconless-grid .card::after {
  opacity: .45;
}

.iconless-grid .card:hover::after {
  opacity: 1;
}

.iconless-grid--compact .card {
  min-height: clamp(132px, 14vw, 168px);
}

.iconless-grid--compact .card::after {
  content: "";
  position: absolute;
  inset-inline: clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
  opacity: .42;
  transform: scaleX(.36);
  transform-origin: left;
  transition: transform 600ms var(--ease-out), opacity var(--dur-base) var(--ease-out);
}

[dir="rtl"] .iconless-grid--compact .card::after {
  transform-origin: right;
}

.iconless-grid--compact .card:hover::after {
  transform: scaleX(1);
  opacity: .9;
}

.iconless-grid--compact .card__title {
  font-size: clamp(1.15rem, 1rem + .45vw, 1.55rem);
}

/* Numbered process/ladder list */
.ladder { display: grid; gap: 0; }

.ladder__item {
  display: grid;
  grid-template-columns: clamp(88px, 10vw, 138px) minmax(0, 1fr) auto;
  gap: var(--sp-5);
  align-items: center;
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
  transition: background-color var(--dur-base) var(--ease-out), padding-inline var(--dur-base) var(--ease-out);
}

.ladder__item:last-child { border-bottom: 1px solid var(--line); }

.ladder__item:hover {
  background: var(--surface);
  padding-inline: var(--sp-4);
}

.ladder__num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 600;
  line-height: .78;
  color: var(--accent);
  letter-spacing: -.07em;
  opacity: .9;
  transition: transform var(--dur-base) var(--ease-spring), opacity var(--dur-base) var(--ease-out);
}

.ladder__item:hover .ladder__num {
  transform: translateY(-2px) scale(1.04);
  opacity: 1;
}

.ladder__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; color: var(--fg-strong); }
.ladder__text { color: var(--fg-muted); font-size: var(--fs-sm); margin-top: .3rem; }

.ladder__arrow {
  color: var(--fg-faint);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

.ladder__item:hover .ladder__arrow { opacity: 1; transform: none; color: var(--accent); }

/* CTA band */
.cta {
  position: relative;
  padding: clamp(2.75rem, 2rem + 4vw, 5.5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border-radius: var(--r-2xl);
  border: 1px solid rgba(245, 245, 243, .14);
  background:
    linear-gradient(135deg, rgba(77, 70, 255, .24), transparent 48%),
    radial-gradient(700px circle at 88% 85%, rgba(77, 70, 255, .12), transparent 58%),
    var(--ink-800);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  max-width: 660px;
  margin-inline: auto;
}

.cta h2 { font-size: var(--fs-3xl); color: var(--off-white); }
.cta p { color: rgba(245, 245, 243, .68); font-size: var(--fs-md); }

/* Contact info cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.contact-info__row {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding-block: var(--sp-4);
  border-top: 1px solid var(--line);
}

.contact-info__row:first-of-type { border-top: 0; padding-top: 0; }

.contact-info__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  background: var(--grad-brand-soft);
  border: 1px solid var(--line);
  color: var(--accent);
}

.contact-info__label {
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: .25rem;
}

.contact-info__value { color: var(--fg-strong); font-size: var(--fs-sm); font-weight: 500; }
.contact-info__value a { transition: color var(--dur-fast) var(--ease-out); }
.contact-info__value a:hover { color: var(--accent); }

/* Sticky sidebar for long pages */
.sticky-aside {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
}


/* ==========================================================================
   18. MOTION — SCROLL REVEAL & KEYFRAMES
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(.965); }
[data-reveal="fade"] { transform: none; }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes line-rise {
  from { transform: translateY(105%); }
  to { transform: translateY(0); }
}

@keyframes drawer-in {
  to { opacity: 1; transform: none; }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77, 70, 255, .45); }
  70% { box-shadow: 0 0 0 7px rgba(77, 70, 255, 0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes manifesto-signal {
  0%, 100% { opacity: .28; transform: scaleX(.4); }
  50% { opacity: .9; transform: scaleX(1); }
}

@keyframes vision-float {
  from { transform: scale(1.015) translate3d(-.4%, .3%, 0); }
  to { transform: scale(1.045) translate3d(.5%, -.35%, 0); }
}

@keyframes vision-glow {
  from { opacity: .55; transform: scale(.94); }
  to { opacity: .95; transform: scale(1.06); }
}

@keyframes float-panel {
  from { transform: translateY(-8px) rotateX(2deg) rotateY(-3deg); }
  to { transform: translateY(8px) rotateX(-1deg) rotateY(2deg); }
}

@keyframes float-a {
  from { transform: translate(0, 0); }
  to { transform: translate(6px, -14px); }
}

@keyframes float-b {
  from { transform: translate(0, 0); }
  to { transform: translate(-8px, 12px); }
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-8%, 6%) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(10%, -8%) scale(1.08); }
}

@keyframes drift-c {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6%, -10%) scale(1.15); }
}

@keyframes bar-fill {
  0% { width: 0; }
  55% { width: 84%; }
  100% { width: 84%; }
}

@keyframes scroll-hint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ==========================================================================
   19. DECORATIVE — GRID, GLOW, NOISE
   ========================================================================== */

/* Blueprint grid overlay */
.deco-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 40%, var(--black) 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 40%, var(--black) 20%, transparent 78%);
  opacity: .55;
}

/* Soft ambient glow, positioned by modifier */
.deco-glow {
  position: absolute;
  z-index: -1;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: .35;
}

.deco-glow--aqua { background: radial-gradient(circle, rgba(77, 70, 255, .5), transparent 68%); }
.deco-glow--iris { background: radial-gradient(circle, rgba(77, 70, 255, .34), transparent 68%); }
.deco-glow--tl { top: -180px; left: -160px; }
.deco-glow--tr { top: -200px; right: -180px; }
.deco-glow--br { bottom: -220px; right: -160px; }

[data-surface="light"] .deco-glow { opacity: .18; }

/* Section divider with a gradient node */
.divider {
  position: relative;
  height: 1px;
  background: var(--line);
}

.divider::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--bg);
}

/* ==========================================================================
   19a. EDITORIAL REFINEMENTS
   ========================================================================== */

.section + .section { border-top: 1px solid var(--line); }

[data-surface="light"] .card,
[data-surface="light"] .industry,
[data-surface="light"] .contact-info {
  box-shadow: 0 1px 0 rgba(245, 245, 243, .8) inset;
}

.section-head h2 { max-width: 18ch; }
.section-head--center h2 { margin-inline: auto; }

.card__index,
.step__label,
.ladder__num { color: var(--accent); }

.card--feature { min-height: 100%; }

.page-hero { border-bottom: 1px solid rgba(245, 245, 243, .1); }

.page-hero::after {
  content: "";
  position: absolute;
  inset-inline-start: var(--gutter);
  bottom: 0;
  width: min(26vw, 320px);
  height: 2px;
  background: var(--violet);
}

body[data-page="about"] .page-hero__glow { transform: translateX(-22%); }
body[data-page="services"] .page-hero__glow { transform: translateX(28%) scale(.9); }
body[data-page="industries"] .page-hero__glow { transform: translateX(-34%) scale(1.1); }
body[data-page="contact"] .page-hero__glow { transform: translateX(38%) scale(.8); }

body[data-page="methodology"] .page-hero {
  background-image:
    linear-gradient(to right, rgba(245, 245, 243, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 245, 243, .045) 1px, transparent 1px);
  background-size: 76px 76px;
}

.form .fieldset {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.form .fieldset__legend {
  width: auto;
  padding-inline: .4rem;
}

.form .fieldset__legend::after { display: none; }
.accordion__trigger { min-height: 64px; }

.footer__social,
.langswitch__btn {
  min-width: 44px;
  min-height: 44px;
}


/* ==========================================================================
   19b. INTERNATIONALISATION — RTL (Arabic)
   The layout is direction-agnostic wherever possible (flex/grid follow `dir`
   automatically). This block only corrects the pieces that are physically
   anchored, plus the typography, which needs different rules in Arabic.
   ========================================================================== */

[dir="rtl"] {
  /* Arabic typefaces are injected by the I18n module when Arabic is selected */
  --font-display: "Noto Kufi Arabic", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Noto Sans Arabic", "Inter", system-ui, sans-serif;
  --font-mono: "Noto Sans Arabic", "JetBrains Mono", ui-monospace, monospace;
  --tracking-tight: 0;
  --tracking-snug: 0;
  --tracking-wide: 0;
}

/* Arabic has no letter case and letter-spacing breaks its joined script */
[dir="rtl"] .eyebrow,
[dir="rtl"] .mono,
[dir="rtl"] .badge,
[dir="rtl"] .breadcrumb,
[dir="rtl"] .fieldset__legend,
[dir="rtl"] .footer__title,
[dir="rtl"] .step__label,
[dir="rtl"] .contact-info__label,
[dir="rtl"] .panel__title,
[dir="rtl"] .logo__tag,
[dir="rtl"] .hero__scroll {
  text-transform: none;
  letter-spacing: 0;
}

/* Numerals and codes stay latin-styled for legibility */
[dir="rtl"] .step__dot,
[dir="rtl"] .value-row__mark,
[dir="rtl"] .ladder__num,
[dir="rtl"] .card__index,
[dir="rtl"] .stat__value,
[dir="rtl"] .langswitch__btn {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .04em;
}

[dir="rtl"] .stat__value { font-family: "Space Grotesk", system-ui, sans-serif; }

/* Arabic needs a slightly looser line for its ascenders and diacritics */
[dir="rtl"] body { line-height: 1.85; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.4; }
[dir="rtl"] .hero h1 { line-height: 1.35; }
[dir="rtl"] .manifesto { line-height: 1.55; }

/* Directional arrows inside buttons and links must point the other way */
[dir="rtl"] .btn__icon svg,
[dir="rtl"] .link-underline svg,
[dir="rtl"] .ladder__arrow svg { transform: scaleX(-1); }

[dir="rtl"] .btn:hover .btn__icon { transform: translateX(-3px); }
[dir="rtl"] .link-underline:hover svg { transform: scaleX(-1) translateX(4px); }

[dir="rtl"] .link-underline::after { transform-origin: left; }
[dir="rtl"] .link-underline:hover::after { transform-origin: right; }

/* Physically-anchored decoration */
[dir="rtl"] .timeline__rail { left: auto; right: 27.5px; }
[dir="rtl"] .industry::after { left: auto; right: 0; }
[dir="rtl"] .select-wrap::after { right: auto; left: 1.15rem; }
[dir="rtl"] .skip-link { left: auto; right: var(--gutter); }
[dir="rtl"] .header__progress { transform-origin: right; }
[dir="rtl"] .hero__float--a { left: auto; right: -12%; }
[dir="rtl"] .hero__float--b { right: auto; left: -10%; }
[dir="rtl"] .statband .stat { border-left: 0; border-right: 1px solid var(--line); padding-left: 0; padding-inline-start: var(--sp-5); }
[dir="rtl"] .statband .stat:first-child { border-right: 0; padding-inline-start: 0; }
[dir="rtl"] .marquee__track { animation-direction: reverse; }

/* The primary button's sheen sweeps the other way */
[dir="rtl"] .btn--primary::after { transform: translateX(120%); }
[dir="rtl"] .btn--primary:hover::after { transform: translateX(-120%); }

/* The brand mark itself is not mirrored — it is a logotype, not an icon */
@media (max-width: 1024px) {
  [dir="rtl"] .statband .stat:nth-child(odd) { border-right: 0; padding-inline-start: 0; }
}

@media (max-width: 680px) {
  [dir="rtl"] .timeline__rail { right: 21px; }
}


/* ==========================================================================
   20. RESPONSIVE
   ========================================================================== */

@media (max-width: 1180px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: clamp(3rem, 6vw, 4.5rem); }
  .hero__content { max-width: 46ch; }
  .hero__visual { max-width: 560px; }
  .hero__float--a { left: -4%; }
  .hero__float--b { right: -2%; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; max-width: 46ch; }
}

@media (max-width: 1024px) {
  :root { --header-h: 70px; }

  .nav,
  .header__actions .btn { display: none; }

  .nav-toggle { display: block; }

  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statband { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .statband .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .split,
  .split--asym,
  .split--form { grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
  .sticky-aside { position: static; }
  .manifesto { max-width: none; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder__item { grid-template-columns: clamp(72px, 13vw, 104px) minmax(0, 1fr); }
  .ladder__arrow { display: none; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; }

  .header__actions { gap: .5rem; }

  .language-picker__trigger {
    min-width: 76px;
    height: 42px;
    gap: .48rem;
    padding-inline: .68rem;
  }

  .language-picker__name { display: none; }
  .language-picker__code { display: inline; }
  .language-picker__globe { width: 16px; height: 16px; }
  .language-picker__globe::before { inset: 3px 5px; }
  .language-picker__globe::after { inset: 6px 1px auto; }

  .language-picker__menu {
    width: min(218px, calc(100vw - 2rem));
    top: calc(100% + .55rem);
  }

  .drawer__link {
    padding-block: .9rem;
    font-size: 1.35rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: minmax(0, 1fr); }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 3.25rem);
    padding-bottom: 4rem;
  }
  .hero__inner { gap: 3.25rem; }
  .hero__visual {
    display: block;
    width: 100%;
    max-width: none;
  }
  .hero__visual .panel {
    animation: none;
    border-radius: var(--r-lg);
  }
  .hero__float { display: none; }
  .panel__body { padding: 1rem; }
  .node-row { padding: .8rem; }
  .hero__scroll { display: none; }

  .statband { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat__value { font-size: var(--fs-2xl); }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .step { grid-template-columns: 44px minmax(0, 1fr); gap: var(--sp-4); }
  .step__dot { width: 44px; height: 44px; }
  .timeline__rail { left: 21px; }

  .checks { grid-template-columns: minmax(0, 1fr); }
  .form__submit { flex-direction: column-reverse; align-items: stretch; }
  .form__submit .btn { width: 100%; }

  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; padding-inline: .75rem; }

  .section-head h2 { max-width: none; }
  .page-hero::after { width: 38vw; }
}

@media (max-width: 460px) {
  .statband { grid-template-columns: minmax(0, 1fr); }
  .statband .stat { border-left: 0; padding-left: 0; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .logo__tag { display: none; }
  .footer-logo-lockup { width: 220px; height: 190px; }
  .hero h1 { font-size: clamp(2.35rem, 11.4vw, 3rem); }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .node-row__meta { display: none; }
  .page-hero { padding-top: calc(var(--header-h) + 3rem); }
  .form .fieldset { padding: 1rem; }
}

@media (max-width: 360px) {
  :root {
    --gutter: 1rem;
    --section-y: 4rem;
  }

  .logo__mark { width: 32px; height: 32px; }
  .logo__name { font-size: .9rem; }
  .badge { white-space: normal; }
  .hero h1 { font-size: 2.2rem; }
  .node-row { gap: .65rem; }
}

/* Large monitors — widen the canvas, keep measure comfortable */
@media (min-width: 1700px) {
  :root {
    --wrap: 1360px;
    --wrap-wide: 1640px;
    --header-h: 84px;
  }
}

/* ==========================================================================
   20b. ITERATION TWO — EDITORIAL COMPOSITION & SELECTED WORK
   ========================================================================== */

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2 { text-wrap: balance; }

p { text-wrap: pretty; }

.header__inner {
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out);
}

.header.is-scrolled .header__inner { border-color: rgba(245, 245, 243, .08); }

.nav__link {
  position: relative;
  padding-block: .5rem;
}

.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  min-height: min(940px, 100svh);
  background:
    linear-gradient(90deg, rgba(245, 245, 243, .025) 1px, transparent 1px),
    linear-gradient(rgba(245, 245, 243, .025) 1px, transparent 1px),
    var(--black);
  background-size: 88px 88px;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: var(--gutter);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--violet) 0 18%, rgba(245, 245, 243, .1) 18%);
}

.hero__inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.hero__content { max-width: min(100%, 940px); }

.hero h1 {
  font-size: clamp(3.25rem, 4.5vw, 5.2rem);
  line-height: .96;
  letter-spacing: -.058em;
}

.hero__lead { max-width: 58ch; }

.hero__proof {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-top: var(--sp-5);
  margin-top: var(--sp-3);
  border-top: 1px solid rgba(245, 245, 243, .12);
}

.hero__proof > div {
  min-width: 0;
  padding-inline: var(--sp-4);
  border-inline-start: 1px solid rgba(245, 245, 243, .1);
}

.hero__proof > div:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.hero__proof dt {
  margin-bottom: .45rem;
  color: rgba(245, 245, 243, .48);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero__proof dd {
  color: var(--off-white);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  line-height: 1.35;
}

.work-section {
  --work-rule: rgba(11, 15, 14, .16);
}

.work-section::before {
  content: "KAF / WORK";
  position: absolute;
  top: 1.25rem;
  right: var(--gutter);
  color: rgba(11, 15, 14, .26);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .16em;
}

.work-head__hint { display: none; }

.work-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-bottom: clamp(2rem, 3.5vw, 3.25rem);
  padding: .4rem;
  border-color: rgba(11, 15, 14, .12);
  border-radius: var(--r-md);
  background: rgba(11, 15, 14, .035);
}

.work-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding-inline: 1rem;
  border-radius: calc(var(--r-md) - 4px);
  color: rgba(11, 15, 14, .58);
  text-align: start;
}

.work-tab:hover { color: var(--black); }

.work-tab[aria-selected="true"] {
  color: var(--off-white);
  background: var(--black);
  box-shadow: 0 10px 30px rgba(11, 15, 14, .14);
}

.work-tab__count {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding-inline: .35rem;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .06em;
  opacity: .58;
}

.work-tab[aria-selected="true"] .work-tab__count {
  border-color: rgba(245, 245, 243, .28);
  background: rgba(77, 70, 255, .24);
  opacity: 1;
}

.work-panel:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 8px;
}

.work-empty {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  min-height: 330px;
  padding: clamp(2rem, 4vw, 4rem);
  border: 1px dashed rgba(11, 15, 14, .22);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 12% 20%, rgba(77, 70, 255, .12), transparent 34%),
    rgba(11, 15, 14, .025);
  overflow: hidden;
}

.work-empty::after {
  content: "";
  position: absolute;
  inset: auto -10% -70% 34%;
  height: 110%;
  border: 1px solid rgba(77, 70, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}

.work-empty__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(77, 70, 255, .26);
  border-radius: 50%;
  background: rgba(77, 70, 255, .08);
}

.work-empty__mark::before,
.work-empty__mark::after,
.work-empty__mark span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.work-empty__mark::before {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(77, 70, 255, .45);
}

.work-empty__mark::after {
  width: 8px;
  height: 8px;
  background: var(--violet);
  box-shadow: 0 0 0 6px rgba(77, 70, 255, .1);
}

.work-empty__mark span {
  width: 50px;
  height: 16px;
  border-top: 1px solid rgba(77, 70, 255, .32);
  transform: rotate(-28deg);
}

.work-empty h3 {
  font-size: clamp(1.65rem, 1.25rem + 1.4vw, 2.7rem);
  color: var(--black);
}

.work-empty p {
  max-width: 46ch;
  color: var(--gray);
}

.work-empty__code {
  align-self: start;
  color: rgba(11, 15, 14, .35);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .1em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.25rem) clamp(1.25rem, 2.5vw, 2.5rem);
}

.work-card {
  grid-column: span 4;
  min-width: 0;
}

.work-card--wide { grid-column: span 7; }
.work-card--tall { grid-column: span 5; }

.work-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--black);
  border: 1px solid var(--work-rule);
  border-radius: var(--r-sm);
}

.work-card--tall .work-card__media { aspect-ratio: 4 / 3; }

.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid var(--violet);
  transition: border-width var(--dur-base) var(--ease-out);
  pointer-events: none;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(.82) contrast(1.02);
  transform: scale(1.002);
  transition:
    transform 850ms var(--ease-out),
    filter 500ms var(--ease-out);
}

.work-card:hover .work-card__media img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1);
}

.work-card:hover .work-card__media::after { border-width: 3px; }

.work-card__visit {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--black);
  font-size: 1rem;
  transform: translateY(-4px) scale(.9);
  opacity: 0;
  transition:
    transform var(--dur-base) var(--ease-spring),
    opacity var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.work-card:hover .work-card__visit {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.work-card__media:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

.work-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-top: 1.25rem;
  border-top: 1px solid var(--work-rule);
}

.work-card__body > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.work-card__index,
.work-card__sector {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.work-card__index { color: var(--violet); }
.work-card__sector { text-align: end; }

.work-card h3 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  line-height: 1.08;
}

.work-card p {
  max-width: 54ch;
  color: var(--gray);
  font-size: var(--fs-sm);
  line-height: 1.58;
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.work-card__tags li {
  padding: .32rem .62rem;
  border: 1px solid var(--work-rule);
  border-radius: var(--r-pill);
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
}

.work-card .link-underline { margin-top: .25rem; }

/* Social-proof empty state, structured for future testimonial cards. */
.social-proof { overflow: hidden; }

.social-proof__empty {
  position: relative;
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 50% -20%, rgba(77, 70, 255, .18), transparent 44%),
    rgba(245, 245, 243, .025);
  overflow: hidden;
}

.social-proof__empty::before {
  content: "“";
  position: absolute;
  inset-inline-end: clamp(1rem, 3vw, 2.5rem);
  top: -2.1rem;
  color: rgba(77, 70, 255, .13);
  font-family: var(--font-display);
  font-size: clamp(8rem, 17vw, 15rem);
  line-height: 1;
  pointer-events: none;
}

.social-proof__status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.25rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.social-proof__status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 5px rgba(77, 70, 255, .11);
  animation: status-pulse 2.2s ease-in-out infinite;
}

.social-proof__slots {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.social-proof__slot {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-height: 190px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid rgba(245, 245, 243, .08);
  border-radius: var(--r-md);
  background: rgba(245, 245, 243, .025);
}

.social-proof__slot-index {
  margin-bottom: .35rem;
  color: rgba(77, 70, 255, .72);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .1em;
}

.social-proof__line {
  display: block;
  width: 64%;
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(245, 245, 243, .075);
}

.social-proof__line--wide { width: 88%; }

.social-proof__person {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: auto;
}

.social-proof__person i {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(245, 245, 243, .08);
  border-radius: 50%;
  background: rgba(77, 70, 255, .08);
}

.social-proof__person b {
  width: 38%;
  height: 7px;
  border-radius: var(--r-pill);
  background: rgba(245, 245, 243, .065);
}

@media (max-width: 1180px) and (min-width: 861px) {
  .hero {
    min-height: auto;
    padding-block: calc(var(--header-h) + 4rem) 5rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hero__content { max-width: 900px; }
  .hero h1 { font-size: clamp(3.25rem, 4.8vw, 4.4rem); }
}

@media (max-width: 900px) {
  .work-card,
  .work-card--wide,
  .work-card--tall { grid-column: span 6; }

  .work-card--tall .work-card__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 4rem);
    padding-bottom: 4.5rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hero__content { max-width: 720px; }
}

@media (max-width: 680px) {
  :root {
    --section-y: clamp(3.25rem, 12vw, 4rem);
  }

  .section--tight { padding-block: 2.35rem; }

  .section-head {
    gap: .85rem;
    margin-bottom: 1.8rem;
  }

  .section-head p { font-size: var(--fs-base); }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 2.75rem);
    padding-bottom: 3.25rem;
    background-size: 56px 56px;
  }

  .hero__inner { gap: 0; }
  .hero__content { gap: 1.1rem; }

  .hero h1 {
    font-size: clamp(2.65rem, 12.8vw, 4.1rem);
    line-height: .98;
  }

  .hero__title-line,
  .hero__title-line > span {
    display: inline;
    overflow: visible;
  }

  .hero__lead {
    font-size: .98rem;
    line-height: 1.55;
  }

  .hero__actions {
    width: 100%;
    padding-top: .2rem;
  }

  .hero__actions .btn {
    flex: 1 1 10rem;
    width: auto;
  }

  .hero__proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 1rem;
    margin-top: .3rem;
  }

  .hero__proof > div { padding-inline: .65rem; }
  .hero__proof dt { margin-bottom: .3rem; font-size: .58rem; }
  .hero__proof dd { font-size: .7rem; }

  body[data-page="home"] .statband {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body[data-page="home"] .statband::-webkit-scrollbar,
  body[data-page="home"] .work-grid::-webkit-scrollbar,
  body[data-page="home"] #services .grid::-webkit-scrollbar,
  body[data-page="home"] #about .split > .stack:last-child::-webkit-scrollbar,
  body[data-page="home"] #methodology .timeline::-webkit-scrollbar { display: none; }

  body[data-page="home"] .statband .stat {
    flex: 0 0 58vw;
    padding: 1rem 1.15rem;
    border-inline-start: 1px solid var(--line);
    scroll-snap-align: start;
  }

  body[data-page="home"] .statband .stat:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  body[data-page="home"] .stat__label { font-size: .76rem; }
  body[data-page="home"] .marquee { display: none; }

  body[data-page="home"] #about .split { gap: 2rem; }

  body[data-page="home"] #about .split > .stack:last-child {
    display: flex;
    flex-direction: row;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body[data-page="home"] #about .value-row {
    flex: 0 0 76vw;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    scroll-snap-align: start;
  }

  body[data-page="home"] #services .grid {
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body[data-page="home"] #services .card {
    flex: 0 0 82vw;
    min-height: auto;
    padding: 1.35rem;
    scroll-snap-align: start;
  }

  body[data-page="home"] #services .service-card__list li:nth-child(n + 5) { display: none; }

  body[data-page="home"] #why .panel-feature { padding: 1.35rem; }
  body[data-page="home"] #why .split { gap: 2rem; }
  body[data-page="home"] #why .manifesto { font-size: 1.55rem; }
  body[data-page="home"] #why .value-row { padding-block: .85rem; }

  body[data-page="home"] #methodology .timeline {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body[data-page="home"] #methodology .timeline__rail { display: none; }

  body[data-page="home"] #methodology .step {
    flex: 0 0 76vw;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: .9rem;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    scroll-snap-align: start;
  }

  body[data-page="home"] #methodology .step__dot { width: 40px; height: 40px; }
  body[data-page="home"] #methodology .step__body { padding-top: .15rem; gap: .45rem; }
  body[data-page="home"] #methodology .step__title { font-size: 1.2rem; }

  body[data-page="home"] #industries .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }

  body[data-page="home"] #industries .industry {
    align-items: flex-start;
    padding: .9rem;
    gap: .65rem;
  }

  body[data-page="home"] #industries .industry__icon { width: 34px; height: 34px; }
  body[data-page="home"] #industries .industry__meta { display: none; }
  body[data-page="home"] #industries .industry__name { font-size: .78rem; line-height: 1.25; }

  .work-section::before { display: none; }
  .work-head__hint { display: inline-block; }

  .work-tabs {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 1.5rem;
  }

  .work-tab {
    min-height: 48px;
    padding-block: .55rem;
  }

  .work-empty {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    min-height: 300px;
    padding: 1.5rem;
  }

  .work-empty__mark { width: 58px; height: 58px; }
  .work-empty__mark::before { width: 27px; height: 27px; }
  .work-empty__mark span { width: 39px; }

  .work-empty__code {
    position: absolute;
    inset-inline-end: 1.25rem;
    top: 1.25rem;
  }

  .work-grid {
    display: flex;
    gap: .9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: .5rem;
  }

  .work-card,
  .work-card--wide,
  .work-card--tall {
    flex: 0 0 min(82vw, 340px);
    scroll-snap-align: start;
  }

  .work-card__media,
  .work-card--tall .work-card__media { aspect-ratio: 16 / 10; }

  .work-card__body {
    gap: .65rem;
    padding-top: .9rem;
  }

  .work-card h3 { font-size: 1.25rem; }
  .work-card p { font-size: .8rem; line-height: 1.45; }
  .work-card__visit {
    width: 38px;
    height: 38px;
    opacity: 1;
    transform: none;
  }

  .work-card__tags li { font-size: .59rem; }

  .social-proof__slots {
    display: flex;
    gap: .75rem;
    margin-inline: -.25rem;
    padding: .25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .social-proof__slots::-webkit-scrollbar { display: none; }

  .social-proof__slot {
    flex: 0 0 min(76vw, 300px);
    min-height: 155px;
    scroll-snap-align: start;
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 2.75rem);
    padding-bottom: 2.75rem;
  }

  .page-hero__inner { gap: 1rem; }
  .page-hero p { font-size: var(--fs-base); }

  .footer {
    padding-top: 3.25rem;
  }
}

@media (max-width: 420px) {
  .hero__proof > div:nth-child(2) { display: none; }
  .hero__proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  body[data-page="home"] #industries .industry__icon { display: none; }
  body[data-page="home"] #industries .industry { min-height: 58px; align-items: center; }

  .work-card,
  .work-card--wide,
  .work-card--tall { flex-basis: 85vw; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 2.55rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ==========================================================================
   20c. FOUNDERS, PERSISTENT CTA & MOBILE LANGUAGE ACCESS
   ========================================================================== */

.mobile-lang-trigger {
  display: none;
}

.systems-card--wide {
  background:
    radial-gradient(circle at 88% 12%, rgba(77, 70, 255, .12), transparent 36%),
    var(--surface);
}

.card__kicker {
  display: block;
  margin-bottom: -.15rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.drawer__language {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 0 1.15rem;
}

.drawer__language > .mono {
  flex: 0 0 auto;
  color: rgba(245, 245, 243, .5);
}

.drawer__language .langswitch {
  flex: 1;
  width: auto;
  border-color: rgba(245, 245, 243, .14);
  background: rgba(245, 245, 243, .04);
}

.floating-actions {
  position: fixed;
  inset-inline-end: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: .7rem;
  animation: floating-cta-in 700ms var(--ease-out) 800ms both;
}

.floating-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  min-width: 158px;
  min-height: 50px;
  padding-block: .42rem;
  padding-inline: .9rem .45rem;
  border: 1px solid rgba(123, 117, 255, .5);
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 86% 0%, rgba(77, 70, 255, .34), transparent 42%),
    linear-gradient(135deg, rgba(20, 26, 24, .97), rgba(16, 15, 38, .97));
  color: var(--off-white);
  font-family: var(--font-display);
  box-shadow:
    0 20px 60px rgba(11, 15, 14, .46),
    0 0 0 1px rgba(77, 70, 255, .08),
    0 0 34px rgba(77, 70, 255, .13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform var(--dur-base) var(--ease-spring),
    border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.floating-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -80%;
  left: -18%;
  width: 34%;
  height: 260%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: rotate(18deg) translateX(-250%);
  transition: transform 700ms var(--ease-out);
}

.floating-cta:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 244, 216, .7);
  box-shadow:
    0 24px 64px rgba(11, 15, 14, .52),
    0 0 42px rgba(77, 70, 255, .27);
}

.floating-cta:hover::before { transform: rotate(18deg) translateX(520%); }

.floating-cta:focus-visible {
  outline: 3px solid var(--off-white);
  outline-offset: 3px;
}

.floating-cta__label {
  overflow: hidden;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-cta__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), #7772ff);
  color: var(--off-white);
  box-shadow: 0 8px 24px rgba(77, 70, 255, .36);
  transition: transform var(--dur-base) var(--ease-spring);
}

.floating-cta:hover .floating-cta__icon {
  background: var(--off-white);
  color: var(--violet);
  transform: rotate(10deg);
}

.floating-whatsapp {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: linear-gradient(145deg, #2de175, #17ad55);
  color: white;
  box-shadow:
    0 16px 42px rgba(11, 15, 14, .38),
    0 0 28px rgba(37, 211, 102, .2);
  transition:
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out),
    filter var(--dur-base) var(--ease-out);
}

.floating-whatsapp svg {
  width: 25px;
  height: 25px;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) rotate(-4deg) scale(1.04);
  filter: saturate(1.12);
  box-shadow:
    0 20px 48px rgba(11, 15, 14, .44),
    0 0 34px rgba(37, 211, 102, .34);
}

.floating-whatsapp:focus-visible {
  outline: 3px solid var(--off-white);
  outline-offset: 3px;
}

.founders-preview {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  color: var(--off-white);
  transition: color var(--dur-fast) var(--ease-out);
}

.founders-preview:hover { color: var(--violet); }

.founders-preview__faces {
  display: flex;
  flex: 0 0 auto;
  padding-inline-start: .35rem;
}

.founders-preview__faces i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-inline-start: -.35rem;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--off-white);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: .5rem;
  font-style: normal;
  font-weight: 600;
  overflow: hidden;
}

.founders-preview__faces img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founders-preview__faces i:nth-child(2) {
  background: var(--gray);
  color: var(--off-white);
}

.founders-preview__faces i:nth-child(3) {
  background: var(--violet);
  color: var(--off-white);
}

.founders-preview > span:not(.founders-preview__faces) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.founders-preview b {
  margin-inline-start: auto;
  font-weight: 400;
}

.founders-section {
  background:
    linear-gradient(90deg, rgba(245, 245, 243, .025) 1px, transparent 1px),
    linear-gradient(rgba(245, 245, 243, .025) 1px, transparent 1px),
    var(--black);
  background-size: 72px 72px;
}

.founders-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1080px;
  margin-inline: auto;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}

.founders-grid.founders-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.founder-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(245, 245, 243, .035);
  overflow: hidden;
  transition:
    transform 500ms var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow 500ms var(--ease-out);
}

.founder-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 70, 255, .7);
  box-shadow: 0 28px 72px rgba(11, 15, 14, .4);
}

.founder-card__portrait {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  aspect-ratio: 4 / 3;
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 20%, rgba(77, 70, 255, .55), transparent 34%),
    linear-gradient(145deg, rgba(245, 245, 243, .06), transparent 55%),
    var(--black);
  isolation: isolate;
  overflow: hidden;
}

.founder-card__portrait::before {
  content: "";
  position: absolute;
  inset: 12% 16% -34%;
  z-index: -1;
  border: 1px solid rgba(245, 245, 243, .16);
  border-radius: 50% 50% 0 0;
  background: rgba(245, 245, 243, .035);
  transform: rotate(-8deg);
  transition: transform 700ms var(--ease-out);
}

.founder-card:hover .founder-card__portrait::before {
  transform: rotate(-2deg) scale(1.05);
}

.founder-card__portrait > span {
  color: var(--off-white);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: .8;
  letter-spacing: -.08em;
}

.founder-card__portrait small {
  color: rgba(245, 245, 243, .5);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.founder-card__portrait--profile {
  min-height: clamp(400px, 40vw, 470px);
}

.founder-card__portrait--profile::before {
  inset: 8% 18% -12%;
  border-radius: 50% 50% 12% 12%;
}

.founder-card__portrait--profile > img {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  z-index: 1;
  width: clamp(250px, 25vw, 330px);
  height: clamp(250px, 25vw, 330px);
  border: 8px solid rgba(245, 245, 243, .08);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(11, 15, 14, .46);
  transform: translate(-50%, -50%);
  transition: transform 700ms var(--ease-spring), border-color var(--dur-base) var(--ease-out);
}

[dir="rtl"] .founder-card__portrait--profile > img {
  transform: translate(50%, -50%);
}

.founder-card:hover .founder-card__portrait--profile > img {
  border-color: rgba(77, 70, 255, .48);
  transform: translate(-50%, -50%) scale(1.04);
}

[dir="rtl"] .founder-card:hover .founder-card__portrait--profile > img {
  transform: translate(50%, -50%) scale(1.04);
}

.founder-card__portrait--profile > span,
.founder-card__portrait--profile > small {
  position: relative;
  z-index: 2;
}

.founder-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.35rem;
}

.founder-card__role {
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.founder-card h3 {
  font-size: var(--fs-xl);
  line-height: 1.1;
}

.founder-card p {
  color: var(--fg-muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.founder-card__instagram {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .25rem;
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .05em;
  transition: color var(--dur-fast) var(--ease-out);
}

.founder-card__instagram::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.founder-card__instagram:hover {
  color: var(--off-white);
}

.founder-card__instagram b {
  color: var(--violet);
  font-weight: 500;
}

.founder-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  width: 100%;
  margin-top: .4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.founder-card__metric {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .35rem .65rem;
  border: 1px solid rgba(77, 70, 255, .3);
  border-radius: var(--r-pill);
  background: rgba(77, 70, 255, .1);
  color: var(--off-white);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .04em;
}

.founders-strip {
  padding-bottom: var(--sp-6);
  border-top: 1px solid rgba(245, 245, 243, .08);
  background:
    radial-gradient(circle at 78% 50%, rgba(77, 70, 255, .11), transparent 34%),
    var(--black);
}

.founders-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.founders-strip__head .link-underline {
  color: var(--off-white);
  font-size: var(--fs-xs);
}

.founders-marquee {
  display: block;
  direction: ltr;
  padding-block: var(--sp-5);
  border-block: 1px solid rgba(245, 245, 243, .08);
}

.founders-marquee__track {
  display: flex;
  width: max-content;
  direction: ltr;
  animation: marquee 34s linear infinite;
  will-change: transform;
}

[dir="rtl"] .founder-profile {
  direction: rtl;
}

.founders-marquee:hover .founders-marquee__track {
  animation-play-state: paused;
}

.founders-marquee__group {
  display: flex;
  gap: var(--sp-5);
  padding-inline-end: var(--sp-5);
}

.founder-profile {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr) auto auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  flex: 0 0 48vw;
  width: 48vw;
  min-height: 148px;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(245, 245, 243, .12);
  border-radius: var(--r-lg);
  background:
    linear-gradient(120deg, rgba(245, 245, 243, .055), rgba(245, 245, 243, .018)),
    var(--black);
  color: var(--off-white);
  overflow: hidden;
  transition:
    border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out);
}

.founder-profile::after {
  content: "";
  position: absolute;
  inset: auto -12% -70% 42%;
  height: 150%;
  border-radius: 50%;
  background: rgba(77, 70, 255, .11);
  filter: blur(26px);
  pointer-events: none;
}

.founder-profile:hover {
  border-color: rgba(77, 70, 255, .68);
  background-color: rgba(77, 70, 255, .05);
}

.founder-profile__avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 86px;
  height: 86px;
  padding: 4px;
  border: 1px solid rgba(245, 245, 243, .2);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--violet), rgba(245, 245, 243, .1));
}

.founder-profile__avatar img {
  width: 100%;
  height: 100%;
  border: 3px solid var(--black);
  border-radius: inherit;
  object-fit: cover;
}

.founder-profile__identity {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.founder-profile__identity small {
  margin-bottom: .35rem;
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.founder-profile__identity strong {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  letter-spacing: -.025em;
}

.founder-profile__identity > span {
  margin-top: .2rem;
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
}

.founder-profile__proof {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .75rem;
  border: 1px solid rgba(245, 245, 243, .1);
  border-radius: var(--r-pill);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  white-space: nowrap;
}

.founder-profile__proof i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(77, 70, 255, .12);
}

.founder-profile > b {
  position: relative;
  z-index: 1;
  color: var(--off-white);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   CLIENTS STRIP — "Trusted by" — matches founders-strip visual language
   ========================================================================== */

.clients-strip {
  padding-block: var(--sp-6);
  border-top: 1px solid rgba(245, 245, 243, .08);
  background:
    radial-gradient(circle at 22% 40%, rgba(77, 70, 255, .11), transparent 34%),
    var(--black);
}

.clients-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.clients-strip__lead { display: flex; flex-direction: column; gap: .5rem; }

.clients-strip__title {
  margin: 0;
  color: var(--off-white);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -.025em;
}

.clients-strip__lede {
  max-width: 36ch;
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--fs-sm);
}

.clients-marquee {
  display: block;
  direction: ltr;
  padding-block: var(--sp-5);
  border-block: 1px solid rgba(245, 245, 243, .08);
  min-height: 320px;
}

.clients-marquee__track {
  display: flex;
  width: max-content;
  direction: ltr;
  animation: marquee 36s linear infinite;
  will-change: transform;
}

.clients-marquee:hover .clients-marquee__track {
  animation-play-state: paused;
}

.clients-marquee__group {
  display: flex;
  gap: var(--sp-4);
  padding-inline-end: var(--sp-4);
}

.client-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 0 0 260px;
  width: 260px;
  padding: var(--sp-4);
  border: 1px solid rgba(245, 245, 243, .12);
  border-radius: var(--r-lg);
  background:
    linear-gradient(120deg, rgba(245, 245, 243, .055), rgba(245, 245, 243, .018)),
    var(--black);
  color: var(--off-white);
  transition:
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.client-card:hover {
  border-color: rgba(77, 70, 255, .68);
  transform: translateY(-3px);
}

.client-card__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--off-white);
  overflow: hidden;
}

.client-card__mark--dark {
  background:
    radial-gradient(circle at 30% 30%, rgba(77, 70, 255, .18), transparent 60%),
    #0B0F0E;
}

.client-card__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.client-card__meta {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 0 .25rem;
}

.client-card__meta strong {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: -.02em;
}

.client-card__meta small {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .clients-marquee { padding-block: var(--sp-4); min-height: 300px; }
  .client-card { flex: 0 0 240px; width: 240px; padding: 0.85rem; }
  .client-card__mark { height: 170px; padding: 0.85rem; }
  .clients-marquee__track { animation-duration: 28s; }
}

/* ==========================================================================
   WORK GRID — AI Agent cards (icon + gradient hero, no image required)
   ========================================================================== */

.ai-marquee {
  display: block;
  direction: ltr;
  padding-block: var(--sp-4);
  border-block: 1px solid rgba(245, 245, 243, .08);
  min-height: 460px;
}

.ai-marquee__track {
  display: flex;
  width: max-content;
  direction: ltr;
  animation: marquee 90s linear infinite reverse;
  will-change: transform;
}

.ai-marquee:hover .ai-marquee__track {
  animation-play-state: paused;
}

.ai-marquee__group {
  display: flex;
  gap: var(--sp-4);
  padding-inline-end: var(--sp-4);
}

.ai-marquee .work-card {
  flex: 0 0 320px;
  width: 320px;
  grid-column: auto;
}

.work-card--ai .work-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: 0;
  color: var(--off-white);
  overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid rgba(245, 245, 243, .12);
}

.work-card__mark svg {
  width: 56px;
  height: 56px;
  opacity: .95;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35));
}

/* Cards with a real branded artwork instead of icon+gradient */
.work-card__media--photo {
  display: block;
  aspect-ratio: 16 / 10;
  padding: 0;
  border-radius: var(--r-sm);
  border: 1px solid rgba(245, 245, 243, .12);
  overflow: hidden;
  background: #0B0F0E;
}

.work-card__media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 10 distinct hues so cards stay recognisable in the marquee */
.work-card__mark--hue-1  { background: linear-gradient(135deg, #4D46FF 0%, #1F1A3B 100%); }
.work-card__mark--hue-2  { background: linear-gradient(135deg, #20C6C6 0%, #0F2A3F 100%); }
.work-card__mark--hue-3  { background: linear-gradient(135deg, #F5A623 0%, #6B3410 100%); }
.work-card__mark--hue-4  { background: linear-gradient(135deg, #E056FD 0%, #3D1454 100%); }
.work-card__mark--hue-5  { background: linear-gradient(135deg, #38B47C 0%, #0F3A26 100%); }
.work-card__mark--hue-6  { background: linear-gradient(135deg, #FF6B6B 0%, #4A1B1B 100%); }
.work-card__mark--hue-7  { background: linear-gradient(135deg, #6C63FF 0%, #221A54 100%); }
.work-card__mark--hue-8  { background: linear-gradient(135deg, #EA5455 0%, #FEB692 100%); }
.work-card__mark--hue-9  { background: linear-gradient(135deg, #16A085 0%, #0E4B44 100%); }
.work-card__mark--hue-10 { background: linear-gradient(135deg, #7367F0 0%, #1E1A4F 100%); }

.work-card__available {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .35rem;
  padding: .35rem .65rem;
  border: 1px solid rgba(245, 245, 243, .14);
  border-radius: var(--r-pill);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.work-card__available::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(77, 70, 255, .18);
}

@media (max-width: 720px) {
  .ai-marquee { min-height: 420px; }
  .ai-marquee__track { animation-duration: 60s; }
  .ai-marquee .work-card { flex: 0 0 280px; width: 280px; }
}

@keyframes floating-cta-in {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes status-pulse {
  0%, 100% { opacity: .72; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (max-width: 860px) {
  .founders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder-card:last-child { grid-column: 1 / -1; }
  .founders-grid--two .founder-card:last-child { grid-column: auto; }
  .founder-profile__proof { display: none; }
}

@media (min-width: 861px) {
  .systems-card--wide { grid-column: span 2; }
}

@media (max-width: 680px) {
  .mobile-lang-trigger {
    position: absolute;
    inset-inline-start: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-width: 70px;
    height: 38px;
    padding: 0 .75rem;
    border: 1px solid rgba(245, 245, 243, .14);
    border-radius: var(--r-pill);
    background: rgba(245, 245, 243, .055);
    color: var(--off-white);
    font-family: var(--font-mono);
    font-size: var(--fs-3xs);
    letter-spacing: .08em;
    transform: translateX(-50%);
    transition:
      opacity var(--dur-fast) var(--ease-out),
      border-color var(--dur-fast) var(--ease-out),
      background-color var(--dur-fast) var(--ease-out);
  }

  [dir="rtl"] .mobile-lang-trigger {
    transform: translateX(50%);
  }

  .mobile-lang-trigger:hover,
  .mobile-lang-trigger:focus-visible {
    border-color: rgba(77, 70, 255, .65);
    background: rgba(77, 70, 255, .12);
  }

  body.is-locked .mobile-lang-trigger {
    opacity: 0;
    pointer-events: none;
  }

  .mobile-lang-trigger__mark {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 0 4px rgba(77, 70, 255, .12);
  }

  .drawer {
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 1.5rem;
  }

  .drawer__language {
    position: sticky;
    top: 0;
    z-index: 1;
    margin-inline: -.25rem;
    padding: .75rem .25rem 1rem;
    background: rgba(11, 15, 14, .98);
  }

  .drawer__footer { padding-top: 1.25rem; }

  .floating-actions {
    inset-inline: auto 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    gap: .55rem;
  }

  .floating-cta {
    flex: 0 0 auto;
    min-width: 0;
    justify-content: space-between;
    min-height: 48px;
    padding-block: .4rem;
    padding-inline: .8rem .4rem;
  }

  .floating-cta__icon {
    width: 32px;
    height: 32px;
  }

  .floating-whatsapp {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .floating-whatsapp svg { width: 24px; height: 24px; }

  .founders-grid {
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .founders-grid::-webkit-scrollbar { display: none; }

  .founder-card,
  .founder-card:last-child {
    flex: 0 0 min(82vw, 330px);
    scroll-snap-align: start;
  }

  .founder-card__portrait { aspect-ratio: 16 / 10; }

  .founder-card__portrait--profile {
    min-height: 340px;
  }

  .founder-card__portrait--profile > img {
    width: min(260px, calc(100% - 3rem));
    height: min(260px, calc(100% - 3rem));
  }

  .founders-strip__head {
    align-items: flex-end;
  }

  .founders-strip__head .link-underline {
    font-size: var(--fs-2xs);
  }

  body[data-page="home"] .founders-marquee {
    display: block;
  }

  .founders-marquee__group {
    gap: .85rem;
    padding-inline-end: .85rem;
  }

  .founder-profile {
    grid-template-columns: auto minmax(0, 1fr) auto;
    flex-basis: 88vw;
    width: 88vw;
    min-height: 116px;
    padding: 1rem;
    border-radius: var(--r-md);
  }

  .founder-profile__avatar {
    width: 68px;
    height: 68px;
  }

  .founder-profile__identity strong {
    font-size: var(--fs-lg);
  }

  .founder-profile > b {
    font-size: 0;
  }

  .founder-profile > b span {
    font-size: var(--fs-base);
  }
}

@media (max-width: 680px) {
  .about-sectors--home,
  .about-sectors--full { grid-template-columns: 1fr; gap: 1.25rem; }
  .about-sectors--home .sector-index,
  .about-sectors--full .sector-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .about-sectors__head { align-items: start; flex-direction: column; }
  .about-sectors--home,
  .about-sectors--full { grid-template-columns: 1fr; gap: 1.25rem; }
  .about-sectors--home .sector-index,
  .about-sectors--full .sector-index,
  .sector-index { grid-template-columns: 1fr; }
  .sector-index li:nth-child(even) { padding-inline-start: 0; }
  .sector-index li:nth-child(even):hover { padding-inline-start: .35rem; }

  .drawer__language {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
  }

  .hero__founder-proof dt { margin-bottom: .4rem; }
  .founders-preview > span:not(.founders-preview__faces) { display: none; }
  .founders-strip__head .link-underline { display: none; }
}

@media (max-width: 340px) {
  .logo { gap: .45rem; }
  .logo__name { font-size: .82rem; }
  .logo__tag { display: none; }

  .mobile-lang-trigger {
    min-width: 60px;
    height: 36px;
    padding-inline: .55rem;
  }
}


/* ==========================================================================
   21. ACCESSIBILITY & PRINT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  .hero__fade,
  .drawer.is-open .drawer__link {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__title-line > span { transform: none !important; }
  .hero__canvas { display: none; }
  .marquee__track { animation: none; }
  .founders-marquee__track { animation: none; }
}

@media (forced-colors: active) {
  .btn,
  .card,
  .input,
  .select,
  .textarea { border: 1px solid currentColor; }
  .text-gradient { color: CanvasText; -webkit-text-fill-color: CanvasText; }
}

@media print {
  .header,
  .drawer,
  .hero__canvas,
  .hero__aurora,
  .deco-grid,
  .deco-glow,
  .marquee,
  .founders-strip,
  .hero__scroll { display: none !important; }
  .floating-actions { display: none !important; }

  body { background: var(--off-white); color: var(--black); }
  .section { padding-block: 1.5rem; background: var(--off-white); color: var(--black); }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
