/* ==========================================================================
   Tensorcraft: design system
   Dark, quiet, premium. Deep navy surfaces with restrained blue highlights.
   ========================================================================== */

:root {
  --bg: #05070d;
  --bg-2: #070b15;
  --surface: #0a1020;
  --surface-2: #0e1629;
  --surface-3: #131d35;
  --line: rgba(146, 166, 224, 0.11);
  --line-2: rgba(146, 166, 224, 0.2);
  --text: #e9edf6;
  --text-2: #b3bcd1;
  --muted: #7d88a3;

  --blue-900: #0b1a45;
  --blue-700: #1c3fa8;
  --blue-600: #2652d9;
  --blue-500: #3466ff;
  --blue-400: #5b86ff;
  --blue-300: #8eaeff;
  --blue-200: #c0d1ff;

  --g-advisory: #a9c0ff;
  --g-solutions: #4277ff;
  --g-software: #5ec4f2;
  --g-tech: #6c7997;

  --sans: "Raleway", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans); /* display face: Raleway, light weights */

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 450 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums proportional-nums; /* Raleway defaults to old-style figures */
  font-feature-settings: "lnum" 1;
  overflow-x: hidden;
}
body::before { /* faint grid texture */
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(146, 166, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 166, 224, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(52, 102, 255, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blue-500); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- Typography ---------- */
.display, .h2, .h3, .statement {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--text);
}
.display { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.1; }
.display-sm { font-size: clamp(2.1rem, 3.9vw, 3.4rem); max-width: 18ch; }
.h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; }
.h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; }
.display em, .h2 em, .h3 em, .statement em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--blue-200) 0%, var(--blue-400) 55%, var(--blue-300) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em;
}
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-2); max-width: 56ch; margin-top: 22px; }
.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 18px;
}
.eyebrow {
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(14, 22, 41, 0.6);
  letter-spacing: 0.14em; color: var(--text-2);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-400); box-shadow: 0 0 12px var(--blue-400); }
.kicker-index { color: var(--muted); font-variant-numeric: tabular-nums; }
.section-lede { color: var(--text-2); margin-top: 16px; max-width: 54ch; }
.link { color: var(--blue-300); border-bottom: 1px solid rgba(142, 174, 255, 0.35); transition: border-color 0.2s, color 0.2s; }
.link:hover { color: var(--blue-200); border-color: var(--blue-200); }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.005em; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 0.875rem; }
.btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  border-color: rgba(142, 174, 255, 0.35);
  box-shadow: 0 10px 30px -10px rgba(52, 102, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { background: linear-gradient(180deg, #4673ff, var(--blue-500)); box-shadow: 0 14px 36px -10px rgba(52, 102, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(146, 166, 224, 0.35); }
.btn-outline { color: var(--text); border-color: var(--line-2); background: transparent; }
.btn-outline:hover { border-color: var(--blue-400); color: #fff; background: rgba(52, 102, 255, 0.08); }
.btn-whatsapp { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); }
.btn-whatsapp .icon-wa { width: 18px; height: 18px; color: #3ddc84; }
.btn-whatsapp:hover { border-color: rgba(61, 220, 132, 0.45); background: rgba(61, 220, 132, 0.06); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-wa { stroke: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.bm-frame { fill: #0a1226; stroke: rgba(91, 134, 255, 0.45); stroke-width: 1.5; }
.bm-edge { fill: none; stroke: var(--blue-400); stroke-width: 1.6; stroke-linecap: round; opacity: 0.75; }
.bm-node { fill: var(--blue-300); }
.bm-node--apex { fill: var(--blue-200); }
.bm-node--sm { fill: var(--blue-400); }
.bm-node--core { fill: #fff; }
.brand:hover .bm-node--apex { filter: drop-shadow(0 0 4px var(--blue-300)); }
.brand-name { font-size: 1.32rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.brand-name span { font-weight: 300; color: var(--blue-300); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; }
.site-nav ul a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 0.92rem; color: var(--text-2); transition: color 0.2s, background-color 0.2s;
}
.site-nav ul a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.site-nav ul a[aria-current="page"] { color: var(--text); }
.site-nav ul a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--blue-400); box-shadow: 0 0 8px var(--blue-400);
}
.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 45% at 72% 38%, rgba(38, 82, 217, 0.22), transparent 70%),
    radial-gradient(30% 35% at 15% 10%, rgba(28, 63, 168, 0.16), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--line); max-width: 560px;
}
.hero-stats dt { font-family: var(--serif); font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--text); }
.hero-stats dd { font-size: 0.82rem; color: var(--muted); margin-top: 8px; max-width: 18ch; line-height: 1.45; }

/* ---------- Capability graph ---------- */
.graph-panel {
  position: relative;
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(38, 82, 217, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(14, 22, 41, 0.85), rgba(7, 11, 21, 0.85));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 14px;
  isolation: isolate;
}
.graph-panel::before { /* hairline highlight on top edge */
  content: ""; position: absolute; inset: 0 20% auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(142, 174, 255, 0.6), transparent);
}
.graph-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 10px; flex-wrap: wrap; }
.graph-title { display: inline-flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-400); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--blue-400); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.graph-filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(5, 7, 13, 0.6); border: 1px solid var(--line); }
.graph-filters button {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: transparent; color: var(--muted);
  font-size: 0.76rem; font-weight: 500; padding: 6px 11px; border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}
.graph-filters button:hover { color: var(--text); }
.graph-filters button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.sw { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.sw-advisory { background: var(--g-advisory); }
.sw-solutions { background: var(--g-solutions); }
.sw-software { background: var(--g-software); }
.sw-tech { background: var(--g-tech); }

.graph-stage {
  position: relative;
  height: clamp(420px, 46vw, 580px);
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(70% 70% at 50% 50%, rgba(14, 22, 41, 0.6), rgba(5, 7, 13, 0.4));
  border: 1px solid var(--line);
}
.graph-stage canvas { width: 100%; height: 100%; touch-action: pan-y; cursor: default; }
.graph-stage canvas.is-pointer { cursor: pointer; }
.graph-stage canvas.is-dragging { cursor: grabbing; }
.graph-stage canvas:focus-visible { outline-offset: -2px; border-radius: 16px; }

.graph-tip {
  position: absolute; top: 0; left: 0; z-index: 2;
  width: min(272px, calc(100% - 24px));
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(9, 14, 28, 0.94);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(52, 102, 255, 0.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s var(--ease);
  will-change: transform, opacity;
}
.graph-tip.is-visible { opacity: 1; transform: none; }
.graph-tip[hidden] { display: block; visibility: hidden; }
.tip-kind { display: flex; align-items: center; gap: 8px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tip-title { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; line-height: 1.15; margin: 6px 0 6px; color: var(--text); }
.tip-desc { font-size: 0.82rem; line-height: 1.5; color: var(--text-2); }
.tip-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tip-tags span { font-size: 0.7rem; color: var(--blue-200); background: rgba(52, 102, 255, 0.12); border: 1px solid rgba(91, 134, 255, 0.22); padding: 2px 8px; border-radius: 999px; }
.tip-links { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.tip-links-label { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tip-links ul { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tip-links li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.tip-cta { margin-top: 10px; font-size: 0.74rem; color: var(--blue-300); }

.graph-hint { font-size: 0.78rem; color: var(--muted); text-align: center; padding: 12px 8px 2px; }
.hint-touch { display: none; }
@media (hover: none) { .hint-pointer { display: none; } .hint-touch { display: inline; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section + .section { border-top: 1px solid var(--line); }

/* Practices (home) */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.practice-card {
  --c: var(--g-solutions);
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.practice-card[data-group="advisory"] { --c: var(--g-advisory); }
.practice-card[data-group="software"] { --c: var(--g-software); }
.practice-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(52, 102, 255, 0.14), transparent 50%);
}
.practice-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.practice-card:hover::before { opacity: 1; }
.practice-index { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; color: var(--c); }
.practice-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.38rem; line-height: 1.15; margin: 14px 0 12px; }
.practice-card > p { color: var(--text-2); font-size: 0.94rem; }
.practice-card ul { margin: 22px 0 28px; display: grid; gap: 10px; }
.practice-card li { position: relative; padding-left: 20px; font-size: 0.9rem; color: var(--text-2); }
.practice-card li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 8px; height: 1px; background: var(--c); }
.practice-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); }
.more { font-size: 0.88rem; font-weight: 500; color: var(--text-2); transition: color 0.3s; }
.practice-card:hover .more { color: var(--text); }
.practice-top { display: flex; align-items: center; justify-content: space-between; }

/* Service icons */
.svc-tile {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 13px;
  color: var(--c, var(--g-solutions));
  background: linear-gradient(180deg, rgba(91, 134, 255, 0.14), rgba(91, 134, 255, 0.04));
  border: 1px solid rgba(91, 134, 255, 0.22);
}
.svc-icon { width: 24px; height: 24px; stroke-width: 1.5; }
.arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color 0.3s, border-color 0.3s; }
.arrow .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.practice-card:hover .arrow { background: var(--blue-500); border-color: var(--blue-500); }
.practice-card:hover .arrow .icon { transform: translateX(2px); }

/* Feature (discovery) */
.feature-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature-copy > p { color: var(--text-2); margin-top: 18px; max-width: 52ch; }
.checks { display: grid; gap: 12px; margin-top: 26px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); font-size: 0.94rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.18em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(52, 102, 255, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%238eaeff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  border: 1px solid rgba(91, 134, 255, 0.3);
}
.feature-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 36px; }

.report-card {
  position: relative; padding: 28px; border-radius: 22px;
  background: linear-gradient(160deg, var(--surface-3), var(--surface) 70%);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.8s var(--ease);
}
.report-card:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.report-head { display: flex; justify-content: space-between; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.report-row { display: grid; grid-template-columns: 1fr 42%; align-items: center; gap: 16px; padding: 14px 0; font-size: 0.88rem; color: var(--text-2); border-bottom: 1px dashed var(--line); }
.bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-700), var(--blue-400)); transform-origin: left; transition: transform 1.4s var(--ease) 0.35s; }
.report-card.reveal-pending:not(.in) .bar i { transform: scaleX(0); }
.w-52 { width: 52%; } .w-64 { width: 64%; } .w-78 { width: 78%; } .w-86 { width: 86%; }
.report-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; color: var(--blue-200); background: rgba(52, 102, 255, 0.12); border: 1px solid rgba(91, 134, 255, 0.22); }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
.process-step { position: relative; padding: 32px 28px 8px 0; }
.process-step + .process-step { padding-left: 28px; border-left: 1px solid var(--line); }
.process-step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--blue-400); }
.process-step + .process-step::before { left: 28px; }
.step-no { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; color: var(--blue-300); }
.process-step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 12px 0 10px; }
.process-step p { color: var(--text-2); font-size: 0.92rem; }

/* CTA band */
.cta-band { padding: 0 0 clamp(72px, 9vw, 112px); }
.cta-inner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(36px, 5vw, 60px);
  border-radius: 26px;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(52, 102, 255, 0.28), transparent 60%),
    radial-gradient(50% 100% at 0% 100%, rgba(28, 63, 168, 0.22), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
}
.cta-inner p { color: var(--text-2); margin-top: 12px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); }
.page-hero--compact { padding-bottom: clamp(24px, 3vw, 40px); }
.page-hero--center { text-align: center; min-height: calc(70vh - var(--header-h)); display: grid; align-items: center; }
.page-hero--center .display-sm, .page-hero--center .lede { margin-inline: auto; }
.page-hero--center .hero-actions { justify-content: center; }

/* ---------- Services ---------- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.subnav-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; color: var(--text-2);
  border: 1px solid transparent; transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.subnav a span { font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; }
.subnav a:hover { color: var(--text); }
.subnav a.is-active { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }
.subnav a.is-active span { color: var(--blue-300); }

.practice-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.practice-intro > p { color: var(--text-2); }
.pricing-split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: rgba(14, 22, 41, 0.6); }
.pricing-split > div { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.pricing-split > div + div { border-left: 1px solid var(--line-2); }
.price { font-family: var(--serif); font-weight: 300; font-size: 1.75rem; line-height: 1.1; color: var(--text); }
.price-alt { font-size: 1.3rem; color: var(--text-2); }
.unit { font-size: 0.8rem; color: var(--muted); }

.offering-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.offering-grid--2 { grid-template-columns: repeat(2, 1fr); }
.offering-grid--4 { grid-template-columns: repeat(2, 1fr); }
.offering {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
  scroll-margin-top: calc(var(--header-h) + 80px);
}
.practice[data-group="advisory"] { --c: var(--g-advisory); }
.practice[data-group="solutions"] { --c: var(--g-solutions); }
.practice[data-group="software"] { --c: var(--g-software); }
.offering-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.offering-top .badge { margin-bottom: 0; }
.credit-note {
  flex-basis: 100%; display: flex; align-items: flex-start; gap: 10px; margin-top: 6px;
  font-size: 0.86rem; color: var(--blue-200); line-height: 1.5;
}
.credit-dot { flex: none; width: 7px; height: 7px; margin-top: 0.5em; border-radius: 50%; background: var(--blue-400); box-shadow: 0 0 10px var(--blue-400); }
.offering:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.offering:target { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(52, 102, 255, 0.2); }
.offering--featured {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(52, 102, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--surface-3), var(--surface));
  border-color: rgba(91, 134, 255, 0.4);
}
.badge {
  align-self: flex-start; margin-bottom: 16px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-200); background: rgba(52, 102, 255, 0.16); border: 1px solid rgba(91, 134, 255, 0.35);
  padding: 5px 11px; border-radius: 999px;
}
.offering h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.15; }
.offering-price { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.offering-price > div { display: flex; flex-direction: column; }
.offering-summary { color: var(--text-2); font-size: 0.94rem; margin-top: 18px; }
.offering .checks { margin-top: 20px; margin-bottom: 4px; }
.offering .checks li { font-size: 0.9rem; }
.deliverable { margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(5, 7, 13, 0.5); border: 1px solid var(--line-2); }
.deliverable-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-300); }
.deliverable p { font-size: 0.9rem; color: var(--text-2); margin-top: 6px; }
.offering-cta { margin-top: auto; align-self: flex-start; }
.offering > :nth-last-child(2) { margin-bottom: 28px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: 1.05rem; font-weight: 500; color: var(--text); transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-200); }
.plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px; background: var(--text-2); transition: transform 0.3s var(--ease); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0deg); }
details[open] .plus { border-color: var(--blue-400); }
.faq details p { color: var(--text-2); padding: 0 48px 24px 0; max-width: 70ch; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; }
.about-body p { color: var(--text-2); font-size: 1.04rem; }
.about-body p + p { margin-top: 20px; }
.stats-band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 28px; display: flex; flex-direction: column; gap: 10px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat-value { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 3.8vw, 3.2rem); line-height: 1; background: linear-gradient(180deg, #fff, var(--blue-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 0.88rem; color: var(--muted); max-width: 24ch; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { padding: 28px 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.4s var(--ease); }
.value-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.value-no { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; color: var(--blue-300); }
.value-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin: 14px 0 10px; line-height: 1.15; }
.value-card p { color: var(--text-2); font-size: 0.92rem; }
.disciplines-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.discipline-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.discipline-list li { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 0.98rem; }
.discipline-list li:nth-child(odd) { padding-right: 20px; }
.discipline-list li::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; border: 1.5px solid var(--blue-400); }

/* ---------- Contact ---------- */
.contact { padding-top: clamp(24px, 3vw, 40px); }
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.form-card { padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.enquiry-form .h3 { margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.82rem; font-weight: 500; color: var(--text-2); }
.field label span[aria-hidden] { color: var(--blue-300); }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: rgba(5, 7, 13, 0.6); border: 1px solid var(--line-2);
  color: var(--text); font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #566079; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(146, 166, 224, 0.32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(52, 102, 255, 0.16); background: rgba(5, 7, 13, 0.85); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg); pointer-events: none; }
.field select { padding-right: 40px; cursor: pointer; }
.field select option { background: var(--surface); }
.field-error { font-size: 0.78rem; color: #ff8f8f; min-height: 0; }
.field-error:empty { display: none; }
.has-error input, .has-error select, .has-error textarea { border-color: rgba(255, 120, 120, 0.6); }
.form-alert { padding: 12px 14px; border-radius: 10px; background: rgba(255, 120, 120, 0.08); border: 1px solid rgba(255, 120, 120, 0.3); color: #ffb3b3; font-size: 0.88rem; margin-bottom: 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-status { margin-top: 16px; font-size: 0.9rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: #ffb3b3; }
.form-status.is-ok { color: var(--blue-200); }
.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { text-align: center; padding: 24px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.form-success p { color: var(--text-2); max-width: 42ch; }
.form-success .btn { margin-top: 10px; }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(52, 102, 255, 0.14); border: 1px solid rgba(91, 134, 255, 0.4); box-shadow: 0 0 40px -6px rgba(52, 102, 255, 0.6); }
.success-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue-200); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.6s 0.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.contact-side { display: grid; gap: 14px; }
.channel {
  display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.35s var(--ease), background-color 0.3s;
}
a.channel:hover { border-color: var(--line-2); transform: translateY(-2px); }
.channel-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(52, 102, 255, 0.12); border: 1px solid rgba(91, 134, 255, 0.25); color: var(--blue-300); }
.channel-icon .icon { width: 22px; height: 22px; }
.channel--wa .channel-icon { background: rgba(61, 220, 132, 0.1); border-color: rgba(61, 220, 132, 0.3); color: #3ddc84; }
.channel--wa:hover { border-color: rgba(61, 220, 132, 0.35) !important; }
.channel-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.channel-title { font-weight: 500; }
.channel-text { font-size: 0.86rem; color: var(--muted); overflow-wrap: anywhere; }
.channel-arrow { margin-left: auto; flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform 0.3s var(--ease), color 0.3s; }
a.channel:hover .channel-arrow { transform: translateX(3px); color: var(--text); }
.next-steps { margin-top: 10px; padding: 24px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.next-steps ol { display: grid; gap: 14px; margin-top: 16px; counter-reset: n; }
.next-steps li { position: relative; padding-left: 38px; font-size: 0.9rem; color: var(--text-2); counter-increment: n; }
.next-steps li::before { content: counter(n); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 0.74rem; font-weight: 600; color: var(--blue-200); background: rgba(52, 102, 255, 0.14); border: 1px solid rgba(91, 134, 255, 0.3); }
.next-steps strong { color: var(--text); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 18px; max-width: 34ch; }
.footer-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-links span { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .reveal, .page-hero .reveal { animation: rise 0.9s var(--ease) both; }
.hero .reveal:nth-child(2), .page-hero .reveal:nth-child(2) { animation-delay: 0.08s; }
.hero .reveal:nth-child(3), .page-hero .reveal:nth-child(3) { animation-delay: 0.16s; }
.hero .reveal:nth-child(4) { animation-delay: 0.24s; }
.hero .reveal:nth-child(5) { animation-delay: 0.32s; }
.hero .graph-panel.reveal { animation-delay: 0.2s; animation-duration: 1.1s; }
.reveal-pending { opacity: 0; transform: translateY(22px); }
.reveal-pending.in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal-pending { opacity: 1; transform: none; }
  .report-card { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 720px; }
  .graph-stage { height: clamp(420px, 62vw, 560px); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 20px 24px 28px;
    background: rgba(5, 7, 13, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .site-header.is-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: 14px 4px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"]::after { left: auto; right: 6px; top: 50%; bottom: auto; margin-top: -2px; }
  .nav-cta { --h: 50px; }

  .practice-grid, .offering-grid, .offering-grid--2, .offering-grid--4 { grid-template-columns: 1fr; }
  .feature-grid, .practice-head, .faq-grid, .about-grid, .disciplines-grid, .contact-grid { grid-template-columns: 1fr; }
  .report-card { transform: none; }
  .process-grid { grid-template-columns: 1fr 1fr; border-top: 0; }
  .process-step, .process-step + .process-step { padding: 28px 24px 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .process-step::before, .process-step + .process-step::before { left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 36px, var(--container)); }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .hero-stats > div:last-child { grid-column: 1 / -1; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .graph-panel { padding: 10px; border-radius: 20px; margin-inline: -6px; }
  .graph-toolbar { padding: 2px 2px 10px; }
  .graph-filters { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 14px; }
  .graph-filters::-webkit-scrollbar { display: none; }
  .graph-filters button { flex: none; padding: 6px 10px; font-size: 0.74rem; }
  .graph-stage { height: 440px; }
  .graph-tip { left: 10px !important; right: 10px; top: auto !important; bottom: 10px; width: auto; transform: none !important; }
  .process-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .pricing-split { grid-template-columns: 1fr; }
  .pricing-split > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
  .discipline-list { grid-template-columns: 1fr; }
  .discipline-list li:nth-child(odd) { padding-right: 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 0 0 28px; border-left: 0; border-bottom: 1px solid var(--line); }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .offering, .practice-card { padding: 26px 22px 22px; }
  .channel { padding: 18px; }
  .form-foot .btn { width: 100%; }
}
