/* =============================================================================
   Control Plane: a site palette family that restyles more than colour.
   Loaded after styles.css only on sites whose theme is "control-plane"
   (SiteTheme). Visual only: no rule here hides, reorders or rewrites content.

   English and other left-to-right pages: obsidian, platinum, ice, amber.
   Arabic pages (html[lang^="ar"]): the Majlis skin, deep teal, pearl and
   sand gold, with the same layout mirrored.
   Every family has a light scheme the visitor can switch to.
   ========================================================================== */

/* ---- tokens -------------------------------------------------------------- */
html[data-site-theme="control-plane"] {
  --font: "Geist", "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: "Geist", "Aptos Display", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --cp-ease-in-out: cubic-bezier(.7, 0, .2, 1);
  --cp-frame-radius: 14px;
  --cp-button-radius: 8px;
  --cp-pattern: none;
}
html[data-site-theme="control-plane"][data-theme="dark"] {
  --bg: #090c10; --bg-2: #0d1116; --surface: #10151b; --surface-2: #151b23; --surface-solid: #10151b;
  --text: #d9dde3; --heading: #f1f3f6; --muted: #8a94a3; --muted-2: #67717f;
  --line: rgba(230, 233, 238, .10); --line-strong: rgba(143, 216, 232, .42);
  --blue: #8fd8e8; --blue-2: #b6e7f1; --blue-soft: rgba(143, 216, 232, .10);
  --amber: #e9b65c; --green: #6fd3a2;
  --cp-button-bg: #e6e9ee; --cp-button-text: #090c10;
  --shadow: 0 30px 80px rgba(0, 0, 0, .45); --shadow-soft: 0 1px 0 rgba(255, 255, 255, .03);
  --header-bg: rgba(9, 12, 16, .78); --section-tint: rgba(255, 255, 255, .012);
  --grain: transparent; --hero-grid: rgba(230, 233, 238, .06); --footer-bg: #07090c;
  --project-img-filter: saturate(.9) contrast(1.03);
  --band: #0d1116;
}
html[data-site-theme="control-plane"][data-theme="light"] {
  --bg: #f6f7f9; --bg-2: #eef1f4; --surface: #ffffff; --surface-2: #f9fafb; --surface-solid: #ffffff;
  --text: #1f2630; --heading: #0b0f14; --muted: #5a6472; --muted-2: #7c8693;
  --line: rgba(11, 15, 20, .10); --line-strong: rgba(15, 111, 132, .45);
  --blue: #0f6f84; --blue-2: #13859e; --blue-soft: rgba(15, 111, 132, .08);
  --amber: #b26b12; --green: #1f7a4d;
  --cp-button-bg: #0b0f14; --cp-button-text: #ffffff;
  --shadow: 0 30px 80px rgba(11, 15, 20, .10); --shadow-soft: 0 1px 2px rgba(11, 15, 20, .04);
  --header-bg: rgba(246, 247, 249, .82); --section-tint: rgba(11, 15, 20, .015);
  --grain: transparent; --hero-grid: rgba(11, 15, 20, .055); --footer-bg: #eef1f4;
  --project-img-filter: none;
  --band: #eef1f4;
}

/* Majlis skin: Arabic pages only. Same layout, mirrored by dir="rtl". */
html[data-site-theme="control-plane"][lang^="ar"] {
  --font: "IBM Plex Sans Arabic", "Geist", "Segoe UI", Tahoma, sans-serif;
  --font-heading: "IBM Plex Sans Arabic", "Geist", "Segoe UI", Tahoma, sans-serif;
  --font-mono: "IBM Plex Sans Arabic", "Geist Mono", sans-serif;
  --cp-frame-radius: 999px 999px 14px 14px;
  --cp-button-radius: 999px;
}
html[data-site-theme="control-plane"][lang^="ar"][data-theme="dark"] {
  --bg: #0d2626; --bg-2: #102c2c; --surface: #123232; --surface-2: #163a39; --surface-solid: #123232;
  --text: #e9e2d4; --heading: #f6f1e7; --muted: #a9b8b1; --muted-2: #7f918a;
  --line: rgba(207, 174, 108, .20); --line-strong: rgba(207, 174, 108, .50);
  --blue: #cfae6c; --blue-2: #e7d3a6; --blue-soft: rgba(207, 174, 108, .10);
  --amber: #e7d3a6; --green: #8fcfa9;
  --cp-button-bg: #cfae6c; --cp-button-text: #0d2626;
  --header-bg: rgba(13, 38, 38, .82); --footer-bg: #0a2020; --band: #102c2c;
  --hero-grid: rgba(207, 174, 108, .16);
}
html[data-site-theme="control-plane"][lang^="ar"][data-theme="light"] {
  --bg: #f5f0e6; --bg-2: #efe7d8; --surface: #fffdf8; --surface-2: #fbf7ef; --surface-solid: #fffdf8;
  --text: #1d3434; --heading: #0d2626; --muted: #5c6d67; --muted-2: #7d8c86;
  --line: rgba(13, 38, 38, .12); --line-strong: rgba(134, 103, 42, .45);
  --blue: #86672a; --blue-2: #9c7a36; --blue-soft: rgba(134, 103, 42, .08);
  --amber: #86672a; --green: #2f7a55;
  --cp-button-bg: #0d2626; --cp-button-text: #fffdf8;
  --header-bg: rgba(245, 240, 230, .86); --footer-bg: #efe7d8; --band: #efe7d8;
  --hero-grid: rgba(13, 38, 38, .12);
}

/* ---- base ---------------------------------------------------------------- */
html[data-site-theme="control-plane"] body { font-family: var(--font); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
html[data-site-theme="control-plane"] :is(h1, h2, h3, h4) { font-family: var(--font-heading); font-weight: 600; letter-spacing: -.035em; }
html[data-site-theme="control-plane"][lang^="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.3; }
html[data-site-theme="control-plane"] .ambient { display: none; }
html[data-site-theme="control-plane"] ::selection { background: var(--blue); color: var(--bg); }
html[data-site-theme="control-plane"] :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
html[data-site-theme="control-plane"] .eyebrow,
html[data-site-theme="control-plane"] .mega-menu__eyebrow {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; color: var(--blue);
}
html[data-site-theme="control-plane"][lang^="ar"] .eyebrow { letter-spacing: 0; font-size: 13px; }
/* The base light scheme fixes these to its own blue; here they follow the accent (AA on the light ground). */
html[data-site-theme="control-plane"][data-theme="light"] :is(.eyebrow, .text-link, .svc-case small, .svc-case__more, .svc-work__role, .svc-work__more, .svc-reading__list i, .svc-check li::before, .insights-status a, .insights-empty a, .insight-card__go, .insights-more__previous) { color: var(--blue); }

/* Buttons: a quiet, solid primary and a hairline secondary. */
html[data-site-theme="control-plane"] :is(.button--primary, .nav-cta) {
  background: var(--cp-button-bg); color: var(--cp-button-text); border-color: var(--cp-button-bg);
  border-radius: var(--cp-button-radius); box-shadow: none; font-weight: 600; letter-spacing: -.005em;
  transition: transform .5s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
html[data-site-theme="control-plane"] :is(.button--primary, .nav-cta):hover {
  background: var(--cp-button-bg); color: var(--cp-button-text); border-color: var(--cp-button-bg);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
html[data-site-theme="control-plane"] .button { border-radius: var(--cp-button-radius); font-weight: 600; }
html[data-site-theme="control-plane"] .button--ghost { background: transparent; border: 1px solid var(--line); color: var(--heading); box-shadow: none; }
html[data-site-theme="control-plane"] .button--ghost:hover { border-color: var(--line-strong); background: var(--blue-soft); }
html[data-site-theme="control-plane"] .button:hover { transform: translateY(-1px); }

/* ---- header -------------------------------------------------------------- */
html[data-site-theme="control-plane"] .site-header { transition: transform .45s var(--ease), background-color .3s, border-color .3s; view-transition-name: site-header; }
html[data-site-theme="control-plane"] .site-header.is-scrolled { background: var(--header-bg); border-color: var(--line); backdrop-filter: blur(14px) saturate(1.1); }
html[data-site-theme="control-plane"] .site-header.cp-tucked { transform: translateY(-100%); }
html[data-site-theme="control-plane"] .brand-mark-img { height: 36px; width: 36px; aspect-ratio: 1; object-fit: contain; }
html[data-site-theme="control-plane"] .footer-col--brand .brand-mark-img { height: 44px; width: 44px; }
html[data-site-theme="control-plane"] .brand-name { font-weight: 600; letter-spacing: -.015em; }
html[data-site-theme="control-plane"] .brand-role { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .02em; color: var(--muted); }
html[data-site-theme="control-plane"] .primary-nav a { font-weight: 500; }
html[data-site-theme="control-plane"] .mega-menu { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-solid); box-shadow: var(--shadow); }
html[data-site-theme="control-plane"] :is(.mega-menu__group, .mega-menu__item) { border-radius: var(--radius-md); }
html[data-site-theme="control-plane"] .mega-menu__group-number { border-radius: 6px; font-family: var(--font-mono); font-weight: 500; }
html[data-site-theme="control-plane"] .theme-toggle { border-radius: var(--cp-button-radius); border-color: var(--line); background: transparent; }

/* ---- hero ---------------------------------------------------------------- */
html[data-site-theme="control-plane"] .hero { background: var(--bg); }
html[data-site-theme="control-plane"] .hero-grid-bg {
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 62% 42%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 65% at 62% 42%, #000 25%, transparent 78%);
}
/* A soft light that follows the pointer (set by control-plane.js on fine pointers). */
html[data-site-theme="control-plane"] .hero-grid-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--cp-mx, 64%) var(--cp-my, 38%), var(--blue-soft), transparent 70%);
}
/* Majlis: an eight-point line pattern in place of the grid. */
html[data-site-theme="control-plane"][lang^="ar"] .hero-grid-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23cfae6c' stroke-opacity='.22' stroke-width='1'%3E%3Crect x='35' y='35' width='50' height='50'/%3E%3Crect x='35' y='35' width='50' height='50' transform='rotate(45 60 60)'/%3E%3Cpath d='M0 60H25M95 60H120M60 0V25M60 95V120'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}
html[data-site-theme="control-plane"][lang^="ar"][data-theme="light"] .hero-grid-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%230d2626' stroke-opacity='.12' stroke-width='1'%3E%3Crect x='35' y='35' width='50' height='50'/%3E%3Crect x='35' y='35' width='50' height='50' transform='rotate(45 60 60)'/%3E%3Cpath d='M0 60H25M95 60H120M60 0V25M60 95V120'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-site-theme="control-plane"] :is(.scene-globe, .scene-orb, .portrait-depth) { display: none; }
html[data-site-theme="control-plane"] .hero-buyer-heading,
html[data-site-theme="control-plane"] .hero h1 { font-weight: 600; letter-spacing: -.045em; line-height: 1.02; color: var(--heading); text-wrap: balance; }
html[data-site-theme="control-plane"][lang^="ar"] .hero h1 { letter-spacing: 0; line-height: 1.35; }
html[data-site-theme="control-plane"] .hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
html[data-site-theme="control-plane"] .hero-credential__name { font-weight: 600; }
html[data-site-theme="control-plane"] .hero-credential__role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; }
html[data-site-theme="control-plane"] .hero-tagline { color: var(--muted); }
html[data-site-theme="control-plane"] .hero-proof li { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
html[data-site-theme="control-plane"] .hero-meta { border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 70%, transparent); }
html[data-site-theme="control-plane"] .meta-dot--green { position: relative; background: var(--amber); color: var(--amber); box-shadow: none; }
html[data-site-theme="control-plane"] .meta-dot--green::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: .5; animation: cp-pulse 2.6s var(--ease) infinite; }
html[data-site-theme="control-plane"] .meta-dot--blue { background: var(--blue); color: var(--blue); }
@keyframes cp-pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* Portrait: a precise frame on English pages, an arch on Arabic pages. */
html[data-site-theme="control-plane"] .portrait-shell {
  border-radius: var(--cp-frame-radius); border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .35);
}
html[data-site-theme="control-plane"][data-theme="light"] .portrait-shell { box-shadow: 0 30px 70px rgba(11, 15, 20, .12); }
html[data-site-theme="control-plane"][lang^="ar"] .portrait-shell { border-color: var(--line-strong); }
html[data-site-theme="control-plane"] .portrait-shell::before { display: none; }
html[data-site-theme="control-plane"] .portrait-shell::after { background: linear-gradient(to top, color-mix(in srgb, var(--bg) 70%, transparent), transparent); }
html[data-site-theme="control-plane"] .portrait-shell img { filter: grayscale(.18) contrast(1.04); }
html[data-site-theme="control-plane"] .portrait-signature { font: 500 11px/1.6 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; transform: none; color: var(--heading); }

/* Floating cards become nodes of an architecture diagram. */
html[data-site-theme="control-plane"] .float-card {
  width: auto; min-width: 150px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px); box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
}
html[data-site-theme="control-plane"][data-theme="light"] .float-card { box-shadow: 0 12px 30px rgba(11, 15, 20, .08); }
html[data-site-theme="control-plane"] .float-card::after { left: 14px; right: 14px; width: auto; height: 1px; background: linear-gradient(90deg, var(--blue), transparent); }
html[data-site-theme="control-plane"][dir="rtl"] .float-card::after { background: linear-gradient(-90deg, var(--blue), transparent); }
html[data-site-theme="control-plane"] .float-icon { color: var(--blue); font-family: var(--font-mono); }
html[data-site-theme="control-plane"] .float-card strong { font: 600 12px/1.2 var(--font-heading); letter-spacing: -.01em; text-transform: none; }
html[data-site-theme="control-plane"] .float-card small { font: 400 10.5px/1.4 var(--font-mono); color: var(--muted); }
html[data-site-theme="control-plane"] .scene-caption { font-family: var(--font-mono); letter-spacing: .1em; }
html[data-site-theme="control-plane"] .scene-caption::before { background: var(--blue); }

/* ---- sections ------------------------------------------------------------ */
html[data-site-theme="control-plane"] .section { border-top: 1px solid var(--line); }
html[data-site-theme="control-plane"] .section-kicker-row { border-color: var(--line); }
html[data-site-theme="control-plane"] .section-kicker-row h2,
html[data-site-theme="control-plane"] .section h2 { letter-spacing: -.04em; text-wrap: balance; }
html[data-site-theme="control-plane"][lang^="ar"] .section h2 { letter-spacing: 0; }

/* Proof figures: one ruled row, no cards. */
html[data-site-theme="control-plane"] .stats { background: var(--bg); }
html[data-site-theme="control-plane"] .stats-grid { gap: 0; border-block: 1px solid var(--line); }
html[data-site-theme="control-plane"] .stat-card { border: 0; border-inline-end: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; min-height: 0; padding: 28px 24px; }
html[data-site-theme="control-plane"] .stat-card:last-child { border-inline-end: 0; }
html[data-site-theme="control-plane"] .stat-card::after { display: none; }
html[data-site-theme="control-plane"] .stat-icon { width: auto; height: auto; margin-bottom: 14px; background: none; border-radius: 0; color: var(--blue); font-family: var(--font-mono); font-weight: 500; justify-content: start; }
html[data-site-theme="control-plane"] .stat-number { color: var(--heading); font-family: var(--font-heading); font-weight: 500; font-size: clamp(40px, 4vw, 56px); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
html[data-site-theme="control-plane"][lang^="ar"] .stat-number { font-family: "Cormorant", Georgia, serif; color: var(--blue-2); letter-spacing: 0; }
html[data-site-theme="control-plane"] .stat-card h3 { font-family: var(--font); font-weight: 400; letter-spacing: 0; color: var(--muted); }
@media (max-width: 780px) {
  html[data-site-theme="control-plane"] .stat-card { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  html[data-site-theme="control-plane"] .stat-card:last-child { border-bottom: 0; }
}

/* Companies: quiet, monochrome, full colour on hover. */
html[data-site-theme="control-plane"] .companies { background: var(--bg); }
html[data-site-theme="control-plane"] .company-logo__image { filter: grayscale(1) contrast(1.1); opacity: .62; transition: filter .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease); }
html[data-site-theme="control-plane"][data-theme="dark"] .company-logo__image { filter: grayscale(1) brightness(1.6) contrast(.9); opacity: .55; }
html[data-site-theme="control-plane"] .company-logo:hover .company-logo__image { filter: none; opacity: 1; transform: translateY(-2px); }
html[data-site-theme="control-plane"] .marquee-fade--left { background: linear-gradient(90deg, var(--bg), transparent); }
html[data-site-theme="control-plane"] .marquee-fade--right { background: linear-gradient(-90deg, var(--bg), transparent); }

/* Four ways to start: plan cards. */
html[data-site-theme="control-plane"] .paths { background: var(--bg); }
html[data-site-theme="control-plane"] .paths-tab { border-radius: var(--cp-button-radius); border-color: var(--line); background: transparent; color: var(--muted); font-weight: 500; transition: color .3s, background-color .3s, border-color .3s; }
html[data-site-theme="control-plane"] .paths-tab:hover { border-color: var(--line-strong); color: var(--heading); }
html[data-site-theme="control-plane"] .paths-tab[aria-selected="true"] { background: var(--cp-button-bg); border-color: var(--cp-button-bg); color: var(--cp-button-text); }
html[data-site-theme="control-plane"] .path-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: none; transition: border-color .4s var(--ease), transform .5s var(--ease); }
html[data-site-theme="control-plane"] .path-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); transform: translateX(-100%); transition: transform .9s var(--ease); pointer-events: none; }
html[data-site-theme="control-plane"] .path-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
html[data-site-theme="control-plane"] .path-card:hover::before { transform: translateX(100%); }
html[data-site-theme="control-plane"] .path-card.is-featured { border-color: var(--line-strong); }
html[data-site-theme="control-plane"] :is(.path-card__num, .path-card__category, .path-card__format, .path-card__deliverables-label) { font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; }
html[data-site-theme="control-plane"] .path-card__price { font-family: var(--font-heading); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--heading); }
html[data-site-theme="control-plane"] .path-card__badge { border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
/* The open offer: the base theme paints it navy with fixed colours; here it is a raised surface. */
html[data-site-theme="control-plane"] .paths-stage .path-card.is-featured {
  background: radial-gradient(520px 360px at 100% 0, var(--blue-soft), transparent 70%), var(--surface-2);
  border-color: var(--line-strong); color: var(--text);
}
html[data-site-theme="control-plane"] .path-card.is-featured :is(.path-card__title) { color: var(--heading); }
html[data-site-theme="control-plane"] .path-card.is-featured :is(.path-card__fit, .path-card__deliverables, .path-card__format) { color: var(--text); }
html[data-site-theme="control-plane"] .path-card.is-featured :is(.path-card__num, .path-card__deliverables-label, .path-card__price, .path-card__note, .path-card__more p, .path-card__proof span) { color: var(--muted); }
html[data-site-theme="control-plane"] .path-card.is-featured :is(.path-card__category, .path-card__deliverables li::before) { color: var(--blue); }
html[data-site-theme="control-plane"] .path-card.is-featured .path-card__deliverables li::before { color: var(--blue); }
html[data-site-theme="control-plane"] .path-card.is-featured .path-card__price strong { color: var(--heading); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
html[data-site-theme="control-plane"] .path-card.is-featured :is(.path-card__proof, .path-card__sample, .path-card__more a) { color: var(--heading); }
html[data-site-theme="control-plane"] .path-card.is-featured .path-card__badge { background: var(--blue-soft); border-color: var(--line-strong); color: var(--blue); }
html[data-site-theme="control-plane"] .path-card.is-featured .path-card__format { border-color: var(--line); }
html[data-site-theme="control-plane"] .path-card.is-featured .path-card__foot { border-color: var(--line); background: var(--bg); border-radius: var(--radius-lg); }
html[data-site-theme="control-plane"] .path-card.is-featured .path-card__more a { border-color: var(--line); }
html[data-site-theme="control-plane"] .path-card.is-featured .path-card__more a:hover { border-color: var(--line-strong); background: var(--blue-soft); }
html[data-site-theme="control-plane"] .consent-banner { border-radius: var(--radius-lg); background: var(--surface-solid); }
html[data-site-theme="control-plane"] .consent-banner .button { border-radius: var(--cp-button-radius); }
html[data-site-theme="control-plane"] .consent-banner [data-consent-choice="granted"] { background: var(--cp-button-bg); border-color: var(--cp-button-bg); color: var(--cp-button-text); }
html[data-site-theme="control-plane"] .company-logo--computan .company-logo__image { background: #1b2530; }
html[data-site-theme="control-plane"] .paths-terms { border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: transparent; }

/* Selected work. */
html[data-site-theme="control-plane"] .work { background: var(--bg); }
html[data-site-theme="control-plane"] .project-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: none; transition: border-color .4s var(--ease), transform .5s var(--ease); }
html[data-site-theme="control-plane"] .project-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: none; }
html[data-site-theme="control-plane"] .project-thumb img { transition: transform 1.2s var(--ease); }
html[data-site-theme="control-plane"] .project-arrow { color: var(--blue); }

/* How the work runs. */
html[data-site-theme="control-plane"] .home-process { background: var(--bg-2); }
html[data-site-theme="control-plane"] .process-step__node { border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--blue); font-family: var(--font-mono); font-weight: 500; box-shadow: none; }
html[data-site-theme="control-plane"] .process-phase__tag { font-family: var(--font-mono); font-weight: 500; color: var(--blue); letter-spacing: .06em; }
html[data-site-theme="control-plane"] .process-list::before { background: linear-gradient(var(--line-strong), var(--line)); }

/* Testimonials and FAQs. */
html[data-site-theme="control-plane"] .testimonials { background: var(--bg); }
html[data-site-theme="control-plane"] :is(.testimonial-feature, .testimonial-card) { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: none; }
html[data-site-theme="control-plane"] .testimonial-reel { border-radius: var(--radius-lg); }
html[data-site-theme="control-plane"] .testimonial-reel__play { background: var(--cp-button-bg); color: var(--cp-button-text); }
html[data-site-theme="control-plane"] :is(.testimonial-feature__label, .testimonial-row__count) { font-family: var(--font-mono); font-weight: 500; }
html[data-site-theme="control-plane"] :is(.testimonial-feature__avatar, .testimonial-card__avatar) { background: var(--blue-soft); color: var(--blue); }
html[data-site-theme="control-plane"] .aeo-faq { background: var(--bg-2); }
html[data-site-theme="control-plane"] .faq-items details { border-color: var(--line); }
html[data-site-theme="control-plane"] .faq-items summary { font-weight: 500; letter-spacing: -.01em; }

/* Closing call to action: one glow, a living edge. */
html[data-site-theme="control-plane"] .site-closing { border-top: 0; }
html[data-site-theme="control-plane"] .site-closing__panel {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: none;
  background: radial-gradient(640px 280px at 85% 0%, var(--blue-soft), transparent 70%), var(--surface);
}
html[data-site-theme="control-plane"] .site-closing__panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--cp-edge, 0deg), transparent 0 70%, var(--blue) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .7;
}

html[data-site-theme="control-plane"] .site-closing__path { border-radius: var(--cp-button-radius); background: var(--surface-2); }
html[data-site-theme="control-plane"] .site-closing__path[aria-checked="true"] { border-color: var(--line-strong); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }
html[data-site-theme="control-plane"] .site-closing__steps { font-family: var(--font-mono); letter-spacing: .02em; }

/* Footer. */
html[data-site-theme="control-plane"] .site-footer { background: var(--footer-bg); color: var(--text); backdrop-filter: none; }
html[data-site-theme="control-plane"] .site-footer::before { background: linear-gradient(90deg, transparent, var(--blue) 50%, transparent); opacity: .35; }
html[data-site-theme="control-plane"] .site-footer :is(a, .brand-role) { color: inherit; }
html[data-site-theme="control-plane"] .footer-eyebrow { font-family: var(--font-mono); font-weight: 500; color: var(--blue); letter-spacing: .08em; }

/* ---- page heroes ---------------------------------------------------------
   Every page type opens the same way: the engineering grid (the line
   pattern on Arabic pages), one soft accent glow, a precise frame and node
   cards. The base theme's navy bands, glossy orbs and serif marks go. */
html[data-site-theme="control-plane"] {
  --cp-grid: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  --cp-grid-size: 48px 48px, 48px 48px;
  --cp-mark: url("/assets/images/mq-qframe-dark.svg");
  --cp-curtain-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cstyle%3Epath%7Bfill:none;stroke-linecap:round;stroke-linejoin:round%7D.f%7Bstroke:%23e6e9ee;stroke-width:5.5;stroke-dasharray:250;stroke-dashoffset:250;animation:d .32s cubic-bezier(.16,1,.3,1) 0s forwards%7D.m%7Bstroke:%23e6e9ee;stroke-width:5.5;stroke-dasharray:110;stroke-dashoffset:110;animation:d .26s cubic-bezier(.16,1,.3,1) .12s forwards%7D.t%7Bstroke:%238fd8e8;stroke-width:5.5;stroke-dasharray:30;stroke-dashoffset:30;animation:d .16s cubic-bezier(.16,1,.3,1) .3s forwards%7D%40keyframes d%7Bto%7Bstroke-dashoffset:0%7D%7D%40media (prefers-reduced-motion:reduce)%7Bpath%7Banimation:none;stroke-dashoffset:0%7D%7D%3C/style%3E%3Cpath class='f' d='M86 58V30a18 18 0 0 0-18-18H30a18 18 0 0 0-18 18v38a18 18 0 0 0 18 18h28'/%3E%3Cpath class='m' d='M30 66V35l18 20 18-20v31'/%3E%3Cpath class='t' d='M72 72l18 18'/%3E%3C/svg%3E");
}
html[data-site-theme="control-plane"][data-theme="light"] { --cp-mark: url("/assets/images/mq-qframe-light.svg"); --cp-curtain-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cstyle%3Epath%7Bfill:none;stroke-linecap:round;stroke-linejoin:round%7D.f%7Bstroke:%230b0f14;stroke-width:5.5;stroke-dasharray:250;stroke-dashoffset:250;animation:d .32s cubic-bezier(.16,1,.3,1) 0s forwards%7D.m%7Bstroke:%230b0f14;stroke-width:5.5;stroke-dasharray:110;stroke-dashoffset:110;animation:d .26s cubic-bezier(.16,1,.3,1) .12s forwards%7D.t%7Bstroke:%230f6f84;stroke-width:5.5;stroke-dasharray:30;stroke-dashoffset:30;animation:d .16s cubic-bezier(.16,1,.3,1) .3s forwards%7D%40keyframes d%7Bto%7Bstroke-dashoffset:0%7D%7D%40media (prefers-reduced-motion:reduce)%7Bpath%7Banimation:none;stroke-dashoffset:0%7D%7D%3C/style%3E%3Cpath class='f' d='M86 58V30a18 18 0 0 0-18-18H30a18 18 0 0 0-18 18v38a18 18 0 0 0 18 18h28'/%3E%3Cpath class='m' d='M30 66V35l18 20 18-20v31'/%3E%3Cpath class='t' d='M72 72l18 18'/%3E%3C/svg%3E"); }
html[data-site-theme="control-plane"][lang^="ar"] {
  --cp-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23cfae6c' stroke-opacity='.2' stroke-width='1'%3E%3Crect x='35' y='35' width='50' height='50'/%3E%3Crect x='35' y='35' width='50' height='50' transform='rotate(45 60 60)'/%3E%3Cpath d='M0 60H25M95 60H120M60 0V25M60 95V120'/%3E%3C/g%3E%3C/svg%3E");
  --cp-grid-size: 120px 120px;
  --cp-curtain-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cstyle%3Epath%7Bfill:none;stroke-linecap:round;stroke-linejoin:round%7D.f%7Bstroke:%23f1ebdf;stroke-width:5.5;stroke-dasharray:250;stroke-dashoffset:250;animation:d .32s cubic-bezier(.16,1,.3,1) 0s forwards%7D.m%7Bstroke:%23f1ebdf;stroke-width:5.5;stroke-dasharray:110;stroke-dashoffset:110;animation:d .26s cubic-bezier(.16,1,.3,1) .12s forwards%7D.t%7Bstroke:%23cfae6c;stroke-width:5.5;stroke-dasharray:30;stroke-dashoffset:30;animation:d .16s cubic-bezier(.16,1,.3,1) .3s forwards%7D%40keyframes d%7Bto%7Bstroke-dashoffset:0%7D%7D%40media (prefers-reduced-motion:reduce)%7Bpath%7Banimation:none;stroke-dashoffset:0%7D%7D%3C/style%3E%3Cpath class='f' d='M86 58V30a18 18 0 0 0-18-18H30a18 18 0 0 0-18 18v38a18 18 0 0 0 18 18h28'/%3E%3Cpath class='m' d='M30 66V35l18 20 18-20v31'/%3E%3Cpath class='t' d='M72 72l18 18'/%3E%3C/svg%3E");
}
html[data-site-theme="control-plane"][lang^="ar"][data-theme="light"] {
  --cp-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%230d2626' stroke-opacity='.12' stroke-width='1'%3E%3Crect x='35' y='35' width='50' height='50'/%3E%3Crect x='35' y='35' width='50' height='50' transform='rotate(45 60 60)'/%3E%3Cpath d='M0 60H25M95 60H120M60 0V25M60 95V120'/%3E%3C/g%3E%3C/svg%3E");
  --cp-curtain-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cstyle%3Epath%7Bfill:none;stroke-linecap:round;stroke-linejoin:round%7D.f%7Bstroke:%230d2626;stroke-width:5.5;stroke-dasharray:250;stroke-dashoffset:250;animation:d .32s cubic-bezier(.16,1,.3,1) 0s forwards%7D.m%7Bstroke:%230d2626;stroke-width:5.5;stroke-dasharray:110;stroke-dashoffset:110;animation:d .26s cubic-bezier(.16,1,.3,1) .12s forwards%7D.t%7Bstroke:%2386672a;stroke-width:5.5;stroke-dasharray:30;stroke-dashoffset:30;animation:d .16s cubic-bezier(.16,1,.3,1) .3s forwards%7D%40keyframes d%7Bto%7Bstroke-dashoffset:0%7D%7D%40media (prefers-reduced-motion:reduce)%7Bpath%7Banimation:none;stroke-dashoffset:0%7D%7D%3C/style%3E%3Cpath class='f' d='M86 58V30a18 18 0 0 0-18-18H30a18 18 0 0 0-18 18v38a18 18 0 0 0 18 18h28'/%3E%3Cpath class='m' d='M30 66V35l18 20 18-20v31'/%3E%3Cpath class='t' d='M72 72l18 18'/%3E%3C/svg%3E");
}

/* Heroes without their own grid layer get it as a background. */
html[data-site-theme="control-plane"] :is(.svc-hero, .svc2-hero, .work-hero, .project-hero:not(.article-hero)) {
  background:
    radial-gradient(ellipse 75% 85% at 72% 30%, transparent 35%, var(--bg) 82%),
    radial-gradient(640px 320px at 82% -6%, var(--blue-soft), transparent 70%),
    var(--cp-grid), var(--bg);
  background-size: auto, auto, var(--cp-grid-size), auto;
}
html[data-site-theme="control-plane"] :is(.about-hero, .milestones-hero, .contact-hero) .hero-grid-bg {
  background-image: var(--cp-grid); background-size: var(--cp-grid-size);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 66% 40%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 70% at 66% 40%, #000 25%, transparent 78%);
}
html[data-site-theme="control-plane"] :is(.svc-hero, .svc2-hero, .about-hero, .work-hero, .milestones-hero, .contact-hero, .project-hero) h1 {
  font-family: var(--font-heading); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance;
}
html[data-site-theme="control-plane"][lang^="ar"] :is(.svc-hero, .svc2-hero, .about-hero, .work-hero, .milestones-hero, .contact-hero, .project-hero) h1 { letter-spacing: 0; line-height: 1.3; }
html[data-site-theme="control-plane"] :is(.work-hero__copy, .about-hero__copy, .milestones-hero__copy, .contact-hero__copy)::before { background: linear-gradient(var(--blue), transparent); width: 1px; }

/* Service, scorecard and state pages: the navy band becomes the theme's ground. */
html[data-site-theme="control-plane"] .svc-hero { color: var(--text); }
html[data-site-theme="control-plane"] .svc-hero :is(.breadcrumb, .breadcrumb a) { color: var(--muted); }
html[data-site-theme="control-plane"] :is(.svc-hero, .sc-hero, .svc-panel) .eyebrow,
html[data-site-theme="control-plane"] :is(.svc-cards > .is-dark, .svc-reading__col--services) .eyebrow { color: var(--blue) !important; }
html[data-site-theme="control-plane"] .svc-hero h1 { color: var(--heading); }
html[data-site-theme="control-plane"] .svc-hero__lead { color: var(--muted); }
html[data-site-theme="control-plane"] .svc-hero__ghost { color: var(--heading); border-color: var(--line); border-radius: var(--cp-button-radius); }
html[data-site-theme="control-plane"] .svc-hero__ghost:hover { color: var(--heading); border-color: var(--line-strong); background: var(--blue-soft); }
html[data-site-theme="control-plane"] .svc-panel { background: color-mix(in srgb, var(--surface) 82%, transparent); border-color: var(--line); border-radius: var(--radius-lg); backdrop-filter: blur(8px); box-shadow: var(--shadow); }
html[data-site-theme="control-plane"] .svc-layer { border-color: var(--line); border-radius: 8px; color: var(--text); background: var(--bg); transition: border-color .3s, transform .4s var(--ease); }
html[data-site-theme="control-plane"] .svc-layer:hover { border-color: var(--line-strong); transform: translateX(3px); }
html[data-site-theme="control-plane"][dir="rtl"] .svc-layer:hover { transform: translateX(-3px); }
html[data-site-theme="control-plane"] .svc-layer small { color: var(--blue); font-family: var(--font-mono); }
html[data-site-theme="control-plane"] .svc-layer.is-hot { border-color: var(--line-strong); background: var(--blue-soft); }
html[data-site-theme="control-plane"] .svc-band { border-top-color: var(--line); }
html[data-site-theme="control-plane"] .svc-band > div { border-inline-start-color: var(--line); }
html[data-site-theme="control-plane"] .svc-band dd { color: var(--heading); font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
html[data-site-theme="control-plane"] .svc-band dt { color: var(--muted); font-family: var(--font-mono); font-size: .75rem; }

/* Services index: the glossy blue stack becomes stacked slabs with lit edges. */
html[data-site-theme="control-plane"] .svc2-hero__glow { display: none; }
html[data-site-theme="control-plane"] .svc2-hero .svc2-accent,
html[data-site-theme="control-plane"][data-theme="dark"] .svc2-hero .svc2-accent { color: var(--blue); }
html[data-site-theme="control-plane"] .svc2-caps__ic { border-radius: 8px; border-color: var(--line-strong); background: var(--blue-soft); color: var(--blue); }
html[data-site-theme="control-plane"] .svc2-layer {
  background: linear-gradient(90deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55), inset 0 1px 0 color-mix(in srgb, var(--blue) 30%, transparent);
  color: var(--heading); font-family: var(--font-mono);
}
html[data-site-theme="control-plane"] .svc2-layer::before { background: linear-gradient(130deg, var(--surface-2), color-mix(in srgb, var(--blue) 18%, var(--surface))); }
html[data-site-theme="control-plane"] .svc2-layer::after { background: linear-gradient(90deg, var(--surface), var(--bg-2)); opacity: 1; }
html[data-site-theme="control-plane"] .svc2-stack__orbit { border-color: var(--line); border-style: dashed; }
html[data-site-theme="control-plane"] .svc2-tag { border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
html[data-site-theme="control-plane"] .svc2-tag__ic { color: var(--blue); }
html[data-site-theme="control-plane"] .svc2-cta__panel,
html[data-site-theme="control-plane"][data-theme="dark"] .svc2-cta__panel { background-color: var(--surface); background-blend-mode: luminosity; border: 1px solid var(--line); border-radius: var(--radius-xl); }
html[data-site-theme="control-plane"] .svc2-cta__panel > .svc2-cta__bg,
html[data-site-theme="control-plane"][data-theme="dark"] .svc2-cta__panel > .svc2-cta__bg { background: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 82%, transparent) 45%, color-mix(in srgb, var(--surface) 30%, transparent) 75%); }

/* About, Work, Milestones, Contact: orbs go, orbits become hairlines, panels become nodes. */
html[data-site-theme="control-plane"] :is(.about-orb, .milestone-scene-orb, .contact-orb) { display: none; }
html[data-site-theme="control-plane"] .about-orbit { background: none; border: 1px dashed var(--line); box-shadow: none; }
html[data-site-theme="control-plane"] :is(.milestone-orbit, .contact-ring) { border: 1px dashed var(--line-strong); opacity: .7; }
html[data-site-theme="control-plane"] .work-system__orbits { border-style: dashed; border-color: var(--line); }
html[data-site-theme="control-plane"] :is(.about-float, .milestone-plane, .contact-plane, .work-system__tag) {
  border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px); box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
}
html[data-site-theme="control-plane"][data-theme="light"] :is(.about-float, .milestone-plane, .contact-plane, .work-system__tag, .float-card, .svc2-tag) { box-shadow: 0 12px 30px rgba(11, 15, 20, .08); }
html[data-site-theme="control-plane"] :is(.about-float, .milestone-plane, .contact-plane, .work-system__tag) :is(strong, b, h3, h4) { font-family: var(--font-heading); font-weight: 600; letter-spacing: -.01em; text-transform: none; }
html[data-site-theme="control-plane"] :is(.about-float, .milestone-plane, .contact-plane, .work-system__tag) :is(small, span) { font-family: var(--font-mono); }
/* The serif "MQ" cores become the Q-frame. Their letters are decorative (aria-hidden scenes). */
html[data-site-theme="control-plane"] :is(.milestone-core, .contact-core, .work-system__core) {
  border-radius: 22px; border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 50% 0%, var(--blue-soft), transparent 70%), var(--surface);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35), 0 0 0 8px color-mix(in srgb, var(--blue) 5%, transparent);
}
html[data-site-theme="control-plane"] :is(.milestone-core > span, .contact-core__mark) { color: transparent; text-shadow: none; }
html[data-site-theme="control-plane"] .milestone-core::after,
html[data-site-theme="control-plane"] .contact-core__mark {
  background: var(--cp-mark) center 34% / 38% no-repeat;
}
html[data-site-theme="control-plane"] :is(.milestone-core, .contact-core) small { position: relative; z-index: 2; font-family: var(--font-mono); color: var(--muted); }
html[data-site-theme="control-plane"] .milestone-core::after { content: ""; position: absolute; inset: 0; }
html[data-site-theme="control-plane"] .contact-core__mark { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
html[data-site-theme="control-plane"] .contact-core__pulse { background: var(--amber); box-shadow: 0 0 0 7px color-mix(in srgb, var(--amber) 14%, transparent); }
html[data-site-theme="control-plane"] .about-portrait { border-radius: var(--cp-frame-radius); }
html[data-site-theme="control-plane"] .about-portrait img { filter: grayscale(.18) contrast(1.04); }
html[data-site-theme="control-plane"] .about-hero__facts span { border-radius: 10px; box-shadow: none; }
html[data-site-theme="control-plane"] .milestones-hero__note > span { background: var(--blue-soft); color: var(--blue); }

/* Project pages: the screenshot sits in a precise window. */
html[data-site-theme="control-plane"] .project-browser { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Articles and the Insights page: the navy panel becomes the theme's raised surface. */
html[data-site-theme="control-plane"] .article-hero,
html[data-site-theme="control-plane"] .testimonials {
  --article-navy: var(--surface); --article-navy-2: var(--surface-2); --article-navy-line: var(--line); --article-sky: var(--blue); --article-gold: var(--amber);
  --tf-navy: var(--surface); --tf-navy-2: var(--surface-2); --tf-navy-3: var(--bg-2); --tf-line: var(--line); --tf-sky: var(--blue); --tf-gold: var(--amber); --tf-text: var(--muted);
}
html[data-site-theme="control-plane"] .article-hero__panel {
  border-radius: var(--radius-xl);
  background: radial-gradient(700px 360px at 90% 0%, var(--blue-soft), transparent 70%), var(--cp-grid), var(--surface);
  background-size: auto, var(--cp-grid-size), auto;
}
html[data-site-theme="control-plane"] :is(.article-hero.project-hero h1, .insights-hero h1, .article-hero .article-byline strong, .article-hero__brief a, .insights-feature h2) { color: var(--heading); }
html[data-site-theme="control-plane"] :is(.article-hero__lead, .article-hero__brief li, .insights-feature > p:not(.eyebrow):not(.insights-feature__meta)) { color: var(--text); }
html[data-site-theme="control-plane"] :is(.article-hero .article-byline, .insights-feature__meta) { color: var(--muted); }
html[data-site-theme="control-plane"] :is(.article-hero.project-hero h1, .insights-hero h1) { font-weight: 600; letter-spacing: -.045em; }
html[data-site-theme="control-plane"][lang^="ar"] :is(.article-hero.project-hero h1, .insights-hero h1) { letter-spacing: 0; }
html[data-site-theme="control-plane"] :is(.article-byline__mark, .article-author__mark),
html[data-site-theme="control-plane"][data-theme="dark"] :is(.article-byline__mark, .article-author__mark) { background: var(--bg); color: var(--heading); border-color: var(--line); }
html[data-site-theme="control-plane"] .insights-feature { border-color: var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
html[data-site-theme="control-plane"] :is(.insights-feature:hover, .insights-feature:focus-within) { border-color: var(--line-strong); }

/* Hard-coded light text on the old navy panels, mapped to the theme so both schemes read. */
html[data-site-theme="control-plane"] .article-hero__panel { color: var(--text); }
html[data-site-theme="control-plane"] :is(.insights-stats dd, .article-hero__panel h2, .article-hero__panel h3) { color: var(--heading); }
html[data-site-theme="control-plane"] .insights-stats dt { color: var(--muted); font-family: var(--font-mono); }
html[data-site-theme="control-plane"] .insights-stats dd { font-weight: 500; letter-spacing: -.04em; }
/* Diagrams and case cards inside articles: an ink panel in both schemes, ice accents. */
html[data-site-theme="control-plane"] .article-detail .article-flow,
html[data-site-theme="control-plane"] .article-card--case,
html[data-site-theme="control-plane"][data-theme="dark"] .article-card--case {
  background: radial-gradient(520px 260px at 100% 0, rgba(143, 216, 232, .10), transparent 70%), #0d1116;
  border: 1px solid rgba(230, 233, 238, .10); border-radius: var(--radius-lg); color: #e6e9ee;
}
html[data-site-theme="control-plane"][lang^="ar"] .article-detail .article-flow,
html[data-site-theme="control-plane"][lang^="ar"] .article-card--case { background: radial-gradient(520px 260px at 0 0, rgba(207, 174, 108, .12), transparent 70%), #102c2c; border-color: rgba(207, 174, 108, .22); }
html[data-site-theme="control-plane"] :is(.article-detail .article-flow__steps li::before, .article-flow__lane-title, .article-card--case .eyebrow) { color: #8fd8e8; }
html[data-site-theme="control-plane"][lang^="ar"] :is(.article-detail .article-flow__steps li::before, .article-flow__lane-title, .article-card--case .eyebrow) { color: #cfae6c; }
html[data-site-theme="control-plane"] :is(.article-flow__gate, .article-flow--gated .article-flow__lane--human .article-flow__lane-title) { color: #e9b65c; }
html[data-site-theme="control-plane"] :is(.article-detail .article-flow__steps span, .article-card--case .article-card__body > span, .article-detail .article-flow figcaption) { color: #8a94a3; }
html[data-site-theme="control-plane"] .article-detail .article-flow figcaption { border-top-color: rgba(230, 233, 238, .10); }

/* Article covers. The listing's cover images are decorative (empty alt) and
   drawn in the old navy style. The theme paints its own cover on the image
   box instead (the grid, a glow in the topic's colour and the Q-frame) and
   moves the old drawing out of view. */
html[data-site-theme="control-plane"] :is(.insight-card__cover img, .insights-feature__cover) {
  object-fit: none; object-position: -9999px -9999px;
  background:
    var(--cp-mark) right 18px top 16px / 26px 26px no-repeat,
    linear-gradient(90deg, color-mix(in srgb, var(--hue, var(--blue)) 70%, transparent), transparent) left 18px bottom 18px / 38% 1px no-repeat,
    repeating-radial-gradient(circle at var(--cp-ring, 86% 112%), transparent 0 26px, color-mix(in srgb, var(--hue, var(--blue)) 30%, transparent) 26px 27px),
    radial-gradient(70% 95% at 88% 105%, color-mix(in srgb, var(--hue, var(--blue)) 34%, transparent), transparent 70%),
    radial-gradient(ellipse 85% 85% at 25% 15%, transparent 30%, var(--bg-2) 88%),
    var(--cp-grid), var(--bg-2);
  background-size: 26px 26px, 38% 1px, auto, auto, auto, 32px 32px, auto;
  transition: transform 1.2s var(--ease);
}
html[data-site-theme="control-plane"][lang^="ar"] :is(.insight-card__cover img, .insights-feature__cover) { background-size: 26px 26px, 38% 1px, auto, auto, auto, 80px 80px, auto; }
html[data-site-theme="control-plane"] .insight-card:nth-child(3n+2) .insight-card__cover img { --cp-ring: 12% 118%; }
html[data-site-theme="control-plane"] .insight-card:nth-child(3n) .insight-card__cover img { --cp-ring: 50% 135%; }
html[data-site-theme="control-plane"] .insight-card__cover { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
html[data-site-theme="control-plane"] .insights-feature__cover { border: 1px solid var(--line); border-radius: 10px; }
html[data-site-theme="control-plane"] .insight-card:hover .insight-card__cover img { transform: scale(1.04); }
html[data-site-theme="control-plane"] .insight-card__topic { color: color-mix(in srgb, var(--hue, var(--blue)) 70%, var(--heading)); font-family: var(--font-mono); font-weight: 500; letter-spacing: .1em; text-shadow: none; }
html[data-site-theme="control-plane"] .insight-card__kind { border-color: var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--heading); font-family: var(--font-mono); }
html[data-site-theme="control-plane"] .insight-card { border-radius: var(--radius-lg); }

/* Case studies and articles: "Facing a similar problem?" becomes an offer
   panel, and the related reading list becomes a grid of link cards (a node
   mark for services, a page mark for articles). Same words, same links. */
html[data-site-theme="control-plane"] .project-next {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; grid-template-areas: "eyebrow eyebrow eyebrow" "title text action";
  align-items: center; gap: 14px 48px; margin-top: 96px; padding: 44px 48px;
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: radial-gradient(620px 300px at 92% -10%, var(--blue-soft), transparent 70%), var(--surface);
}
html[data-site-theme="control-plane"] .project-next::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--cp-grid); background-size: var(--cp-grid-size);
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%); mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
}
html[data-site-theme="control-plane"][dir="rtl"] .project-next::before { -webkit-mask-image: linear-gradient(-100deg, transparent 35%, #000 100%); mask-image: linear-gradient(-100deg, transparent 35%, #000 100%); }
html[data-site-theme="control-plane"] .project-next::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--cp-edge, 0deg), transparent 0 70%, var(--blue) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55;
}
html[data-site-theme="control-plane"] .project-next > .eyebrow { grid-area: eyebrow; margin: 0; display: inline-flex; align-items: center; gap: 10px; }
html[data-site-theme="control-plane"] .project-next > .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 16%, transparent); }
html[data-site-theme="control-plane"] .project-next > h2 { grid-area: title; margin: 0; max-width: none; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.04; letter-spacing: -.045em; }
html[data-site-theme="control-plane"][lang^="ar"] .project-next > h2 { letter-spacing: 0; line-height: 1.3; }
html[data-site-theme="control-plane"] .project-next > p:not(.eyebrow) { grid-area: text; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 46ch; padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
html[data-site-theme="control-plane"] .project-next > .button { grid-area: action; white-space: nowrap; min-height: 52px; padding-inline: 24px; }
@media (max-width: 980px) {
  html[data-site-theme="control-plane"] .project-next { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "text" "action"; padding: 32px 24px; gap: 16px; }
  html[data-site-theme="control-plane"] .project-next > p:not(.eyebrow) { padding-inline-start: 0; border-inline-start: 0; }
  html[data-site-theme="control-plane"] .project-next > .button { justify-self: start; }
}

html[data-site-theme="control-plane"] .section-inner:has(> .project-capabilities a) { margin-top: 72px; }
html[data-site-theme="control-plane"] .section-inner:has(> .project-capabilities a) > h2 { letter-spacing: -.04em; margin-bottom: 28px; }
html[data-site-theme="control-plane"] .project-capabilities:has(a) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
html[data-site-theme="control-plane"] .project-capabilities:has(a) li { padding: 0; border: 0; }
html[data-site-theme="control-plane"] .project-capabilities:has(a) li::before { content: none; }
html[data-site-theme="control-plane"] .project-capabilities a.text-link {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  height: 100%; min-height: 76px; padding: 16px 18px; margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  color: var(--heading); font-weight: 500; font-size: 15px; line-height: 1.35; letter-spacing: -.01em; text-decoration: none;
  transition: border-color .35s var(--ease), transform .5s var(--ease), background-color .35s;
}
html[data-site-theme="control-plane"] .project-capabilities a.text-link::before {
  content: ""; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--blue-soft) center / 16px 16px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238fd8e8' stroke-width='1.4'%3E%3Crect x='2' y='2' width='5' height='5' rx='1'/%3E%3Crect x='9' y='9' width='5' height='5' rx='1'/%3E%3Cpath d='M7 4.5h2.5a1 1 0 0 1 1 1V9'/%3E%3C/svg%3E");
}
html[data-site-theme="control-plane"] .project-capabilities a.text-link[href*="/insights/"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238fd8e8' stroke-width='1.4'%3E%3Cpath d='M4 1.8h5.5L12.5 5v9.2H4z'/%3E%3Cpath d='M6.3 8h4M6.3 10.6h4M6.3 5.4h1.6'/%3E%3C/svg%3E");
}
html[data-site-theme="control-plane"][data-theme="light"] .project-capabilities a.text-link::before { filter: brightness(.55) saturate(1.4); }
html[data-site-theme="control-plane"][lang^="ar"] .project-capabilities a.text-link::before { filter: sepia(1) saturate(2.2) hue-rotate(-10deg) brightness(.95); }
html[data-site-theme="control-plane"] .project-capabilities a.text-link::after {
  content: "↗"; color: var(--muted); font-family: var(--font-mono); transition: transform .4s var(--ease), color .3s;
  background: none; position: static; width: auto; height: auto;
}
html[data-site-theme="control-plane"][dir="rtl"] .project-capabilities a.text-link::after { content: "↖"; }
html[data-site-theme="control-plane"] .project-capabilities a.text-link:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--surface) 85%, var(--blue-soft)); transform: translateY(-2px); }
html[data-site-theme="control-plane"] .project-capabilities a.text-link:hover::after { color: var(--blue); transform: translate(2px, -2px); }
html[data-site-theme="control-plane"][dir="rtl"] .project-capabilities a.text-link:hover::after { transform: translate(-2px, -2px); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html[data-site-theme="control-plane"] main :is(.project-next, .project-capabilities:has(a) li) { animation: cp-enter linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  }
}
@media (prefers-reduced-motion: no-preference) {
  html[data-site-theme="control-plane"] .project-next::after { animation: cp-edge 7s linear infinite; }
}

/* Inner pages share the same surfaces. */
html[data-site-theme="control-plane"] :is(.service-card, .expertise-card, .timeline-card, .achievement-card, .contact-detail-card, .work-project) { border-radius: var(--radius-lg); }

/* ---- FAQ accordion --------------------------------------------------------
   Every FAQ section (home, services, case studies, articles) uses the shared
   partial: native <details>. Same pattern as the site kit's accordion:
   numbered cards, a round toggle that turns + into ×, the open card lit.
   Questions stay in the HTML whether open or closed (FAQPage-ready). */
html[data-site-theme="control-plane"] .aeo-faq .faq-layout { align-items: start; }
html[data-site-theme="control-plane"] .aeo-faq .faq-intro { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 110px); }
html[data-site-theme="control-plane"] .aeo-faq .faq-items { display: flex; flex-direction: column; gap: 10px; counter-reset: cp-faq; }
html[data-site-theme="control-plane"] .aeo-faq .faq-items details {
  counter-increment: cp-faq; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); transition: border-color .35s var(--ease), background-color .35s, box-shadow .35s;
  interpolate-size: allow-keywords;
}
html[data-site-theme="control-plane"] .aeo-faq .faq-items details:hover { border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); }
html[data-site-theme="control-plane"] .aeo-faq .faq-items details[open] {
  border-color: var(--line-strong);
  background: radial-gradient(420px 160px at 100% 0, var(--blue-soft), transparent 70%), var(--surface);
  box-shadow: 0 24px 50px -40px rgba(0, 0, 0, .55);
}
html[data-site-theme="control-plane"] .aeo-faq .faq-items summary {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 32px; align-items: center; gap: 16px;
  padding: 16px 18px; list-style: none; cursor: pointer;
  color: var(--heading); font-size: 16.5px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em;
}
html[data-site-theme="control-plane"] .aeo-faq .faq-items summary::-webkit-details-marker { display: none; }
html[data-site-theme="control-plane"] .aeo-faq .faq-items summary::marker { content: ""; }
/* The number. */
html[data-site-theme="control-plane"] .aeo-faq .faq-items summary::before {
  content: counter(cp-faq, decimal-leading-zero); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted);
  font: 500 12px/1 var(--font-mono); transition: background-color .35s, color .35s, border-color .35s;
}
html[data-site-theme="control-plane"] .aeo-faq .faq-items details[open] summary::before { background: var(--cp-button-bg); border-color: var(--cp-button-bg); color: var(--cp-button-text); }
/* The toggle: a + drawn with two bars, turning into × when open. */
html[data-site-theme="control-plane"] .aeo-faq .faq-items summary::after {
  content: ""; justify-self: end; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background:
    linear-gradient(var(--heading), var(--heading)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--heading), var(--heading)) center / 1.5px 12px no-repeat,
    var(--bg);
  transition: transform .45s var(--ease), background-color .35s, border-color .35s;
}
html[data-site-theme="control-plane"] .aeo-faq .faq-items details[open] summary::after {
  transform: rotate(45deg); border-color: var(--blue);
  background:
    linear-gradient(var(--bg), var(--bg)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--bg), var(--bg)) center / 1.5px 12px no-repeat,
    var(--blue);
}
html[data-site-theme="control-plane"] .aeo-faq .faq-items summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--radius-lg); }
html[data-site-theme="control-plane"] .aeo-faq .faq-items details > p {
  margin: 0; padding: 0 18px 20px calc(18px + 36px + 16px); color: var(--muted); font-size: 15.5px; line-height: 1.7; max-width: 72ch;
}
/* Smooth open and close where the browser supports animating <details>. */
@supports selector(::details-content) {
  html[data-site-theme="control-plane"] .aeo-faq .faq-items details::details-content {
    block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
  }
  html[data-site-theme="control-plane"] .aeo-faq .faq-items details[open]::details-content { block-size: auto; }
}
@media (max-width: 640px) {
  html[data-site-theme="control-plane"] .aeo-faq .faq-intro { position: static; }
  html[data-site-theme="control-plane"] .aeo-faq .faq-items summary { grid-template-columns: 30px minmax(0, 1fr) 28px; gap: 12px; padding: 14px; font-size: 15.5px; }
  html[data-site-theme="control-plane"] .aeo-faq .faq-items summary::before { width: 30px; height: 30px; }
  html[data-site-theme="control-plane"] .aeo-faq .faq-items summary::after { width: 28px; height: 28px; }
  html[data-site-theme="control-plane"] .aeo-faq .faq-items details > p { padding: 0 14px 16px; }
}

/* ---- footer: system map -----------------------------------------------------
   The designed footer (Mq\FooterMap): brand row, the Services menu as four
   connected nodes, the Ask AI row as a console beside the contact card,
   then the page links and copyright in one bar. */
html[data-site-theme="control-plane"] .site-footer:has(.footer-map) { padding-top: 56px; }
html[data-site-theme="control-plane"] .footer-map-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 0 28px; }
html[data-site-theme="control-plane"] .footer-map-head .footer-col--brand { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; width: 100%; }
html[data-site-theme="control-plane"] .footer-map-head .footer-brand { grid-row: span 2; }
html[data-site-theme="control-plane"] .footer-map-head :is(.footer-brand-name, .footer-brand-role) { margin: 0; }
html[data-site-theme="control-plane"] .footer-map-head .footer-brand-name { align-self: end; color: var(--heading); font-weight: 600; font-size: 17px; letter-spacing: -.015em; }
html[data-site-theme="control-plane"] .footer-map-head .footer-brand-role { align-self: start; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
html[data-site-theme="control-plane"] .footer-map-head .footer-social-icons { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
html[data-site-theme="control-plane"] .site-footer .social-link { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--heading); transition: border-color .3s, background-color .3s, transform .4s var(--ease); }
html[data-site-theme="control-plane"] .site-footer .social-link:hover { border-color: var(--line-strong); background: var(--blue-soft); transform: translateY(-2px); }

/* The four service areas as nodes on one line. */
html[data-site-theme="control-plane"] .footer-map { padding-block: 0 20px; }
html[data-site-theme="control-plane"] .footer-services { position: relative; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html[data-site-theme="control-plane"] .footer-services::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 25px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
html[data-site-theme="control-plane"] .footer-services__node {
  position: relative; display: grid; gap: 10px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); transition: border-color .35s var(--ease), transform .45s var(--ease);
}
html[data-site-theme="control-plane"] .footer-services__node:hover { border-color: var(--line-strong); transform: translateY(-2px); }
html[data-site-theme="control-plane"] .footer-services__area { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 14px/1.3 var(--font-heading); letter-spacing: -.01em; color: var(--heading); }
html[data-site-theme="control-plane"] .footer-services__pin { flex: none; width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid var(--blue); background: var(--bg); transition: background-color .3s; }
html[data-site-theme="control-plane"] .footer-services__node:hover .footer-services__pin { background: var(--blue); }
html[data-site-theme="control-plane"] .footer-services__list { gap: 6px; font-size: 13.5px; }
html[data-site-theme="control-plane"] .footer-services__list a { display: inline-flex; gap: 6px; color: var(--text); transition: color .25s, transform .35s var(--ease); }
html[data-site-theme="control-plane"] .footer-services__list a::before { content: "›"; color: var(--blue); }
html[data-site-theme="control-plane"][dir="rtl"] .footer-services__list a::before { content: "‹"; }
html[data-site-theme="control-plane"] .footer-services__list a:is(:hover, :focus-visible) { color: var(--blue); transform: translateX(3px); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--blue) 45%, transparent); text-underline-offset: 4px; }
html[data-site-theme="control-plane"][dir="rtl"] .footer-services__list a:is(:hover, :focus-visible) { transform: translateX(-3px); }

/* Ask AI as a console, then the contact card and the call button. */
html[data-site-theme="control-plane"] .footer-map-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding-block: 0 28px; align-items: stretch; }
/* The call button sits inside the contact card (same grid cell, end-aligned). */
html[data-site-theme="control-plane"] .footer-map-row > .footer-col { grid-column: 2; grid-row: 1; padding-inline-end: 190px; }
html[data-site-theme="control-plane"] .footer-map-row > .footer-cta { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; margin-inline-end: 18px; position: relative; z-index: 1; }
html[data-site-theme="control-plane"] .footer-map-row .widget-ask-ai {
  position: relative; justify-content: center; align-items: stretch; text-align: start; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
html[data-site-theme="control-plane"] .footer-map-row .widget-ask-ai__heading { font: 400 13px/1.4 var(--font-mono); color: var(--muted); }
html[data-site-theme="control-plane"] .footer-map-row .widget-ask-ai__heading::before { content: "$"; color: var(--blue); margin-inline-end: 2px; }
html[data-site-theme="control-plane"] .footer-map-row .widget-ask-ai__spark { display: none; }
html[data-site-theme="control-plane"] .footer-map-row .widget-ask-ai__list { justify-content: flex-start; gap: 6px; }
html[data-site-theme="control-plane"] .footer-map-row .ask-ai { flex-direction: row; width: auto; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
html[data-site-theme="control-plane"] .footer-map-row .ask-ai:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--bg); }
html[data-site-theme="control-plane"] .footer-map-row .ask-ai__tile { width: 24px; height: 24px; border-radius: 7px; box-shadow: none; }
html[data-site-theme="control-plane"] .footer-map-row .ask-ai__tile svg { width: 14px; height: 14px; }
html[data-site-theme="control-plane"] .footer-map-row .ask-ai__name { font-size: 12.5px; opacity: 1; color: var(--heading); }
html[data-site-theme="control-plane"] .footer-map-row .widget-ask-ai__note { position: absolute; inset-inline: 18px; bottom: 6px; min-height: 0; text-align: start; font-size: 12px; }
html[data-site-theme="control-plane"] .footer-map-row > .footer-col,
html[data-site-theme="control-plane"] .footer-map-row .footer-col {
  display: grid; gap: 8px; align-content: center; margin: 0; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: radial-gradient(320px 140px at 100% 0, var(--blue-soft), transparent 70%), var(--surface);
}
html[data-site-theme="control-plane"] .footer-map-row .footer-email { gap: 12px; }
html[data-site-theme="control-plane"] .footer-map-row .footer-email-icon { border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--blue); }
html[data-site-theme="control-plane"] .footer-map-row :is(.footer-email-text small, .footer-note small) { font-family: var(--font-mono); letter-spacing: .06em; color: var(--muted); }
html[data-site-theme="control-plane"] .footer-map-row .footer-email-text strong { color: var(--heading); font-weight: 600; }
html[data-site-theme="control-plane"] .footer-map-row .footer-note { margin: 0; padding: 0; border: 0; }
html[data-site-theme="control-plane"] .footer-map-row .footer-dot { background: var(--amber); }
html[data-site-theme="control-plane"] .site-footer .footer-cta .button { color: var(--cp-button-text); }
html[data-site-theme="control-plane"] .footer-cta .button { min-height: 46px; padding-inline: 22px; white-space: nowrap; }

/* Bottom bar: the page links inline, then the copyright and back to top. */
html[data-site-theme="control-plane"] .footer-map-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 18px; border-top: 1px solid var(--line); }
html[data-site-theme="control-plane"] .footer-map-bottom .footer-col { display: block; flex: 1 1 420px; min-width: 0; margin: 0; padding: 0; }
html[data-site-theme="control-plane"] .footer-map-bottom > p { flex: 0 1 auto; margin-inline-start: auto; }
html[data-site-theme="control-plane"] .footer-map-bottom > .footer-to-top { flex: none; }
html[data-site-theme="control-plane"] .footer-map-bottom .footer-eyebrow { display: none; }
html[data-site-theme="control-plane"] .footer-map-bottom .footer-links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
html[data-site-theme="control-plane"] .footer-map-bottom .footer-links a { color: var(--muted); }
html[data-site-theme="control-plane"] .footer-map-bottom .footer-links a:is(:hover, :focus-visible) { color: var(--blue); }
html[data-site-theme="control-plane"] .footer-map-bottom p { margin: 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
html[data-site-theme="control-plane"] .footer-map-bottom .footer-to-top { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; }

@media (max-width: 980px) {
  html[data-site-theme="control-plane"] .footer-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-site-theme="control-plane"] .footer-services::before { display: none; }
  html[data-site-theme="control-plane"] .footer-map-row { grid-template-columns: 1fr; }
  html[data-site-theme="control-plane"] .footer-map-row > :is(.footer-col, .footer-cta) { grid-column: 1; grid-row: auto; }
  html[data-site-theme="control-plane"] .footer-map-row > .footer-col { padding-inline-end: 18px; }
  html[data-site-theme="control-plane"] .footer-map-row > .footer-cta { justify-self: stretch; margin: 0; }
  html[data-site-theme="control-plane"] .footer-cta .button { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  html[data-site-theme="control-plane"] .footer-services { grid-template-columns: 1fr; }
  html[data-site-theme="control-plane"] .footer-map-head .footer-col--brand { grid-template-columns: auto minmax(0, 1fr); }
  html[data-site-theme="control-plane"] .footer-map-head .footer-social-icons { grid-column: 1 / -1; grid-row: auto; }
}
/* A light travels along the line between the nodes as the footer enters. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html[data-site-theme="control-plane"] .footer-services::before {
      background: linear-gradient(90deg, transparent, var(--line-strong), transparent), linear-gradient(90deg, transparent, var(--blue), transparent) no-repeat;
      background-size: 100% 100%, 30% 100%; animation: cp-footer-line linear both; animation-timeline: view(); animation-range: entry 10% cover 50%;
    }
    html[data-site-theme="control-plane"] .footer-services__node { animation: cp-enter linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes cp-footer-line { from { background-position: 0 0, -40% 0; } to { background-position: 0 0, 140% 0; } }

/* ---- analytics consent ------------------------------------------------------
   The preferences link joins the footer's bottom bar (control-plane.js moves
   it there; without script it keeps its own row), and the footer runs on
   into the space kept for the chat bar, so no empty band shows below it.
   The consent dialog opens in the middle of the screen, above the chat. */
html[data-site-theme="control-plane"] { --footer-bg: var(--bg); }
html[data-site-theme="control-plane"] .consent-settings-row:not(:has(button:not([hidden]))) { display: none; }
html[data-site-theme="control-plane"] .consent-settings-row { padding-block: 0 12px; }
html[data-site-theme="control-plane"] :is(.consent-settings-row, .footer-map-bottom) [data-consent-settings] {
  padding: 0; border: 0; background: none; color: var(--muted); font: 400 13px/1.4 var(--font); text-decoration: none; cursor: pointer;
}
html[data-site-theme="control-plane"] :is(.consent-settings-row, .footer-map-bottom) [data-consent-settings]:is(:hover, :focus-visible) { color: var(--blue); }
html[data-site-theme="control-plane"] .consent-banner {
  inset: 50% auto auto 50%; bottom: auto; transform: translate(-50%, -50%); margin: 0;
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  z-index: 2147483600; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface-solid);
  box-shadow: 0 0 0 100vmax rgba(9, 12, 16, .5), 0 30px 80px rgba(0, 0, 0, .4);
}
@media (prefers-reduced-motion: no-preference) {
  html[data-site-theme="control-plane"] .consent-banner:not([hidden]) { animation: cp-consent .45s var(--ease) both; }
}
@keyframes cp-consent { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); } }

/* ---- AI assistant -----------------------------------------------------------
   assistant.js paints the chat in the four colours set in Settings → AI on
   your site. One fixed set cannot follow this theme's dark, light and Arabic
   variants, so while this theme is on, the chat takes the theme's own
   colours (the only way past the script's inline values is !important).
   With any other theme the colour setting applies as before. */
html[data-site-theme="control-plane"] .mq-assistant {
  --mqa-accent: var(--blue) !important;
  --mqa-accent-2: var(--blue-2) !important;
  --mqa-spark: var(--amber) !important;
  --mqa-deep: #090c10 !important;
  --mqa-fill: var(--cp-button-bg);
  --mqa-glow: color-mix(in srgb, var(--blue) 26%, transparent);
  --mqa-halo: color-mix(in srgb, var(--blue) 18%, transparent);
  --mqa-link: var(--blue);
  font-family: var(--font);
}
html[data-site-theme="control-plane"][lang^="ar"] .mq-assistant { --mqa-deep: #0d2626 !important; }
html[data-site-theme="control-plane"] .mq-assistant:not([data-theme="light"]) { --mqa-surface: color-mix(in srgb, var(--surface) 96%, transparent); }
/* Filled parts: the theme's solid button, dark words on platinum (dark scheme) or light words on ink (light scheme). */
html[data-site-theme="control-plane"] .mq-assistant :is(.mqa-msg--user, .mqa-cta--primary, .mqa-book__go, .mqa-send),
html[data-site-theme="control-plane"] .mq-assistant:not([data-theme="light"]) .mqa-book__go {
  color: var(--cp-button-text); background: var(--cp-button-bg); box-shadow: none; filter: none;
}
html[data-site-theme="control-plane"] .mq-assistant :is(.mqa-msg--user a, .mqa-msg--user strong) { color: var(--cp-button-text); }
html[data-site-theme="control-plane"] .mq-assistant :is(.mqa-cta--primary, .mqa-book__go, .mqa-send):hover { background: var(--cp-button-bg); box-shadow: 0 0 0 4px var(--blue-soft); }
html[data-site-theme="control-plane"] .mq-assistant .mqa-book__icon { color: var(--bg); background: var(--blue); box-shadow: none; }
/* Shapes: the site's tighter radii. */
html[data-site-theme="control-plane"] .mq-assistant .mqa-panel { border-radius: 18px; }
html[data-site-theme="control-plane"] .mq-assistant .mqa-msg { border-radius: 14px; }
html[data-site-theme="control-plane"] .mq-assistant .mqa-msg--assistant { border-bottom-left-radius: 4px; }
html[data-site-theme="control-plane"] .mq-assistant .mqa-msg--user { border-bottom-right-radius: 4px; }
html[data-site-theme="control-plane"][dir="rtl"] .mq-assistant .mqa-msg--assistant { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
html[data-site-theme="control-plane"][dir="rtl"] .mq-assistant .mqa-msg--user { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
html[data-site-theme="control-plane"] .mq-assistant :is(.mqa-cta, .mqa-book__go) { border-radius: var(--cp-button-radius); }
html[data-site-theme="control-plane"] .mq-assistant .mqa-book { border-radius: var(--radius-lg); }
html[data-site-theme="control-plane"] .mq-assistant .mqa-chip--quick { font-family: var(--font); }
/* "Online" in the theme's status colour. */
html[data-site-theme="control-plane"] .mq-assistant .mqa-avatar__dot,
html[data-site-theme="control-plane"] .mq-assistant .mqa-avatar__dot::after { background: var(--green); }
html[data-site-theme="control-plane"] .mq-assistant .mqa-who span::before { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }

/* ---- service pages: decision brief ------------------------------------------
   The engagement is a card that stays beside the reader on wide screens; the
   fit, scope and deliverables are ruled checklists; case studies are screens
   in a browser frame; reading is the closest three; services are linked rows. */
html[data-site-theme="control-plane"] .svc-offer {
  display: flex; flex-direction: column; gap: 14px; margin: 56px 0 0; padding: 26px;
  border: 1px solid var(--line-strong); border-radius: 14px; overflow: visible;
  background: radial-gradient(320px 170px at 100% 0, var(--blue-soft), transparent 70%), var(--surface); box-shadow: none;
}
html[data-site-theme="control-plane"] .svc-offer__main { display: contents; }
html[data-site-theme="control-plane"] .svc-offer h2 { margin: 0; font-size: 1.4rem; line-height: 1.2; letter-spacing: -.02em; }
html[data-site-theme="control-plane"] .svc-offer .path-card__format { margin: 0; color: var(--muted); font-size: .875rem; }
html[data-site-theme="control-plane"] .svc-offer__price { order: 4; display: flex; flex-direction: column; gap: 4px; padding: 16px 0 0; border-top: 1px solid var(--line); background: none; color: var(--text); }
html[data-site-theme="control-plane"] .svc-offer__price small { color: var(--muted); font-family: var(--font-mono); font-size: .75rem; }
html[data-site-theme="control-plane"] .svc-offer__amount { margin: 4px 0 2px; font-size: 2.3rem; letter-spacing: -.05em; color: var(--heading); font-variant-numeric: tabular-nums; }
html[data-site-theme="control-plane"] .svc-offer__note { margin: 12px 0 0; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--text); font-size: .875rem; }
html[data-site-theme="control-plane"] .svc-offer__terms-note { margin: 12px 0 0; color: var(--muted); font-size: .8125rem; }
html[data-site-theme="control-plane"] .svc-offer__actions { padding-top: 18px; gap: 10px; }
html[data-site-theme="control-plane"] .svc-offer__cta { background: var(--cp-button-bg); color: var(--cp-button-text); border-radius: var(--cp-button-radius); }
html[data-site-theme="control-plane"] .svc-offer__cta:hover { background: var(--cp-button-bg); color: var(--cp-button-text); opacity: .9; }
html[data-site-theme="control-plane"] .svc-offer__link { color: var(--blue); }
html[data-site-theme="control-plane"] .svc-offer__more { order: 5; border-top: 1px solid var(--line); padding-top: 4px; }
html[data-site-theme="control-plane"] .svc-offer__more > summary { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; cursor: pointer; list-style: none; color: var(--blue); font: 500 .75rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
html[data-site-theme="control-plane"] .svc-offer__more > summary::-webkit-details-marker { display: none; }
html[data-site-theme="control-plane"] .svc-offer__more > summary::after { content: "+"; font-size: 1rem; }
html[data-site-theme="control-plane"] .svc-offer__more[open] > summary::after { content: "−"; }
html[data-site-theme="control-plane"] .svc-offer__result { margin: 0 0 12px; color: var(--text); font-size: .9375rem; }
html[data-site-theme="control-plane"] .svc-offer__terms { grid-template-columns: 1fr; gap: 12px; margin: 0; }
html[data-site-theme="control-plane"] .svc-offer__terms dt { font-family: var(--font-mono); font-weight: 500; color: var(--muted); }
html[data-site-theme="control-plane"] .svc-offer__terms dd { font-size: .875rem; }
@media (min-width: 1100px) {
  html[data-site-theme="control-plane"] .svc-brief.has-offer { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto 1fr; column-gap: 48px; align-items: start; }
  html[data-site-theme="control-plane"] .svc-brief.has-offer > .svc-brief__main { display: block; grid-column: 1; min-width: 0; }
  html[data-site-theme="control-plane"] .svc-brief.has-offer > .svc-brief__main--after { grid-row: 2; }
  html[data-site-theme="control-plane"] .svc-brief.has-offer > .svc-offer { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 92px; margin: 0; max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: thin; }
  html[data-site-theme="control-plane"] .svc-brief.has-offer .svc-intro { grid-template-columns: 1fr; gap: 14px; }
}

/* Fit, scope and deliverables: three ruled checklists, no cards. */
html[data-site-theme="control-plane"] .svc-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 56px; }
html[data-site-theme="control-plane"] :is(.svc-cards > section, .svc-cards > .is-dark) { padding: 16px 0 0; background: none; border: 0; border-top: 2px solid var(--heading); border-radius: 0; box-shadow: none; color: var(--text); }
html[data-site-theme="control-plane"] .svc-cards h2,
html[data-site-theme="control-plane"] .svc-cards > .is-dark h2 { margin: 8px 0 10px; font-size: 1.15rem; line-height: 1.3; color: var(--heading); }
html[data-site-theme="control-plane"] :is(.svc-check li, .svc-cards > .is-dark .svc-check li) { padding: 10px 0; padding-inline-start: 26px; border-color: var(--line); color: var(--text); font-size: .9rem; }
html[data-site-theme="control-plane"] :is(.svc-check li, .svc-cards > .is-dark .svc-check li)::before { content: ""; top: 14px; width: 14px; height: 14px; border: 1.5px solid var(--blue); border-radius: 4px; background: linear-gradient(var(--blue), var(--blue)) center / 6px 6px no-repeat; }

/* Case studies: the real screen inside a browser frame. */
html[data-site-theme="control-plane"] .svc-work { margin-top: 64px; }
html[data-site-theme="control-plane"] .svc-work__grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
html[data-site-theme="control-plane"] .svc-work__card { border-color: var(--line); border-radius: 12px; background: var(--surface); box-shadow: none; }
html[data-site-theme="control-plane"] .svc-work__card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
html[data-site-theme="control-plane"] .svc-work__media { background: var(--bg-2); border-bottom-color: var(--line); }
html[data-site-theme="control-plane"] .svc-work__media::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 20px; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 12px 10px, var(--muted-2) 2.5px, transparent 3px), radial-gradient(circle at 22px 10px, var(--muted-2) 2.5px, transparent 3px), radial-gradient(circle at 32px 10px, var(--muted-2) 2.5px, transparent 3px), var(--surface-2);
}
html[data-site-theme="control-plane"][dir="rtl"] .svc-work__media::before { transform: scaleX(-1); }
html[data-site-theme="control-plane"] .svc-work__media img { height: calc(100% - 20px); margin-top: 20px; filter: var(--project-img-filter); }
html[data-site-theme="control-plane"] .svc-work__tag { top: 30px; background: rgba(9, 12, 16, .82); font: 500 .625rem/1 var(--font-mono); letter-spacing: .06em; }
html[data-site-theme="control-plane"] .svc-work__body { padding: 16px 18px 18px; }
html[data-site-theme="control-plane"] .svc-work__role { font-family: var(--font-mono); font-weight: 500; letter-spacing: .06em; color: var(--blue); }
html[data-site-theme="control-plane"] .svc-work__title { font-size: 1.15rem; letter-spacing: -.02em; }
html[data-site-theme="control-plane"] .svc-work__summary { font-size: .875rem; }
html[data-site-theme="control-plane"] .svc-work__stack span { border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); font-size: .6875rem; }
html[data-site-theme="control-plane"] .svc-work__more { color: var(--blue); font-size: .8125rem; }

/* Testimonials on a service page: the Short beside the client's facts. */
html[data-site-theme="control-plane"] .svc-quote { border-color: var(--line); border-radius: 12px; background: var(--surface); }
html[data-site-theme="control-plane"] .svc-quote--video { padding: 22px; background: radial-gradient(420px 220px at 100% 0, var(--blue-soft), transparent 70%), var(--surface); }
html[data-site-theme="control-plane"] .svc-short { border-radius: 14px; border: 1px solid var(--line); }
html[data-site-theme="control-plane"] .svc-short__body .eyebrow { color: var(--amber) !important; }
html[data-site-theme="control-plane"] .svc-short__body p { letter-spacing: -.02em; }
html[data-site-theme="control-plane"] .svc-short__facts dd { letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
html[data-site-theme="control-plane"] .svc-short__facts dt { font-family: var(--font-mono); font-size: .75rem; }
html[data-site-theme="control-plane"] .svc-short__tags li { background: var(--surface); }

/* Reading and related services: no panels; the closest three, then more. */
html[data-site-theme="control-plane"] .svc-reading { gap: 48px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
html[data-site-theme="control-plane"] :is(.svc-reading__col, .svc-reading__col--services) { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
html[data-site-theme="control-plane"] :is(.svc-reading h2, .svc-reading__col--services h2) { font-size: 1.5rem; color: var(--heading); }
html[data-site-theme="control-plane"] .svc-reading__list { margin-top: 14px; }
html[data-site-theme="control-plane"] .svc-reading__list a { grid-template-columns: 32px minmax(0, 1fr) auto; padding: 12px 0; border-top-color: var(--line); }
html[data-site-theme="control-plane"] .svc-reading__more .svc-reading__list li:first-child a { border-top: 1px solid var(--line); }
html[data-site-theme="control-plane"] .svc-reading__n { font: 400 .75rem var(--font-mono); }
html[data-site-theme="control-plane"] .svc-reading__title { font-weight: 500; }
html[data-site-theme="control-plane"] .svc-reading__more { border-top: 1px solid var(--line); }
html[data-site-theme="control-plane"] .svc-reading__more > summary { display: flex; justify-content: space-between; margin: 0; padding: 12px 0; list-style: none; color: var(--blue); font: 500 .8125rem var(--font-mono); letter-spacing: .04em; }
html[data-site-theme="control-plane"] .svc-reading__more > summary::-webkit-details-marker { display: none; }
html[data-site-theme="control-plane"] .svc-reading__more > summary::after { content: "↓"; transition: transform .25s var(--ease); }
html[data-site-theme="control-plane"] .svc-reading__more[open] > summary::after { transform: rotate(180deg); }
html[data-site-theme="control-plane"] .svc-reading__col--services .svc-reading__chips { display: grid; gap: 8px; margin-top: 14px; }
html[data-site-theme="control-plane"] .svc-reading__col--services .svc-reading__chips a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--heading); font-size: .9rem; font-weight: 500; }
html[data-site-theme="control-plane"] .svc-reading__col--services .svc-reading__chips a::before {
  content: ""; flex: none; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 7px;
  background: linear-gradient(var(--blue), var(--blue)) 7px 7px / 6px 6px no-repeat, linear-gradient(var(--blue), var(--blue)) 15px 15px / 6px 6px no-repeat, var(--blue-soft);
}
html[data-site-theme="control-plane"] .svc-reading__col--services .svc-reading__chips a:hover { border-color: var(--line-strong); background: var(--surface); color: var(--heading); }
html[data-site-theme="control-plane"] .svc-reading__col--services .svc-reading__chips i { margin-inline-start: auto; color: var(--blue); }

/* Home testimonial: its words read on the light surface too. */
html[data-site-theme="control-plane"] .testimonial-feature { color: var(--heading); }
html[data-site-theme="control-plane"] :is(.testimonial-feature__quote, .testimonial-feature__who strong, .testimonial-feature__facts dd) { color: var(--heading); }
html[data-site-theme="control-plane"] .testimonial-feature__tags li { background: var(--blue-soft); color: var(--text); }
html[data-site-theme="control-plane"] .testimonial-reel { color: #fff; }
html[data-site-theme="control-plane"] .testimonial-lightbox__close { background: var(--cp-button-bg); color: var(--cp-button-text); border-color: var(--line); }

/* ---- motion -------------------------------------------------------------- */
/* Between pages: the header stays, the content crossfades. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: cp-vt-out .25s var(--ease) both; }
::view-transition-new(root) { animation: cp-vt-in .35s var(--ease) both; }
@keyframes cp-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes cp-vt-in { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: no-preference) {
  /* Site load, first page of a visit. A curtain in the page colour draws
     the Q-frame, then lifts; the page underneath is already painted (search
     engines and speed tools see it from the first frame) and settles in as
     the curtain clears. The curtain is pure CSS and always ends lifted. */
  html[data-site-theme="control-plane"][data-first-view] body::after {
    content: ""; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none;
    background: var(--cp-curtain-mark) center / 76px 76px no-repeat, var(--bg);
    animation: cp-curtain .5s var(--cp-ease-in-out) .45s both;
  }
  html[data-site-theme="control-plane"][data-first-view] .site-header { animation: cp-drop .8s var(--ease) 0.65s both; }

  /* Hero cascade on every page type, timed to the curtain. */
  html[data-site-theme="control-plane"][data-first-view] :is(.hero-grid-bg, .svc2-hero__glow) { animation: cp-fade 1.4s var(--ease) 0.6s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.hero, .svc-hero, .svc2-hero, .about-hero, .work-hero, .milestones-hero, .contact-hero, .project-hero) :is(.breadcrumb, .eyebrow) { animation: cp-rise .7s var(--ease) 0.6s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.hero, .svc-hero, .svc2-hero, .about-hero, .work-hero, .milestones-hero, .contact-hero, .project-hero) h1 { animation: cp-settle 1s var(--ease) 0.62s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.hero-credential, .svc-hero__lead, .article-hero__lead, .about-hero__intro, .project-hero__copy > p, .work-hero__copy > p, .milestones-hero__copy > p, .contact-hero__copy > p, .svc2-hero__copy > p, .insights-hero__copy > p) { animation: cp-rise .85s var(--ease) 0.74s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.hero-tagline, .article-byline) { animation: cp-rise .85s var(--ease) 0.82s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.hero-actions, .svc-hero__actions, .project-hero__actions, .contact-hero__actions, .work-benefits, .svc2-caps, .about-hero__facts, .milestones-hero__note) { animation: cp-rise .85s var(--ease) 0.9s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.hero-proof, .hero-meta, .svc-band) { animation: cp-rise .85s var(--ease) 1.02s both; }

  /* Visual side: frames reveal behind a sliding panel, nodes connect in turn. */
  html[data-site-theme="control-plane"][data-first-view] :is(.portrait-shell, .about-portrait)::before {
    content: ""; display: block; position: absolute; inset: 0; z-index: 6; background: var(--surface); pointer-events: none;
    transform-origin: top; animation: cp-wipe 1.05s var(--cp-ease-in-out) 1.05s both;
  }
  html[data-site-theme="control-plane"][data-first-view] :is(.portrait-shell, .about-portrait) img { animation: cp-zoom 1.8s var(--ease) 0.65s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.svc-panel, .project-hero__visual, .article-hero__brief, .insights-feature, .work-system__core, .milestone-core, .contact-core, .svc2-stack__layers) { animation: cp-node .9s var(--ease) 0.8s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.svc-layer, .svc2-layer):nth-child(1) { animation: cp-node .6s var(--ease) 1.05s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.svc-layer, .svc2-layer):nth-child(2) { animation: cp-node .6s var(--ease) 1.13s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.svc-layer, .svc2-layer):nth-child(3) { animation: cp-node .6s var(--ease) 1.21s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.svc-layer, .svc2-layer):nth-child(4) { animation: cp-node .6s var(--ease) 1.29s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.svc-layer, .svc2-layer):nth-child(5) { animation: cp-node .6s var(--ease) 1.37s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.float-card--strategy, .about-float--one, .milestone-plane--one, .contact-plane--one, .work-system__tag--0, .svc2-tag--1) { animation: cp-node .7s var(--ease) 1.15s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.float-card--platforms, .about-float--two, .milestone-plane--two, .contact-plane--two, .work-system__tag--1, .svc2-tag--2) { animation: cp-node .7s var(--ease) 1.27s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.float-card--impact, .about-float--three, .milestone-plane--three, .contact-plane--three, .work-system__tag--2, .svc2-tag--3) { animation: cp-node .7s var(--ease) 1.39s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.milestone-plane--four, .work-system__tag--3, .work-system__tag--4, .svc2-tag--4) { animation: cp-node .7s var(--ease) 1.51s both; }
  html[data-site-theme="control-plane"][data-first-view] :is(.scene-caption, .about-orbit, .milestone-orbit, .contact-ring, .work-system__orbits, .svc2-stack__orbit) { animation: cp-orbit 1.4s var(--ease) 0.9s both; }

  /* Hero motion on later pages of the visit: a shorter settle, no curtain. */
  html[data-site-theme="control-plane"]:not([data-first-view]) :is(.hero, .svc-hero, .svc2-hero, .about-hero, .work-hero, .milestones-hero, .contact-hero, .project-hero) h1 { animation: cp-settle .7s var(--ease) both; }

  /* Sections as they enter: headings rise, their rule draws, then the items
     follow in a short stagger. Content never fully hides: it starts at 35%
     opacity a few pixels low. Browsers without scroll-driven animation get
     the same entrance from control-plane.js, or simply show the page. */
  @supports (animation-timeline: view()) {
    html[data-site-theme="control-plane"] main :is(.section-kicker-row, .paths-head, .faq-intro, .process-intro, .section h2:not(.section-kicker-row h2)) {
      animation: cp-enter linear both; animation-timeline: view(); animation-range: entry 0% entry 45%;
    }
    html[data-site-theme="control-plane"] main :is(.stat-card, .path-card, .project-card, .process-step, .testimonial-feature, .testimonial-card, .faq-items details, .site-closing__panel, .insight-card, .svc-card, .service-card, .expertise-card, .timeline-card, .achievement-card, .work-project, .svc2-band, .company-logo) {
      animation: cp-enter linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
    html[data-site-theme="control-plane"] main :is(.stat-card, .path-card, .project-card, .testimonial-card, .insight-card, .svc-card, .service-card, .work-project, .svc2-band):nth-child(2) { animation-range: entry 6% entry 61%; }
    html[data-site-theme="control-plane"] main :is(.stat-card, .path-card, .project-card, .testimonial-card, .insight-card, .svc-card, .service-card, .work-project, .svc2-band):nth-child(3) { animation-range: entry 12% entry 67%; }
    html[data-site-theme="control-plane"] main :is(.stat-card, .path-card, .project-card, .testimonial-card, .insight-card, .svc-card, .service-card, .work-project, .svc2-band):nth-child(4) { animation-range: entry 18% entry 73%; }
    html[data-site-theme="control-plane"] main .section-kicker-row { position: relative; }
    html[data-site-theme="control-plane"] main :is(.project-thumb img, .work-project__media img) {
      animation: cp-settle-img linear both; animation-timeline: view(); animation-range: entry 0% cover 40%;
    }
  }
  /* The fallback entrance (control-plane.js adds .cp-in as items enter). */
  html[data-site-theme="control-plane"] .cp-in { animation: cp-enter-time .9s var(--ease) both; animation-delay: var(--cp-delay, 0s); }

  /* The closing panel's edge light circles slowly. */
  @supports (background: conic-gradient(from 1deg, red, blue)) {
    html[data-site-theme="control-plane"] .site-closing__panel::before { animation: cp-edge 6s linear infinite; }
  }
}
@property --cp-edge { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes cp-edge { to { --cp-edge: 360deg; } }
@keyframes cp-curtain { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes cp-drop { from { translate: 0 -100%; } }
@keyframes cp-fade { from { opacity: 0; } }
@keyframes cp-rise { from { opacity: 0; translate: 0 12px; } }
@keyframes cp-settle { from { translate: 0 18px; } }
@keyframes cp-wipe { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes cp-zoom { from { transform: scale(1.1); } }
@keyframes cp-node { from { opacity: 0; filter: blur(8px); } }
@keyframes cp-orbit { from { opacity: 0; } }
@keyframes cp-enter { from { translate: 0 22px; } }
@keyframes cp-enter-time { from { translate: 0 22px; } }
@keyframes cp-settle-img { from { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  html[data-site-theme="control-plane"] .meta-dot--green::after { animation: none; }
  html[data-site-theme="control-plane"] .site-header.cp-tucked { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
