/* =============================================================
   RAFAY EXECUTIVE — The Growth Operating System
   Design system + components. No frameworks, no page builders.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* V3 "Eclipse" — cold black, silver, ember orange, teal undertone */
  --ink: #060708;            /* eclipse black */
  --graphite: #0d0f11;       /* raised dark surface */
  --charcoal: #15181b;       /* card surface */
  --ivory: #eef0f1;          /* cool porcelain light bands */
  --paper: #f8f9fa;          /* light cards */
  --cobalt: #e04a18;         /* ember (primary accent) */
  --cobalt-bright: #ff6a38;  /* bright ember (hover, highlights) */
  --sand: #ff7a45;           /* flat ember for small text */
  --bronze: #b8451d;         /* deep ember on light bands */
  --mist: #9aa0a6;           /* cold silver grey, text on dark */
  --white: #f2f4f5;          /* cold white */
  --teal: #3ed6c5;           /* eclipse teal undertone */
  --teal-deep: #0b6e63;      /* teal for light backgrounds */

  --gold-grad: linear-gradient(100deg, #c23a12 0%, #ff5a2c 45%, #ff9159 58%, #d8471f 100%);
  --gold-grad-bright: linear-gradient(100deg, #d84a1e 0%, #ff7645 45%, #ffab7d 58%, #e85a2c 100%);

  --line-dark: rgba(238, 240, 241, 0.1);
  --line-light: rgba(6, 7, 8, 0.12);

  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.25s;
  --t-base: 0.6s;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4.5rem, 10vw, 8.5rem);
}

/* ---------- Fonts (front-end mirror of theme.json fontFace) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-v22-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-v22-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-cyrillic_latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-cyrillic_latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-v38-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-v38-latin-500italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-v15-arabic_latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-v15-arabic_latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p {
  margin: 0 0 1.25em;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cobalt-bright);
}

::selection {
  background: var(--cobalt);
  color: var(--white);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--cobalt);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-s) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout primitives ---------- */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section--ivory {
  background: var(--ivory);
  color: var(--ink);
}

.section--ivory ::selection {
  background: var(--ink);
  color: var(--ivory);
}

.section--graphite {
  background: var(--graphite);
}

.section-head {
  max-width: 60rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section--ivory .eyebrow {
  color: var(--teal-deep);
}

.display-xl {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
}

.display-l {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

.display-m {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  color: var(--mist);
  max-width: 46rem;
}

.section--ivory .lede {
  color: rgba(6, 7, 8, 0.7);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
}

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

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: #1c0b05;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--gold-grad);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  will-change: transform;
}

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

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-grad-bright);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: 0;
}

.btn:hover::after {
  transform: translateY(0);
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn--ghost {
  background: transparent;
  --btn-fg: var(--ivory);
  border-color: var(--line-dark);
}

.btn--ghost::after {
  background: rgba(238, 240, 241, 0.08);
}

.section--ivory .btn--ghost {
  --btn-fg: var(--ink);
  border-color: var(--line-light);
}

.section--ivory .btn--ghost::after {
  background: rgba(6, 7, 8, 0.06);
}

.btn--sand {
  background: transparent;
  --btn-fg: var(--sand);
  border-color: rgba(255, 90, 44, 0.4);
}

.btn--sand::after {
  background: rgba(255, 90, 44, 0.12);
}

.btn .btn__arrow {
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease, transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(6, 7, 8, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translateZ(0);
  border-color: var(--line-dark);
}

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  white-space: nowrap;
}

.brand:hover { color: var(--ivory); }

.brand small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 1.6vw, 1.8rem);
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--mist);
  transition: color var(--t-fast) ease;
  position: relative;
  padding-block: 0.35rem;
  white-space: nowrap;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cobalt-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--ivory);
}

.nav-desktop a:hover::after {
  transform: scaleX(1);
}

.nav-desktop a.btn {
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
  color: var(--btn-fg);
}

/* Restore the button fill overlay (the generic nav underline ::after
   would otherwise override it). */
.nav-desktop a.btn::after {
  inset: 0;
  bottom: 0;
  width: auto;
  height: auto;
  background: var(--gold-grad-bright);
  transform: translateY(101%);
  transform-origin: center;
  transition: transform 0.45s var(--ease);
}

.nav-desktop a.btn:hover::after {
  transform: translateY(0);
}

@media (max-width: 680px) {
  .brand small { display: none; }
}

.menu-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(6, 7, 8, 0.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 1220px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
}

/* ---------- Hero eclipse ring ---------- */
.hero__eclipse {
  position: absolute;
  top: 8%;
  right: clamp(-10rem, 4vw, 8rem);
  width: clamp(320px, 44vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(from 210deg,
    rgba(255, 90, 44, 0) 0deg,
    rgba(255, 90, 44, 0.9) 70deg,
    rgba(255, 145, 89, 1) 110deg,
    rgba(62, 214, 197, 0.55) 200deg,
    rgba(62, 214, 197, 0) 280deg,
    rgba(255, 90, 44, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 26px rgba(255, 90, 44, 0.5)) drop-shadow(0 0 80px rgba(255, 90, 44, 0.22));
}

.hero__eclipse::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 44, 0.12) 30%, transparent 62%);
}

html.js:not(.reduced-motion) .hero__eclipse {
  animation: eclipseSpin 46s linear infinite;
}

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

@media (max-width: 800px) {
  .hero__eclipse { top: 2%; right: -30%; width: 90vw; opacity: 0.7; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(7rem, 16vh, 10rem) clamp(6.5rem, 12vh, 8.5rem);
  overflow: clip;
}

/* Inside the flex hero the marquee must not join the row layout:
   pin it to the section's bottom edge instead. */
.hero > .marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero .scroll-hint {
  bottom: 5.2rem;
}

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

.hero::after {
  /* readability scrim over the node canvas */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(80rem 40rem at 25% 45%, rgba(6, 7, 8, 0.55), transparent 60%),
    linear-gradient(180deg, rgba(6, 7, 8, 0.35) 0%, rgba(6, 7, 8, 0) 35%, rgba(6, 7, 8, 0.75) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  max-width: 17ch;
  margin-bottom: 1.5rem;
}

.hero__title .accent {
  color: var(--cobalt-bright);
}

.hero__sub {
  max-width: 44rem;
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  color: var(--mist);
  margin-bottom: 2.25rem;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  width: fit-content;
}

@media (max-width: 800px) {
  .hero__metrics { grid-template-columns: repeat(2, 1fr); width: 100%; }
}

.hero-metric {
  min-width: 0;
}

.hero-metric__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  letter-spacing: -0.02em;
  color: var(--ivory);
  white-space: nowrap;
}

.hero-metric__value .unit { color: var(--sand); }

.hero-metric__label {
  font-size: 0.8125rem;
  color: var(--mist);
  margin-top: 0.3rem;
  max-width: 15rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mist);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(var(--sand), transparent);
  animation: scrollPulse 2.2s var(--ease) infinite;
}

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

/* ---------- Impact metrics ---------- */
.metric-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  background: linear-gradient(160deg, rgba(23, 23, 27, 0.6), rgba(16, 16, 19, 0.25));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color var(--t-fast) ease, transform var(--t-fast) var(--ease);
}

.metric-card:hover {
  border-color: rgba(255, 90, 44, 0.45);
  transform: translateY(-4px);
}

.metric-card__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ivory);
}

.metric-card__value .unit { color: var(--cobalt-bright); }

.metric-card__shift {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--sand);
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.metric-card__label {
  font-weight: 600;
  font-size: 0.95rem;
}

.metric-card__meta {
  font-size: 0.8125rem;
  color: var(--mist);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line-dark);
}

.metric-card__meta strong {
  color: var(--teal);
  font-weight: 600;
}

/* ---------- Saudi journey ---------- */
.journey {
  position: relative;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}

@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; max-width: 34rem; }
}

.journey__connector {
  position: absolute;
  top: 3.4rem;
  left: 8%;
  right: 8%;
  height: 2px;
  z-index: 0;
  pointer-events: none;
}

.journey__connector line {
  stroke: var(--teal-deep);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}

@media (max-width: 900px) {
  .journey__connector { display: none; }
}

.journey__step {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-m);
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) ease;
}

.journey__step:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px -18px rgba(6, 7, 8, 0.25);
}

.journey__phase {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(11, 110, 99, 0.07);
  border: 1px solid rgba(11, 110, 99, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.1rem;
}

.journey__step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.journey__org {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.9rem;
}

.journey__step p {
  font-size: 0.95rem;
  color: rgba(6, 7, 8, 0.72);
  margin: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.chip {
  font-size: 0.8125rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  color: rgba(6, 7, 8, 0.75);
  background: var(--paper);
  white-space: nowrap;
}

.section:not(.section--ivory) .chip {
  border-color: var(--line-dark);
  color: var(--mist);
  background: rgba(23, 23, 27, 0.55);
}

/* ---------- Industry split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.75rem);
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.split__panel {
  padding: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: border-color var(--t-fast) ease, transform var(--t-fast) var(--ease);
}

.split__panel:hover {
  transform: translateY(-4px);
}

.split__panel--fintech {
  background: linear-gradient(150deg, rgba(62, 214, 197, 0.12), rgba(16, 16, 19, 0) 55%);
}

.split__panel--fintech:hover {
  border-color: rgba(62, 214, 197, 0.4);
}

.split__panel--realestate {
  background: linear-gradient(210deg, rgba(255, 90, 44, 0.12), rgba(16, 16, 19, 0) 55%);
}

.split__panel--realestate:hover {
  border-color: rgba(255, 90, 44, 0.4);
}

.split__panel h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.split__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.split__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--mist);
}

.split__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 1px;
  background: var(--teal);
}

.split__panel--realestate .split__list li::before {
  background: var(--sand);
}

.split__bridge {
  text-align: center;
  max-width: 42rem;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  color: var(--mist);
}

.split__bridge strong {
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1.15em;
}

/* ---------- Case studies ---------- */
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.6rem, 2.6vw, 2.3rem);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-m);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) ease, border-color var(--t-fast) ease;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--cobalt), var(--teal));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -24px rgba(6, 7, 8, 0.3);
  border-color: rgba(255, 90, 44, 0.4);
  color: var(--ink);
}

.case-card:hover::before {
  transform: scaleY(1);
}

.case-card__employer {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.case-card h3 {
  font-size: 1.3rem;
  margin: 0;
}

.case-card p {
  font-size: 0.925rem;
  color: rgba(6, 7, 8, 0.68);
  margin: 0;
}

.case-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-light);
}

.case-card__stats span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--teal-deep);
  white-space: nowrap;
}

.case-card__cta {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Growth OS (pinned) ---------- */
.os {
  position: relative;
}

.os__stage-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .os__stage-wrap { grid-template-columns: 1fr; }
}

.os__rail {
  position: sticky;
  top: clamp(5rem, 14vh, 8rem);
}

@media (max-width: 900px) {
  .os__rail { position: static; }
}

.os__counter {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 240, 241, 0.35);
  line-height: 1;
}

.os__counter .current { color: var(--cobalt-bright); -webkit-text-stroke: 0; }

.os__stages {
  display: grid;
  gap: clamp(1.25rem, 3vh, 2rem);
}

.os-stage {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  background: rgba(16, 16, 19, 0.65);
  transition: border-color 0.4s ease, background 0.4s ease;
}

.os-stage.is-active {
  border-color: rgba(255, 90, 44, 0.55);
  background: rgba(23, 23, 27, 0.92);
}

.os-stage__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  color: var(--sand);
}

.os-stage h3 {
  font-size: 1.4rem;
  margin: 0.4rem 0 0.6rem;
}

.os-stage p {
  color: var(--mist);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- AI operations ---------- */
.flowline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.4rem;
  margin-block: clamp(1.6rem, 4vw, 2.6rem);
}

.flowline__node {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 44, 0.35);
  background: rgba(255, 90, 44, 0.1);
  white-space: nowrap;
}

.flowline__arrow {
  color: var(--sand);
  font-family: var(--font-display);
}

.ai-benefit {
  border-left: 2px solid rgba(201, 169, 106, 0.5);
  padding: 0.2rem 0 0.2rem 1.2rem;
}

.ai-benefit h4 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
}

.ai-benefit p {
  font-size: 0.9rem;
  color: var(--mist);
  margin: 0;
}

/* ---------- Market map (constellation) ---------- */
.map-wrap {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-l);
  background: radial-gradient(60rem 30rem at 60% 30%, rgba(255, 90, 44, 0.06), transparent 65%), var(--graphite);
  padding: clamp(1rem, 3vw, 2.5rem);
  overflow-x: auto;
}

.market-map {
  width: 100%;
  min-width: 640px;
  display: block;
}

.market-map .grid-dot { fill: rgba(238, 240, 241, 0.07); }
.market-map .link-line { stroke: rgba(62, 214, 197, 0.22); stroke-width: 1; }

.market-map .node circle.core { fill: var(--sand); }
.market-map .node circle.halo {
  fill: none;
  stroke: rgba(255, 90, 44, 0.45);
}

.market-map .node.is-gcc circle.core { fill: var(--sand); }
.market-map .node.is-intl circle.core { fill: var(--mist); }
.market-map .node.is-ecom circle.core { fill: #6b675f; }

.market-map text {
  font-family: var(--font-display);
  font-size: 13px;
  fill: var(--ivory);
}

.market-map text.sub {
  font-family: var(--font-body);
  font-size: 10px;
  fill: var(--mist);
}

.market-map .node { cursor: default; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.4rem;
  font-size: 0.8125rem;
  color: var(--mist);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.map-legend i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  display: inline-block;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-left: clamp(1.5rem, 4vw, 2.5rem);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--line-dark);
}

.timeline__progress {
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 2px;
  height: 0;
  background: linear-gradient(var(--cobalt-bright), var(--teal));
}

.timeline__item {
  position: relative;
  padding-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1.5rem, 4vw, 2.5rem) - 4px);
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--sand);
}

.timeline__item.is-current::before {
  background: var(--cobalt-bright);
  border-color: var(--cobalt-bright);
  box-shadow: 0 0 0 5px rgba(255, 90, 44, 0.2);
}

.timeline__period {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
}

.timeline__item h3 {
  font-size: 1.25rem;
  margin: 0.35rem 0 0.2rem;
}

.timeline__role {
  font-size: 0.9rem;
  color: var(--cobalt-bright);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline__item p {
  color: var(--mist);
  font-size: 0.95rem;
  max-width: 46rem;
  margin: 0;
}

/* ---------- Quote ---------- */
.exec-quote {
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}

.exec-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.exec-quote blockquote .hl {
  color: var(--sand);
}

/* ---------- Insights ---------- */
.insight-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.7rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  background: rgba(16, 16, 19, 0.62);
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) ease;
}

.insight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 44, 0.4);
  color: inherit;
}

.insight-card__topic {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-family: var(--font-display);
}

.insight-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.insight-card p {
  font-size: 0.9rem;
  color: var(--mist);
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-cta {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

.contact-form {
  max-width: 40rem;
  margin: 2.5rem auto 0;
  display: grid;
  gap: 1.2rem;
  text-align: left;
}

.contact-form__row {
  display: grid;
  gap: 0.4rem;
}

.contact-form label {
  font-size: 0.875rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ivory);
  background: rgba(23, 23, 27, 0.75);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-s);
  transition: border-color var(--t-fast) ease;
}

.section--ivory .contact-form input,
.section--ivory .contact-form select,
.section--ivory .contact-form textarea {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line-light);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cobalt-bright);
}

.contact-form__hp {
  position: absolute !important;
  left: -9999px !important;
  height: 1px;
  overflow: hidden;
}

.contact-form__status {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-s);
  font-size: 0.95rem;
}

.contact-form__status--ok { background: rgba(255, 90, 44, 0.13); border: 1px solid rgba(255, 90, 44, 0.4); }
.contact-form__status--err { background: rgba(201, 106, 106, 0.12); border: 1px solid rgba(201, 106, 106, 0.4); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-dark);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  background: var(--ink);
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover { color: var(--ivory); }

.site-footer__meta {
  font-size: 0.8125rem;
  color: var(--mist);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

/* ---------- Content pages / prose ---------- */
.prose {
  max-width: 46rem;
}

.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45em; color: var(--mist); }
.section--ivory .prose li { color: rgba(11,13,16,0.75); }

.page-hero {
  padding-top: clamp(8rem, 18vh, 11rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}

/* ---------- Portrait ---------- */
.portrait-frame {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  max-width: 380px;
}

.portrait-frame img {
  display: block;
  width: 100%;
  filter: grayscale(1) contrast(1.05);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255, 90, 44, 0.14), transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ---------- Animation states (JS-gated) ----------
   All hidden states apply ONLY when <html class="js"> and the user
   accepts motion. No JS => everything visible. */
html.js:not(.reduced-motion) [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

html.js:not(.reduced-motion) [data-reveal="left"] { transform: translateX(-32px); }
html.js:not(.reduced-motion) [data-reveal="right"] { transform: translateX(32px); }
html.js:not(.reduced-motion) [data-reveal="scale"] { transform: scale(0.94); }

html.reduced-motion .scroll-hint::after { animation: none; }

/* Split headline lines (SplitText-lite applied by JS) */
.split-line {
  display: block;
  overflow: hidden;
}

.split-line > span {
  display: block;
}

/* ---------- WP alignment + misc compatibility ---------- */
.wp-block-group.section { padding-inline: 0; }

.wp-site-blocks > * { margin-block-start: 0; }

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

/* Search + archive simple lists */
.archive-list {
  display: grid;
  gap: 1.5rem;
  padding-top: 1rem;
}

.archive-list article {
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 1.5rem;
}

/* =============================================================
   V2 — Onyx & Gold motion layer
   ============================================================= */

/* Gold gradient text — used for hero accent + metric numerals */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Serif accents (Fraunces) — pull quotes and single accent words */
.serif-accent {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

.exec-quote blockquote {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0;
}

/* Oversized hero typography */
.hero__title.display-hero {
  font-size: clamp(2.8rem, 8.2vw, 6.8rem);
  letter-spacing: -0.02em;
  max-width: 14ch;
}

/* Hairline gold rules between dark sections */
.gold-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 44, 0.45), transparent);
}

/* Marble veining on light bands (subtle diagonal sheen) */
.section--ivory {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(170, 178, 183, 0.18) 44%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(120deg, #f0f2f3 0%, #e6e9ea 55%, #f1f3f4 100%);
}

/* ---------- Persistent 3D scene canvas ---------- */
.site-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Content sits above the scene; sections with a background occlude it.
   (.site-header and .mobile-menu are position:fixed with their own z-index.) */
.wp-site-blocks,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--ink);
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.85s;
}

.preloader.is-done {
  transform: translateY(-100%);
  visibility: hidden;
}

.preloader__mark {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 2rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.preloader__count {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.preloader__bar {
  width: min(240px, 50vw);
  height: 1px;
  background: var(--line-dark);
  overflow: hidden;
}

.preloader__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold-grad);
}

html.no-preloader .preloader { display: none; }

/* ---------- Page transition veil ---------- */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--ink);
  transform: translateY(101%);
  pointer-events: none;
}

.page-veil::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--gold-grad);
  opacity: 0.7;
}

/* ---------- Custom cursor (fine pointers only) ---------- */
@media (pointer: fine) {
  html.has-cursor { cursor: none; }
  html.has-cursor a,
  html.has-cursor button { cursor: none; }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 210;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--sand);
  }

  .cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 90, 44, 0.55);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  }

  .cursor-ring.is-hover {
    width: 54px;
    height: 54px;
    border-color: rgba(255, 122, 69, 0.9);
  }
}

html.reduced-motion .cursor-dot,
html.reduced-motion .cursor-ring,
html.reduced-motion .page-veil { display: none; }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.2rem;
}

.lang-switch a {
  font-size: 0.72rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--mist);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.lang-switch a:hover { color: var(--ivory); }

.lang-switch a[aria-current="true"] {
  background: rgba(255, 90, 44, 0.14);
  color: var(--sand);
}

/* ---------- Language pages ---------- */
[lang="ar"], .lang-ar {
  font-family: "IBM Plex Sans Arabic", var(--font-body);
  letter-spacing: 0;
}

[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4,
.lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar h4 {
  font-family: "IBM Plex Sans Arabic", var(--font-display);
  letter-spacing: 0;
  line-height: 1.3;
}

[dir="rtl"] .eyebrow::before { order: 2; }
[dir="rtl"] .pill-badge::after { content: "90"; }
[dir="rtl"] .split__list li { padding-left: 0; padding-right: 1.4rem; }
[dir="rtl"] .split__list li::before { left: auto; right: 0; }
[dir="rtl"] .timeline { padding-left: 0; padding-right: clamp(1.5rem, 4vw, 2.5rem); }
[dir="rtl"] .timeline::before, [dir="rtl"] .timeline__progress { left: auto; right: 0; }
[dir="rtl"] .timeline__item::before { left: auto; right: calc(-1 * clamp(1.5rem, 4vw, 2.5rem) - 4px); }

[lang="zh-CN"], .lang-zh {
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}

[lang="zh-CN"] h1, [lang="zh-CN"] h2, [lang="zh-CN"] h3,
.lang-zh h1, .lang-zh h2, .lang-zh h3 {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

/* ---------- Service cards ---------- */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  background: rgba(23, 23, 27, 0.72);
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 90, 44, 0.45);
  color: inherit;
}

.service-card__num {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.service-card h3 { font-size: 1.25rem; margin: 0; }

.service-card p {
  font-size: 0.92rem;
  color: var(--mist);
  margin: 0;
}

.service-card__link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sand);
}

/* Insight cards with featured images */
.insight-card img {
  border-radius: var(--radius-s);
  margin-bottom: 0.4rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

html.reduced-motion .scroll-progress { display: none; }

/* ---------- Employers marquee ---------- */
.marquee {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  padding-block: 1.1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marqueeSlide 36s linear infinite;
}

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

.marquee__track span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}

.marquee__track span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cobalt);
  opacity: 0.7;
}

@keyframes marqueeSlide {
  to { transform: translateX(-50%); }
}

html.reduced-motion .marquee__track { animation: none; }

/* ---------- Button shine sweep ---------- */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.btn:hover::before {
  transition: transform 0.7s ease;
  transform: translateX(120%);
}

/* Tilt needs its own transform context */
.case-card, .service-card, .insight-card { transform-style: preserve-3d; will-change: transform; }

/* =============================================================
   Bliex-inspired inner-page layout system (Eclipse colours)
   ============================================================= */

/* Pill badge above headlines */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  background: rgba(255, 90, 44, 0.09);
  border: 1px solid rgba(255, 90, 44, 0.32);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  margin-bottom: 1.4rem;
}

.pill-badge::after {
  content: "→";
  font-size: 0.85em;
  opacity: 0.8;
}

.section--ivory .pill-badge {
  color: var(--teal-deep);
  background: rgba(11, 110, 99, 0.06);
  border-color: rgba(11, 110, 99, 0.3);
}

/* Centered inner-page hero */
.page-hero--center {
  text-align: center;
}

.page-hero--center .lede {
  margin-inline: auto;
}

.page-hero--center .cta-row {
  justify-content: center;
}

/* Big stat numerals with small tags (Bliex stats band) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-dark);
}

@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .stats-row { grid-template-columns: 1fr; }
}

.stats-row .stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ivory);
}

.stats-row .stat span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--mist);
}

.stats-row .stat i {
  display: inline-block;
  font-style: normal;
  margin-top: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--teal);
  border: 1px solid rgba(62, 214, 197, 0.35);
  background: rgba(62, 214, 197, 0.07);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* Prose content becomes a big rounded card (Bliex card sections) */
.section > .container > .prose {
  max-width: none;
  background: var(--graphite);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 3.5rem);
}

.section > .container > .prose > *:first-child { margin-top: 0; }

.section > .container > .prose h2:first-child { margin-top: 0; }

.section--ivory > .container > .prose {
  background: var(--paper);
  border-color: var(--line-light);
  box-shadow: 0 24px 60px -40px rgba(6, 7, 8, 0.35);
}

.prose { max-width: none; }

.prose h2, .prose h3, .prose p, .prose ul { max-width: 52rem; }

/* Feature rows: text + visual, alternating */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  background: var(--graphite);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 3.5rem);
}

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
}

.feature-row--flip .feature-row__text { order: 2; }
.feature-row--flip .feature-row__visual { order: 1; }

@media (max-width: 860px) {
  .feature-row--flip .feature-row__text { order: 1; }
  .feature-row--flip .feature-row__visual { order: 2; }
}

.feature-row__text p {
  color: var(--mist);
  margin-bottom: 0;
}

.feature-row__visual {
  margin: 0;
}

.feature-row__visual img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line-dark);
}

/* FAQ accordion */
.faq {
  display: grid;
  gap: 0.9rem;
  max-width: 56rem;
}

.faq details {
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: border-color var(--t-fast) ease;
}

.faq details[open] {
  border-color: rgba(255, 90, 44, 0.4);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--sand);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  padding: 0 1.4rem 1.3rem;
  margin: 0;
  color: var(--mist);
  font-size: 0.96rem;
  max-width: 48rem;
}

/* =============================================================
   Landing-page components (industry pages)
   ============================================================= */

/* Center the text column inside prose cards (no more dead right half) */
.prose h2, .prose h3, .prose p, .prose ul {
  margin-inline: auto;
}

/* Hero trust chips */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 3.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  max-width: 46rem;
  margin-inline: auto;
}

.hero-chips .chip {
  border-color: var(--line-dark);
  color: var(--mist);
  background: rgba(21, 24, 27, 0.7);
}

.hero-chips .chip b {
  color: var(--teal);
  font-weight: 600;
}

/* Split header: big heading left, supporting copy right */
.header-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

@media (max-width: 860px) {
  .header-split { grid-template-columns: 1fr; align-items: start; }
}

.header-split .lede { margin-bottom: 0.4rem; }

/* Icon cells: columns divided by hairlines (Bliex style) */
.icon-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}

@media (max-width: 860px) {
  .icon-cells { grid-template-columns: 1fr; }
}

.icon-cell {
  padding: clamp(1.8rem, 3.5vw, 3rem) clamp(1.2rem, 2.5vw, 2.2rem);
  border-left: 1px solid var(--line-dark);
}

.icon-cell:first-child { border-left: 0; }

@media (max-width: 860px) {
  .icon-cell { border-left: 0; border-top: 1px solid var(--line-dark); }
  .icon-cell:first-child { border-top: 0; }
}

.icon-cell__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 90, 44, 0.09);
  border: 1px solid rgba(255, 90, 44, 0.3);
  margin-bottom: 1.4rem;
}

.icon-cell:nth-child(2) .icon-cell__icon {
  background: rgba(62, 214, 197, 0.07);
  border-color: rgba(62, 214, 197, 0.3);
}

.icon-cell__icon svg { display: block; }

.icon-cell h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.icon-cell p {
  color: var(--mist);
  font-size: 0.95rem;
  margin: 0;
  max-width: 30rem;
}

/* Numbered step cards */
.step-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  background: rgba(21, 24, 27, 0.72);
  position: relative;
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.step-card:hover::after { transform: scaleX(1); }

.step-card__num {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step-card h3 { font-size: 1.18rem; margin: 0; }

.step-card p {
  color: var(--mist);
  font-size: 0.92rem;
  margin: 0;
}

/* Closing CTA band with eclipse glow */
.cta-band {
  position: relative;
  overflow: clip;
  text-align: center;
  border-top: 1px solid var(--line-dark);
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40%;
  width: min(60rem, 120vw);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(50% 90% at 50% 100%, rgba(255, 90, 44, 0.22), rgba(62, 214, 197, 0.05) 60%, transparent 75%);
  pointer-events: none;
}

.cta-band .container { position: relative; }

.cta-band .lede { margin-inline: auto; }

/* ---------- Contact page (CRO layout) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  /* Form first on mobile: it is what visitors came for */
  .contact-grid .form-card { order: -1; }
}

.contact-aside .display-m { margin-bottom: 1.2rem; }

.next-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: nstep;
}

.next-steps li {
  position: relative;
  padding-left: 2.6rem;
  color: var(--mist);
  font-size: 0.97rem;
  counter-increment: nstep;
}

.next-steps li b { color: var(--ivory); }

.next-steps li::before {
  content: counter(nstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.aside-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--mist);
  font-size: 0.95rem;
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 1px;
  background: var(--teal);
}

.form-card {
  background: var(--graphite);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

.form-card .contact-form {
  margin-top: 0;
  max-width: none;
}

.form-card .contact-form .btn,
.form-card .contact-form button[type="submit"] {
  width: 100%;
  justify-content: center;
}

.form-note {
  font-size: 0.8rem;
  color: var(--mist);
  margin: 1rem 0 0;
  text-align: center;
}

/* Print: keep it readable */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .hero__canvas, .scroll-hint,
  .site-scene, .cursor-dot, .cursor-ring, .preloader, .page-veil { display: none; }
}
