/* INAI — brand kit edition (navy/blue palette, Lato), Apple-inspired motion.
   Brand source: Documents/INAI Advanced Technologies/Company/Brand Assets (logo SVGs).
   Light sections by default; add .theme-dark to any section for the navy treatment. */

:root {
  /* Brand kit */
  --brand-navy: #0B1B3D;
  --brand-navy-2: #1D3E8C;
  --brand-blue: #4C8CFF;
  --brand-cyan: #00D4E0;
  --brand-royal: #3D6EDB;
  --brand-ice: #EAF4FF;
  --brand-gradient: linear-gradient(100deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);

  /* Light theme (default) */
  --bg: #FFFFFF;
  --surface: #F5F8FD;
  --raised: #EAF4FF;
  --raised-2: #DCEAFD;
  --line: #DCE5F2;
  --line-strong: #B9CAE3;
  --text: #0B1B3D;
  --text-muted: #46587E;
  --text-faint: #5B6C90;         /* ≥4.7:1 on bg, surface and raised */
  --accent: #2A5BD0;             /* links and small accents on light */
  --live: #00798A;               /* live/system state as text on light */
  --live-dot: #00B8C6;
  --cta: #3D6EDB;
  --cta-hover: #2A5BD0;
  --focus: #2A5BD0;
  --tile-shadow: 0 1px 2px rgba(11, 27, 61, 0.04), 0 12px 32px -18px rgba(11, 27, 61, 0.18);

  --font: "Lato", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Lato", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.15rem + 1.1vw, 1.95rem);
  --step-3: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  --step-4: clamp(2.5rem, 1.3rem + 4.6vw, 5rem);
  --step-5: clamp(2.75rem, 1rem + 6.6vw, 7rem);

  --gutter: 20px;
  --max: 1200px;
  --radius-sm: 10px;
  --radius: 22px;
  --radius-lg: 30px;
  --section: clamp(5rem, 3.5rem + 6vw, 10rem);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (min-width: 720px) {
  :root { --gutter: 40px; }
}

/* Navy theme: any element with .theme-dark re-scopes the tokens. */
.theme-dark {
  --bg: #0B1B3D;
  --surface: #0F2349;
  --raised: #152C58;
  --raised-2: #1B356A;
  --line: #22396A;
  --line-strong: #34528C;
  --text: #EAF4FF;
  --text-muted: #A8BBDD;
  --text-faint: #8A9FC6;         /* ≥5:1 on bg, surface and raised; not for raised-2 */
  --accent: #6FA2FF;
  --live: #00D4E0;
  --live-dot: #00D4E0;
  --focus: #6FA2FF;
  --tile-shadow: none;
  background-color: var(--bg);
  color: var(--text);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }

@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 180ms ease-in both vt-out; }
::view-transition-new(root) { animation: 320ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 900; letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: var(--step-3); font-weight: 900; letter-spacing: -0.022em; line-height: 1.08; }
h3 { font-size: var(--step-1); line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-blue); color: #FFFFFF; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--cta);
  color: #FFFFFF;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 58ch;
}

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

/* Brand "node": the circle from the INAI logo, used as a bullet. */
.node {
  display: inline-block;
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

/* ---------- Buttons (pill, as on apple.com) ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button--signal, .button--nile { background: var(--cta); color: #FFFFFF; }
.button--signal:hover, .button--nile:hover { background: var(--cta-hover); }
.button--ghost { border-color: var(--line-strong); color: var(--text); }
.button--ghost:hover { border-color: var(--text-muted); background: color-mix(in srgb, var(--text) 6%, transparent); }
.button svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */

/* Header height is shared by everything that sticks below it or scrolls to an anchor. */
:root { --header-h: 100px; }
@media (min-width: 900px) { :root { --header-h: 64px; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(11, 27, 61, 0.93);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(234, 244, 255, 0.08);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 56px;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
/* The eye mark is wider than tall, so it sits at full width beside the wordmark. */
.brand .brand-mark { width: 44px; height: 22px; border-radius: 0; }
.brand:hover .brand-mark { filter: drop-shadow(0 0 8px rgba(0, 212, 224, 0.55)); }
.brand .brand-mark { transition: filter 300ms ease; }
.brand-word { font-weight: 900; font-size: 1.3rem; letter-spacing: 0.08em; }

.header-cta.button { min-height: 44px; padding: 0.45rem 1.15rem; font-size: 0.95rem; }

/* Phones and narrow windows: the tabs sit in their own row under the logo and scroll sideways. */
.site-nav { order: 3; flex: 1 0 100%; min-width: 0; max-width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); }
.nav-tabs {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
          mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs > li { flex: none; display: flex; align-items: stretch; }
.nav-tabs > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 160ms ease, box-shadow 300ms var(--ease-out);
}
.nav-tabs > li > a:hover { color: var(--text); }
.nav-tabs > li > a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--brand-cyan); }
.menu-toggle, .mega { display: none; }

/* Phones: tabs are plain links; the dropdown triggers and panels only exist on desktop. */
.tab-trigger, .mega { display: none; }
.mega-label { margin: 0 0 0.35rem; color: var(--live); font-weight: 700; font-size: var(--step--1); }

/* Desktop: one row, every section tab opens a full-width panel (after nvidia.com's pattern). */
@media (min-width: 900px) {
  .header-row { flex-wrap: nowrap; min-height: 64px; align-items: stretch; }
  .brand { min-height: 64px; }
  .header-cta.button { align-self: center; }
  .site-nav { order: 0; flex: 1 1 auto; margin: 0; max-width: none; display: flex; justify-content: center; }
  .nav-tabs { padding: 0; gap: 0.15rem; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .nav-tabs > li > a, .tab-trigger { min-height: 64px; padding: 0 0.8rem; font-weight: 400; }
  .has-menu > .tab-link { display: none; }
  .tab-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    box-shadow: inset 0 -2px 0 transparent;
    transition: color 160ms ease, box-shadow 300ms var(--ease-out);
  }
  .tab-trigger:hover, .tab-trigger[aria-expanded="true"] { color: var(--text); }
  .tab-trigger[aria-expanded="true"] { box-shadow: inset 0 -3px 0 var(--brand-cyan); }
  .tab-trigger[aria-current="page"], .nav-tabs > li > a[aria-current="page"] { color: var(--text); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand-cyan); }
  .tab-trigger .chev { width: 11px; height: 11px; transition: transform 300ms var(--ease-lux); }
  .tab-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

  /* The panel: light, full width, big title on the left and a grid of destinations. */
  .mega {
    --text: #0B1B3D;
    --text-muted: #46587E;
    --line: #DCE5F2;
    --live: #00798A;
    --focus: #2A5BD0;
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    color: var(--text);
    background: #F5F8FD;
    border-bottom: 1px solid #DCE5F2;
    box-shadow: 0 40px 80px -30px rgba(11, 27, 61, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 300ms var(--ease-lux), visibility 0s linear 300ms;
  }
  .mega.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 220ms ease, transform 400ms var(--ease-lux), visibility 0s;
  }
  .mega-inner {
    max-width: calc(var(--max) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 2.5rem var(--gutter) 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 3rem;
  }
  .mega-title { margin: 0 0 0.75rem; font-size: var(--step-3); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; }
  .mega-intro p:not(.mega-title) { color: var(--text-muted); font-size: 0.95rem; }
  .mega-overview {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1.25rem;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
  }
  .mega-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 1.5rem;
    align-content: start;
  }
  .mega-grid a {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    margin: 0 -1rem;
    border-radius: 14px;
    color: var(--text);
    text-decoration: none;
    transition: background-color 200ms ease;
  }
  .mega-grid a:hover { background: #FFFFFF; box-shadow: 0 10px 30px -18px rgba(11, 27, 61, 0.35); }
  .mega-grid strong { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; font-size: 1rem; line-height: 1.3; }
  .mega-grid span:not(.mega-kicker) { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
  .mega-kicker { color: var(--live); font-weight: 700; font-size: 0.78rem; }
  .item-chev { width: 12px; height: 12px; flex: none; color: var(--brand-royal); transition: transform 250ms var(--ease-lux); }
  .mega-grid a:hover .item-chev, .mega-overview:hover .item-chev { transform: translateX(3px); }
}


/* The first section slides up under the translucent header, so the bar always sits over navy. */
main > section:first-child { margin-top: calc(-1 * var(--header-h) - 1px); padding-top: calc(var(--header-h) + 1px); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--paper { background: var(--surface); }
.section--nile { position: relative; overflow: hidden; }
.section--nile > .container { position: relative; }

.section-head { margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); max-width: 820px; }
.section-head .lede { margin-top: 1.25rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100svh, 1040px);
  display: grid;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(29, 62, 140, 0.75), transparent 70%),
    var(--brand-navy);
}
.hero-lattice {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1400px, 170vw);
  transform: translate(-50%, -50%);
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.35) 0 22%, #000 45%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.35) 0 22%, #000 45%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-block: clamp(5rem, 3rem + 8vw, 9rem);
}
.hero h1 { font-size: var(--step-5); letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 > span { display: block; }
.hero .lede { margin: 1.75rem auto 0; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-top: 2.5rem; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 28px; height: 44px;
  margin-left: -14px;
  border: 2px solid rgba(234, 244, 255, 0.35);
  border-radius: 999px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--brand-cyan);
  animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

.lattice .l-line { stroke: #2A4A86; stroke-width: 1.1; fill: none; }
.lattice .l-node { fill: #3A5FA6; }
.lattice .s-line { stroke: var(--brand-blue); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.lattice .s-node { fill: var(--brand-cyan); transform-box: fill-box; transform-origin: center; }

/* ---------- Facts ---------- */

.facts { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); border-bottom: 1px solid var(--line); }
.facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}
.facts strong {
  display: block;
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, var(--brand-navy-2), var(--brand-royal));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.facts span { display: block; margin-top: 0.6rem; color: var(--text-muted); max-width: 22ch; line-height: 1.45; }
@media (min-width: 860px) { .facts ul { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Philosophy: words light up as you scroll ---------- */

.words { background: var(--bg); padding-block: var(--section); }
.words-text {
  font-size: clamp(1.9rem, 1rem + 3.4vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}
.words-text .w { transition: opacity 300ms ease, color 300ms ease; }
html.motion .words { height: 260vh; padding: 0; }
html.motion .words-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  align-items: center;
}
html.motion .words-text .w { opacity: 0.42; }
html.motion .words-text .w.on { opacity: 1; }

/* ---------- Showcase: the assistant demo as the product ---------- */

.showcase {
  padding-block: var(--section);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 50% 60%, rgba(29, 62, 140, 0.6), transparent 70%),
    var(--brand-navy);
}
.showcase-head { text-align: center; max-width: 820px; margin: 0 auto clamp(3rem, 2rem + 3vw, 5rem); }
.showcase-head .lede { margin: 1.25rem auto 0; }
.showcase-stage { max-width: 780px; margin-inline: auto; perspective: 1400px; }
html.motion .showcase-stage .console {
  --e: min(1, calc(var(--p, 0) * 1.6));
  transform: translateY(calc((1 - var(--e)) * 80px)) scale(calc(0.86 + var(--e) * 0.14)) rotateX(calc((1 - var(--e)) * 10deg));
  opacity: calc(0.25 + var(--e) * 0.75);
  will-change: transform, opacity;
}
.showcase-points {
  list-style: none;
  margin: clamp(3rem, 2rem + 3vw, 4.5rem) auto 0;
  padding: 0;
  display: grid;
  gap: 1.25rem 2.5rem;
  max-width: 1000px;
}
.showcase-points li { display: flex; gap: 0.85rem; align-items: baseline; color: var(--text-muted); }
@media (min-width: 860px) { .showcase-points { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Assistant console ---------- */

.console {
  background: rgba(15, 35, 73, 0.9);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.7), 0 0 80px -20px rgba(76, 140, 255, 0.35);
  overflow: hidden;
  min-width: 0;
  text-align: left;
}
.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--text-muted);
}
.console-title { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; color: var(--text); }
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 224, 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(0, 212, 224, 0.05); } }
.console-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.console-tabs button {
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  white-space: nowrap;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.console-tabs button:hover { color: var(--text); }
.console-tabs button[aria-selected="true"] { color: var(--text); background: var(--raised-2); border-color: var(--line-strong); }
@media (pointer: coarse) {
  .console-tabs button, .console-foot button { min-height: 44px; }
}

.console-log {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.2rem 1.1rem 1.35rem;
  height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.msg {
  max-width: 88%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  font-size: 0.975rem;
  line-height: 1.55;
}
.msg[lang="ar"] { font-family: var(--font-ar); font-size: 1rem; line-height: 1.7; }
.msg--user {
  align-self: flex-end;
  background: var(--brand-royal);
  color: #FFFFFF;
  border-bottom-right-radius: 5px;
}
.msg--user .msg-who { color: rgba(255, 255, 255, 0.85); }
.msg--user[dir="rtl"] { border-bottom-right-radius: 18px; border-bottom-left-radius: 5px; }
.msg--agent {
  align-self: flex-start;
  background: var(--raised);
  border-bottom-left-radius: 5px;
}
.msg-who { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.2rem; font-family: var(--font); font-weight: 700; }
.trace {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 212, 224, 0.07);
  border: 1px solid rgba(0, 212, 224, 0.22);
}
.trace::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  flex: none;
}
.trace--guard { background: rgba(76, 140, 255, 0.12); border-color: rgba(76, 140, 255, 0.45); color: var(--text); }
.trace--guard::before { background: var(--brand-blue); border-radius: 2px; }
.typing { display: inline-flex; gap: 4px; padding: 0.9rem 1rem; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  animation: blink 1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.msg-enter { animation: msg-in 320ms var(--ease-out) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-faint);
}
.console-foot button {
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  min-height: 36px;
  padding: 0.3rem 0.95rem;
  cursor: pointer;
}
.console-foot button:hover { border-color: var(--text-muted); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(29, 62, 140, 0.8), transparent 70%),
    var(--brand-navy);
}
.page-hero .container { position: relative; padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; margin-inline: auto; }
.page-hero .lede { margin: 1.5rem auto 0; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/lattice-tile.svg");
  background-size: 64px 64px;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 100%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 90% at 50% 100%, #000 10%, transparent 70%);
  pointer-events: none;
}
html.motion .page-hero h1, html.motion .page-hero .lede { animation: rise 1s var(--ease-out) both; }
html.motion .page-hero .lede { animation-delay: 0.18s; }

/* ---------- Statement (About page) ---------- */

.statement {
  font-size: var(--step-3);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 20ch;
  margin: 0;
}
.statement-body { margin-top: 2rem; }
@media (min-width: 960px) {
  .statement-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: end; }
  .statement-body { margin-top: 0; }
}

/* ---------- Services bento (home) ---------- */

.stack {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
.stack-block {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--tile-shadow);
  color: var(--text);
  text-decoration: none;
  container-type: inline-size;
  overflow: hidden;
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
.stack-block:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(11, 27, 61, 0.05), 0 28px 50px -24px rgba(11, 27, 61, 0.28); }
.stack-block:hover h3 { color: var(--accent); }
.stack-block .text { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.stack-role { font-size: var(--step--1); color: var(--live); font-weight: 700; }
.stack-block h3 { font-size: var(--step-2); font-weight: 900; letter-spacing: -0.02em; transition: color 200ms ease; }
.stack-block p { color: var(--text-muted); }
.stack-block .count { margin-top: auto; padding-top: 0.75rem; font-size: var(--step--1); color: var(--text-faint); font-weight: 700; }
@container (min-width: 620px) {
  .stack-block .text {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    grid-template-areas: "role role" "title body" "title count";
    column-gap: 2.5rem;
  }
  .stack-block .stack-role { grid-area: role; }
  .stack-block h3 { grid-area: title; font-size: var(--step-3); }
  .stack-block p { grid-area: body; }
  .stack-block .count { grid-area: count; padding-top: 0; }
}
.stack-block--security {
  background:
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(0, 212, 224, 0.28), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(76, 140, 255, 0.35), transparent 70%),
    var(--brand-navy);
}
.stack-block--security:hover h3 { color: var(--brand-cyan); }
.stack-block--security .stack-role { color: var(--brand-cyan); }
.stack-block--people::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand-gradient);
}

@media (min-width: 900px) {
  .stack {
    grid-template-columns: 1fr 1fr 280px;
    grid-template-areas:
      "strategy strategy security"
      "cx       dt       security"
      "int      int      security"
      "people   people   security";
  }
  .stack-block--strategy { grid-area: strategy; }
  .stack-block--cx { grid-area: cx; }
  .stack-block--dt { grid-area: dt; }
  .stack-block--int { grid-area: int; }
  .stack-block--people { grid-area: people; }
  .stack-block--security { grid-area: security; }
}

/* ---------- Industry list ---------- */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.industry-grid li {
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 16px;
  box-shadow: var(--tile-shadow);
}
@media (min-width: 900px) { .industry-grid { grid-template-columns: repeat(4, 1fr); } }
.industry-grid li.is-focus { color: var(--text); }
.industry-grid .node { width: 9px; height: 9px; background: var(--line-strong); }
.industry-grid li.is-focus .node { background: var(--brand-gradient); }

/* ---------- Featured example ---------- */

.feature {
  display: grid;
  gap: 2rem;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1rem + 4vw, 4.5rem);
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(76, 140, 255, 0.35), transparent 60%),
    var(--brand-navy);
}
.feature h3 { font-size: var(--step-3); font-weight: 900; letter-spacing: -0.02em; }
.feature p { color: var(--text-muted); }
.feature .tag { color: var(--brand-cyan); font-weight: 700; font-size: var(--step--1); margin-bottom: 1rem; }
.feature a { font-weight: 700; }
@media (min-width: 860px) { .feature { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: end; } }

/* ---------- Contact band (dark finale on every page) ---------- */

.contact-band {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(29, 62, 140, 0.9), transparent 70%),
    var(--brand-navy);
}
.contact-band .container { display: grid; gap: 2.5rem; justify-items: center; }
.contact-band h2 { max-width: 20ch; }
.contact-band .lede { margin: 1.25rem auto 0; max-width: 52ch; }
.contact-band .email {
  display: inline-block;
  padding-block: 0.5rem;
  font-size: clamp(1.75rem, 0.6rem + 5vw, 4.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
  transition: filter 200ms ease;
}
.contact-band .email:hover { filter: brightness(1.2); text-decoration: underline; text-decoration-color: var(--brand-cyan); }
.contact-band p { color: var(--text-muted); margin-inline: auto; }
.contact-band .container > div:last-child p + p { margin-top: 1rem; font-size: var(--step--1); }
.contact-band .container > div:last-child p:first-child { max-width: none; }

/* ---------- Generic two-column blocks ---------- */

.split { display: grid; gap: 2rem; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1.4fr; gap: 4rem; } }
.split + .split { margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-top: clamp(3rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--line); }
.split p:not(.lede) { color: var(--text-muted); }

/* ---------- Pillars & values ---------- */

.pillars { display: grid; gap: 2.5rem 3rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .pillars--three { grid-template-columns: repeat(3, 1fr); }
  .pillars--three:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
  .pillars--three:has(> li:nth-child(5):last-child) > li { grid-column: span 2; }
  .pillars--three:has(> li:nth-child(5):last-child) > li:nth-child(-n+2) { grid-column: span 3; }
  .pillars--three:has(> li:nth-child(5):last-child) > li:nth-child(-n+2) p { max-width: 44ch; }
}
.pillars li { border-top: 1px solid var(--line); padding-top: 1.5rem; position: relative; }
.pillars li::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 56px; height: 3px;
  border-radius: 3px;
  background: var(--brand-gradient);
}
.pillars h3 { margin-bottom: 0.6rem; font-weight: 900; }
.pillars p { color: var(--text-muted); }

/* ---------- Journey (a real sequence) ---------- */

.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  counter-reset: stage;
}
.journey li {
  counter-increment: stage;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: var(--step-1);
}
.journey li::before {
  content: counter(stage);
  font-weight: 900;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
@media (min-width: 960px) {
  .journey { grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-strong); }
  .journey li {
    grid-template-columns: 1fr;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 1.25rem 1.25rem 0 0;
    margin-right: 1.25rem;
  }
  .journey li::before { font-size: var(--step-3); line-height: 1; }
  .journey li:last-child { border-right: 0; margin-right: 0; }
}

/* ---------- Services page ---------- */

.services-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.service-jump {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin: 0 calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  list-style: none;
  scrollbar-width: thin;
}
.service-jump a {
  display: flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 700;
}
.service-jump a:hover { color: var(--text); }
.service-jump a.is-active { background: var(--brand-navy); border-color: var(--brand-navy); color: #FFFFFF; }

@media (min-width: 1040px) {
  .services-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 5rem; align-items: start; }
  .services-layout > nav { position: sticky; top: calc(var(--header-h) + 36px); }
  .service-jump {
    flex-direction: column;
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 0;
    border-left: 1px solid var(--line);
  }
  .service-jump a {
    white-space: normal;
    border: 0;
    border-left: 3px solid transparent;
    margin-left: -2px;
    border-radius: 0;
    padding: 0.6rem 0 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 400;
  }
  .service-jump a:hover { border-left-color: var(--line-strong); }
  .service-jump a.is-active { background: none; color: var(--text); font-weight: 700; border-left-color: var(--brand-blue); }
}

.service-block { scroll-margin-top: calc(var(--header-h) + 32px); padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.service-block + .service-block { padding-top: clamp(3rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--line); }
.service-block h2 { font-size: var(--step-3); }
.service-block .lede { margin-top: 1rem; }

.offerings {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
@media (min-width: 640px) { .offerings { grid-template-columns: repeat(2, 1fr); } }
.offerings li {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--surface);
  font-weight: 700;
}
.offerings li::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand-gradient);
}
.service-block .fit { margin-top: 1.5rem; color: var(--text-faint); font-size: var(--step--1); }

@media (min-width: 1040px) { .services-body .offerings { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Industries page ---------- */

.sector {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.sector:first-child { border-top: 0; padding-top: 0; }
.sector h2 { font-size: var(--step-3); }
.sector p:not(.lede) { color: var(--text-muted); }
.sector ul { margin: 0; padding-left: 1.1rem; color: var(--text-muted); }
.sector ul li { margin-bottom: 0.4rem; }
.sector ul li::marker { color: var(--brand-blue); }
@media (min-width: 860px) { .sector { grid-template-columns: 1fr 1.4fr; gap: 4rem; } }

.sector-brief {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.sector-brief li { background: var(--bg); border-radius: var(--radius); box-shadow: var(--tile-shadow); padding: 1.75rem; }
.sector-brief h3 { margin-bottom: 0.5rem; font-weight: 900; }
.sector-brief p { color: var(--text-muted); font-size: 0.975rem; }

/* ---------- Work page ---------- */

.case {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem);
  border-top: 1px solid var(--line-strong);
}
.case-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--text-muted);
}
.chip--sector { background: var(--raised); border-color: var(--raised); color: var(--brand-navy-2); }
.case h2 { font-size: var(--step-2); max-width: 22ch; }
.case h3 { font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--live); font-weight: 700; }
.case-body { display: grid; gap: 1.5rem; }
.case-body p { color: var(--text-muted); }
.case-services { margin-top: 0.75rem; font-size: var(--step--1); color: var(--text-faint); }
@media (min-width: 860px) {
  .case { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 4rem; }
  .case > div:first-child { position: sticky; top: calc(var(--header-h) + 36px); align-self: start; }
  .case-body { gap: 0; }
  .case-body > div {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    column-gap: 1.5rem;
    padding-block: 1.1rem;
    border-top: 1px solid var(--line);
  }
  .case-body > div:first-child { border-top: 0; padding-top: 0.2rem; }
  .case-body > div > * { grid-column: 2; }
  .case-body h3 { grid-column: 1; grid-row: 1; padding-top: 0.15rem; }
}

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filters button {
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.filters button:hover { color: var(--text); border-color: var(--text-muted); }
.filters button[aria-pressed="true"] { background: var(--brand-navy); color: #FFFFFF; border-color: var(--brand-navy); }
html.motion .case.is-entering { animation: rise 500ms var(--ease-out) both; }

/* ---------- Contact page ---------- */

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1rem + 2.5vw, 3rem);
}
.contact-card > p { color: var(--text-muted); }
.contact-card .email-big {
  display: inline-block;
  font-size: var(--step-2);
  font-weight: 900;
  color: var(--text);
  text-decoration-color: var(--brand-blue);
  text-decoration-thickness: 2px;
  word-break: break-word;
  margin: 0.5rem 0 1.5rem;
}
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0.5rem 0 1.5rem; }
.email-row .email-big { margin: 0; padding-block: 0.25rem; }
.direct .email-big { display: inline-flex; align-items: center; min-height: 44px; }
.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 1rem;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.copy-button:hover { color: var(--text); border-color: var(--text-muted); }
.copy-button svg { width: 16px; height: 16px; flex: none; }
.copy-button.is-done { color: var(--live); border-color: var(--live); }
.topics { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 10px; }
.topics a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--tile-shadow);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.topics a:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(11, 27, 61, 0.3); }
.topics a span { color: var(--text-faint); font-weight: 400; font-size: var(--step--1); }

.regions { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.regions li { border-top: 1px solid var(--line-strong); padding-top: 1rem; position: relative; }
.regions li::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--brand-gradient); }
.regions h3 { margin-bottom: 0.35rem; }
.regions p { color: var(--text-muted); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  padding-block: 4rem 2rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--brand-cyan); }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-grid h2 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.9rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-tag { margin-top: 1rem; max-width: 34ch; }
@media (max-width: 859px) {
  .footer-grid ul { gap: 0; }
  .footer-grid ul a { display: inline-flex; align-items: center; min-height: 44px; }
}
.footer-base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step--1);
  color: var(--text-faint);
}
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; } }

/* ---------- 404 ---------- */

.not-found { min-height: 60vh; display: grid; align-content: center; }
.not-found h1 { font-size: var(--step-3); margin-bottom: 1rem; }

/* ---------- Motion (only when JS runs and the visitor allows motion) ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

html.motion .hero .rise { animation: rise 1.1s var(--ease-out) both; animation-delay: var(--d, 0s); }
html.motion .hero-inner {
  transform: translateY(calc(var(--p, 0) * -80px)) scale(calc(1 - var(--p, 0) * 0.08));
  opacity: calc(1 - var(--p, 0) * 1.5);
}
html.motion .hero-lattice { transform: translate(-50%, calc(-50% + var(--p, 0) * 120px)) scale(calc(1 + var(--p, 0) * 0.15)); }

/* Scroll reveal: content eases up as it enters, in a short stagger within its group. */
html.motion .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 900ms var(--ease-apple), transform 1100ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.motion .reveal.is-in { opacity: 1; transform: none; }
html.motion .stack-block.reveal.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }

/* =====================================================================
   Luxury layer (2026-09-26): light display type, glass tiles with gradient
   hairlines, slow aurora glows, film grain, masked headline reveals,
   industries marquee, reading progress. Brand colours and Lato unchanged.
   ===================================================================== */

:root {
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
  --hairline: linear-gradient(140deg, rgba(111, 162, 255, 0.55), rgba(0, 212, 224, 0.12) 45%, rgba(234, 244, 255, 0.06));
}

/* Display type: Lato Light at large sizes reads calmer and more expensive than heavy weights. */
h1, h2, .words-text, .statement, .feature h3 {
  font-weight: 300;
  letter-spacing: -0.035em;
}
h1 { line-height: 1.02; }
h2 { line-height: 1.06; }
.hero h1 { font-weight: 300; letter-spacing: -0.045em; }
.hero h1 .grad-text { font-weight: 700; letter-spacing: -0.04em; }
.facts strong {
  font-weight: 300;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
}
.stack-block h3, .sector-brief h3, .pillars h3 { font-weight: 700; }
@container (min-width: 620px) {
  .stack-block h3 { font-weight: 300; letter-spacing: -0.03em; }
}

/* Film grain: a barely-there texture that takes the flatness off large colour fields. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Aurora: slow-drifting glows in the brand blues behind hero and finale. */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute;
  width: 46vmax; height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
}
.aurora span:nth-child(1) { background: var(--brand-blue); top: -18vmax; left: -10vmax; }
.aurora span:nth-child(2) { background: var(--brand-cyan); bottom: -24vmax; right: -12vmax; opacity: 0.28; }
.aurora span:nth-child(3) { background: var(--brand-navy-2); top: 10%; left: 35%; opacity: 0.6; }
.aurora--low span { opacity: 0.3; }
html.motion .aurora span:nth-child(1) { animation: drift-a 22s ease-in-out infinite alternate; }
html.motion .aurora span:nth-child(2) { animation: drift-b 26s ease-in-out infinite alternate; }
html.motion .aurora span:nth-child(3) { animation: drift-c 30s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(18vw, 10vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-16vw, -12vh) scale(0.9); } }
@keyframes drift-c { to { transform: translate(-12vw, 8vh) scale(1.2); } }
.hero .aurora + .lattice { opacity: 0.4; }
.hero-inner, .contact-band > .container { z-index: 1; }
.hero, .contact-band { isolation: isolate; }
.hero { background: var(--brand-navy); }

/* Header: liquid glass with a gradient hairline and a reading-progress line. */
.site-header {
  background-color: rgba(11, 27, 61, 0.88);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
          backdrop-filter: saturate(200%) blur(24px);
  border-bottom-color: rgba(234, 244, 255, 0.07);
}
.read-progress {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--brand-gradient);
  transform-origin: 0 50%;
  transform: scaleX(var(--page-p, 0));
}
html:not(.motion) .read-progress { display: none; }

/* Buttons: a light sheen passes over the primary action on hover. */
.button { position: relative; overflow: hidden; isolation: isolate; transition-duration: 300ms; }
.button--signal::after, .button--nile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 900ms var(--ease-lux);
}
.button--signal:hover::after, .button--nile:hover::after { transform: translateX(120%); }
.button--signal:hover, .button--nile:hover { box-shadow: 0 14px 40px -12px rgba(76, 140, 255, 0.7); }
.theme-dark .button--ghost {
  background: rgba(234, 244, 255, 0.05);
  border-color: rgba(234, 244, 255, 0.22);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}
.theme-dark .button--ghost:hover { background: rgba(234, 244, 255, 0.1); border-color: rgba(234, 244, 255, 0.45); }

/* Dark home sections flow into each other; hairlines mark the seams. */
.facts.theme-dark { border-bottom: 1px solid rgba(234, 244, 255, 0.07); }
.facts.theme-dark span { color: var(--text-muted); }
.words.theme-dark { background: var(--brand-navy); }
html.motion .words.theme-dark .words-text .w { opacity: 0.42; }
html.motion .words.theme-dark .words-text .w.on { opacity: 1; }

/* Glass bento: translucent tiles with a gradient hairline and a cursor-following light. */
.section--glass {
  background:
    radial-gradient(ellipse 50% 40% at 15% 0%, rgba(76, 140, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 100%, rgba(0, 212, 224, 0.12), transparent 70%),
    var(--brand-navy);
}
.section--glass .stack-block,
.feature {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #13295A, #0D2046) padding-box,
    var(--hairline) border-box;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.section--glass .stack-block::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 162, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.section--glass .stack-block:hover::after { opacity: 1; }
.section--glass .stack-block:hover { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 60px -20px rgba(76, 140, 255, 0.4); }
.section--glass .stack-block:hover h3 { color: var(--text); }
.section--glass .stack-block--security {
  background:
    radial-gradient(ellipse 90% 50% at 50% 110%, rgba(0, 212, 224, 0.3), transparent 70%) padding-box,
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(76, 140, 255, 0.4), transparent 70%) padding-box,
    linear-gradient(180deg, #102650, #0B1B3D) padding-box,
    linear-gradient(160deg, rgba(0, 212, 224, 0.7), rgba(76, 140, 255, 0.4) 50%, rgba(234, 244, 255, 0.08)) border-box;
}
.section--glass .stack-block--people::before { left: 1px; right: 1px; }

/* The one light section on the home page: ice, for breathing room. */
.section--ice { background: var(--brand-ice); }
.section--ice .pillars li { border-top-color: var(--line-strong); }

/* Industries as a slow marquee of large light type. */
.section--industries {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(29, 62, 140, 0.55), transparent 70%),
    var(--brand-navy);
}
.marquee {
  overflow: hidden;
  padding-block: 0.5rem clamp(2.5rem, 2rem + 2vw, 4rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
}
.marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  font-size: var(--step-3);
  font-weight: 300;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--text-faint);
}
.marquee-track li.is-focus { color: var(--text); }
.marquee-track li::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-gradient);
  flex: none;
}
html.motion .marquee-track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  padding: 0;
  gap: 0 2.5rem;
  animation: marquee 48s linear infinite;
}
html.motion .marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 1.25rem)); } }
.section--industries .feature { margin-top: 0; }

/* Masked headline reveal: each word rises from behind its own line. */
.split-heading .wm {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.split-heading .wm > span { display: inline-block; }
html.motion .split-heading .wm > span {
  transform: translateY(110%);
  transition: transform 1300ms var(--ease-lux);
  transition-delay: calc(var(--wi, 0) * 55ms);
}
html.motion .split-heading.is-in .wm > span { transform: none; }

/* Slower, softer reveals throughout. */
html.motion .reveal {
  transform: translateY(48px);
  transition: opacity 1200ms var(--ease-lux), transform 1400ms var(--ease-lux);
  transition-delay: calc(var(--i, 0) * 110ms);
}

/* Inner page heroes get a slow glow of their own. */
.page-hero::after {
  content: "";
  position: absolute;
  width: 60vmax; height: 60vmax;
  left: 50%; top: 40%;
  margin-left: -30vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 140, 255, 0.35), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
html.motion .page-hero::after { animation: drift-c 24s ease-in-out infinite alternate; }
.page-hero h1 { font-size: var(--step-5); max-width: 16ch; }
.page-hero .container { z-index: 1; }

/* =====================================================================
   Agentic AI (page + home teaser), 2026-09-26
   ===================================================================== */

/* Connected lifecycle pills: Learn, Build, Connect, Govern. A light travels along the links. */
.flow {
  list-style: none;
  margin: 2.75rem auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 420px;
}
.flow li { position: relative; display: flex; align-items: center; }
.flow a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(21, 44, 88, 0.95), rgba(13, 32, 70, 0.95)) padding-box,
    var(--hairline) border-box;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 400ms var(--ease-lux), box-shadow 400ms var(--ease-lux);
}
.flow a:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(76, 140, 255, 0.6); }
.flow-icon {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--brand-cyan);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 720px) {
  .flow { display: flex; justify-content: center; max-width: none; gap: 0; }
  .flow a { flex: none; }
  .flow li:not(:last-child)::after {
    content: "";
    width: clamp(1.75rem, 4vw, 4.5rem);
    height: 2px;
    background:
      linear-gradient(90deg, transparent 0 35%, var(--brand-cyan) 50%, transparent 65% 100%) no-repeat,
      linear-gradient(90deg, rgba(76, 140, 255, 0.45), rgba(0, 212, 224, 0.45));
    background-size: 300% 100%, 100% 100%;
    background-position: 150% 0, 0 0;
  }
  html.motion .flow li:not(:last-child)::after { animation: flow-signal 3.2s var(--ease-lux) infinite; }
  html.motion .flow li:nth-child(2)::after { animation-delay: 0.8s; }
  html.motion .flow li:nth-child(3)::after { animation-delay: 1.6s; }
}
@keyframes flow-signal { 0% { background-position: 150% 0, 0 0; } 60%, 100% { background-position: -50% 0, 0 0; } }
.flow--wide a { min-height: 60px; padding-inline: 1.6rem; font-size: 1.1rem; }
html.motion .agentic-hero .flow li { animation: rise 1s var(--ease-lux) both; }
html.motion .agentic-hero .flow li:nth-child(1) { animation-delay: 0.35s; }
html.motion .agentic-hero .flow li:nth-child(2) { animation-delay: 0.5s; }
html.motion .agentic-hero .flow li:nth-child(3) { animation-delay: 0.65s; }
html.motion .agentic-hero .flow li:nth-child(4) { animation-delay: 0.8s; }
html.motion .agentic-hero .hero-actions { animation: rise 1s var(--ease-lux) 1s both; }

.agentic-hero .hero-actions { margin-top: 2.5rem; }
.agentic-hero .container { padding-block: clamp(5rem, 3rem + 7vw, 9rem); }
.agentic-teaser {
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(29, 62, 140, 0.55), transparent 70%),
    var(--brand-navy);
  border-top: 1px solid rgba(234, 244, 255, 0.07);
}
.agentic-teaser .section-head { margin-bottom: 0; }
.teaser-cta { text-align: center; margin: 3rem auto 0; max-width: none; }
.section--intro .section-head { margin-bottom: 0; }

/* Lifecycle: a pinned rail on the left fills and lights stage by stage as the stages scroll. */
.lifecycle { display: grid; gap: 2rem; }
.lifecycle-rail { display: none; }
.stage {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.stage:first-child { border-top: 0; padding-top: 0; }
.stage-step { color: var(--live); font-weight: 700; font-size: var(--step--1); margin-bottom: 0.75rem; }
.stage h3 { font-size: var(--step-3); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.25rem; }
.stage > p { color: var(--text-muted); font-size: var(--step-1); line-height: 1.55; }
.stage-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
@media (min-width: 640px) { .stage-list { grid-template-columns: repeat(2, 1fr); } }
.stage-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #13295A, #0D2046) padding-box,
    var(--hairline) border-box;
  font-weight: 700;
}
.stage-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-gradient);
}
.stage-link { margin-top: 1.5rem; font-weight: 700; }
.stage-link a { display: inline-block; padding-block: 0.7rem; }

@media (min-width: 960px) {
  .lifecycle { grid-template-columns: 260px minmax(0, 1fr); gap: 5rem; align-items: start; }
  .lifecycle-rail {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 76px);
  }
  .lifecycle-rail ol { list-style: none; margin: 0; padding: 0; position: relative; }
  .lifecycle-rail li {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 0;
    font-size: var(--step-2);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text-faint);
    transition: color 600ms var(--ease-lux);
  }
  .rail-node {
    position: relative;
    z-index: 1;
    flex: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--line-strong);
    background: var(--brand-navy);
    transition: background 600ms var(--ease-lux), border-color 600ms var(--ease-lux), box-shadow 600ms var(--ease-lux), transform 600ms var(--ease-lux);
  }
  .rail-line {
    position: absolute;
    left: 10px;
    top: 2.2rem;
    bottom: 2.2rem;
    width: 2px;
    background: var(--line);
  }
  .lifecycle-rail { --rail-top: 0; }
  .rail-fill {
    position: absolute;
    inset: 0 0 auto;
    height: calc(var(--p, 0) * 100%);
    background: linear-gradient(180deg, var(--brand-blue), var(--brand-cyan));
  }
  .lifecycle-rail li.is-done { color: var(--text-muted); }
  .lifecycle-rail li.is-done .rail-node { background: var(--brand-blue); border-color: var(--brand-blue); }
  .lifecycle-rail li.is-active { color: var(--text); }
  .lifecycle-rail li.is-active .rail-node {
    background: var(--brand-gradient);
    border-color: transparent;
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(0, 212, 224, 0.15), 0 0 30px rgba(0, 212, 224, 0.6);
  }
  .stage { min-height: 70vh; padding-block: 4rem; display: flex; flex-direction: column; justify-content: center; }
  .stage:first-child { padding-top: 0; }
  html.motion .stage > * { opacity: 0.5; transition: opacity 700ms var(--ease-lux); }
  html.motion .stage.is-active > * { opacity: 1; }
}
.rail-line { position: absolute; }

/* A teammate with a job description: points on the left, a sample agent profile on the right. */
.teammate { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 960px) { .teammate { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.teammate .lede { margin-top: 1.25rem; }
.teammate-points { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.teammate-points li { display: flex; gap: 1rem; align-items: baseline; }
.teammate-points strong { display: block; font-size: var(--step-1); }
.teammate-points span:not(.node) { display: block; color: var(--text-muted); }

.agent-card {
  margin: 0;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(76, 140, 255, 0.3), transparent 60%) padding-box,
    linear-gradient(180deg, #13295A, #0B1B3D) padding-box,
    var(--hairline) border-box;
  box-shadow: 0 50px 100px -40px rgba(11, 27, 61, 0.55), 0 0 60px -30px rgba(76, 140, 255, 0.5);
}
html.motion .agent-card.is-in { animation: float 7s ease-in-out 1.5s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.agent-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.agent-card-head img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.agent-card-head > div { flex: 1; min-width: 0; }
.agent-card-kicker { margin: 0; font-size: var(--step--1); color: var(--live); font-weight: 700; }
.agent-card-head h3 { font-size: var(--step-2); font-weight: 700; }
.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 212, 224, 0.12);
  color: var(--brand-cyan);
  font-size: var(--step--1);
  font-weight: 700;
  flex: none;
}
.agent-card-body { margin: 0; }
.agent-card-body > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.agent-card-body dt { color: var(--text-faint); font-size: var(--step--1); padding-top: 0.15rem; }
.agent-card-body dd { margin: 0; color: var(--text); }
.agent-card figcaption { margin-top: 1rem; font-size: 0.8rem; color: var(--text-faint); }
@media (max-width: 480px) {
  .agent-card-body > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .agent-card-head { flex-wrap: wrap; }
}

/* Value tiles reuse the glass treatment. */
.value-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value-grid li {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #13295A, #0D2046) padding-box,
    var(--hairline) border-box;
}
.value-grid li::before {
  content: "";
  display: block;
  width: 40px; height: 3px;
  border-radius: 3px;
  margin-bottom: 1.5rem;
  background: var(--brand-gradient);
}
.value-grid h3 { font-size: var(--step-2); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.value-grid p { color: var(--text-muted); }

/* =====================================================================
   References page + home "See it in action" strip, 2026-09-26
   ===================================================================== */

/* Sticky in-page jump bar, like a product page's local navigation. */
.local-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(11, 27, 61, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border-block: 1px solid rgba(234, 244, 255, 0.08);
}
.local-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.local-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 200ms ease, box-shadow 300ms var(--ease-lux);
}
.local-nav a:hover { color: var(--text); }
.local-nav-row { display: flex; align-items: center; gap: 1.5rem; }
.local-nav-row ul { flex: 1; min-width: 0; justify-content: flex-start; margin-left: -1rem; }
.local-nav .local-cta.button { display: none; flex: none; min-height: 38px; padding: 0.35rem 1.05rem; font-size: 0.9rem; color: #FFFFFF; box-shadow: none; }
@media (min-width: 720px) { .local-nav .local-cta.button { display: inline-flex; } }
@media (max-width: 719px) {
  .local-nav-row ul { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
body:has(.local-nav) main :is(section, article)[id] { scroll-margin-top: calc(var(--header-h) + 60px); }
.local-nav a.is-active { color: var(--text); box-shadow: inset 0 -2px 0 var(--brand-cyan); }


/* Learning path: a real sequence, so it is drawn as connected steps. */
.learning-path {
  list-style: none;
  margin: 0 0 clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  padding: 0;
  display: grid;
  gap: 2rem;
  position: relative;
}
.learning-path li { position: relative; padding-left: 2.75rem; }
.learning-path h3 { font-size: var(--step-2); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.learning-path p { color: var(--text-muted); }
.path-node {
  position: absolute;
  left: 0; top: 0.35rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 6px rgba(76, 140, 255, 0.14);
}
.learning-path li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 9px; top: 1.9rem; bottom: -1.9rem;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-cyan));
  opacity: 0.45;
}
@media (min-width: 900px) {
  .learning-path { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
  .learning-path li { padding-left: 0; padding-top: 2.75rem; }
  .learning-path li:not(:last-child)::before {
    left: 1.8rem; right: -1.1rem; top: 9px; bottom: auto;
    width: auto; height: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  }
}

.catalogue-title { font-size: var(--step-2); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.programs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.program {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--tile-shadow);
  transition: transform 400ms var(--ease-lux), box-shadow 400ms var(--ease-lux);
}
.program:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(11, 27, 61, 0.05), 0 28px 50px -24px rgba(11, 27, 61, 0.28); }
html.motion .program.reveal.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }
.program h4 { margin: 0 0 0.35rem; font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.program-for { color: var(--live); font-weight: 700; font-size: var(--step--1); margin-bottom: 0.85rem; }
.program p:not(.program-for) { color: var(--text-muted); font-size: 0.975rem; }
.learning-cta { text-align: center; margin: 3rem auto 0; max-width: none; }

/* References: the showcase sits directly under the jump bar. */
#assistants.showcase { padding-top: clamp(4rem, 3rem + 4vw, 7rem); }

/* Home: compact "See it in action" strip that points to References. */
.proof-strip {
  padding-block: clamp(4.5rem, 3rem + 5vw, 8rem);
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(76, 140, 255, 0.2), transparent 70%),
    var(--brand-navy);
  border-top: 1px solid rgba(234, 244, 255, 0.07);
}
.proof-strip .container { display: grid; gap: 2.5rem; align-items: center; }
.proof-strip-text .lede { margin-top: 1rem; }
@media (min-width: 1000px) { .proof-strip .container { grid-template-columns: 0.9fr 1.4fr; gap: 4rem; } }
.proof-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .proof-links { grid-template-columns: repeat(3, 1fr); } }
.proof-links a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.5rem 1.4rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #13295A, #0D2046) padding-box,
    var(--hairline) border-box;
  color: var(--text);
  text-decoration: none;
  transition: transform 400ms var(--ease-lux), box-shadow 400ms var(--ease-lux);
}
.proof-links a:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 0 50px -20px rgba(76, 140, 255, 0.5); }
html.motion .proof-links li.reveal.is-in a:hover { transform: translateY(-4px); }
.proof-kicker { color: var(--live); font-weight: 700; font-size: var(--step--1); }
.proof-name { font-size: var(--step-2); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; }
.proof-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; margin-top: 0.25rem; }

/* =====================================================================
   Services overview: practices grouped as Consulting, Solutions, Security, People
   ===================================================================== */
.services-overview .section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.practice-groups { display: grid; gap: 16px; }
@media (min-width: 860px) { .practice-groups { grid-template-columns: repeat(2, 1fr); } }
.practice-group {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--tile-shadow);
}
.practice-group .mega-label { margin-left: 0; margin-bottom: 0.5rem; }
.practice-group a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.practice-group a:first-of-type { border-top: 0; padding-top: 0.25rem; }
.practice-group a strong { font-size: var(--step-1); font-weight: 700; transition: color 200ms ease; }
.practice-group a span { color: var(--text-muted); font-size: 0.95rem; }
.practice-group a:hover strong { color: var(--accent); }
.practice-group--lead {
  border: 1px solid transparent;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(76, 140, 255, 0.3), transparent 60%) padding-box,
    linear-gradient(180deg, #13295A, #0B1B3D) padding-box,
    var(--hairline) border-box;
  box-shadow: 0 30px 60px -30px rgba(11, 27, 61, 0.5);
}
@media (min-width: 860px) { .practice-group--lead { grid-row: span 2; justify-content: center; padding: 2.25rem; } }
.practice-group--lead a strong { font-size: var(--step-2); font-weight: 300; letter-spacing: -0.02em; }

/* =====================================================================
   Consulting: home section after the hero + consulting page, 2026-09-26
   ===================================================================== */
.consult-home-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1000px) { .consult-home-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.consult-home-text .lede { margin-top: 1.25rem; }
.consult-home-text .hero-actions { justify-content: flex-start; margin-top: 2rem; }
.consult-home-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.consult-home-cards a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.75rem 1.75rem 1.9rem;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--tile-shadow);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 400ms var(--ease-lux), box-shadow 400ms var(--ease-lux);
}
.consult-home-cards a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand-gradient);
}
.consult-home-cards a:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(11, 27, 61, 0.05), 0 28px 50px -24px rgba(11, 27, 61, 0.3); }
html.motion .consult-home-cards li.reveal.is-in a:hover { transform: translateY(-4px); }
.consult-home-cards strong { font-size: var(--step-2); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; }
.consult-desc { color: var(--text-muted); }

.program .question { margin: 0 0 0.5rem; font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }

.consult-practices { display: grid; gap: 16px; }
@media (min-width: 900px) { .consult-practices { grid-template-columns: 1fr 1fr; } }
.consult-practice {
  padding: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(76, 140, 255, 0.25), transparent 60%) padding-box,
    linear-gradient(180deg, #13295A, #0D2046) padding-box,
    var(--hairline) border-box;
}
.consult-practice .mega-label { margin-left: 0; }
.consult-practice h3 { font-size: var(--step-3); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1rem; }
.consult-practice > p:not(.mega-label):not(.stage-link) { color: var(--text-muted); font-size: var(--step-1); line-height: 1.5; }
.consult-practice .stage-list { grid-template-columns: 1fr; }
@media (min-width: 640px) { .consult-practice .stage-list { grid-template-columns: 1fr 1fr; } }

.journey--detailed li { font-size: var(--step-0); align-items: start; }
@media (max-width: 959px) { .journey--detailed li { row-gap: 0.15rem; } .journey--detailed li > * { grid-column: 2; } .journey--detailed li::before { grid-row: 1 / span 2; } }
.journey--detailed strong { display: block; font-size: var(--step-1); font-weight: 700; margin-bottom: 0.35rem; }
.journey--detailed span { display: block; color: var(--text-muted); font-weight: 400; line-height: 1.5; }
@media (min-width: 960px) { .journey--detailed li { grid-template-rows: auto 1fr; } }

/* Seven tabs at the narrow end of desktop: tighten spacing until there is room. */
@media (min-width: 900px) and (max-width: 1119px) {
  .nav-tabs > li > a, .tab-trigger { padding: 0 0.5rem; font-size: 0.9rem; }
  .brand-word { font-size: 1.15rem; }
}

/* =====================================================================
   FAQ (About page): plain, fully visible Q&A so people and AI engines can read every answer
   ===================================================================== */
.faq { display: grid; gap: 0 3rem; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; } }
.faq-item { padding-block: 1.5rem; border-top: 1px solid var(--line-strong); }
.faq-item h3 { font-size: var(--step-1); font-weight: 700; margin-bottom: 0.6rem; }
.faq-item p { color: var(--text-muted); }

/* =====================================================================
   Campaign readiness: consent banner, legal footer, long-form text (privacy page)
   ===================================================================== */
.consent {
  position: fixed;
  z-index: 95;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 560px;
  margin-inline: auto;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #13295A, #0D2046) padding-box,
    var(--hairline) border-box;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  font-size: 0.95rem;
}
.consent p { color: var(--text-muted); margin: 0 0 1rem; }
.consent-actions { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; }
.consent-actions .button { min-height: 44px; padding: 0.5rem 1.2rem; }
html.motion .consent:not([hidden]) { animation: rise 600ms var(--ease-lux) both; }

.footer-legal { display: inline-flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
.linklike { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: var(--text); cursor: pointer; }
.linklike:hover { color: var(--brand-cyan); }

.prose { max-width: 760px; }
.prose h2 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.01em; margin: 2.5rem 0 0.75rem; }
.prose p { color: var(--text-muted); }
.prose .updated { color: var(--text-faint); font-size: var(--step--1); }

/* =====================================================================
   Enquiry form (contact.html)
   ===================================================================== */
.enquiry-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1000px) { .enquiry-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4.5rem; } }
.enquiry-aside .lede { margin-top: 1rem; }
.next-steps { list-style: none; margin: 2.25rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; }
.next-steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #FFFFFF;
  font-weight: 700;
}
.next-steps strong { font-size: var(--step-1); }
.next-steps span { color: var(--text-muted); }
.direct { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.direct > p { margin: 0 0 0.25rem; color: var(--text-muted); font-weight: 700; }

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(11, 27, 61, 0.05), 0 30px 60px -30px rgba(11, 27, 61, 0.35);
}
.enquiry-form { display: grid; gap: 1.1rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label { font-weight: 700; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--text-faint); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%2346587E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 91, 208, 0.18);
}
.field [aria-invalid="true"] { border-color: #B42318; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15); }
.field-hint { margin: 0; color: var(--text-faint); font-size: var(--step--1); }
.field-error { margin: 0; color: #B42318; font-size: var(--step--1); font-weight: 700; }
.field--check { grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: start; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin-top: 0.15rem; accent-color: var(--brand-royal); }
.field--check label { font-weight: 400; color: var(--text-muted); }
.field--check .field-error { grid-column: 2; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 0.5rem; }
.form-actions .button { min-width: 180px; }
.form-actions .button[disabled] { opacity: 0.7; cursor: progress; }
.form-status { padding: 0.9rem 1rem; border-radius: 12px; font-weight: 700; }
.form-status.is-error { background: #FEF3F2; color: #B42318; }
.form-status a { color: #912018; }
.form-success { padding: 1rem 0.25rem; }
.form-success h3 { font-size: var(--step-3); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.success-icon { width: 48px; height: 48px; margin-bottom: 1.25rem; }
.form-success p { color: var(--text-muted); }
.form-success:focus { outline: none; }

/* Contact band on every page: the enquiry button sits above the email address. */
.contact-band .band-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-bottom: 1.5rem; }

/* =====================================================================
   Storytelling across pages: a challenge statement opens each page, a "next chapter" closes it
   ===================================================================== */
.words--page {
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(29, 62, 140, 0.5), transparent 70%),
    var(--brand-navy);
}
html.motion .words.words--page { height: 210vh; }
.words--page .words-text { font-size: clamp(1.75rem, 1rem + 2.8vw, 3.5rem); max-width: 24ch; }

.next-chapter { background: var(--brand-ice); border-top: 1px solid var(--line); }
.next-link {
  display: grid;
  gap: 0.35rem;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  color: var(--text);
  text-decoration: none;
}
.next-meta { display: flex; gap: 1rem; align-items: baseline; color: var(--text-muted); font-weight: 700; font-size: var(--step--1); }
.next-count { color: var(--text-faint); font-weight: 400; }
.next-title {
  font-size: var(--step-4);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.05;
  transition: color 300ms ease, transform 500ms var(--ease-lux);
}
.next-teaser { color: var(--text-muted); font-size: var(--step-1); }
.chapter-bar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 420px; margin-top: 1.5rem; }
.chapter-bar .seg { height: 4px; border-radius: 4px; background: var(--line-strong); }
.chapter-bar .seg.is-done { background: var(--brand-gradient); }
.next-link:hover .next-title { color: var(--accent); transform: translateX(8px); }
.next-link:focus-visible { outline-offset: -6px; border-radius: var(--radius); }

/* =====================================================================
   Floating pill header + card-style dropdown (after aigorizm.com's card nav), 2026-09-26
   ===================================================================== */
:root { --header-h: 110px; }
@media (min-width: 900px) { :root { --header-h: 80px; } }

.site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  border: 0;
  padding-top: 10px;
  pointer-events: none; /* only the pill itself takes clicks */
}
@media (min-width: 900px) { .site-header { padding-top: 14px; } }
.site-header .header-row {
  position: relative;
  pointer-events: auto;
  width: calc(100% - 20px);
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1rem;
  border-radius: 20px;
  background: rgba(11, 27, 61, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
          backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(234, 244, 255, 0.1);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(234, 244, 255, 0.06);
}
@media (min-width: 900px) {
  .site-header .header-row { width: calc(100% - 2 * var(--gutter)); padding-inline: 1.25rem 0.6rem; }
}
.site-header .site-nav { margin-inline: -1rem; max-width: calc(100% + 2rem); }
@media (min-width: 900px) { .site-header .site-nav { margin: 0; max-width: none; } }
.site-header .read-progress { left: 20px; right: 20px; width: auto; top: -1px; bottom: auto; height: 2px; border-radius: 2px; }
/* The globe itself invites scrolling; the cue would sit on top of the Cairo hub. */
.hero:has(.hero-globe) .scroll-cue { display: none; }

/* Dropdown: a dark glass card that grows out of the pill; its links are tinted cards that rise in turn. */
@media (min-width: 900px) {
  .mega {
    --text: #EAF4FF;
    --text-muted: #A8BBDD;
    --line: #22396A;
    --live: #00D4E0;
    --focus: #6FA2FF;
    top: calc(100% + 10px);
    left: 0; right: 0;
    border-radius: 20px;
    border: 1px solid rgba(234, 244, 255, 0.1);
    background: rgba(11, 27, 61, 0.97);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
            backdrop-filter: saturate(180%) blur(24px);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
    transform: translateY(-10px) scale(0.985);
    transform-origin: 50% 0;
    overflow: hidden;
  }
  .mega.is-open { transform: none; }
  .mega-inner { max-width: none; padding: 1.5rem; gap: 1.5rem; grid-template-columns: minmax(0, 0.9fr) minmax(0, 3fr); }
  .mega-intro { padding: 0.5rem 0.25rem; }
  .mega-grid { gap: 10px; }
  .mega-grid a {
    margin: 0;
    height: 100%;
    min-height: 112px;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(111, 162, 255, 0.16);
    background: linear-gradient(160deg, rgba(76, 140, 255, 0.2), rgba(13, 32, 70, 0.55));
    transition: transform 400ms var(--ease-lux), border-color 300ms ease, background-color 300ms ease;
  }
  .mega-grid li:nth-child(3n+2) a { background: linear-gradient(160deg, rgba(0, 212, 224, 0.17), rgba(13, 32, 70, 0.55)); }
  .mega-grid li:nth-child(3n) a { background: linear-gradient(160deg, rgba(61, 110, 219, 0.24), rgba(13, 32, 70, 0.55)); }
  .mega-grid a:hover { background-color: transparent; box-shadow: none; transform: translateY(-3px); border-color: rgba(0, 212, 224, 0.55); }
  .mega-grid strong { color: var(--text); }
  .item-chev { color: var(--brand-cyan); }
  .mega-overview { color: var(--brand-cyan); }
  html.motion .mega.is-open .mega-grid li { animation: card-rise 520ms var(--ease-lux) both; }
  html.motion .mega.is-open .mega-grid li:nth-child(2) { animation-delay: 50ms; }
  html.motion .mega.is-open .mega-grid li:nth-child(3) { animation-delay: 100ms; }
  html.motion .mega.is-open .mega-grid li:nth-child(4) { animation-delay: 150ms; }
  html.motion .mega.is-open .mega-grid li:nth-child(5) { animation-delay: 200ms; }
  html.motion .mega.is-open .mega-grid li:nth-child(6) { animation-delay: 250ms; }
  html.motion .mega.is-open .mega-grid li:nth-child(7) { animation-delay: 300ms; }
}
@keyframes card-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* The section bar on inner pages becomes a matching, slimmer pill. */
.local-nav {
  background: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  border: 0;
  padding-top: 8px;
  pointer-events: none;
}
.local-nav .local-nav-row {
  pointer-events: auto;
  width: calc(100% - 20px);
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1rem 0.4rem;
  border-radius: 999px;
  background: rgba(11, 27, 61, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(234, 244, 255, 0.1);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}
@media (min-width: 900px) { .local-nav .local-nav-row { width: calc(100% - 2 * var(--gutter)); } }
.local-nav-row ul { margin-left: 0; }
body:has(.local-nav) main :is(section, article)[id] { scroll-margin-top: calc(var(--header-h) + 70px); }

/* =====================================================================
   Hero: dotted globe centred on the region, and side rails (after aigorizm.com's hero)
   ===================================================================== */
.hero { overflow: hidden; }
/* The globe turns behind the headline as the hero's background. */
.hero-visual {
  position: absolute;
  left: 50%; top: 50%;
  width: 170vw;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.95;
}
@media (min-width: 720px) { .hero-visual { width: min(1100px, 125vh, 110vw); } }
.hero-globe { display: block; width: 100%; height: 100%; }
html.motion .hero-visual { animation: globe-in 1.4s var(--ease-lux) both; }
@keyframes globe-in { from { opacity: 0; transform: translate(-50%, -46%) scale(0.94); } to { opacity: 0.95; transform: translate(-50%, -50%); } }
html.motion .hero-globe { transform: translateY(calc(var(--p, 0) * 90px)) scale(calc(1 + var(--p, 0) * 0.06)); }
/* Keep the headline readable over the globe. */
.hero-inner::before {
  content: "";
  position: absolute;
  inset: 5% -8% 0;
  z-index: -1;
  background: radial-gradient(ellipse 52% 50% at 50% 50%, rgba(11, 27, 61, 0.55), rgba(11, 27, 61, 0.18) 60%, transparent 78%);
  pointer-events: none;
}

.hero-rail {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  pointer-events: none;
}
.hero-rail--left { left: 28px; }
.hero-rail--right { right: 28px; }
.rail-text { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-rail--right .rail-text { transform: none; }
.rail-text--strong { color: var(--text-muted); font-weight: 700; }
.rail-line { width: 1px; height: 72px; background: linear-gradient(180deg, transparent, rgba(234, 244, 255, 0.35), transparent); }
.rail-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-cyan); box-shadow: 0 0 10px var(--brand-cyan); }
@media (min-width: 1360px) { .hero-rail { display: flex; } }
html.motion .hero-rail { animation: rise 1.2s var(--ease-lux) 1.1s both; }

/* =====================================================================
   Circuit-trace dividers with a travelling pulse, and a ticker riding the line (after aigorizm.com)
   ===================================================================== */
.circuit { background: var(--brand-navy); position: relative; overflow: hidden; }
.circuit-inner { position: relative; height: 80px; }
.circuit svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.circuit .trace { fill: none; stroke: rgba(111, 162, 255, 0.28); stroke-width: 1.5; }
.circuit .trace-pulse { fill: none; stroke: var(--brand-cyan); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 70 1000; stroke-dashoffset: 70; filter: drop-shadow(0 0 6px rgba(0, 212, 224, 0.8)); opacity: 0; }
html.motion .circuit .trace-pulse { opacity: 1; animation: trace-run 5.5s cubic-bezier(0.45, 0, 0.3, 1) infinite; }
@keyframes trace-run { from { stroke-dashoffset: 70; } to { stroke-dashoffset: -1000; } }
.circuit--ticker .circuit-inner { height: 96px; }
.ticker {
  position: absolute;
  left: max(var(--gutter), calc(50% - 600px));
  top: 64px;
  transform: translateY(-50%);
  width: min(560px, calc(100% - 2 * var(--gutter)));
  padding: 0.5rem 0;
  border-radius: 999px;
  background: rgba(15, 35, 73, 0.9);
  border: 1px solid rgba(234, 244, 255, 0.1);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker .ticker-track { gap: 0 1.75rem; padding: 0 1.25rem; }
.ticker .ticker-track li { font-size: 0.85rem; font-weight: 700; letter-spacing: 0; color: var(--text-muted); gap: 1.75rem; }
.ticker .ticker-track li::after { width: 5px; height: 5px; }
html.motion .ticker .ticker-track { animation-duration: 36s; }
@media (max-width: 719px) { .circuit svg { opacity: 0.7; } }

/* =====================================================================
   References carousel (home): one example at a time
   ===================================================================== */
.carousel {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding: clamp(1.5rem, 1rem + 3vw, 3.25rem);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(76, 140, 255, 0.22), transparent 60%) padding-box,
    linear-gradient(180deg, #112755, #0B1B3D) padding-box,
    var(--hairline) border-box;
}
.carousel-title { font-size: var(--step--1); font-weight: 700; color: var(--live); margin-bottom: 1.5rem; }
.slides { list-style: none; margin: 0; padding: 0; display: grid; }
.slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  visibility: hidden;
  transition: opacity 600ms ease, transform 800ms var(--ease-lux), visibility 0s linear 600ms;
}
.slide.is-active { opacity: 1; transform: none; visibility: visible; transition: opacity 700ms ease 120ms, transform 900ms var(--ease-lux) 120ms, visibility 0s; }
.slide-meta { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.carousel .chip { color: var(--text-muted); border-color: var(--line-strong); }
.carousel .chip--sector { background: rgba(0, 212, 224, 0.12); border-color: rgba(0, 212, 224, 0.35); color: var(--brand-cyan); }
.slide-quote { margin: 0; }
.slide-quote p {
  max-width: 34ch;
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.4rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}
.slide-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 2rem; }
.slide-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; background: url("../img/inai-icon.svg") center / cover; box-shadow: 0 0 0 2px rgba(0, 212, 224, 0.4); }
.slide-title { display: grid; gap: 0.1rem; flex: 1; min-width: 220px; }
.slide-title strong { font-weight: 700; }
.slide-title span { color: var(--text-faint); font-size: var(--step--1); }
.slide-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.carousel-controls { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.dashes { display: flex; gap: 6px; flex: 1; }
.dash {
  position: relative;
  width: 28px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dash::before, .dash::after { content: ""; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.dash::before { right: 0; background: var(--line-strong); }
.dash::after { width: 0; background: var(--brand-gradient); }
.dash.is-active { width: 56px; }
.dash.is-active::after { width: 100%; }
.carousel.is-playing .dash.is-active::after { animation: dash-fill 7s linear both; }
@keyframes dash-fill { from { width: 0; } to { width: 100%; } }
.dash:hover::before { background: var(--text-faint); }
.carousel-count { color: var(--text-muted); font-variant-numeric: tabular-nums; font-size: var(--step--1); }
.carousel-count [data-count-current] { color: var(--text); font-weight: 700; }
.carousel-arrows { display: flex; gap: 0.5rem; }
.round-btn {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(234, 244, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, transform 300ms var(--ease-lux);
}
.round-btn svg { width: 16px; height: 16px; }
.round-btn:hover { border-color: var(--brand-cyan); background: rgba(0, 212, 224, 0.08); }
.round-btn:active { transform: scale(0.94); }
@media (max-width: 560px) { .carousel-count { display: none; } .dash { width: 18px; } .dash.is-active { width: 36px; } }

/* =====================================================================
   Challenges (home): pick a problem, see the practice that answers it
   (inspired by codestan.com's challenge/answer switcher)
   ===================================================================== */
.challenge-switch { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
@media (min-width: 960px) { .challenge-switch { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.challenge-tabs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.challenge-tab {
  display: flex; align-items: baseline; gap: 1rem;
  width: 100%; min-height: 44px;
  padding: 1rem 1.1rem;
  border: 0; border-radius: var(--radius-sm);
  background: none;
  color: var(--text-muted);
  font: inherit; font-size: var(--step-0); line-height: 1.4; text-align: left;
  cursor: pointer;
  position: relative;
  transition: color 250ms ease, background-color 250ms ease;
}
.challenge-tab::before {
  content: ""; position: absolute; left: 0; top: 0.9rem; bottom: 0.9rem; width: 2px; border-radius: 2px;
  background: var(--brand-gradient); transform: scaleY(0); transition: transform 500ms var(--ease-lux);
}
.challenge-num { color: var(--text-faint); font-size: var(--step--1); font-variant-numeric: tabular-nums; flex: none; }
.challenge-tab:hover { color: var(--text); background: rgba(234, 244, 255, 0.04); }
.challenge-tab[aria-selected="true"] { color: var(--text); background: rgba(76, 140, 255, 0.1); font-weight: 700; }
.challenge-tab[aria-selected="true"]::before { transform: scaleY(1); }
.challenge-tab[aria-selected="true"] .challenge-num { color: var(--live); }
.challenge-panels { display: grid; }
.challenge-panel {
  grid-area: 1 / 1;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(0, 212, 224, 0.14), transparent 60%) padding-box,
    linear-gradient(180deg, #112755, #0B1B3D) padding-box,
    var(--hairline) border-box;
}
.challenge-label { color: var(--text-faint); font-size: var(--step--1); font-weight: 700; margin: 0 0 0.5rem; }
.challenge-label--answer { color: var(--live); }
.challenge-q { font-size: var(--step-2); font-weight: 300; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 1.75rem; max-width: 26ch; }
.challenge-answer { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.challenge-answer h3 { font-size: var(--step-1); margin: 0 0 0.5rem; }
.challenge-answer > p { color: var(--text-muted); max-width: 52ch; }
.challenge-offers { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.challenge-offers li {
  padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(0, 212, 224, 0.3); background: rgba(0, 212, 224, 0.08);
  font-size: var(--step--1); color: var(--text);
}
.challenge-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.75rem; }
.challenge-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
/* Scripted: only the selected panel shows. Without JS every panel is listed in turn. */
.js .challenge-panel[hidden] { display: none; }
html:not(.js) .challenge-tabs { display: none; }
html:not(.js) .challenge-panels { gap: 1rem; }
html:not(.js) .challenge-panel { grid-area: auto; }
.motion .challenge-panel:not([hidden]) > * { animation: challenge-in 700ms var(--ease-lux) both; }
.motion .challenge-panel:not([hidden]) > .challenge-answer { animation-delay: 90ms; }
@keyframes challenge-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 959px) {
  .challenge-tabs { display: flex; overflow-x: auto; gap: 0.5rem; padding-bottom: 0.25rem; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .challenge-tabs::-webkit-scrollbar { display: none; }
  .challenge-tabs li { flex: none; scroll-snap-align: start; }
  .challenge-tab { width: auto; max-width: 16rem; padding: 0.7rem 1rem; border: 1px solid var(--line-strong); border-radius: 16px; font-size: var(--step--1); }
  .challenge-tab::before { display: none; }
  .challenge-tab[aria-selected="true"] { border-color: var(--brand-cyan); }
}

/* ---------- WhatsApp quick contact (only when site-config.json has a number) ---------- */
.quick-chat {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.1rem 0 0.9rem;
  border-radius: 999px;
  background: #0B1B3D; color: #EAF4FF;
  border: 1px solid rgba(0, 212, 224, 0.45);
  box-shadow: 0 10px 30px -10px rgba(11, 27, 61, 0.6);
  font-weight: 700; font-size: var(--step--1); text-decoration: none;
  transition: transform 300ms var(--ease-lux), border-color 200ms ease;
}
.quick-chat svg { width: 22px; height: 22px; color: #25D366; }
.quick-chat:hover { transform: translateY(-2px); border-color: var(--brand-cyan); color: #FFFFFF; }
@media (max-width: 560px) { .quick-chat span { display: none; } .quick-chat { padding: 0; width: 52px; justify-content: center; } }
.talk-now { margin-top: 1rem; }

/* =====================================================================
   Language switcher (EN | عربي | FR) in the header pill
   ===================================================================== */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  align-self: center;
  margin-inline-start: auto;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(234, 244, 255, 0.2);
  background: rgba(234, 244, 255, 0.04);
}
.lang-switch a {
  display: inline-grid; place-items: center;
  min-width: 38px; min-height: 38px; padding: 0 0.55rem;
  border-radius: 999px;
  color: var(--text-muted); text-decoration: none;
  font-family: "Lato", system-ui, sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  line-height: 1;
  transition: color 200ms ease, background-color 200ms ease;
}
.lang-switch a[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font); font-size: 0.9rem; letter-spacing: 0; }
.lang-switch a:hover { color: var(--text); background: rgba(234, 244, 255, 0.08); }
.lang-switch a[aria-current] { color: var(--text); background: rgba(0, 212, 224, 0.16); box-shadow: inset 0 0 0 1px rgba(0, 212, 224, 0.55); }
.header-row > .header-cta { margin-inline-start: 0.5rem; }
@media (max-width: 899px) { .header-row { justify-content: flex-start; } }
@media (min-width: 900px) { .lang-switch { margin-inline-start: 0.5rem; } }
/* Phones: logo, switcher and "Talk to us" share the first row. */
@media (max-width: 899px) {
  .site-header .header-row { column-gap: 0.5rem; }
  .lang-switch a { min-width: 32px; padding: 0 0.35rem; font-size: 0.78rem; }
  .lang-switch a[lang="ar"] { font-size: 0.85rem; }
  .header-row > .header-cta { margin-inline-start: 0; }
  .header-cta.button { padding-inline: 0.75rem; font-size: 0.9rem; }
  .site-header .brand { gap: 0.5rem; }
  .site-header .brand-word { font-size: 1.15rem; }
  .lang-switch a { min-width: 30px; padding: 0 0.3rem; }
  html[lang="fr"] .header-cta.button { font-size: 0.85rem; padding-inline: 0.7rem; }
}
@media (min-width: 900px) and (max-width: 1199px) { html[lang="fr"] .nav-tabs > li > a, html[lang="fr"] .tab-trigger { font-size: 0.88rem; } }
@media (max-width: 369px) { .header-row > .header-cta { display: none; } }
/* Narrower desktops: tighter tabs and switcher so seven tabs fit in every language. */
@media (min-width: 900px) and (max-width: 1279px) {
  .nav-tabs > li > a, .tab-trigger { padding: 0 0.45rem; font-size: 0.92rem; }
  .lang-switch a { min-width: 32px; padding: 0 0.35rem; font-size: 0.78rem; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .tab-trigger .chev { display: none; }
  .header-cta.button { padding-inline: 0.9rem; }
}

/* =====================================================================
   Arabic (dir="rtl"): Arabic type, mirrored layout
   ===================================================================== */
html[lang="ar"] {
  --font: "IBM Plex Sans Arabic", "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="ar"] body { line-height: 1.8; }
/* Arabic letters join, so no tracking; the Arabic face tops out at 600, so heavy weights map to it. */
html[lang="ar"] :is(h1, h2, h3, h4, p, a, span, strong, li, button, label) { letter-spacing: 0 !important; }
html[lang="ar"] :is(h1, h2, h3, h4) { line-height: 1.3; font-weight: 600; }
html[lang="ar"] .hero h1 { line-height: 1.25; font-weight: 400; }
html[lang="ar"] .hero h1 .grad-text { font-weight: 600; padding-bottom: 0.1em; }
html[lang="ar"] :is(.mega-title, .stage h3, .value-grid h3, .learning-path h3, .catalogue-title, .proof-name, .consult-home-cards strong,
  .consult-practice h3, .form-success h3, .challenge-q, .slide-quote p, .stack-block h3, .words-text, .next-title) { font-weight: 400; line-height: 1.45; }
html[lang="ar"] .brand-word, html[lang="ar"] .console-trace, html[lang="ar"] [lang="en"] { font-family: "Lato", system-ui, sans-serif; }
html[lang="ar"] .brand-word { letter-spacing: 0.08em !important; }
html[lang="ar"] .split-heading .wm { padding-bottom: 0.2em; margin-bottom: -0.2em; }
html[lang="ar"] input[type="email"], html[lang="ar"] input[type="tel"] { direction: ltr; text-align: right; }
html[lang="ar"] .email, html[lang="ar"] .email-big { direction: ltr; unicode-bidi: isolate; }
/* Email addresses and other Latin runs inside Arabic sentences read left to right and don't break at hyphens. */
html[lang="ar"] .ltr, html[lang="ar"] a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

[dir="rtl"] .skip-link { left: auto; right: var(--gutter); }
.header-cta.button { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1279px) {
  html[lang="ar"] .nav-tabs > li > a, html[lang="ar"] .tab-trigger { padding: 0 0.4rem; font-size: 0.9rem; }
  html[lang="ar"] .header-cta.button { padding-inline: 0.9rem; }
}
[dir="rtl"] .carousel-count { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .console { text-align: right; }
[dir="rtl"] .item-chev, [dir="rtl"] .slide-link svg, [dir="rtl"] .next-link svg, [dir="rtl"] .round-btn svg { transform: scaleX(-1); }
[dir="rtl"] .mega-grid a:hover .item-chev, [dir="rtl"] .mega-overview:hover .item-chev { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .pillars li::before, [dir="rtl"] .regions li::before { left: auto; right: 0; }
@media (min-width: 900px) {
  [dir="rtl"] .journey li { border-right: 0; border-left: 1px solid var(--line); padding: 1.25rem 0 0 1.25rem; margin-right: 0; margin-left: 1.25rem; }
  [dir="rtl"] .journey li:last-child { border-left: 0; margin-left: 0; }
}
[dir="rtl"] .sector ul { padding-left: 0; padding-right: 1.1rem; }
[dir="rtl"] .button--signal::after, [dir="rtl"] .button--nile::after { transform: translateX(120%); }
[dir="rtl"] .button--signal:hover::after, [dir="rtl"] .button--nile:hover::after { transform: translateX(-120%); }
/* Marquees and the ticker keep scrolling the same way; each item still reads right to left. */
[dir="rtl"] .marquee-track { direction: ltr; }
[dir="rtl"] .marquee-track > li { direction: rtl; }
[dir="rtl"] .local-nav-row ul { margin-left: 0; margin-right: -1rem; }
@media (max-width: 719px) { [dir="rtl"] .local-nav-row ul { -webkit-mask-image: linear-gradient(270deg, #000 85%, transparent); mask-image: linear-gradient(270deg, #000 85%, transparent); } }
[dir="rtl"] .learning-path li { padding-left: 0; padding-right: 2.75rem; }
[dir="rtl"] .path-node { left: auto; right: 0; }
[dir="rtl"] .learning-path li:not(:last-child)::before { left: auto; right: 9px; }
@media (min-width: 900px) {
  [dir="rtl"] .learning-path li { padding-right: 0; }
  [dir="rtl"] .learning-path li:not(:last-child)::before { right: 1.8rem; left: -1.1rem; background: linear-gradient(270deg, var(--brand-blue), var(--brand-cyan)); }
}
[dir="rtl"] .rail-line { left: auto; right: 10px; }
[dir="rtl"] .practice-group .mega-label, [dir="rtl"] .consult-practice .mega-label { margin-right: 0; }
[dir="rtl"] .field select { background-position: left 0.9rem center; padding-right: 0.9rem; padding-left: 2.4rem; }
[dir="rtl"] .hp { left: auto; right: -10000px; }
[dir="rtl"] .next-link:hover .next-title { transform: translateX(-8px); }
[dir="rtl"] .ticker { left: auto; right: max(var(--gutter), calc(50% - 600px)); }
[dir="rtl"] .challenge-tab { text-align: right; }
[dir="rtl"] .challenge-tab::before { left: auto; right: 0; }
[dir="rtl"] .quick-chat { right: auto; left: 16px; }
[dir="rtl"] .dash::after { left: auto; right: 0; }
[dir="rtl"] .hero-rail--left { left: auto; right: 28px; }
[dir="rtl"] .hero-rail--right { right: auto; left: 28px; }

/* =====================================================================
   Final QA (2026-09-27): comfortable touch targets on phones and tablets
   ===================================================================== */
@media (pointer: coarse) {
  .lang-switch { padding: 1px; }
  .lang-switch a { min-height: 42px; }
  .local-nav .local-cta.button { min-height: 44px; }
  .filters button { min-height: 44px; }
}
@media (max-width: 560px) { .dash { width: 24px; } .dash.is-active { width: 40px; } }

/* ---------- Contrast & motion preferences ---------- */

@media (prefers-contrast: more) {
  :root { --text-muted: #2E3F63; --text-faint: #3A4B70; --line: #9FB3D3; --line-strong: #7D93BA; }
  .theme-dark { --text-muted: #D0DCF0; --text-faint: #BCCBE6; --line: #4A67A0; --line-strong: #6A86BD; }
}
@media (forced-colors: active) {
  .button, .stack-block, .case, .console, .filters button[aria-pressed="true"] { border: 1px solid CanvasText; }
  .grad-text, .facts strong, .contact-band .email, .journey li::before { background: none; color: CanvasText; }
  .status-dot, .trace::before, .offerings li::before, .node { forced-color-adjust: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Campaign pages (ai-readiness.html) ---------- */
/* Four cards: 2 x 2 on tablets, one row on wide screens (no orphan card). */
@media (min-width: 640px) { .programs--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .programs--4 { grid-template-columns: repeat(4, 1fr); } }
/* Program cards on a dark glass section: translucent tile with a hairline edge. */
.section--glass .program {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
