/* =========================================================
   Khadim Solutions — Design System
   Ink + Paper + Bronze. Lora (display) / Inter (text).
   Structure: 1 Tokens · 2 Base · 3 Components · 4 Pages · 5 Motion & a11y
   ========================================================= */

@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic-var.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

/* =========================================================
   1. TOKENS
   Components only read SEMANTIC tokens (--bg, --fg, --accent…).
   Dark surfaces re-declare them (see "dark scope"), so every
   component works on light, dark, and always-dark sections.
   ========================================================= */
:root {
  color-scheme: light;

  /* Primitives */
  --ink-950: #070B14; --ink-900: #0B1120; --ink-800: #111A2E; --ink-700: #1A2540;
  --paper-50: #FFFFFF; --paper-100: #F7F5F0; --paper-200: #EFECE4;
  --bronze-300: #E2C696; --bronze-400: #D2B27F; --bronze-500: #9C7A45; --bronze-600: #8A6A38; --bronze-700: #7A5A2B;
  --blue-400: #6F8BC9; --blue-500: #4F78C4;

  /* Semantic — light theme */
  --bg: var(--paper-100);          /* page */
  --bg-alt: var(--paper-200);      /* tinted sections */
  --bg-raised: var(--paper-50);    /* "white" sections */
  --bg-deep: #0A1B5C;              /* always-dark sections (royal navy; near-black in the dark theme) */
  --sky-grad: linear-gradient(180deg, #1AB1FF 0%, #52C6FF 40%, #A9DEFF 75%, #D6EEFF 100%);
  --blue-grad: linear-gradient(160deg, #061A5C 0%, #071D7A 60%, #071D7A 100%);
  --surface: var(--paper-50);      /* cards */
  --surface-2: var(--paper-100);   /* inputs, hover fills */
  --fg: #1B2233;
  --fg-strong: var(--ink-900);
  --fg-muted: #5A6275;             /* 5.6:1 on --bg */
  --line: rgba(11, 17, 32, .12);
  --line-strong: rgba(11, 17, 32, .22);
  --accent: var(--bronze-500);          /* fills, borders, icons */
  --accent-text: var(--bronze-700);     /* small text  — 5.8:1 on --bg */
  --accent-display: #1A3FCB;  /* italic heading accents: royal blue, 7.2:1 on paper */
  --accent-soft: rgba(156, 122, 69, .12);
  --accent-line: rgba(156, 122, 69, .4);
  --focus: var(--bronze-700);
  --info: var(--blue-500);
  --success: #2F7A5B;
  --error: #B4442F;
  --chip-bg: var(--surface);
  --on-accent: var(--ink-900);

  /* Glassy buttons — palette (knobs live on .glassy below) */
  --button-1-surface: hsl(197, 88%, 58%);
  --button-2-surface: hsl(41, 96%, 56%);
  --button-text: hsl(200, 60%, 12%);

  /* Type */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-base-sm: .9375rem; --fs-base: 1rem; --fs-body: 1.0625rem;
  --fs-lg: 1.25rem; --fs-xl: 1.5rem;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600;
  --track-eyebrow: .16em;

  /* Spacing (4px base) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --tap: 44px;                     /* minimum touch target */

  /* Radius */
  --radius-sm: 8px; --radius: 14px; --radius-lg: 20px; --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(11, 17, 32, .06), 0 1px 1px rgba(11, 17, 32, .04);
  --shadow-md: 0 14px 32px -18px rgba(11, 17, 32, .28);
  --shadow-lg: 0 30px 60px -30px rgba(11, 17, 32, .38);

  /* Glass (only ever used on dark surfaces; see .glass) */
  --glass-solid: #131C31;                       /* fallback, no blur support */
  --glass-tint: rgba(17, 26, 46, .62);
  --glass-border: rgba(255, 255, 255, .14);
  --glass-hl: rgba(231, 196, 160, .24);         /* inner top highlight */
  --blur: 14px;

  /* Motion — 150–500ms, one easing family */
  --dur-1: 150ms; --dur-2: 250ms; --dur-3: 400ms; --dur-4: 500ms;
  --ease: cubic-bezier(.2, .7, .2, 1);          /* enter / hover */
  --ease-in: cubic-bezier(.4, 0, 1, 1);         /* exit */
  --ease-io: cubic-bezier(.4, 0, .2, 1);

  /* Chart palette — validated (dataviz validator) on --surface */
  --series-1: #b07f2e; --series-2: #2f6fd0; --series-3: #1ba17f; --series-4: #6250d6;
  /* Glass cards + ambient glows */
  --card-bg: linear-gradient(150deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .46));
  --card-bd: rgba(255, 255, 255, .8);
  --card-ring: rgba(11, 17, 32, .07);
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 22px 44px -26px rgba(11, 17, 32, .30);
  --stack-bg: rgba(255, 255, 255, .38);
  --card-blur: 14px;
  --card-pad: clamp(28px, 3vw, 40px);
  --gap: clamp(20px, 2.4vw, 32px);               /* gap between cards */
  --glow-1: rgba(156, 122, 69, .32); --glow-2: rgba(79, 120, 196, .24); --glow-3: rgba(27, 161, 127, .15);
  --chart-grid: #E1E0D9; --chart-axis: #C3C2B7; --chart-muted: #6B6A65; --chart-gap: var(--surface);
}

/* Dark scope — viewer chose dark theme, or the component is always dark */
:root[data-theme="dark"],
.section--dark, .cta-band, .site-footer, .callout, .svc-tile--dark, .migrate-row.head, .on-dark {
  --surface: #131C31;
  --surface-2: rgba(255, 255, 255, .04);
  --fg: #D7DCE6;
  --fg-strong: #FFFFFF;
  --fg-muted: #B8BFCE;              /* >= 4.5:1 even on the card over the brightest glow */
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --accent: var(--bronze-400);
  --accent-text: var(--bronze-400);
  --accent-display: var(--bronze-400);
  --accent-soft: rgba(210, 178, 127, .14);
  --accent-line: rgba(210, 178, 127, .4);
  --focus: var(--bronze-400);
  --info: #8FA8DE;
  --success: #5FBF95;
  --error: #F08A75;
  --chip-bg: rgba(255, 255, 255, .04);
  --card-bg: linear-gradient(150deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  --card-bd: rgba(255, 255, 255, .17);
  --card-ring: rgba(0, 0, 0, .35);
  --card-shadow: inset 0 2px 2px 0 rgba(231, 196, 160, .30), inset 0 -2px 2px 0 rgba(0, 0, 0, .25), 0 26px 50px -28px rgba(0, 0, 0, .75);
  --stack-bg: rgba(255, 255, 255, .04);
  --glow-1: rgba(210, 178, 127, .16); --glow-2: rgba(79, 120, 196, .28); --glow-3: rgba(31, 156, 123, .12);
  --shadow-md: 0 14px 32px -18px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .7);
  --series-1: #bf8730; --series-2: #5b8de0; --series-3: #1f9c7b; --series-4: #9085e9;
  --chart-grid: #232D45; --chart-axis: #34405C; --chart-muted: #8E97AB;
  color: var(--fg);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1932; --bg-alt: #0B132A; --bg-raised: #14203F; --bg-deep: #070C1A;
}

/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
body { margin: 0; font-family: var(--font-text); font-size: var(--fs-body); line-height: 1.65; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--fw-medium); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--bronze-400); color: var(--ink-900); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: #fff; color: var(--ink-900); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: var(--fw-semibold); transition: top var(--dur-2); }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(88px, 11vw, 150px); position: relative; isolation: isolate; }
.section::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(680px 440px at 6% 10%, var(--glow-1), transparent 70%),
  radial-gradient(760px 500px at 98% 52%, var(--glow-2), transparent 70%),
  radial-gradient(560px 380px at 42% 100%, var(--glow-3), transparent 70%); }
main > .section:nth-of-type(even)::before { background:
  radial-gradient(700px 460px at 94% 6%, var(--glow-1), transparent 70%),
  radial-gradient(760px 500px at 2% 62%, var(--glow-2), transparent 70%),
  radial-gradient(560px 380px at 60% 100%, var(--glow-3), transparent 70%); }
.section--tight { padding-block: clamp(64px, 8vw, 100px); }
.section--tint { background: var(--bg-alt); }
.section--white { background: var(--bg-raised); }
.section--dark { background: var(--bg-deep); color: var(--fg); --dot-bg: var(--bg-deep); }
.section--dark .lead, .section--dark p { color: var(--fg-muted); }
.section + .section:not(.section--tint):not(.section--dark):not(.section--white) { border-top: 1px solid var(--line); }
@media (min-width: 1600px) { :root { --container: 1320px; } }

/* Typography */
.display { font-family: var(--font-display); font-weight: 450; letter-spacing: -0.015em; line-height: 1.06; color: var(--fg-strong); font-optical-sizing: auto; }
h1.display { font-size: clamp(2.6rem, 6.2vw, 5.25rem); }
h2.display { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; }
h3.display { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.2; }
.display em { font-style: italic; color: var(--accent-display); }
.lead { font-size: clamp(1.08rem, 1.5vw, var(--fs-lg)); line-height: 1.6; color: var(--fg-muted); max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--accent-text); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow .num { font-variant-numeric: tabular-nums; opacity: .8; }
.text-muted { color: var(--fg-muted); }
.small { font-size: var(--fs-sm); }

/* =========================================================
   3. COMPONENTS
   ========================================================= */

/* ---------- Button ---------- */
/* ---------- Glassy buttons: frosted glass + cursor parallax ----------
   Markup (added by the build): <a class="btn glassy"><span class="glassy-in">Label</span></a>
   Palette   --button-1-surface, --button-2-surface, --button-text   (:root)
   Glass     --_frostiness, --_hover-blurriness, --_pressed-blurriness
   Motion    --_motion-factor (0-1), --_hover-offset, --_pressed-offset
   Geometry  --_padding, --_radius, --_transition-speed
   Hover states only apply on devices that can hover; focus and press always apply. */
.glassy {
  --_padding: 0 1.625rem;
  --_transition-speed: 200ms;
  --_hover-opacity: 0.4;
  --_pressed-opacity: 0.15;
  --_hover-blurriness: 5px;
  --_pressed-blurriness: 10px;
  --_frostiness: 0.3;
  --_hover-offset: 0.5rem;
  --_pressed-offset: 0.25rem;
  --_motion-factor: 0.1;
  --_radius: 1rem;
  --_min-h: 50px;
  --_surface: var(--button-1-surface);
  --_rest: 1;                       /* opacity of the coloured base at rest (0 = ghost) */
  --_ink: var(--button-text);
  --_ink-hover: var(--button-text);
  --_border: transparent;
  --_x-motion: 0px; --_y-motion: 0px;   /* set by main.js from the pointer */
  position: relative; isolation: isolate; display: inline-flex; padding: 0; border: 0; border-radius: var(--_radius);
  background: transparent; color: var(--_ink); font: inherit; font-size: var(--fs-base-sm); font-weight: var(--fw-semibold); letter-spacing: .01em;
  white-space: nowrap; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color var(--_transition-speed);
}
.glassy-in {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: var(--_min-h); padding: var(--_padding); border-radius: inherit; overflow: hidden;
  background-color: hsl(0 0% 100% / 0); -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background-color var(--_transition-speed), -webkit-backdrop-filter var(--_transition-speed), backdrop-filter var(--_transition-speed), translate var(--_transition-speed) var(--ease);
}
.glassy-in::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: url("data:image/svg+xml, %3Csvg viewBox='0 0 171 171' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.74' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); opacity: 0; transition: opacity var(--_transition-speed); }
.glassy::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--_border); pointer-events: none; transition: opacity var(--_transition-speed); }
.glassy::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background-color: var(--_surface); opacity: var(--_rest); transition: scale var(--_transition-speed), translate var(--_transition-speed), opacity var(--_transition-speed); animation: glassy-exit forwards var(--_transition-speed); }
.glassy svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease); }
.glassy:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.glassy:focus-visible:where(:not([disabled])) { color: var(--_ink-hover); }
.glassy:focus-visible:where(:not([disabled])) .glassy-in { outline: 1px solid hsl(0 0% 100% / .7); background-color: hsl(0 0% 100% / var(--_hover-opacity)); -webkit-backdrop-filter: blur(var(--_hover-blurriness)); backdrop-filter: blur(var(--_hover-blurriness)); translate: 0 calc(var(--_hover-offset) * -1); }
.glassy:focus-visible:where(:not([disabled])) .glassy-in::before { opacity: var(--_frostiness); }
.glassy:focus-visible:where(:not([disabled]))::before { opacity: 0; }
.glassy:focus-visible:where(:not([disabled]))::after { opacity: 1; scale: .95; translate: 0 .125rem; animation: glassy-enter forwards var(--_transition-speed); }
.btn:focus-visible:where(:not([disabled])) svg { transform: translateX(3px); }
@media (hover: hover) {
  .glassy:hover:where(:not([disabled])) { color: var(--_ink-hover); }
  .glassy:hover:where(:not([disabled])) .glassy-in { outline: 1px solid hsl(0 0% 100% / .7); background-color: hsl(0 0% 100% / var(--_hover-opacity)); -webkit-backdrop-filter: blur(var(--_hover-blurriness)); backdrop-filter: blur(var(--_hover-blurriness)); translate: 0 calc(var(--_hover-offset) * -1); }
  .glassy:hover:where(:not([disabled])) .glassy-in::before { opacity: var(--_frostiness); }
  .glassy:hover:where(:not([disabled]))::before { opacity: 0; }
  .glassy:hover:where(:not([disabled]))::after { opacity: 1; scale: .95; translate: 0 .125rem; animation: glassy-enter forwards var(--_transition-speed); }
  .btn:hover:where(:not([disabled])) svg { transform: translateX(3px); }
}
.glassy:active:where(:not([disabled])) .glassy-in { -webkit-backdrop-filter: blur(var(--_pressed-blurriness)); backdrop-filter: blur(var(--_pressed-blurriness)); background-color: hsl(0 0% 100% / var(--_pressed-opacity)); translate: 0 calc(var(--_pressed-offset) * -1); }
.glassy:active:where(:not([disabled]))::after { opacity: 1; scale: .875; translate: 0 .25rem; }
@keyframes glassy-enter { from { transform: translate(0, 0); } to { transform: translate(calc(var(--_x-motion) * var(--_motion-factor) * -1), calc(var(--_y-motion) * var(--_motion-factor) * -1)); } }
@keyframes glassy-exit { from { transform: translate(calc(var(--_x-motion) * var(--_motion-factor) * -1), calc(var(--_y-motion) * var(--_motion-factor) * -1)); } to { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .glassy::after, .glassy-in { animation: none !important; scale: none !important; translate: none !important; } }

/* Variants */
.btn--bronze { --_surface: var(--button-2-surface); }
.btn--ghost, .btn--ghost-light, .glassy--ghost { --_rest: 0; --_border: var(--line-strong); --_ink: var(--fg-strong); }
.btn--ghost-light { --_border: rgba(255, 255, 255, .28); --_ink: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font-size: var(--fs-base-sm); font-weight: var(--fw-semibold); color: var(--fg-strong); transition: gap var(--dur-2) var(--ease), color var(--dur-2); }
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--dur-2) var(--ease); }
.link-arrow:hover { gap: 12px; color: var(--accent-text); }
.section--dark .link-arrow, .svc-tile--dark .link-arrow { color: var(--accent); }

/* ---------- Glass ----------
   Use ONLY on dark, textured surfaces (header, hero stat cards, overlays).
   Never behind body copy on light pages, never nested, max 2 per viewport.
   Solid colour is the default; blur is an enhancement. */
.glass { background: var(--glass-solid); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-hl), var(--shadow-md); border-radius: var(--radius); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-tint); -webkit-backdrop-filter: blur(var(--blur)) saturate(140%); backdrop-filter: blur(var(--blur)) saturate(140%); }
}
@media (max-width: 760px) { :root { --blur: 8px; } }                 /* cheaper on phones */
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--glass-solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); color: var(--fg-strong); transition: background var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease); }
.site-header.is-scrolled { background: rgba(11, 17, 32, .97); box-shadow: 0 1px 0 var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: rgba(11, 17, 32, .8); -webkit-backdrop-filter: saturate(160%) blur(var(--blur)); backdrop-filter: saturate(160%) blur(var(--blur)); }
}
@media (prefers-reduced-transparency: reduce) { .site-header.is-scrolled { background: var(--ink-900); -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* backdrop-filter makes the header the containing block for the fixed mobile menu, so drop it while the menu is open */
.nav-open .site-header, .nav-open .site-header.is-scrolled { background: var(--ink-900); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.scroll-progress { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--bronze-500), var(--bronze-300)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress { display: block; animation: progress-grow linear both; animation-timeline: scroll(root block); }
  }
}
@keyframes progress-grow { to { transform: scaleX(1); } }

.brand { display: inline-flex; align-items: center; min-height: var(--tap); }
.brand-logo { display: block; height: 62px; width: auto; }
.brand-logo--ondark { display: none; }
:root[data-theme="dark"] .brand-logo--onlight { display: none; }
:root[data-theme="dark"] .brand-logo--ondark { display: block; }
@media (max-width: 560px) { .brand-logo { height: 52px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { --_padding: 0 .875rem; --_min-h: var(--tap); --_hover-offset: .25rem; --_pressed-offset: .125rem; --_border: transparent; --_ink: var(--fg); font-weight: var(--fw-medium); }
.nav-link[aria-current="page"] { --_ink: var(--fg-strong); }
.nav-link[aria-current="page"] .glassy-in::after { content: ""; position: absolute; left: .875rem; right: .875rem; bottom: 6px; height: 1px; background: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { --_padding: 0 1.25rem; --_min-h: var(--tap); --_hover-offset: .3rem; font-size: var(--fs-sm); }
.theme-toggle, .nav-toggle { --_radius: 999px; --_padding: 0; --_min-h: var(--tap); --_border: var(--line); --_hover-offset: .25rem; --_pressed-offset: .125rem; }
.theme-toggle .glassy-in, .nav-toggle .glassy-in { width: var(--tap); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav-toggle { display: none; }
.nav-toggle .bars { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: background var(--dur-1); }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform var(--dur-2) var(--ease); }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px; background: var(--bg-raised); border-top: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform var(--dur-3) var(--ease), opacity var(--dur-3) var(--ease), visibility var(--dur-3); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-link { --_radius: 0; --_padding: 0; --_ink-hover: var(--fg-strong); display: flex; border-bottom: 1px solid var(--line); font-size: var(--fs-lg); }
  .nav-link::before, .nav-link::after, .nav-link .glassy-in::before { display: none; }
  .nav-link .glassy-in { justify-content: flex-start; min-height: 56px; }
  .nav-link:hover .glassy-in, .nav-link:focus-visible .glassy-in, .nav-link:active .glassy-in { translate: none; outline: 0; background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-link[aria-current="page"] .glassy-in::after { display: none; }
  .nav-link[aria-current="page"] { --_ink: var(--accent); }
  .nav .btn { margin-top: 22px; align-self: flex-start; }
}
@media (min-width: 1181px) { .nav .btn { display: none; } }

/* ---------- Page hero (always dark) ---------- */
.page-hero { position: relative; background: var(--bg-deep); color: var(--fg); padding: calc(var(--header-h) + clamp(60px, 9vw, 120px)) 0 calc(clamp(70px, 9vw, 120px) + 56px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(900px 500px at 85% 10%, rgba(210, 178, 127, .13), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(76, 110, 180, .15), transparent 60%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%); }
.page-hero .lead { color: var(--fg-muted); margin-top: 26px; }
.page-hero .btn-row { margin-top: 40px; }
.page-hero--sub h1.display { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 18ch; }
.breadcrumb { display: flex; gap: 10px; font-size: var(--fs-sm); color: var(--fg-muted); margin-bottom: 28px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: var(--tap); margin-block: -12px; }
.breadcrumb a:hover { color: var(--fg-strong); }
.breadcrumb span[aria-hidden] { opacity: .5; }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--fg-muted); }
.hero-tags li { display: inline-flex; align-items: center; gap: 10px; }
.hero-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 540px; width: 100%; justify-self: end; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.hv-label { font-family: var(--font-text); font-size: 12.5px; font-weight: var(--fw-medium); fill: var(--hv-label, #E7EAF1); letter-spacing: .02em; }
.hv-core-label { font-family: var(--font-display); font-size: 17px; fill: #fff; }
.hv-core-sub { font-family: var(--font-text); font-size: 9px; letter-spacing: .22em; fill: var(--bronze-400); }
/* Glass phone illustration (Products hero): three stacked SVG layers drifting independently (transform-only) */
.hero-visual--phone { max-width: 560px; }
.pv-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.pv-back { animation: pv-drift-b 16s ease-in-out infinite; }
.pv-phone { animation: pv-drift-p 12s ease-in-out infinite; }
.pv-front { animation: pv-drift-f 9s ease-in-out -4s infinite; }
@keyframes pv-drift-b { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-6px, 8px) rotate(-.8deg); } }
@keyframes pv-drift-p { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-10px) rotate(.5deg); } }
@keyframes pv-drift-f { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -12px); } }
@media (prefers-reduced-motion: reduce) { .pv-layer { animation: none; will-change: auto; } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 440px; margin-top: 10px; }
}

/* ---------- Stat card strip (hero) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: clamp(56px, 7vw, 96px); }
.stat { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-5); transition: transform var(--dur-3) var(--ease), border-color var(--dur-3); }
.stat:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.stat-value { font-family: var(--font-text); font-size: clamp(2.25rem, 4vw, 3rem); font-weight: var(--fw-semibold); line-height: 1; letter-spacing: -0.02em; color: var(--fg-strong); }
.stat-label { font-size: var(--fs-sm); color: var(--fg-muted); line-height: 1.4; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Section head ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.section-head .lead { justify-self: end; }
.section-head--stack { grid-template-columns: 1fr; max-width: 820px; }
.section-head--stack .lead { justify-self: start; margin-top: 4px; }
.section-head--center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head--center .eyebrow { justify-content: center; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } .section-head .lead { justify-self: start; } }

/* ---------- Card base ---------- */
.card-lift { transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease), border-color var(--dur-3); }
@media (hover: hover) { .card-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }

/* ---------- Capability cards ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.cap-card { grid-column: span 4; position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 14px; padding: var(--card-pad); min-height: 280px; }
.cap-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(420px 220px at 100% 0%, var(--accent-soft), transparent 70%); opacity: 0; transition: opacity var(--dur-3) var(--ease); }
.cap-card:hover::before, .cap-card:focus-within::before { opacity: 1; }
.cap-grid > .cap-card { grid-column: span 3; }
.cap-card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--icon-grad, linear-gradient(135deg, #0B8FE8, #1237C8)); color: #fff; box-shadow: 0 8px 18px -8px rgba(18, 55, 200, .55); margin-bottom: 14px; transition: transform var(--dur-3) var(--ease); }
.cap-card:hover .icon { transform: translateY(-2px) scale(1.04); }
.cap-card .icon svg { width: 22px; height: 22px; }
.cap-card h3 { font-family: var(--font-display); font-size: 1.32rem; line-height: 1.25; letter-spacing: -0.005em; color: var(--fg-strong); }
.cap-card p { color: var(--fg-muted); font-size: var(--fs-base); }
.cap-card .link-arrow { margin-top: auto; font-size: var(--fs-sm); }
.cap-card .num { position: absolute; top: 28px; right: 30px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--fg-muted); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
@media (max-width: 1080px) { .cap-card, .cap-grid > .cap-card { grid-column: span 6; } }
@media (max-width: 640px) { .cap-card, .cap-grid > .cap-card { grid-column: span 12; min-height: 0; } }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.split--center { align-items: center; }
.split > .sticky { position: sticky; top: calc(var(--header-h) + 40px); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split > .sticky { position: static; } }

.feature-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-list .fl-idx { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--accent-text); padding-top: 4px; font-variant-numeric: tabular-nums; }
.feature-list h4 { font-size: var(--fs-body); font-weight: var(--fw-semibold); margin-bottom: 4px; color: var(--fg-strong); }
.feature-list p { font-size: var(--fs-base); color: var(--fg-muted); }

.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.check-list--single { grid-template-columns: 1fr; }
.check-list li { position: relative; padding-left: 30px; font-size: var(--fs-base); line-height: 1.5; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.check-list li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 4px; border-left: 1.5px solid var(--accent-text); border-bottom: 1.5px solid var(--accent-text); transform: rotate(-45deg); }
@media (max-width: 640px) { .check-list { grid-template-columns: 1fr; } }

.callout { margin-top: 36px; padding: 26px 28px; border-radius: var(--radius); background: var(--bg-deep); color: var(--fg-strong); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; border: 1px solid var(--line); }
.callout .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.callout .icon svg { width: 20px; height: 20px; }
.callout strong { display: block; font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 1.15rem; margin-bottom: 4px; }
.callout p { color: var(--fg-muted); font-size: var(--fs-base); }
.section--dark .callout { background: var(--surface); }

/* ---------- AI panel ---------- */
.ai-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.ai-card { padding: 30px; transition: border-color var(--dur-3), transform var(--dur-3) var(--ease), box-shadow var(--dur-3); }
.ai-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.ai-card .icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 18px; }
.ai-card .icon svg { width: 26px; height: 26px; }
.ai-card h4 { font-size: 1.03rem; font-weight: var(--fw-semibold); color: var(--fg-strong); margin-bottom: 6px; }
.ai-card p { font-size: var(--fs-base-sm); color: var(--fg-muted); line-height: 1.55; }
.ai-card--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .ai-cards { grid-template-columns: 1fr; } }

/* ---------- Service tiles (home) ---------- */
.svc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.svc-tile { display: flex; flex-direction: column; padding: var(--card-pad); transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease), border-color var(--dur-3); min-height: 260px; }
@media (hover: hover) { .svc-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); } }
.svc-tile.svc-tile--dark { background: var(--bg-deep); color: var(--fg); border-color: var(--bg-deep); }
:root[data-theme="dark"] .svc-tile.svc-tile--dark { background: var(--surface); border-color: var(--accent-line); }
.svc-tile.svc-tile--dark p { color: var(--fg-muted); }
.svc-tile .icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--icon-grad, linear-gradient(135deg, #0B8FE8, #1237C8)); color: #fff; box-shadow: 0 8px 18px -8px rgba(18, 55, 200, .5); margin-bottom: 26px; }
.svc-tile .icon svg { width: 24px; height: 24px; }
.svc-tile h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 10px; line-height: 1.25; color: var(--fg-strong); }
.svc-tile p { color: var(--fg-muted); font-size: var(--fs-base-sm); margin-bottom: 22px; }
.svc-tile .link-arrow { margin-top: auto; font-size: var(--fs-sm); }
@media (max-width: 960px) { .svc-tiles { grid-template-columns: repeat(2, 1fr); } .svc-tiles > .svc-tile--dark { grid-column: span 2; } }
@media (max-width: 640px) { .svc-tiles { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; position: relative; --dot-bg: var(--bg); }
.section--tint .steps { --dot-bg: var(--bg-alt); }
.section--white .steps { --dot-bg: var(--bg-raised); }
.section--dark .steps { --dot-bg: var(--bg-deep); }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-strong); }
.steps::after { background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--dur-4) var(--ease) .1s; }
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; padding-right: 22px; }
.step .dot { position: relative; z-index: 1; width: 47px; height: 47px; border-radius: 50%; display: grid; place-items: center; background: var(--dot-bg); border: 1px solid var(--line-strong); font-size: var(--fs-sm); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; color: var(--fg-strong); margin-bottom: 26px; transition: background var(--dur-2), color var(--dur-2), border-color var(--dur-2), transform var(--dur-3) var(--ease); }
.step:hover .dot { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: scale(1.06); }
.step h4 { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 1.22rem; margin-bottom: 8px; color: var(--fg-strong); }
.step p { font-size: var(--fs-base-sm); color: var(--fg-muted); line-height: 1.55; }
.steps--7 { grid-template-columns: repeat(7, 1fr); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--4 .step { padding-right: 36px; }
@media (max-width: 1080px) {
  .steps, .steps--7, .steps--4 { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .steps::before, .steps::after { display: none; }
  .step .dot { margin-bottom: 16px; }
}
@media (max-width: 560px) { .steps, .steps--7, .steps--4 { grid-template-columns: 1fr; } }

/* ---------- Migration table ---------- */
.migrate { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.migrate-row { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; padding: 18px 26px; border-bottom: 1px solid var(--line); font-size: var(--fs-base); transition: background var(--dur-2); }
.migrate-row:last-child { border-bottom: 0; }
.migrate-row.head { background: var(--bg-deep); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .14em; padding-block: 16px; }
.migrate-row.head span:last-child { color: var(--accent); }
.migrate-row .from { color: var(--fg-muted); }
.migrate-row .to { font-weight: var(--fw-semibold); color: var(--fg-strong); }
.migrate-row .arrow { color: var(--accent-text); display: grid; place-items: center; }
.migrate-row .arrow svg { width: 18px; height: 18px; }
.migrate-row:not(.head):hover { background: var(--surface-2); }
@media (max-width: 560px) { .migrate-row { grid-template-columns: 1fr 34px 1fr; padding: 16px; font-size: var(--fs-base-sm); } }

/* ---------- Ecosystem ---------- */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.eco-cell { padding: var(--card-pad); transition: border-color var(--dur-3); }
.eco-cell:hover { border-color: var(--accent-line); }
.eco-cell h4 { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 1.25rem; color: var(--fg-strong); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.eco-cell h4 svg { width: 20px; height: 20px; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: var(--radius-pill); font-size: .84rem; font-weight: var(--fw-medium); border: 1px solid var(--line); color: var(--fg); background: var(--chip-bg); }
@media (max-width: 960px) { .eco-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .eco-grid { grid-template-columns: 1fr; } }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.product { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease), border-color var(--dur-3); }
@media (hover: hover) { .product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); } }
.product-art { position: relative; aspect-ratio: 16 / 10; background: var(--ink-900); overflow: hidden; }
.product-art svg { width: 100%; height: 100%; }
.product-body { padding: 28px 30px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product h3 { font-family: var(--font-display); font-size: 1.55rem; color: var(--fg-strong); }
.product p { color: var(--fg-muted); font-size: var(--fs-base); }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: .04em; background: var(--bg-alt); color: var(--fg-strong); }
:root[data-theme="dark"] .badge { background: rgba(255, 255, 255, .06); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.badge--dev::before { background: var(--info); }
.product .link-arrow { margin-top: auto; font-size: var(--fs-sm); }
@media (max-width: 960px) { .product-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.why-item { padding: var(--card-pad); }

.why-item .icon { color: var(--accent); margin-bottom: 22px; transition: transform var(--dur-3) var(--ease); }
.why-item:hover .icon { transform: translateY(-3px); }
.why-item .icon svg { width: 26px; height: 26px; }
.why-item h4 { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 1.3rem; margin-bottom: 10px; color: var(--fg-strong); }
.why-item p { color: var(--fg-muted); font-size: var(--fs-base); }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Principle quote ---------- */
.principle { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding: clamp(28px, 4vw, 44px); }
.principle .quote-mark { font-family: var(--font-display); font-size: 80px; line-height: .7; color: var(--accent-display); }
.principle p { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.45; color: var(--fg-strong); }
.principle small { display: block; margin-top: 16px; font-family: var(--font-text); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); font-weight: var(--fw-semibold); }

/* ---------- Talent ---------- */
.talent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.talent-card { padding: 32px; transition: transform var(--dur-3) var(--ease), border-color var(--dur-3), box-shadow var(--dur-3); }
@media (hover: hover) { .talent-card:hover { transform: translateY(-3px); border-color: var(--accent-line); } }
.talent-card .icon { color: var(--accent); margin-bottom: 18px; }
.talent-card .icon svg { width: 26px; height: 26px; }
.talent-card h4 { font-size: var(--fs-body); font-weight: var(--fw-semibold); margin-bottom: 6px; color: var(--fg-strong); }
.talent-card p { font-size: var(--fs-base-sm); color: var(--fg-muted); line-height: 1.55; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--bg-deep); color: var(--fg); border-radius: calc(var(--radius) + 6px); padding: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; border: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 100% 0%, rgba(210, 178, 127, .2), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(76, 110, 180, .17), transparent 60%); }
.cta-band p { color: var(--fg-muted); margin-top: 20px; max-width: 54ch; }
.cta-band .btn-row { justify-content: flex-end; flex-wrap: nowrap; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; flex-wrap: wrap; } }

/* ---------- Skeleton loader (use while lazy content/charts load) ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--line); border-radius: var(--radius-sm); min-height: 1em; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); transform: translateX(-100%); animation: shimmer 1.4s var(--ease-io) infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* =========================================================
   4. PAGES
   ========================================================= */

/* ---------- Services page ---------- */
.svc-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.svc-nav { position: sticky; top: calc(var(--header-h) + 40px); }
.svc-nav p { font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--fg-muted); margin-bottom: 16px; }
.svc-nav a { display: flex; align-items: center; min-height: var(--tap); padding: 0 0 0 18px; font-size: var(--fs-base-sm); color: var(--fg-muted); border-left: 1px solid var(--line); transition: color var(--dur-2), border-color var(--dur-2); }
.svc-nav a:hover { color: var(--fg-strong); }
.svc-nav a.is-active { color: var(--fg-strong); font-weight: var(--fw-semibold); border-left: 2px solid var(--accent); padding-left: 17px; }
.svc-block { padding-bottom: clamp(70px, 8vw, 110px); margin-bottom: clamp(70px, 8vw, 110px); border-bottom: 1px solid var(--line); }
.svc-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.svc-block-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.svc-block-head .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ink-900); color: var(--bronze-400); display: grid; place-items: center; flex: none; }
:root[data-theme="dark"] .svc-block-head .icon { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.svc-block-head .icon svg { width: 24px; height: 24px; }
.svc-block-head .tag { font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.svc-block h2 { margin-bottom: 18px; }
.svc-block > .lead { margin-bottom: 40px; }
.pso { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.pso div { padding: 26px; background: var(--surface); }
.pso h5 { margin: 0 0 10px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); display: flex; align-items: center; gap: 8px; }
.pso p { font-size: var(--fs-base-sm); color: var(--fg-muted); line-height: 1.55; }
.svc-sub { font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-strong); margin: 34px 0 18px; }
@media (max-width: 1080px) { .svc-layout { grid-template-columns: 1fr; } .svc-nav { display: none; } }
@media (max-width: 760px) { .pso { grid-template-columns: 1fr; } }

.journey { display: grid; gap: 0; border-left: 1px solid var(--line-strong); margin-left: 12px; }
.journey li { position: relative; padding: 0 0 26px 34px; }
.journey li:last-child { padding-bottom: 0; }
.journey li::before { content: attr(data-n); position: absolute; left: -13px; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); font-size: 11.5px; font-weight: var(--fw-semibold); display: grid; place-items: center; color: var(--fg-strong); }
.journey strong { display: block; font-size: var(--fs-base); margin-bottom: 2px; color: var(--fg-strong); }
.journey p { font-size: var(--fs-base-sm); color: var(--fg-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-aside .feature-list { margin-top: 36px; }
.contact-detail { margin-top: 40px; display: grid; gap: 20px; }
.contact-detail div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.contact-detail .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent-text); }
.contact-detail .icon svg { width: 20px; height: 20px; }
.contact-detail small { display: block; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); font-weight: var(--fw-semibold); }
.contact-detail a, .contact-detail span { font-weight: var(--fw-medium); }
.contact-detail a:hover { color: var(--accent-text); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lg); }
.form-card h2 { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 1.7rem; margin-bottom: 6px; color: var(--fg-strong); }
.form-card > p { color: var(--fg-muted); font-size: var(--fs-base-sm); margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: var(--fw-semibold); color: var(--fg-strong); }
.field label .opt { font-weight: var(--fw-regular); color: var(--fg-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--fg-strong); font-size: var(--fs-base); transition: border-color var(--dur-2), background var(--dur-2), box-shadow var(--dur-2); -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238E97AB' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--fg-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field .err { display: none; font-size: 13px; color: var(--error); }
.field.has-error .err { display: block; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: var(--fs-sm); color: var(--fg-muted); line-height: 1.5; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.consent a { color: var(--fg-strong); text-decoration: underline; text-underline-offset: 3px; }
.consent.has-error { color: var(--error); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-actions .small { color: var(--fg-muted); }
.form-status { grid-column: 1 / -1; display: none; padding: 16px 18px; border-radius: var(--radius-sm); font-size: var(--fs-base-sm); }
.form-status.is-ok { display: block; background: rgba(47, 122, 91, .1); color: var(--success); border: 1px solid rgba(47, 122, 91, .3); }
.form-status.is-err { display: block; background: rgba(180, 68, 47, .08); color: var(--error); border: 1px solid rgba(180, 68, 47, .3); }
.form-status a { text-decoration: underline; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 1.6rem; margin: 48px 0 14px; color: var(--fg-strong); }
.prose h3 { font-size: 1.05rem; font-weight: var(--fw-semibold); margin: 28px 0 8px; }
.prose p, .prose li { color: var(--fg); margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose .note { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg-alt); border-left: 3px solid var(--accent); font-size: var(--fs-base-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: var(--fg-muted); padding: clamp(44px, 5vw, 60px) 0 24px; font-size: var(--fs-base-sm); }
.footer-top { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.4fr; gap: 28px 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
/* footer logo: the reversed (dark-surface) artwork, transparent and compact */
.footer-logo { display: inline-block; margin-bottom: 14px; transition: transform var(--dur-3) var(--ease); }
.footer-logo img { display: block; width: clamp(120px, 12vw, 150px); height: auto; }
@media (hover: hover) { .footer-logo:hover { transform: translateY(-3px); } }
.footer-contact li { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.fc-label { display: block; flex: 0 0 100%; margin-top: 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-strong); }
.fc-sep { margin-inline: 6px; color: var(--accent); font-weight: 700; }   /* "|" between the two phone numbers */
.footer-col a { overflow-wrap: anywhere; }
.footer-brand p { max-width: 36ch; line-height: 1.6; }
.footer-col h4 { position: relative; font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: #fff; margin-bottom: 8px; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--bronze-400), rgba(210, 178, 127, .15)); }
/* ---------- Footer links: a golden underline that flashes end to end ----------
   Rest: a thin gold underline (drawn as ::after so it can animate).
   Hover/focus: a bright flash travels along that same line from one end to the other,
   on a loop, with small star glints twinkling on the line. Touch devices keep the plain
   underline. */
.footer-col a, .footer-bottom nav a { --_px: 0px; --_pb: 3px; --_ub: calc(var(--_pb) - 2px); position: relative; display: inline-block; padding-block: var(--_pb); line-height: 22px; text-decoration: none;
  transition: color var(--dur-2); }
.footer-bottom nav a { --_px: 8px; --_pb: 5px; padding-inline: 8px; }
@media (pointer: coarse) { .footer-col a, .footer-bottom nav a { --_pb: 11px; } }
.footer-col a::after, .footer-bottom nav a::after { content: ""; position: absolute; left: var(--_px); right: var(--_px); bottom: var(--_ub); height: 1px; border-radius: 1px; pointer-events: none;
  transform-origin: 50% 100%; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 246, 220, .9) 38%, #FFFFFF 50%, rgba(255, 246, 220, .9) 62%, rgba(255, 255, 255, 0) 100%) -82% 0 / 45% 100% no-repeat,
    linear-gradient(90deg, rgba(210, 178, 127, .85), rgba(210, 178, 127, .85)); }
.footer-col a::before, .footer-bottom nav a::before { content: ""; position: absolute; left: var(--_px); right: var(--_px); bottom: calc(var(--_ub) - 6.5px); height: 14px; pointer-events: none; opacity: 0;
  filter: drop-shadow(0 0 3px #FFE9A8);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFF1C4' d='M12 0c.8 6.4 5.6 11.2 12 12-6.4.8-11.2 5.6-12 12-.8-6.4-5.6-11.2-12-12 6.4-.8 11.2-5.6 12-12z'/%3E%3C/svg%3E") 10% 50% / 10px 10px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFF1C4' d='M12 0c.8 6.4 5.6 11.2 12 12-6.4.8-11.2 5.6-12 12-.8-6.4-5.6-11.2-12-12 6.4-.8 11.2-5.6 12-12z'/%3E%3C/svg%3E") 55% 50% / 8px 8px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFF1C4' d='M12 0c.8 6.4 5.6 11.2 12 12-6.4.8-11.2 5.6-12 12-.8-6.4-5.6-11.2-12-12 6.4-.8 11.2-5.6 12-12z'/%3E%3C/svg%3E") 90% 50% / 10px 10px no-repeat; }
.footer-col a:focus-visible, .footer-bottom nav a:focus-visible { color: #fff; }
.footer-col a:focus-visible::after, .footer-bottom nav a:focus-visible::after { transform: scaleY(1.7); box-shadow: 0 0 7px rgba(226, 198, 150, .55); animation: underline-flash 1.2s ease-in-out infinite; }
.footer-col a:focus-visible::before, .footer-bottom nav a:focus-visible::before { animation: glint-hop 1.2s steps(1) infinite, glint-twinkle .6s ease-in-out infinite alternate; }
@media (hover: hover) {
  .footer-col a:hover, .footer-bottom nav a:hover { color: #fff; }
  .footer-col a:hover::after, .footer-bottom nav a:hover::after { transform: scaleY(1.7); box-shadow: 0 0 7px rgba(226, 198, 150, .55); animation: underline-flash 1.2s ease-in-out infinite; }
  .footer-col a:hover::before, .footer-bottom nav a:hover::before { animation: glint-hop 1.2s steps(1) infinite, glint-twinkle .6s ease-in-out infinite alternate; }
}
@keyframes underline-flash { from { background-position: -82% 0, 0 0; } to { background-position: 182% 0, 0 0; } }
@keyframes glint-twinkle { from { opacity: .1; } to { opacity: 1; } }
@keyframes glint-hop {
  0%   { background-position: 10% 50%, 55% 50%, 90% 50%; }
  33%  { background-position: 32% 50%, 78% 50%, 14% 50%; }
  66%  { background-position: 66% 50%, 22% 50%, 48% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-col a::before, .footer-bottom nav a::before { display: none; }
  .footer-col a::after, .footer-bottom nav a::after { animation: none !important; }
}
.footer-bottom { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding-top: 14px; font-size: .84rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
@media (max-width: 1120px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 10rem); line-height: 1; color: var(--accent); }

/* ---------- Glass cards ----------
   One shared surface for every content card. Translucent gradient + bright
   top edge + hairline ring; blur is an enhancement (desktop only, where cards
   are few per viewport) and the surface stays legible without it. */
.cap-card, .ai-card, .svc-tile, .eco-cell, .product, .why-item, .talent-card, .case-card, .tier-card, .principle, .form-card, .chart, .kpi {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow), 0 0 0 1px var(--card-ring);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .cap-card, .ai-card, .svc-tile, .eco-cell, .product, .why-item, .talent-card, .case-card, .tier-card, .principle, .form-card, .chart, .kpi { background: var(--surface); }
}
@media (min-width: 861px) {
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .cap-card, .ai-card, .svc-tile, .eco-cell, .product, .why-item, .talent-card, .case-card, .tier-card, .principle, .form-card, .chart, .kpi { -webkit-backdrop-filter: blur(var(--card-blur)) saturate(150%); backdrop-filter: blur(var(--card-blur)) saturate(150%); }
  }
}
@media (prefers-reduced-transparency: reduce) {
  .cap-card, .ai-card, .svc-tile, .eco-cell, .product, .why-item, .talent-card, .case-card, .tier-card, .principle, .form-card, .chart, .kpi { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (hover: hover) {
  .cap-card:hover, .ai-card:hover, .svc-tile:hover, .product:hover, .talent-card:hover, .case-card:hover, .tier-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--card-shadow), 0 0 0 1px var(--card-ring), var(--shadow-lg); }
}
.cap-card { transition: transform var(--dur-3) var(--ease), border-color var(--dur-3), box-shadow var(--dur-3); }
.section--dark .callout { background: var(--card-bg); border: 1px solid var(--card-bd); border-radius: var(--radius-lg); box-shadow: var(--card-shadow), 0 0 0 1px var(--card-ring); }
.product { overflow: hidden; }
.svc-tile.svc-tile--dark { background: linear-gradient(150deg, rgba(11, 17, 32, .94), rgba(26, 37, 64, .86)); border-color: var(--accent-line); }
:root[data-theme="dark"] .svc-tile.svc-tile--dark { background: linear-gradient(150deg, rgba(210, 178, 127, .24), rgba(210, 178, 127, .07)); }

/* ---------- Card stack: translucent layers drifting behind a featured card ----------
   <div class="card-stack"><div class="…card…"></div><i class="top-light" aria-hidden="true"></i></div>
   The two layers behind are ::before/::after (transform-only animation, 20s and 26s).
   .top-light is an optional amber lamp on the top edge (use on dark cards only). */
.card-stack { position: relative; isolation: isolate; --stack-radius: var(--radius-lg); }
.card-stack::before, .card-stack::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: var(--stack-radius);
  background: var(--stack-bg); border: 1px solid var(--card-bd); box-shadow: var(--card-shadow), 0 0 0 1px var(--card-ring); transform-origin: 20% 80%; }
.card-stack::before { transform: translate(6px, 12px) rotate(-.7deg); animation: stack-drift-a 20s ease-in-out infinite; }
.card-stack::after { transform: translate(-8px, 18px) rotate(.9deg); animation: stack-drift-b 26s ease-in-out -9s infinite; }
@keyframes stack-drift-a {
  0%, 100% { transform: translate(6px, 12px) rotate(-.7deg); }
  30% { transform: translate(-9px, 6px) rotate(.8deg) scale(1.005); }
  65% { transform: translate(8px, 14px) rotate(-1.1deg); }
}
@keyframes stack-drift-b {
  0%, 100% { transform: translate(-8px, 18px) rotate(.9deg); }
  35% { transform: translate(10px, 9px) rotate(-.8deg); }
  70% { transform: translate(-5px, 20px) rotate(1.2deg) scale(.995); }
}
.top-light { position: absolute; z-index: 3; left: 50%; top: -2px; width: min(40%, 280px); height: 4px; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: #FFF6DC; pointer-events: none;
  box-shadow: 0 0 1px 1px #FFC78E, 0 1px 3px 1px rgba(255, 148, 41, .45), 0 4px 14px 0 rgba(255, 158, 61, .45), 0 10px 24px 6px rgba(255, 128, 0, .2); }
.top-light::after { content: ""; position: absolute; left: 50%; top: 4px; width: 240%; height: 110px; transform: translateX(-50%); background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(255, 158, 61, .22), transparent 100%); }
@media (max-width: 640px) { .top-light::after { height: 70px; } }
@media (prefers-reduced-motion: reduce) {
  .card-stack::before { animation: none; transform: translate(6px, 12px) rotate(-.7deg); }
  .card-stack::after { animation: none; transform: translate(-8px, 18px) rotate(.9deg); }
}
@media (forced-colors: active) { .card-stack::before, .card-stack::after, .top-light { display: none; } }


/* =========================================================
   BRIGHT MODE (light theme): sky hero, white header, royal-blue dark sections.
   The dark theme keeps its near-black look untouched.
   ========================================================= */
.hero-visual { --hv-label: #E7EAF1; --hv-node: #111A2E; --hv-node-stroke: rgba(255, 255, 255, .16); --hv-icon: #D2B27F; --hv-pill: rgba(11, 17, 32, .85); --hv-pill-stroke: rgba(255, 255, 255, .1);
  --hv-o1: rgba(255, 255, 255, .10); --hv-o2: rgba(210, 178, 127, .28); --hv-ring: rgba(255, 255, 255, .07); --hv-link: rgba(255, 255, 255, .10); --hv-spoke: rgba(210, 178, 127, .30);
  --hv-core: #0B1120; --hv-core-stroke: rgba(210, 178, 127, .6); --hv-core2: rgba(255, 255, 255, .08); --hv-pulse: #D2B27F; --hv-glow: #D2B27F; }
.hv-pulse { fill: var(--hv-pulse); } .hv-node { fill: var(--hv-node); stroke: var(--hv-node-stroke); } .hv-icon { stroke: var(--hv-icon); }
.hv-pill { fill: var(--hv-pill); stroke: var(--hv-pill-stroke); } .hv-glow { stop-color: var(--hv-glow); }
.hv-o1 { stroke: var(--hv-o1); } .hv-o2 { stroke: var(--hv-o2); } .hv-ring { stroke: var(--hv-ring); } .hv-link { stroke: var(--hv-link); } .hv-spoke { stroke: var(--hv-spoke); }
.hv-core { fill: var(--hv-core); stroke: var(--hv-core-stroke); } .hv-core2 { stroke: var(--hv-core2); }

:root:not([data-theme="dark"]) .page-hero {
  --fg: #0A1F5C; --fg-strong: #061746; --fg-muted: #1E3478;
  --line: rgba(10, 31, 92, .18); --line-strong: rgba(10, 31, 92, .32);
  --accent: #1237C8; --accent-text: #08195A; --accent-display: #1237C8; --accent-soft: rgba(18, 55, 200, .12); --accent-line: rgba(18, 55, 200, .4);
  --focus: #0A3FB8;
  --glass-solid: #FFFFFF; --glass-tint: rgba(255, 255, 255, .58); --glass-border: rgba(255, 255, 255, .9); --glass-hl: rgba(255, 255, 255, .95);
  --shadow-md: 0 14px 32px -18px rgba(10, 31, 92, .35);
  background: var(--sky-grad); color: var(--fg);
}
:root:not([data-theme="dark"]) .page-hero::before { background:
  radial-gradient(900px 520px at 88% 0%, rgba(255, 255, 255, .55), transparent 62%),
  radial-gradient(700px 500px at 0% 100%, rgba(255, 255, 255, .4), transparent 62%); }
:root:not([data-theme="dark"]) .page-hero::after { opacity: .22; }
:root:not([data-theme="dark"]) .page-hero .btn--ghost-light { --_ink: var(--ink-900); --_border: rgba(10, 31, 92, .35); }
:root:not([data-theme="dark"]) .page-hero .hero-visual { --hv-label: #0A1F5C; --hv-node: #FFFFFF; --hv-node-stroke: rgba(10, 31, 92, .22); --hv-icon: #1237C8; --hv-pill: rgba(255, 255, 255, .92); --hv-pill-stroke: rgba(10, 31, 92, .14);
  --hv-o1: rgba(10, 31, 92, .30); --hv-o2: rgba(255, 255, 255, .8); --hv-ring: rgba(10, 31, 92, .16); --hv-link: rgba(10, 31, 92, .20); --hv-spoke: rgba(18, 55, 200, .45);
  --hv-core: #0A1B5C; --hv-core-stroke: #FFB020; --hv-core2: rgba(255, 255, 255, .22); --hv-pulse: #FFFFFF; --hv-glow: #FFFFFF; }

/* white header in the light theme */
:root:not([data-theme="dark"]) .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 rgba(10, 31, 92, .08); }
:root:not([data-theme="dark"]) .site-header.is-scrolled { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 8px 26px -18px rgba(10, 31, 92, .45); }
:root:not([data-theme="dark"]) .nav-open .site-header, :root:not([data-theme="dark"]) .nav-open .site-header.is-scrolled { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root:not([data-theme="dark"]) .theme-toggle:hover, :root:not([data-theme="dark"]) .nav-toggle:hover { background: rgba(10, 31, 92, .06); }

/* royal-blue "dark" sections */
:root:not([data-theme="dark"]) .section--dark, :root:not([data-theme="dark"]) .cta-band { background: var(--blue-grad); --glow-1: rgba(255, 196, 110, .10); --glow-2: rgba(90, 160, 255, .10); --glow-3: rgba(40, 200, 170, .06); }
:root:not([data-theme="dark"]) .section--dark { --dot-bg: #071D7A; }
:root:not([data-theme="dark"]) .section--dark .steps { --dot-bg: #071D7A; }
.svc-tile.svc-tile--dark { background: linear-gradient(150deg, #071D7A, #061A5C); }
:root[data-theme="dark"] .svc-tile.svc-tile--dark { background: linear-gradient(150deg, rgba(210, 178, 127, .24), rgba(210, 178, 127, .07)); }

/* curved hand-off from the hero into the first section */
.page-hero + section { position: relative; margin-top: -56px; border-radius: 50% 50% 0 0 / 56px 56px 0 0; overflow: clip; }
.page-hero + section:not(.section--tint):not(.section--white):not(.section--dark) { background: var(--bg); }
.page-hero + .section { padding-top: calc(clamp(88px, 11vw, 150px) + 56px); }
.page-hero + .section--tight { padding-top: calc(clamp(64px, 8vw, 100px) + 56px); }

/* colourful icon chips */
.cap-grid > .cap-card:nth-child(4n+2) .icon, .svc-tiles > .svc-tile:nth-child(4n+2) .icon { --icon-grad: linear-gradient(135deg, #7C4DFF, #D3329B); }
.cap-grid > .cap-card:nth-child(4n+3) .icon, .svc-tiles > .svc-tile:nth-child(4n+3) .icon { --icon-grad: linear-gradient(135deg, #E5640A, #BF3B00); }
.cap-grid > .cap-card:nth-child(4n+4) .icon, .svc-tiles > .svc-tile:nth-child(4n+4) .icon { --icon-grad: linear-gradient(135deg, #0E9F7C, #0A7FA8); }

/* glossy sparkles beside the home headline */
.hero-copy { position: relative; }
.hero-sparks { position: absolute; right: clamp(8px, 10vw, 150px); top: -78px; width: 100px; height: 100px; pointer-events: none; z-index: 1; }
.hero-spark { position: absolute; filter: drop-shadow(0 6px 10px rgba(255, 150, 0, .45)); will-change: transform; }
.hero-spark--a { width: 64px; height: 64px; right: 0; top: 22px; animation: spark-float 7s ease-in-out infinite; }
.hero-spark--b { width: 34px; height: 34px; left: 0; top: 0; animation: spark-float 5s ease-in-out -2s infinite reverse; }
@keyframes spark-float { 0%, 100% { transform: translateY(0) rotate(-6deg) scale(1); } 50% { transform: translateY(-8px) rotate(8deg) scale(1.06); } }
@media (max-width: 960px) { .hero-sparks { top: -64px; right: 6px; } .hero-spark--a { top: 0; width: 52px; height: 52px; } .hero-spark--b { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-spark { animation: none; will-change: auto; } }


/* ---------- Policy pages ---------- */
.policy-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.policy-toc { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; }
.policy-toc p { font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--fg-strong); margin-bottom: 10px; }
.policy-toc a { display: flex; align-items: center; min-height: 36px; padding: 2px 0 2px 16px; font-size: var(--fs-sm); line-height: 1.35; color: var(--fg-muted); border-left: 1px solid var(--line); transition: color var(--dur-2), border-color var(--dur-2); }
.policy-toc a:hover { color: var(--fg-strong); border-color: var(--accent); }
.policy-body.prose { max-width: 840px; }
.policy-body section { scroll-margin-top: calc(var(--header-h) + 16px); }
.policy-body section:first-of-type h2 { margin-top: 0; }
.policy-body h2 { font-size: 1.45rem; }
.policy-body strong { color: var(--fg-strong); }
.policy-body code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--bg-alt); color: var(--fg-strong); }
.policy-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; margin: 0 0 36px; padding: 20px 22px; border-radius: var(--radius); background: var(--card-bg); border: 1px solid var(--line); }
.policy-meta dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }
.policy-meta dd { margin: 2px 0 0; font-weight: var(--fw-semibold); color: var(--fg-strong); }
.table-wrap { overflow-x: auto; margin: 18px 0 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.policy-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--fs-sm); }
.policy-table th, .policy-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--fg); }
.policy-table thead th { background: var(--bg-alt); color: var(--fg-strong); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.policy-table tbody th { font-weight: var(--fw-semibold); color: var(--fg-strong); width: 26%; }
.policy-table tr:last-child th, .policy-table tr:last-child td { border-bottom: 0; }
.policy-body .form-card { margin-top: 20px; padding: clamp(22px, 3vw, 32px); }
.policy-body .form-card h3 { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 1.35rem; margin: 0 0 18px; color: var(--fg-strong); }
@media (max-width: 960px) { .policy-layout { grid-template-columns: 1fr; } .policy-toc { display: none; } }
.cd-links { display: flex; flex-wrap: wrap; align-items: center; }
.cd-links .fc-sep { margin-inline: 8px; color: var(--accent); }

/* ---------- Privacy choices (banner + dialog) ---------- */
.consent-banner { position: fixed; z-index: 150; left: 16px; bottom: 16px; width: min(560px, calc(100vw - 32px)); padding: 22px 24px; border-radius: var(--radius-lg); background: var(--surface); color: var(--fg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); animation: consent-in var(--dur-4) var(--ease) both; }
@keyframes consent-in { from { opacity: 0; transform: translateY(14px); } }
.consent-banner h2, .consent-dialog h2 { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 1.3rem; color: var(--fg-strong); margin: 0 0 8px; }
.consent-banner p, .consent-dialog p { font-size: var(--fs-sm); line-height: 1.55; color: var(--fg-muted); }
.consent-banner a, .consent-dialog a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.consent-dialog h2:focus { outline: none; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.consent-banner .btn, .consent-dialog .btn { --_min-h: var(--tap); --_padding: 0 1.1rem; --_hover-offset: .25rem; font-size: var(--fs-sm); }
.consent-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-lg); overflow: hidden; }
.consent-dialog::backdrop { background: rgba(6, 23, 70, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.consent-dialog-inner { padding: 28px; max-height: calc(100vh - 34px); overflow-y: auto; }
.consent-cat { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; padding: 16px 0; margin-top: 12px; border-top: 1px solid var(--line); }
.consent-cat h3 { font-size: var(--fs-base); font-weight: var(--fw-semibold); color: var(--fg-strong); margin: 0 0 4px; }
.consent-cat label { cursor: pointer; }
.consent-note { margin-top: 8px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--fg); }
.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; margin-top: 2px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch-ui { position: absolute; inset: 0; border-radius: 999px; background: #7B8599; transition: background var(--dur-2); }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform var(--dur-2) var(--ease); }
.switch input:checked + .switch-ui { background: #1237C8; }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .switch-ui { opacity: .55; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 560px) { .consent-banner { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 18px; } .consent-dialog-inner { padding: 20px; } .consent-actions .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .consent-banner { animation: none; } }
@media (forced-colors: active) { .switch-ui { background: ButtonText; } .switch input:checked + .switch-ui { background: Highlight; } }


/* ---------- Footer social icons ---------- */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; color: var(--fg); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); transition: transform var(--dur-2) var(--ease), color var(--dur-2), border-color var(--dur-2), background var(--dur-2), box-shadow var(--dur-2); }
.social svg { width: 20px; height: 20px; }
@media (hover: hover) { .social a:hover { transform: translateY(-3px); color: var(--bronze-300); border-color: var(--accent-line); background: var(--accent-soft); box-shadow: 0 8px 20px -10px rgba(210, 178, 127, .6); } }
.social a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 640px) { .site-footer { padding-bottom: 84px; } }

/* ---------- Scroll up / down (left side) ---------- */
.scroll-nav { position: fixed; z-index: 110; left: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.scroll-nav[hidden] { display: none; }
/* completely hidden (not focusable, not announced) until the visitor has scrolled a few sections */
.scroll-nav { opacity: 0; visibility: hidden; transition: opacity var(--dur-3) var(--ease), visibility 0s linear var(--dur-3); }
.scroll-nav.is-visible { opacity: 1; visibility: visible; transition: opacity var(--dur-3) var(--ease), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .scroll-nav, .scroll-nav.is-visible { transition: none; } }
.scroll-nav button { display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border-radius: 50%; cursor: pointer; color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(10, 27, 92, .88); box-shadow: 0 10px 24px -10px rgba(10, 31, 92, .6); transition: transform var(--dur-2) var(--ease), opacity var(--dur-2), background var(--dur-2); }
.scroll-nav svg { width: 20px; height: 20px; }
.scroll-nav button:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .scroll-nav button:not(:disabled):hover { transform: scale(1.08); background: #1237C8; } }
.scroll-nav button:active:not(:disabled) { transform: scale(.94); }
.scroll-nav button:focus-visible { outline: 2px solid var(--bronze-300); outline-offset: 3px; }
/* narrower screens have no spare side gutter: move the arrows to the bottom-left corner, side by side */
@media (max-width: 1200px) { .scroll-nav { top: auto; bottom: 14px; left: 12px; transform: none; flex-direction: row; } }
@media (max-width: 640px) { .scroll-nav { left: 8px; bottom: 12px; gap: 6px; } .scroll-nav button { opacity: .9; } .scroll-nav button:disabled { opacity: .3; } }
:root[data-theme="dark"] .scroll-nav button { background: rgba(19, 28, 49, .92); border-color: var(--line-strong); }

/* ---------- Ask Khadim chat ---------- */
.chat-launcher { position: fixed; z-index: 140; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px 0 16px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; cursor: pointer; font: inherit; font-size: var(--fs-base-sm); font-weight: var(--fw-semibold); color: #fff; background: linear-gradient(135deg, #1237C8, #0A2290); box-shadow: 0 16px 34px -12px rgba(10, 34, 144, .75), inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2); }
.chat-launcher svg { width: 24px; height: 24px; }
@media (hover: hover) { .chat-launcher:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(10, 34, 144, .85), inset 0 1px 0 rgba(255, 255, 255, .3); } }
.chat-launcher:active { transform: scale(.97); }
.chat-launcher:focus-visible { outline: 3px solid var(--bronze-300); outline-offset: 3px; }
.chat-open .chat-launcher { display: none; }

.chat-panel { position: fixed; z-index: 160; right: 18px; bottom: 18px; display: flex; flex-direction: column; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 36px)); height: min(640px, calc(100dvh - 36px)); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); color: var(--fg); border: 1px solid var(--line-strong); box-shadow: 0 30px 70px -20px rgba(6, 23, 70, .6); }
.chat-panel[hidden] { display: none; }
.chat-panel.is-in { animation: chat-in var(--dur-3) var(--ease) both; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; color: #fff; background: linear-gradient(135deg, #0A2290, #1237C8); }
.chat-head > div { flex: 1; min-width: 0; }
.chat-head h2 { margin: 0; font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 1.15rem; color: #fff; line-height: 1.2; }
.chat-head p { margin: 2px 0 0; font-size: 12px; color: rgba(255, 255, 255, .85); }
.chat-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .16); flex: none; }
.chat-close { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; flex: none; transition: background var(--dur-2); }
.chat-close:hover { background: rgba(255, 255, 255, .16); }
.chat-close:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); overscroll-behavior: contain; }
.chat-log:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.msg { display: flex; max-width: 100%; }
.msg--user { justify-content: flex-end; }
.msg .bubble { max-width: 92%; padding: 11px 14px; border-radius: 16px; font-size: var(--fs-sm); line-height: 1.5; overflow-wrap: anywhere; }
.msg--bot .bubble { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-top-left-radius: 4px; box-shadow: var(--shadow-sm); }
.msg--user .bubble { background: #1237C8; color: #fff; border-top-right-radius: 4px; }
.bubble p { margin: 0 0 8px; color: inherit; }
.bubble p:last-child { margin-bottom: 0; }
.bubble a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; font-weight: var(--fw-medium); }
.bubble strong { color: var(--fg-strong); }
.chat-list { margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.chat-list li { display: block; line-height: 1.45; }
.chat-sub { display: block; font-size: 12.5px; color: var(--fg-muted); margin-top: 1px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chat-chip { min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; font-weight: var(--fw-medium); color: var(--fg-strong); background: var(--surface-2); border: 1px solid var(--line-strong); transition: background var(--dur-2), border-color var(--dur-2), transform var(--dur-1); }
.chat-chip:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.chat-chip:active { transform: scale(.97); }
.chat-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (pointer: coarse) { .chat-chip { min-height: var(--tap); } }
.chat-form { display: grid; gap: 10px; margin-top: 10px; }
.chat-field label { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--fg-strong); }
.chat-field input, .chat-field select, .chat-field textarea { width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--fg-strong); font: inherit; font-size: 14px; }
.chat-field textarea { resize: vertical; min-height: 76px; }
.chat-field input:focus, .chat-field select:focus, .chat-field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.chat-field [aria-invalid="true"] { border-color: var(--error); }
.chat-err { display: block; min-height: 0; font-size: 12px; color: var(--error); }
.chat-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 12.5px; line-height: 1.45; color: var(--fg-muted); }
.chat-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #1237C8; }
.chat-status { font-size: 13px; color: var(--fg); }
.chat-status.is-err { color: var(--error); }
.chat-submit { min-height: 44px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-size: 14px; font-weight: var(--fw-semibold); color: #fff; background: linear-gradient(135deg, #1237C8, #0A2290); transition: transform var(--dur-1), opacity var(--dur-2); }
.chat-submit:active:not(:disabled) { transform: scale(.98); }
.chat-submit:disabled { opacity: .6; cursor: progress; }
.chat-submit:focus-visible { outline: 3px solid var(--bronze-300); outline-offset: 2px; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input input { flex: 1; min-width: 0; min-height: var(--tap); padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--fg-strong); font: inherit; font-size: 15px; }
.chat-input input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-send { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: #1237C8; flex: none; transition: transform var(--dur-1); }
.chat-send:active { transform: scale(.94); }
.chat-send:focus-visible { outline: 3px solid var(--bronze-300); outline-offset: 2px; }
.chat-note { margin: 0; padding: 0 14px 10px; font-size: 11.5px; line-height: 1.4; color: var(--fg-muted); background: var(--surface); }
@media (max-width: 560px) {
  .chat-panel { inset: 0; width: 100%; height: 100vh; height: 100dvh; border-radius: 0; border: 0; }
  .chat-launcher { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .chat-panel.is-in { animation: none; } }
@media (forced-colors: active) { .chat-launcher, .chat-panel, .chat-submit { border: 1px solid CanvasText; } }


/* =========================================================
   HOME HERO — fits one screen (headline, copy, buttons, diagram and stat cards visible
   before any scrolling). Sizes follow the screen HEIGHT as well as its width.
   The first section overlaps the hero's last 56px with a curve, hence the extra bottom padding.
   ========================================================= */
.page-hero--home { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + clamp(12px, 2.6vh, 36px)) 0 calc(56px + clamp(14px, 2.6vh, 34px)); }
.page-hero--home .container { width: 100%; }
.page-hero--home .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); }
.page-hero--home .eyebrow { margin-bottom: clamp(10px, 2vh, 20px); }
.page-hero--home h1.display { font-size: clamp(2.25rem, min(5vw, 9vh), 4.5rem); line-height: 1.05; max-width: 15ch; }
.page-hero--home .lead { margin-top: clamp(12px, 2.4vh, 24px); font-size: clamp(1.02rem, min(1.5vw, 2.6vh), 1.25rem); max-width: 46ch; letter-spacing: .01em; }
.page-hero--home .btn-row { margin-top: clamp(16px, 3.4vh, 36px); }
.page-hero--home .hero-tags { margin-top: clamp(14px, 3vh, 32px); padding-top: clamp(10px, 2vh, 18px); }
.page-hero--home .hero-visual { width: min(100%, 520px, 52vh); max-width: none; }
.page-hero--home .stats { margin-top: clamp(18px, 3.8vh, 44px); gap: clamp(10px, 1.6vw, 20px); }
.page-hero--home .stat { padding: clamp(12px, 2vh, 20px) clamp(14px, 1.6vw, 22px); gap: 2px; }
.page-hero--home .stat-value { font-size: clamp(1.7rem, min(3vw, 5.2vh), 2.6rem); }
.page-hero--home .stat-label { font-size: clamp(.78rem, min(1vw, 1.9vh), .875rem); line-height: 1.3; }
.page-hero--home .hero-sparks { top: -30px; right: clamp(0px, 3vw, 40px); width: 90px; height: 90px; }
.page-hero--home .hero-spark--a { width: 54px; height: 54px; top: 18px; }
.page-hero--home .hero-spark--b { width: 28px; height: 28px; }
@media (max-height: 790px) and (min-width: 961px) { .page-hero--home .hero-tags { display: none; } }

/* Tablets and phones: one column. The decorative diagram is dropped on screens too short to hold it
   so the headline, copy, buttons and stat cards are all on the first screen. */
@media (max-width: 960px) {
  .page-hero--home .hero-grid { grid-template-columns: 1fr; }
  .page-hero--home h1.display { max-width: 18ch; font-size: clamp(2.1rem, min(8.2vw, 6.4vh), 3.4rem); }
  .page-hero--home .hero-tags { display: none; }
  .page-hero--home .stats { grid-template-columns: repeat(2, 1fr); }
  .page-hero--home .hero-sparks { top: -34px; right: 6px; }
  .page-hero--home .hero-spark--b { display: none; }
}
@media (max-width: 960px) and (max-height: 1199px) { .page-hero--home .hero-visual { display: none; } }
@media (max-width: 960px) and (min-height: 1200px) { .page-hero--home .hero-visual { width: min(100%, 360px); margin-top: 0; } }
/* short phones (e.g. 360x740): a little tighter again */
@media (max-width: 960px) and (max-height: 780px) {
  .page-hero--home h1.display { font-size: clamp(1.85rem, min(8vw, 6vh), 3rem); }
  .page-hero--home .lead { font-size: 1rem; }
  .page-hero--home .stats { margin-top: 16px; gap: 8px; }
  .page-hero--home .stat { padding: 9px 12px; }
  .page-hero--home .stat-value { font-size: 1.5rem; }
  .page-hero--home .stat-label { font-size: .75rem; line-height: 1.25; -webkit-line-clamp: 2; }
}
@media (max-width: 480px) {
  .page-hero--home .hero-sparks { right: -6px; top: -26px; width: 44px; height: 44px; }
  .page-hero--home .hero-spark--a { width: 38px; height: 38px; top: 4px; right: 0; }
  .page-hero--home .btn-row { gap: 10px; }
  .page-hero--home .btn-row .btn { min-height: 46px; flex: 1 1 100%; }
  .page-hero--home .stat-label { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* =========================================================
   5. MOTION & ACCESSIBILITY
   ========================================================= */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-4) var(--ease), transform var(--dur-4) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 60ms; } .reveal-d2 { transition-delay: 120ms; } .reveal-d3 { transition-delay: 180ms; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hv-orbit { transform-origin: 270px 270px; animation: spin 120s linear infinite; }
.hv-orbit-rev { transform-origin: 270px 270px; animation: spin 180s linear infinite reverse; }

/* Cross-document page transitions (progressive enhancement; Chromium/Safari) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out var(--dur-1) var(--ease-in) both; }
  ::view-transition-new(root) { animation: vt-in var(--dur-2) var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .steps::after { transform: none; }
  .scroll-progress { display: none; }
}

/* Windows high-contrast / forced colours */
@media (forced-colors: active) {
  .btn, .glass, .card-lift, .svc-tile, .product, .talent-card, .stat { border: 1px solid CanvasText; }
  .scroll-progress { display: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; } .mt-s { margin-top: 18px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.mb-m { margin-bottom: 32px; }
.center { text-align: center; }
.maxw-sm { max-width: 640px; }

/* ---------- Case studies ---------- */
.callout--inline { margin-bottom: var(--gap); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.case-card { display: flex; flex-direction: column; gap: 14px; padding: var(--card-pad); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease), border-color var(--dur-3); }
@media (hover: hover) { .case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); } }
.case-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.case-flag { font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.case-card h3 { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; color: var(--fg-strong); }
.case-profile { font-size: var(--fs-sm); color: var(--fg-muted); font-style: italic; }
.case-facts { display: grid; gap: 14px; margin: 0; }
.case-facts dt { font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.case-facts dd { margin: 0; font-size: var(--fs-base-sm); color: var(--fg-muted); line-height: 1.55; }
.case-focus { padding: 14px 16px; border-radius: var(--radius-sm, 12px); background: var(--bg-alt); color: var(--fg-strong); font-weight: var(--fw-semibold); font-size: var(--fs-base-sm); }
.case-focus span { display: block; font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.case-card .link-arrow { margin-top: auto; font-size: var(--fs-sm); }
@media (max-width: 1180px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- Proposal writing: engagement levels ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.tier-card { display: flex; flex-direction: column; gap: 14px; padding: var(--card-pad); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease), border-color var(--dur-3); }
@media (hover: hover) { .tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); } }
.tier-card h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--fg-strong); }
.tier-best { font-size: var(--fs-base-sm); color: var(--fg-muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tier-best strong { color: var(--fg-strong); }
@media (max-width: 960px) { .tier-grid { grid-template-columns: 1fr; } }

/* ---------- Home: proposal writing promo card ---------- */
.promo-card { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3.5vw, 44px); align-items: center; padding: clamp(28px, 4.5vw, 52px); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--accent-line); background: linear-gradient(150deg, #0A2BA6, #061A5C); color: var(--fg); box-shadow: var(--shadow-lg); transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease); }
:root[data-theme="dark"] .promo-card { background: linear-gradient(150deg, rgba(210, 178, 127, .24), rgba(210, 178, 127, .07)), var(--surface); }
.promo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 300px at 100% 0%, rgba(255, 255, 255, .16), transparent 65%); }
@media (hover: hover) { .promo-card:hover { transform: translateY(-4px); } }
.promo-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.promo-icon svg { width: 34px; height: 34px; }
.promo-tag { display: inline-block; padding: 5px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .16); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.promo-title { font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.2; color: #fff; font-weight: var(--fw-regular, 400); }
.promo-title em { font-style: italic; color: var(--accent-display); }
.promo-body p { margin-top: 12px; max-width: 62ch; color: var(--fg-muted); }
.promo-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.promo-points li { padding: 6px 13px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .28); font-size: .84rem; font-weight: var(--fw-medium); color: #fff; }
@media (max-width: 960px) { .promo-card { grid-template-columns: 1fr; } .promo-icon { width: 56px; height: 56px; border-radius: 16px; } }

/* ---------- Recruitment & staffing page ---------- */
.fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform var(--dur-3) var(--ease), border-color var(--dur-3), box-shadow var(--dur-3) var(--ease); }
.fact::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--dur-4) var(--ease); }
.fact.is-in::after { transform: scaleX(1); }
@media (hover: hover) { .fact:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-lg); } }
.fact-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--accent-display); font-variant-numeric: tabular-nums; }
.fact-label { font-size: var(--fs-base-sm); color: var(--fg-muted); }
@media (max-width: 960px) { .fact-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .fact-strip { grid-template-columns: 1fr; } }

.steps--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .steps--5 { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; } }
@media (max-width: 560px) { .steps--5 { grid-template-columns: 1fr; } }

.marquee { overflow: hidden; margin-top: 20px; -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; width: max-content; }
.marquee-group { display: flex; gap: 12px; padding-right: 12px; flex-shrink: 0; }
.marquee .chip { white-space: nowrap; padding: 10px 18px; font-size: .95rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }

.talent-grid .talent-card.reveal:nth-child(3n+2) { transition-delay: 70ms; }
.talent-grid .talent-card.reveal:nth-child(3n+3) { transition-delay: 140ms; }
.talent-card .icon { transition: transform var(--dur-3) var(--ease); }
.talent-card:hover .icon { transform: translateY(-3px) rotate(-4deg) scale(1.06); }

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee-scroll 38s linear infinite; }
  .steps--pulse.is-in .step .dot { animation: dot-ping 700ms var(--ease) both; }
  .steps--pulse.is-in .step:nth-child(1) .dot { animation-delay: .15s; }
  .steps--pulse.is-in .step:nth-child(2) .dot { animation-delay: .45s; }
  .steps--pulse.is-in .step:nth-child(3) .dot { animation-delay: .75s; }
  .steps--pulse.is-in .step:nth-child(4) .dot { animation-delay: 1.05s; }
  .steps--pulse.is-in .step:nth-child(5) .dot { animation-delay: 1.35s; }
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
@keyframes dot-ping { 0% { box-shadow: 0 0 0 0 var(--accent-line); } 60% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; justify-content: center; }
  .marquee-group { flex-wrap: wrap; justify-content: center; }
  .marquee-group:nth-child(2) { display: none; }
}

/* =========================================================
   Journey: scroll-stacked cards, sliding steps, animated scenes
   ========================================================= */
.journey-section { overflow: clip; }
.journey-header { max-width: 700px; margin: 0 auto 64px; text-align: center; }
.journey-header .eyebrow { justify-content: center; }
.journey-header .lead { margin-top: 14px; }
.journey-stack { max-width: 1202px; margin: 0 auto; padding-bottom: 80px; }
.journey-card { position: sticky; top: calc(var(--header-h) + 14px); display: flex; min-height: 520px; gap: 40px; padding: 40px; overflow: hidden; color: var(--fg); background: linear-gradient(118deg, #071D7A, #061A5C); border: 1px solid var(--accent-line); border-radius: calc(var(--radius) + 4px); transform-origin: center top; will-change: transform; }
:root[data-theme="dark"] .journey-card { background: linear-gradient(118deg, rgba(210, 178, 127, .22), rgba(210, 178, 127, .06)), var(--surface); }
.journey-card + .journey-card { margin-top: 32px; box-shadow: 0 -20px 45px rgba(6, 26, 92, .35); }
.stage-column { position: relative; z-index: 1; width: 34%; display: flex; flex-direction: column; justify-content: space-between; }
.stage-label { color: var(--accent); font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.stage-column h3 { margin: 12px 0 8px; font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.05; letter-spacing: -0.01em; font-weight: var(--fw-medium); color: #fff; }
.stage-column p { color: var(--fg-muted); font-size: 1.05rem; }
.card-watermark { position: absolute; right: 16px; bottom: -54px; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .12); font-family: var(--font-display); font-size: 260px; font-weight: 700; line-height: 1; pointer-events: none; }
.handoff { align-self: flex-start; padding: 7px 12px; border: 1px solid var(--accent-line); border-radius: 999px; color: var(--accent); font: 13px ui-monospace, monospace; }
.handoff b { display: inline-block; margin-left: 6px; }
.step-list { position: relative; z-index: 1; flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; align-self: center; }
.journey-step { position: relative; display: flex; gap: 16px; min-height: 108px; opacity: 0; transform: translateX(16px); }
.journey-step:not(:last-child)::before { content: ""; position: absolute; top: 44px; bottom: 0; left: 21px; width: 1px; background: var(--accent-line); }
.step-icon { position: relative; z-index: 1; flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--accent-line); border-radius: 12px; color: var(--accent); background: rgba(255, 255, 255, .08); }
.step-icon svg { width: 21px; height: 21px; }
.step-title { color: #fff; font-size: 1.2rem; font-weight: var(--fw-semibold); line-height: 1.3; }
.step-content p { margin: 5px 0 12px; color: var(--fg-muted); font-size: .95rem; line-height: 1.45; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 4px 9px; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 500; vertical-align: 2px; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.success-check { color: #4ADE80; }
.service-grid { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: center; }
.service-tile { display: flex; min-height: 120px; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--accent-line); border-radius: 12px; color: var(--accent); background: rgba(255, 255, 255, .07); opacity: 0; transform: translateY(14px); transition: border-color .2s, background .2s; }
.service-tile svg { width: 26px; height: 26px; }
.service-tile span { color: #fff; font-size: .95rem; font-weight: var(--fw-semibold); }
.service-tile:hover { background: rgba(255, 255, 255, .14); }

/* scenes */
.stage-visual { display: block; width: 100%; max-width: 320px; margin: 22px auto 12px; overflow: visible; color: var(--accent); }
.stage-visual .visual-draw, .stage-visual .document rect, .stage-visual .track-ring, .stage-visual .progress-arc, .stage-visual .rocket-trail, .stage-visual .signature-writing, .stage-visual .calendar-ring { stroke-dasharray: 1; stroke-dashoffset: 1; }
.stage-visual .calendar-dots, .stage-visual .call-window, .stage-visual .faces, .stage-visual .sound-wave, .stage-visual .rec-dot, .stage-visual .stamp, .stage-visual .stars, .stage-visual .rocket, .stage-visual .ticks, .stage-visual .sprint-number, .stage-visual .sprint-dot, .stage-visual .signature-base, .stage-visual .document { opacity: 0; }

/* final (no-motion / no-JS) state */
.no-js .journey-step, .no-js .service-tile { opacity: 1; transform: none; }
.no-js .stage-visual * { opacity: 1 !important; stroke-dashoffset: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .journey-step, .service-tile { opacity: 1; transform: none; }
  .stage-visual * { opacity: 1 !important; stroke-dashoffset: 0 !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .journey-card.is-in .journey-step { animation: step-in .6s ease forwards; animation-delay: var(--step-delay); }
  .journey-card.is-in .step-icon { animation: icon-pop .55s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--step-delay); }
  .journey-card.is-in .service-tile { animation: step-in .6s ease forwards; }
  .journey-card.is-in .service-tile:nth-child(2) { animation-delay: .08s; } .journey-card.is-in .service-tile:nth-child(3) { animation-delay: .16s; }
  .journey-card.is-in .service-tile:nth-child(4) { animation-delay: .24s; } .journey-card.is-in .service-tile:nth-child(5) { animation-delay: .32s; } .journey-card.is-in .service-tile:nth-child(6) { animation-delay: .4s; }
  .live-badge i { animation: badge-pulse 1s infinite; }
  .handoff b { animation: nudge-x 1.4s ease-in-out infinite; }

  .is-in .stage-visual .visual-draw { animation: visual-draw .65s ease forwards; }
  .is-in .stage-visual .calendar-dots { animation: visual-fade .5s .65s ease forwards; }
  .is-in .stage-visual .calendar-ring { animation: visual-draw .6s 1.05s ease forwards; }
  .is-in .stage-visual .call-window { animation: slide-call .6s 1.25s ease forwards; }
  .is-in .stage-visual .faces { animation: visual-fade .35s 1.75s ease forwards; }
  .is-in .stage-visual .sound-wave, .is-in .stage-visual .rec-dot { animation: visual-fade .3s 2.05s ease forwards; }
  .is-active .stage-visual-calendar .sound-wave { animation: talk 1.6s ease-in-out infinite; }
  .is-in .stage-visual .document { animation: document-in .7s .3s ease forwards; }
  .is-in .stage-visual .document rect { animation: visual-draw .9s .3s ease forwards; }
  .is-in .stage-visual .signature-base { animation: visual-fade .3s 1.1s ease forwards; }
  .is-in .stage-visual .signature-writing { animation: visual-draw 1.2s 1.25s ease-in-out forwards; }
  .is-in .stage-visual .stamp { animation: stamp-in .6s 2.45s cubic-bezier(.22, 1.4, .36, 1) forwards; transform-box: fill-box; transform-origin: center; }
  .is-in .stage-visual .track-ring { animation: visual-draw 1s .2s ease forwards; opacity: 1; }
  .is-in .stage-visual .ticks, .is-in .stage-visual .sprint-number, .is-in .stage-visual .sprint-dot { animation: visual-fade .4s .9s ease forwards; }
  .is-in .stage-visual .progress-arc { animation: visual-draw 1.6s .7s ease forwards; }
  .is-active .stage-visual-sprint .sprint-dot { animation: visual-fade .4s .9s ease forwards, orbit-dot 4s 1.2s linear infinite; transform-origin: 160px 105px; }
  .is-in .stage-visual .rocket-trail { animation: visual-draw 1.4s .4s ease forwards; }
  .is-in .stage-visual .stars { animation: twinkle .8s 1.2s ease forwards; }
  .is-in .stage-visual .rocket { animation: visual-fade .5s .6s ease forwards; }
  .is-active .stage-visual-rocket .rocket-body { animation: bob 2s 1.1s ease-in-out infinite; }
  .is-active .stage-visual-rocket .exhaust { animation: flicker .5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
}

@keyframes step-in { to { opacity: 1; transform: none; } }
@keyframes icon-pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
@keyframes badge-pulse { 50% { opacity: .35; } }
@keyframes nudge-x { 50% { transform: translateX(5px); } }
@keyframes visual-draw { to { stroke-dashoffset: 0; } }
@keyframes visual-fade { to { opacity: 1; } }
@keyframes slide-call { 0% { opacity: 0; transform: translateX(25px); } 100% { opacity: 1; transform: none; } }
@keyframes document-in { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes stamp-in { 0% { opacity: 0; transform: scale(2) rotate(-18deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes talk { 50% { opacity: .3; } }
@keyframes orbit-dot { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes flicker { 50% { transform: scaleY(.7); opacity: .7; } }
@keyframes twinkle { 0% { opacity: 0; } 50% { opacity: .4; } 100% { opacity: 1; } }

/* tablet / phone: plain stacked cards, no sticky overlap */
@media (max-width: 960px) {
  .journey-card, .journey-card + .journey-card { position: relative; top: auto; display: block; min-height: 0; margin-top: 24px; padding: 28px 24px; box-shadow: none; transform: none !important; }
  .stage-column { width: auto; gap: 28px; }
  .step-list { margin-top: 36px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 36px; }
  .service-tile { min-height: 104px; padding: 14px; }
  .card-watermark { right: 10px; bottom: -20px; font-size: 150px; }
  .journey-header { margin-bottom: 40px; }
}

/* =========================================================
   Talent orbit (home): rotating rings of round portraits
   ========================================================= */
.orbit-wrap { container-type: inline-size; width: 100%; max-width: 480px; margin-inline: auto; }
.orbit { position: relative; width: 100%; aspect-ratio: 1; }
.orbit-ring { position: absolute; inset: 0; }
.orbit-track { position: absolute; top: 50%; left: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed var(--line-strong); opacity: .7; }
.orbit-slot { position: absolute; top: 50%; left: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); transform: rotate(var(--a)) translate(var(--r)) rotate(calc(var(--a) * -1)); }
.orbit-pop, .orbit-person { display: block; width: 100%; height: 100%; }
.orbit-person img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2.5px solid var(--bg-raised, #fff); box-shadow: 0 6px 18px -4px rgba(10, 31, 92, .35); background: var(--bg-alt); }
.orbit-person { transition: transform var(--dur-3) var(--ease); }
.orbit-person:hover img { box-shadow: 0 8px 22px -2px rgba(18, 55, 200, .5); }

.orbit-core { position: absolute; top: 50%; left: 50%; width: 22cqw; height: 22cqw; transform: translate(-50%, -50%); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.2cqw; color: #fff; background: linear-gradient(150deg, #0A2BA6, #061A5C); border: 1px solid var(--accent-line); box-shadow: 0 14px 34px -10px rgba(6, 26, 92, .6); z-index: 2; transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease); }
.orbit-core:hover { transform: translate(-50%, -50%) scale(1.05); }
.orbit-core-icon { display: grid; place-items: center; width: 6cqw; height: 6cqw; color: #fff; }
.orbit-core-icon svg { width: 100%; height: 100%; }
.orbit-core strong { font-family: var(--font-display); font-size: 3.3cqw; line-height: 1; font-weight: var(--fw-medium); color: #fff; }
.orbit-core small { font-size: 2.2cqw; line-height: 1.2; color: rgba(255, 255, 255, .78); display: inline-flex; align-items: center; gap: .6cqw; }
.orbit-core small svg { width: 1.8cqw; height: 1.8cqw; }
:root[data-theme="dark"] .orbit-core { background: linear-gradient(150deg, rgba(210, 178, 127, .3), rgba(210, 178, 127, .1)), var(--surface); }

.orbit-pulse { position: absolute; top: 50%; left: 50%; width: 22cqw; height: 22cqw; border-radius: 50%; border: 2px solid var(--accent); transform: translate(-50%, -50%) scale(1); opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  .orbit-fwd { animation: orbit-turn linear infinite; }
  .orbit-rev { animation: orbit-turn-back linear infinite; }
  .orbit-person.orbit-fwd { animation-name: orbit-turn; }
  .orbit-person.orbit-rev { animation-name: orbit-turn-back; }
  .orbit:hover .orbit-ring, .orbit:hover .orbit-person { animation-play-state: paused; }
  .orbit-pulse { animation: orbit-pulse 3.2s ease-out infinite; }
  .orbit-pulse--2 { animation-delay: 1.6s; }
  .orbit-wrap .orbit-pop { opacity: 0; transform: scale(.7); }
  .orbit-wrap.is-in .orbit-pop { animation: orbit-pop .5s cubic-bezier(.175, .885, .32, 1.2) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
}
.no-js .orbit-pop { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .orbit-pop { opacity: 1; transform: none; } }

@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes orbit-turn-back { to { transform: rotate(-360deg); } }
@keyframes orbit-pop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes orbit-pulse { 0% { transform: translate(-50%, -50%) scale(1); opacity: .55; } 100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; } }

/* home talent section layout */
.talent-split .talent-points { margin-top: 26px; }
.talent-chips { margin-top: clamp(36px, 5vw, 56px); text-align: center; }
.talent-chips .chips { justify-content: center; }
