/* ==========================================================================
   ProIT Solutions — V2 "Obsidian & Ember" (DESIGN_SPEC §12)
   Dark-first above the fold, editorial bone sections below. Brand colour is
   sampled from logo.png only (§2); ember is light (beams, glows, borders),
   never a fill. Type: Geist · Instrument Serif (italic accents) · Geist Mono.
   ========================================================================== */

/* Self-hosted Google Fonts (OFL, assets/fonts/): Geist 400–600, Geist Mono 400–500, Instrument Serif italic.
   Stable same-origin URLs, so the hero faces can be preloaded (Google serves UA-specific files). */
/* Geist · latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist · latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Geist Mono · latin-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist Mono · latin */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Instrument Serif · latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Serif · latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallbacks (width and vertical metrics measured against the real faces):
   text painted before the web fonts arrive keeps its width, so the swap never reflows (CLS 0). */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 103.5%; ascent-override: 97.6%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: "Geist Mono Fallback"; src: local("Courier New"), local("Liberation Mono"); size-adjust: 100%; ascent-override: 101%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Serif Fallback"; font-style: italic; src: local("Times New Roman Italic"), local("Times New Roman"), local("Liberation Serif"); size-adjust: 85.1%; ascent-override: 116.3%; descent-override: 36.4%; line-gap-override: 0%; }

/* Animatable angle for the conic border beams (§12.6 borderBeam) */
@property --beam-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  /* Brand — from logo (§2, unchanged) */
  --ember-600: #E63406;
  --ember-500: #EB6B06;
  --ember-400: #F37C06;
  --ember-700: #B84A00;
  --ember-100: #FDEBDD;
  --ember-50:  #FFF6EE;
  --cream:     #FFF9E4;   /* the swirl's inner highlight */

  /* Ink — the "IT" black */
  --ink-950: #12130E;
  --ink-900: #1B1C17;
  --ink-800: #26271F;
  --ink-700: #3A3B33;
  --ink-500: #6B6C63;
  --ink-300: #B7B6AC;

  /* V2 deep neutrals, warm-tinted toward #12130E (§12.2) */
  --obsidian-1000: #0A0A08;
  --obsidian-900:  #111110;
  --obsidian-800:  #1A1A17;
  --line-dark:        rgba(255, 249, 228, 0.08);
  --line-dark-strong: rgba(255, 249, 228, 0.16);
  --text-dark-muted:  #A8A69B;   /* 7.9:1 on obsidian-1000 */
  --text-dark-dim:    #85837A;   /* "inactive" text on dark: 5.1:1, the AA floor kept with headroom */

  /* Light editorial neutrals */
  --bone-50:  #FAF8F3;
  --bone-100: #F2EEE5;
  --line-light: rgba(18, 19, 14, 0.08);
  --line-light-strong: rgba(18, 19, 14, 0.14);
  --text-light-muted: #5D5E56;   /* 6.0:1 on bone-50, 5.5:1 on bone-100 */
  --white: #FFFFFF;
  --ivory-50: #FFFDF8;

  /* Ember as light, on dark only */
  --ember-glow: rgba(243, 124, 6, 0.55);
  --ember-text-dark: #F59A3C;
  --ember-gradient: linear-gradient(135deg, #F37C06 0%, #EB6B06 45%, #E63406 100%);
  --ember-text-gradient: linear-gradient(100deg, #FFF9E4 0%, #F9C27F 28%, #F37C06 58%, #E63406 100%);

  --focus-ring: 0 0 0 3px var(--bone-50), 0 0 0 5px var(--ember-500);
  --focus-ring-dark: 0 0 0 3px var(--obsidian-1000), 0 0 0 5px var(--ember-400);
  --success: #2F7D4F;

  /* Type (§12.1) */
  --font-sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
  --font-mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-h1: clamp(3.125rem, 0.6rem + 5vw, 7.5rem);
  --fs-h2: clamp(2.25rem, 1.5rem + 2.6vw, 4.25rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.5vw, 1.625rem);
  --fs-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --fs-small: 0.9375rem;
  --fs-mono: 0.75rem;

  /* Layout (§4) */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 96px);
  --section-y: clamp(5.5rem, 3.5rem + 7vw, 10rem);
  --radius-card: 16px;
  --radius-panel: 22px;
  --radius-pill: 999px;
  --header-h: 80px;
  --seam: 96px;

  --shadow-sm: 0 1px 2px rgba(18,19,14,.05), 0 6px 16px -10px rgba(18,19,14,.18);
  --shadow: 0 1px 2px rgba(18,19,14,.05), 0 18px 40px -22px rgba(18,19,14,.28);
  --shadow-lg: 0 2px 4px rgba(18,19,14,.05), 0 32px 64px -28px rgba(18,19,14,.38);
  --shadow-dark: 0 40px 100px -40px rgba(0,0,0,.85), 0 0 0 1px var(--line-dark-strong);

  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-expo: cubic-bezier(.16,1,.3,1);
  --ease-curve: cubic-bezier(.65,0,.35,1);
  /* Real spring physics as CSS easing (k 260, c 20, m 1 and k 170, c 26) */
  --spring: linear(0, 0.091, 0.274, 0.484, 0.68, 0.839, 0.955, 1.029, 1.067, 1.08, 1.076, 1.063, 1.046, 1.03, 1.016, 1.005, 0.999, 0.995, 0.994, 0.994, 0.995, 0.996, 0.997, 0.998, 0.999, 1, 1, 1, 1);
  --spring-soft: linear(0, 0.095, 0.263, 0.442, 0.588, 0.708, 0.794, 0.859, 0.903, 0.935, 0.956, 0.971, 0.98, 0.987, 0.991, 0.994, 0.996, 0.998, 0.998, 0.999, 0.999, 1, 1, 1, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .97 0 0 0 0 .9 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.6 5.4 4.6 9.4 10 10-5.4.6-9.4 4.6-10 10-.6-5.4-4.6-9.4-10-10 5.4-.6 9.4-4.6 10-10Z'/%3E%3C/svg%3E");
}

@media (min-width: 1441px) { :root { --container: clamp(1440px, 640px + 50vw, 1600px); } }
@media (min-width: 1920px) { :root { --container: clamp(1600px, 960px + 33.333vw, 1760px); } }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--obsidian-1000); }
html.lenis, html.lenis body { height: auto; }
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; } /* Lenis does the smoothing; anchors go through lenis.scrollTo */
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--bone-50);
  color: var(--ink-950);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
strong { font-weight: 600; }

::selection { background: var(--ember-100); color: var(--ink-950); }
.on-dark ::selection, .hero ::selection, .section-dark ::selection, .section-ink ::selection, .site-footer ::selection { background: var(--ember-500); color: var(--ink-950); }

html { scrollbar-color: #4A4943 var(--obsidian-1000); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--obsidian-1000); }
::-webkit-scrollbar-thumb { background: #4A4943; border-radius: 999px; border: 3px solid var(--obsidian-1000); }
::-webkit-scrollbar-thumb:hover { background: #6A6860; }

:focus { outline: none; }
:focus-visible { box-shadow: var(--focus-ring); border-radius: 6px; }
:is(.hero, .section-dark, .section-ink, .site-footer, .pillar-ai, .map-panel, .mobile-menu) :focus-visible { box-shadow: var(--focus-ring-dark); }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { fill: none; }
svg:has(> use) { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.visually-hidden {
  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: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 12px 20px; border-radius: var(--radius-pill);
  background: var(--ink-950); color: var(--bone-50); font-weight: 600;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

.wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
h1, h2, h3, .h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
  font-kerning: normal;
}
h2 { font-size: var(--fs-h2); line-height: 1.02; font-weight: 560; }
h3 { font-size: var(--fs-h3); font-weight: 560; letter-spacing: -0.022em; line-height: 1.18; }
h1 em, h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em;
}
p { text-wrap: pretty; }

/* Eyebrow: Geist Mono, uppercase +0.12em, a 6px ember dot (§4, §12.1) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ember-700);
  margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember-500); flex: none; }
:is(.hero, .section-dark, .section-ink, .pillar-ai) .eyebrow { color: var(--ember-text-dark); }

.section-sub { max-width: 60ch; margin-top: 24px; color: var(--text-light-muted); font-size: var(--fs-body); }
:is(.section-dark, .section-ink) .section-sub { color: var(--text-dark-muted); }

/* ---------- Buttons (V1 look kept; the header CTA is owner-approved, §12.3) ---------- */
.btn {
  --btn-y: 0px; --btn-h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 600; line-height: 1; letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1.5px solid transparent;
  translate: 0 var(--btn-y);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), translate .25s var(--ease-out), scale .2s var(--ease-out), box-shadow .25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { --btn-fill: var(--ember-500); background: var(--btn-fill); color: var(--ink-950); }
.btn-primary:hover { --btn-fill: var(--ember-400); --btn-y: -2px; box-shadow: 0 10px 24px -10px rgba(230,52,6,.55); }
.btn-primary:active { --btn-fill: var(--ember-600); color: var(--bone-50); --btn-y: 0px; box-shadow: none; }
.btn-primary:disabled { --btn-fill: #2A2A26; color: var(--text-dark-muted); cursor: not-allowed; --btn-y: 0px; box-shadow: none; }
.btn:active:not(:disabled) { scale: .97; }

.btn-secondary { background: transparent; color: var(--ink-950); border-color: var(--ink-950); }
.btn-secondary:hover { background: var(--ink-950); color: var(--bone-50); --btn-y: -2px; }
.btn-secondary:active { --btn-y: 0px; background: var(--ink-800); }
.btn-on-dark, .section-dark .btn-secondary { color: var(--bone-50); border-color: var(--line-dark-strong); background: rgba(255,249,228,.04); }
.btn-on-dark:hover, .section-dark .btn-secondary:hover { background: rgba(255,249,228,.09); color: var(--bone-50); border-color: rgba(255,249,228,.3); }

/* Dark glass pill (hero secondary): the ember rim draws on hover (§12.4) */
.btn-glass {
  color: var(--bone-50); border-color: var(--line-dark-strong);
  background: rgba(255,249,228,.05);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,249,228,.08);
}
.btn-glass:hover { background: rgba(255,249,228,.09); color: var(--bone-50); border-color: rgba(255,249,228,.22); }
.btn-glass:active { background: rgba(255,249,228,.12); }

.btn-ghost-dark { color: var(--bone-50); border-color: var(--line-dark-strong); }
.btn-ghost-dark:hover { border-color: rgba(255,249,228,.4); --btn-y: -2px; }

.btn-sm { --btn-h: 44px; min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn-block { width: 100%; }

.text-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--ember-700);
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + .8em) / 0 1.5px no-repeat;
  transition: background-size .35s var(--ease-out), color .2s;
}
.text-link svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.text-link:hover { background-size: calc(100% - 26px) 1.5px; }
.text-link:hover svg { transform: translateX(4px); }
:is(.section-dark, .section-ink, .pillar-ai) .text-link { color: var(--ember-text-dark); }

.chip {
  display: inline-flex; align-items: center;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--ember-100);
  color: var(--ember-700);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; line-height: 1.3; letter-spacing: .01em;
  white-space: nowrap;
}

/* ==========================================================================
   Motion primitives (§12.6) — the CSS half; kinetics.js drives them
   ========================================================================== */

/* borderBeam: an ember light travelling a masked 1px border */
.border-beam {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: conic-gradient(from var(--beam-angle), transparent 0 64%, rgba(230,52,6,0) 66%, rgba(243,124,6,.9) 78%, var(--cream) 81%, rgba(243,124,6,0) 84%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: beam-spin var(--beam-duration, 8s) linear infinite;
}
@keyframes beam-spin { to { --beam-angle: 360deg; } }
.is-paused .border-beam, .border-beam.is-paused, .is-tab-hidden .border-beam { animation-play-state: paused; }

/* shimmer: a highlight sweep through background-clipped text */
.shimmer {
  color: var(--ember-text-dark);
  background-image: linear-gradient(105deg, transparent 38%, rgba(255,249,228,.95) 50%, transparent 62%), var(--ember-text-gradient);
  background-size: 250% 100%, 100% 100%;
  background-position: 130% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kin .shimmer.is-shimmering { animation: shimmer 5s var(--ease-curve) 1s infinite; }
@keyframes shimmer { 0% { background-position: 130% 0, 0 0; } 40%, 100% { background-position: -30% 0, 0 0; } }

/* cutReveal: each word in an overflow mask, rising from y 100% */
.w-mask {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: .04em .06em .16em; margin: -.04em -.06em -.16em;
}
.w-mask > .w { display: inline-block; }
.js .cut-ready .w-mask > .w:not(.is-revealed) { transform: translateY(110%); }

/* spotlight: a pointer-tracked radial via --mx / --my */
[data-spotlight-layer] { --mx: 50%; --my: 40%; }

/* ==========================================================================
   Header: floating bone-glass capsule (§12.3)
   ========================================================================== */
.site-header {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  padding-inline: clamp(12px, 3vw, 24px);
  pointer-events: none;
}
.capsule {
  pointer-events: auto;
  position: relative;
  width: 100%; max-width: 1120px;
  display: flex; align-items: center; gap: 20px;
  padding: 6px;
  border-radius: var(--radius-pill);
  isolation: isolate;
}
/* the bone-glass surface is its own layer. It never scales (§13.1): a scaled surface let the flush-right CTA
   poke past the capsule edge after a scroll-up, so the scrolled state only deepens the shadow */
.capsule::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--noise), rgba(250, 248, 243, .94);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(18,19,14,.12), inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.2), 0 18px 44px -14px rgba(0,0,0,.6), 0 40px 90px -36px rgba(0,0,0,.55);
  transition: box-shadow .45s var(--ease-expo);
}
.site-header.is-scrolled .capsule::before { box-shadow: inset 0 0 0 1px rgba(18,19,14,.14), inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.24), 0 22px 52px -14px rgba(0,0,0,.7), 0 44px 96px -36px rgba(0,0,0,.6); }
.brand { display: inline-flex; align-items: center; min-height: 44px; padding-left: 14px; flex: none; border-radius: 8px; }
.brand-logo { height: 40px; width: auto; }

.primary-nav { position: relative; margin-left: auto; }
.primary-nav ul { position: relative; display: flex; gap: 2px; }
.primary-nav a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: .90625rem; font-weight: 500; letter-spacing: -0.005em; color: #3F403A;
  transition: color .2s;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--ink-950); }
/* scroll-spy: a 4px ember dot under the active link */
.primary-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--ember-500); transform: scale(0); transition: transform .45s var(--spring);
}
.primary-nav a.is-active::after { transform: scale(1); }
/* sliding hover pill (shared-layout spring, kinetics.js); CSS hover fill without it */
.nav-pill {
  position: absolute; left: 0; top: 0; height: 44px; width: 0; z-index: 0;
  border-radius: var(--radius-pill); background: var(--bone-100);
  box-shadow: inset 0 0 0 1px rgba(18,19,14,.05);
  opacity: 0; pointer-events: none;
}
.primary-nav:not(.has-pill) a:hover { background: var(--bone-100); }
.header-cta { flex: none; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  align-items: center; justify-content: center;
  position: relative;
  background: var(--ink-950);
}
.menu-toggle-bars { position: relative; width: 18px; height: 10px; }
.menu-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px; background: var(--bone-50);
  transition: transform .45s var(--spring), top .45s var(--spring);
}
.menu-toggle-bars span:first-child { top: 0; }
.menu-toggle-bars span:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:last-child { top: 4.25px; transform: rotate(-45deg); }
.menu-toggle:focus-visible { box-shadow: var(--focus-ring); }

/* Mobile sheet: full-height obsidian panel, large Geist links that cut-reveal in */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--obsidian-1000);
  color: var(--bone-50);
  padding-top: 112px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.mobile-menu::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 85% 100%, rgba(243,124,6,.22), transparent 70%), radial-gradient(40% 30% at 0% 100%, rgba(230,52,6,.12), transparent 70%);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu-inner { position: relative; display: flex; flex-direction: column; gap: 36px; padding-bottom: 40px; }
.mobile-links li { border-bottom: 1px solid var(--line-dark); }
.mobile-links a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
  font-size: clamp(2rem, 1.4rem + 3vw, 2.75rem); font-weight: 560; letter-spacing: -0.035em; line-height: 1;
}
.mobile-links .ml-text { display: block; }
.mobile-links a::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember-500); opacity: 0; transition: opacity .2s; }
.mobile-links a:hover::after { opacity: 1; }
.mobile-menu-note { font-family: var(--font-mono); font-size: .8125rem; color: var(--text-dark-muted); }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Surfaces & seams (§12.2, §12.5)
   ========================================================================== */
.section { padding-block: var(--section-y); position: relative; }
.section-bone { background: var(--bone-50); }
.section-bone2 { background: var(--bone-100); }
.section-dark { background: var(--obsidian-900); color: var(--bone-50); }
.section-ink { background: var(--obsidian-1000); color: var(--bone-50); }
.section-head { max-width: 780px; margin-bottom: clamp(48px, 5vw, 80px); }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
/* Split head: H2 left, intro right on the baseline */
.section-head-split {
  max-width: none;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end;
}
.section-head-split .eyebrow { grid-column: 1 / -1; justify-self: start; }
.section-head-split h2 { grid-column: 1 / span 7; }
.section-head-split .section-sub { grid-column: 9 / span 4; margin-top: 0; font-size: var(--fs-small); }

/* Light ↔ dark seams (V2.1): a hard surface change, never a grey gradient band. The dark side
   carries a crisp 1px hairline and a soft ember radial glow (≤ 10%) no taller than --seam (96px). */
.seam-top::before, .seam-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--seam); pointer-events: none; z-index: 0;
}
.seam-top::before {
  top: 0; border-top: 1px solid var(--line-dark-strong);
  background: radial-gradient(48% 100% at 50% 0%, rgba(243,124,6,.10), rgba(243,124,6,.035) 55%, rgba(243,124,6,0));
}
.seam-bottom::after {
  bottom: 0; border-bottom: 1px solid var(--line-dark-strong);
  background: radial-gradient(48% 100% at 50% 100%, rgba(243,124,6,.10), rgba(243,124,6,.035) 55%, rgba(243,124,6,0));
}
/* Light → light: a top hairline plus a soft inner shadow */
.services-section, .insights-section, .reach-section { box-shadow: inset 0 1px 0 var(--line-light), inset 0 24px 48px -36px rgba(18,19,14,.12); }

/* Content sits above the decorative layers */
:is(.hero, .section-dark, .section-ink, .site-footer) > .wrap,
.hero > .marquee { position: relative; z-index: 1; }
.section-dark, .section-ink { overflow: clip; }

/* ==========================================================================
   Hero: the signature moment (§12.4)
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  background: var(--obsidian-1000); color: var(--bone-50);
  overflow: clip;
}
.hero::after { /* seam into the obsidian-900 quiz */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--seam); z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(17,17,16,0), var(--obsidian-900));
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* 1 · Ember aurora (Honey Ember rebuild): three soft blobs low and right, 28–40s drift */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; contain: strict; }
.hero-bg > .aurora, .hero-bg > .beams, .hero-bg > .grid-lines { bottom: auto; height: max(100svh, 720px); }
.mesh-blob {
  position: absolute; border-radius: 50%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--c), transparent);
  will-change: transform;
}
.mesh.is-live .mesh-blob { animation: aurora-drift var(--t, 32s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(var(--dx), var(--dy), 0) scale(1.08); }
  100% { transform: translate3d(calc(var(--dx) * -.6), calc(var(--dy) * -1), 0) scale(.95); }
}
.mesh.is-paused .mesh-blob, .is-tab-hidden .mesh-blob { animation-play-state: paused; }
.aurora-hero .mesh-blob:nth-child(1) { --c: rgba(243,124,6,.30); --t: 34s; --dx: -6%; --dy: -5%; width: clamp(560px, 62vw, 1300px); right: -18%; bottom: -46%; }
.aurora-hero .mesh-blob:nth-child(2) { --c: rgba(235,107,6,.24); --t: 28s; --dx: 7%;  --dy: -7%; --delay: -11s; width: clamp(420px, 40vw, 860px); right: 22%; bottom: -38%; }
.aurora-hero .mesh-blob:nth-child(3) { --c: rgba(230,52,6,.20);  --t: 40s; --dx: -5%; --dy: 6%;  --delay: -19s; width: clamp(380px, 34vw, 720px); right: -6%; top: 2%; }

/* 2 · Masked grid (ibelick) with a cursor spotlight that lights the lines near the pointer */
.grid-lines, .grid-spot {
  position: absolute; inset: 0;
  background-size: 64px 64px;
  background-position: calc(50% - 32px) -1px;
}
.grid-lines {
  background-image: linear-gradient(to right, var(--line-dark) 1px, transparent 1px), linear-gradient(to bottom, var(--line-dark) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 38%, #000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 62% at 50% 38%, #000 18%, transparent 78%);
}
.grid-spot {
  background-image: linear-gradient(to right, rgba(243,124,6,.5) 1px, transparent 1px), linear-gradient(to bottom, rgba(243,124,6,.5) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(220px circle at var(--mx) var(--my), rgba(0,0,0,.24), transparent 72%);
  mask-image: radial-gradient(220px circle at var(--mx) var(--my), rgba(0,0,0,.24), transparent 72%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.grid-spot.is-on { opacity: 1; }

/* 3 · Light beams: thin diagonal ember shafts, screen-blended, crossing very slowly */
.beams {
  position: absolute; inset: 0; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 66%); mask-image: linear-gradient(90deg, transparent 38%, #000 66%);
}
.beam-shaft {
  position: absolute; top: -30%; height: 160%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(243,124,6,.0) 20%, rgba(249,168,80,.55) 50%, rgba(243,124,6,0) 80%, transparent);
  box-shadow: 0 0 22px 4px rgba(243,124,6,.08);
  rotate: 24deg; transform-origin: 50% 50%;
  opacity: .7;
}
.beam-shaft:nth-child(1) { left: 58%; }
.beam-shaft:nth-child(2) { left: 74%; width: 2px; opacity: .45; }
.beam-shaft:nth-child(3) { left: 90%; opacity: .5; }
.beams.is-live .beam-shaft { animation: beam-cross 26s linear infinite; }
.beams.is-live .beam-shaft:nth-child(2) { animation-duration: 34s; animation-delay: -12s; }
.beams.is-live .beam-shaft:nth-child(3) { animation-duration: 30s; animation-delay: -21s; }
@keyframes beam-cross { from { translate: -18vw 0; } to { translate: 18vw 0; } }
.beams.is-paused .beam-shaft, .is-tab-hidden .beam-shaft { animation-play-state: paused; }

/* Layout: 7/5 split, a full-viewport first screen; the stat strip and marquee follow it */
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.hero-copy { display: contents; }
.hero-main {
  grid-column: 1 / span 7; grid-row: 1;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 72px;
}
.console { grid-column: 8 / span 5; grid-row: 1; align-self: center; margin-top: 48px; }
.hero-stats { grid-column: 1 / -1; grid-row: 2; }

/* Announcement pill: glass chip, mono label, border beam every 6s, pulsing dot */
.hero-pill {
  position: relative; align-self: flex-start;
  margin-bottom: 32px; padding: 8px 16px 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,249,228,.04);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-dark-strong);
  color: var(--bone-50) !important;
  font-size: .71875rem;
}
.hero-pill .border-beam { --beam-duration: 6s; }
.hero-pill::before { background: var(--ember-400); box-shadow: 0 0 0 0 rgba(243,124,6,.6); animation: dot-pulse 2.4s var(--ease-out) infinite; }
@keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(243,124,6,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(243,124,6,0); } }

.hero-title {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.04em;
  color: var(--bone-50);
  margin-bottom: 32px;
  max-width: 11.5ch;
}
.w-mask-em { display: block; width: max-content; padding: .02em .14em .3em; margin: -.02em -.14em -.3em; }
.hero-em {
  position: relative;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.12em; letter-spacing: -0.015em; line-height: .9;
  padding-right: .06em;
}
/* Hand-drawn ember stroke under "Concentrated." (draws in after the word lands) */
.hero-em-line {
  position: absolute; left: -.02em; right: 0; bottom: -.16em; width: 100%; height: .26em;
  overflow: visible; pointer-events: none;
}
.hero-em-line path {
  fill: none; stroke: var(--ember-500); stroke-width: 3; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1 1; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(243,124,6,.55));
}
.hero-em-line path + path { stroke: var(--ember-600); stroke-width: 1.75; opacity: .8; }
.js .hero-em:not(.is-drawn) .hero-em-line path { stroke-dashoffset: 1; }
.js .hero-em .hero-em-line path { transition: stroke-dashoffset .9s var(--ease-expo); }
.js .hero-em .hero-em-line path + path { transition-delay: .18s; }

.hero-lead { max-width: 56ch; color: var(--text-dark-muted); font-size: 1.0625rem; }
.hero-lead strong { color: var(--bone-50); font-weight: 500; }
.hero-pull {
  max-width: 48ch; margin-top: 18px; padding-left: 16px;
  border-left: 1px solid rgba(243,124,6,.7);
  color: var(--text-dark-muted);
  font-size: var(--fs-small); line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trust-line { margin-top: 22px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .02em; color: var(--text-light-muted); }
:is(.hero, .section-dark, .section-ink) .trust-line { color: var(--text-dark-muted); }

/* Stat strip: 3 cells split by hairlines, mono numerals with the ember text gradient */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line-dark);
  margin-top: 8px;
}
.hero-stats > div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 14px;
  padding: 36px 32px 34px;
  border-left: 1px solid var(--line-dark);
}
.hero-stats > div:first-child { border-left: 0; padding-left: 0; }
.hero-stats dt { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .02em; line-height: 1.4; color: var(--text-dark-muted); max-width: 26ch; }
.hero-stats dd {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(3rem, 2rem + 2.6vw, 4.5rem); line-height: .9; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.hero-stats .count {
  color: var(--ember-text-dark);
  background: var(--ember-text-gradient);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* The Architecture Console: one dark glass device (§12.4) */
.console {
  position: relative;
  border-radius: var(--radius-panel);
  background: rgba(26, 26, 23, .8);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line-dark-strong), inset 0 1px 0 rgba(255,249,228,.08), 0 50px 120px -40px rgba(0,0,0,.9), 0 0 80px -30px rgba(243,124,6,.25);
  transform-style: preserve-3d;
}
.console .border-beam { --beam-duration: 8s; }
.console-bar {
  display: flex; align-items: center; gap: 7px;
  height: 46px; padding: 0 18px;
  border-bottom: 1px solid var(--line-dark);
}
.console-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,249,228,.14); }
.console-bar i:first-child { background: rgba(243,124,6,.75); }
.console-bar::after {
  content: attr(data-label);
  margin-left: auto; margin-right: auto; translate: -24px 0;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; color: var(--text-dark-muted);
}
.console-rows { padding: 8px; }
.console-row {
  --dim: 0;
  position: relative;
  padding: 14px 14px 14px 18px;
  border-radius: 12px;
  cursor: default;
  transition: background-color .35s var(--ease-out);
}
.console-row::before { /* ember left rule */
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--ember-400), var(--ember-600));
  box-shadow: 0 0 12px rgba(243,124,6,.7);
  transform: scaleY(0); transition: transform .5s var(--spring);
}
.console-row::after { /* row spotlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at 0% 50%, rgba(243,124,6,.12), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.console-row.is-active { background: rgba(255,249,228,.035); }
.console-row.is-active::before { transform: scaleY(1); }
.console-row.is-active::after { opacity: 1; }
.console-row:focus-visible { box-shadow: var(--focus-ring-dark); border-radius: 12px; }
.platform-card-head { display: flex; align-items: center; gap: 14px; }
.platform-icon {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,249,228,.05); color: var(--text-dark-muted);
  box-shadow: inset 0 0 0 1px var(--line-dark-strong);
  transition: color .3s, background-color .3s, box-shadow .3s;
}
.platform-icon svg { width: 18px; height: 18px; }
.console-row.is-active .platform-icon { color: var(--ember-400); background: rgba(243,124,6,.1); box-shadow: inset 0 0 0 1px rgba(243,124,6,.35), 0 0 24px -6px rgba(243,124,6,.6); }
.platform-title { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.015em; color: var(--bone-50); transition: color .3s; }
.platform-meta { margin-left: auto; font-family: var(--font-mono); font-size: .75rem; color: var(--ember-text-dark); white-space: nowrap; transition: color .3s; }
.console .chip-new { margin-left: auto; background: rgba(243,124,6,.14); color: var(--ember-text-dark); box-shadow: inset 0 0 0 1px rgba(243,124,6,.35); }
/* neighbouring rows dim (as colour, held at the AA floor rather than 60% opacity) */
.console.has-active .console-row:not(.is-active) .platform-title { color: var(--text-dark-dim); }
.console.has-active .console-row:not(.is-active) .platform-meta { color: var(--text-dark-dim); }
.console.has-active .console-row:not(.is-active) .chip-new { color: var(--text-dark-muted); background: rgba(255,249,228,.04); box-shadow: inset 0 0 0 1px var(--line-dark-strong); }
.console-mods { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--spring-soft); }
.console-mods > p {
  min-height: 0; overflow: hidden;
  padding-left: 50px;
  font-family: var(--font-mono); font-size: .75rem; line-height: 1.7; letter-spacing: .01em;
  color: var(--text-dark-muted);
  opacity: 0; translate: 0 -4px; transition: opacity .35s var(--ease-out), translate .5s var(--spring-soft);
}
.console-row.is-active .console-mods { grid-template-rows: 1fr; }
.console-row.is-active .console-mods > p { opacity: 1; translate: 0 0; padding-top: 10px; }
.console-foot { display: flex; align-items: center; height: 42px; padding: 0 18px; border-top: 1px solid var(--line-dark); }
.console-signal { display: flex; align-items: flex-end; gap: 3px; height: 14px; margin-left: auto; }
.console-signal i { width: 3px; height: calc(30% + var(--h, 0) * 70%); border-radius: 1px; background: rgba(255,249,228,.16); }
.console-signal i:nth-child(3n) { --h: .8; } .console-signal i:nth-child(3n+1) { --h: .35; } .console-signal i:nth-child(4n) { --h: .55; }
.console-signal i:nth-last-child(-n+3) { background: rgba(243,124,6,.7); }
.kin .console-signal.is-live i { animation: signal 1.6s ease-in-out infinite alternate; animation-delay: calc(var(--h, .5) * -2s); }
@keyframes signal { to { scale: 1 .45; } }
.console-signal i { transform-origin: bottom; }

/* Marquee: edge-faded track, slow, mono with ember ✦ separators */
.marquee {
  margin-top: 0;
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.marquee-group li {
  display: flex; align-items: center; gap: 40px;
  padding: 26px 40px 26px 0;
  font-family: var(--font-mono); font-size: .9375rem; font-weight: 400; letter-spacing: .12em;
  font-variant-caps: all-small-caps; /* reads as caps, keeps the copy's own casing */
  color: var(--text-dark-muted);
  white-space: nowrap;
}
.marquee-group li::after { content: ""; width: 12px; height: 12px; flex: none; background: var(--ember-400); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero { padding-bottom: clamp(40px, 6vw, 96px); }

/* Hero entrance states (kinetics.js). Lead lines are painted at opacity .01 from frame one (LCP);
   without the module the CSS failsafe lands everything after 2s. */
.js .hero-enter:not(.is-revealed) { opacity: .01; transform: translateY(12px); filter: blur(8px); }
.js .hero-title .w:not(.is-revealed) { transform: translateY(110%); }
.js:not(.kin) :is(.hero-title .w, .hero-enter) { animation: rise .7s var(--ease-expo) 2s forwards; }
.js:not(.kin) .hero-em .hero-em-line path { animation: draw .9s var(--ease-expo) 2.5s forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Section reveals: blurFade on enter (kinetics.js); visible without it ---------- */
.kin [data-reveal]:not(.is-in) { opacity: 0; }

/* ==========================================================================
   Find Your Path — obsidian-900, glass quiz panel (§12.5)
   ========================================================================== */
.quiz-section { background: var(--obsidian-900); padding-top: clamp(4rem, 3rem + 4vw, 7rem); }
.quiz-section::before { /* an ember ember-glow left over from the hero, very low */
  content: ""; position: absolute; left: 50%; top: 0; width: min(1100px, 90vw); height: 520px; translate: -50% -40%;
  background: radial-gradient(closest-side, rgba(243,124,6,.08), transparent); pointer-events: none;
}
.quiz-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px; row-gap: 48px; align-items: start;
}
.quiz-aside { grid-column: 1 / span 4; padding-top: 12px; }
.quiz-aside h3 { font-size: var(--fs-h3); margin-bottom: 16px; }
.quiz-aside > p { color: var(--text-dark-muted); }
.check-list { display: grid; gap: 14px; margin-top: 28px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; line-height: 1.5; }
.check-list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ember-400); stroke-width: 2; }
.quiz-aside .check-list li { font-size: var(--fs-small); color: var(--bone-50); }

.quiz-card {
  grid-column: 6 / span 7;
  position: relative;
  padding: clamp(24px, 3vw, 44px);
  border-radius: var(--radius-panel);
  background: var(--noise), rgba(26, 26, 23, .72);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line-dark-strong), inset 0 1px 0 rgba(255,249,228,.07), 0 40px 100px -40px rgba(0,0,0,.8);
  min-height: 540px;
}
.quiz-card .border-beam { --beam-duration: 10s; }
.quiz-progress { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); height: 2px; background: var(--line-dark-strong); border-radius: 2px; }
.quiz-seg { position: relative; height: 2px; }
.quiz-seg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ember-600), var(--ember-400)); box-shadow: 0 0 10px rgba(243,124,6,.7); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-expo); }
.quiz-seg.is-on::after { transform: scaleX(1); }
.quiz-step-label {
  display: flex; align-items: baseline; gap: 12px;
  margin-top: 18px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dark-muted);
}
.quiz-card .quiz-step-label::before { /* mono 01 / 03 counter (decorative, from data-step) */
  content: "0" attr(data-step-n) " / 03"; content: "0" attr(data-step-n) " / 03" / "";
  color: var(--ember-text-dark); letter-spacing: .04em;
}
.quiz-form { margin-top: 24px; }
.quiz-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz-step legend {
  padding: 0; margin-bottom: 28px;
  font-size: clamp(1.625rem, 1.25rem + 1.2vw, 2.375rem); font-weight: 560; letter-spacing: -0.035em; line-height: 1.05;
  text-wrap: balance;
}
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 84px; padding: 16px 52px 16px 16px;
  border-radius: 14px;
  background: rgba(255,249,228,.025);
  box-shadow: inset 0 0 0 1px var(--line-dark-strong);
  cursor: pointer;
  line-height: 1.35;
  transition: box-shadow .25s, background-color .25s, scale .5s var(--spring);
}
.tile:hover { background: rgba(255,249,228,.05); box-shadow: inset 0 0 0 1px rgba(255,249,228,.28); }
.tile:active { scale: .98; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile-key {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-dark-strong);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; color: var(--text-dark-muted);
  transition: inherit;
}
.tile-text { font-weight: 500; }
/* radio dot that morphs into a check */
.tile-radio {
  position: absolute; right: 18px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255,249,228,.3);
  transition: background-color .3s var(--ease-out), box-shadow .3s, scale .5s var(--spring);
}
.tile-radio svg { width: 12px; height: 12px; stroke-width: 3; color: var(--ink-950); stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .4s var(--ease-expo) .08s; }
.tile:has(input:checked) { background: rgba(243,124,6,.1); box-shadow: inset 0 0 0 1px rgba(243,124,6,.7), 0 0 32px -12px rgba(243,124,6,.6); }
.tile:has(input:checked) .tile-key { background: var(--ember-500); color: var(--ink-950); box-shadow: none; }
.tile:has(input:checked) .tile-radio { background: var(--ember-400); box-shadow: 0 0 0 4px rgba(243,124,6,.2); scale: 1.1; }
.tile:has(input:checked) .tile-radio svg { stroke-dashoffset: 0; }
.tile:has(input:focus-visible) { box-shadow: var(--focus-ring-dark); }

.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.quiz-nav .quiz-next { margin-left: auto; }
.quiz-step.is-entering { animation: step-in .45s var(--ease-expo) both; }
.quiz-step.is-entering-back { animation: step-in-back .45s var(--ease-expo) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-24px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.quiz-result { margin-top: 24px; }
.quiz-result.is-entering { animation: result-in .5s var(--ease-expo) both; }
@keyframes result-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.quiz-result .eyebrow { margin-bottom: 14px; }
.quiz-result-title { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); font-weight: 560; letter-spacing: -0.04em; line-height: 1.02; }
.quiz-result-text { margin-top: 18px; color: var(--text-dark-muted); max-width: 60ch; }
.quiz-result-sub { margin-top: 28px; font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-50); }
.quiz-result .check-list { margin-top: 14px; }
.quiz-result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ==========================================================================
   Stats band — giant mono numerals, hairline dividers drawn in (§12.5)
   ========================================================================== */
.stats-band { position: relative; background: var(--bone-50); padding-block: clamp(64px, 7vw, 120px) clamp(56px, 6vw, 96px); }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; gap: 18px; padding: 8px 24px 4px; text-align: center; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-light-strong);
  transform-origin: top;
}
.kin .stats-band:not(.is-in) .stat + .stat::before { transform: scaleY(0); }
.kin .stats-band .stat + .stat::before { transition: transform 1.1s var(--ease-expo); }
.kin .stats-band .stat:nth-child(3)::before { transition-delay: .12s; }
.stat dd {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(3.5rem, 1.6rem + 5.2vw, 7.5rem); line-height: .86; letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-950);
  display: flex; flex-direction: column; align-items: center;
}
.stat dd::after { /* a thin ember underline that draws in with the dividers */
  content: ""; width: 40px; height: 2px; margin-top: 22px; border-radius: 2px;
  background: var(--ember-gradient); transform-origin: left;
}
.kin .stats-band:not(.is-in) .stat dd::after { transform: scaleX(0); }
.kin .stats-band .stat dd::after { transition: transform .9s var(--ease-expo) .35s; }
.stat .count-suffix { color: var(--ember-600); }
.stat dt { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .02em; line-height: 1.45; color: var(--text-light-muted); max-width: 24ch; }
.footnote { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-light); font-size: .875rem; color: var(--text-light-muted); max-width: 78ch; }

/* ==========================================================================
   What We Do — asymmetric bento; V1 tilt, glare and border-glow kept (§12.5)
   ========================================================================== */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-areas: "fusion ebs netsuite" "fusion ai ai";
}
.pillar-fusion { grid-area: fusion; }
.pillar-ebs { grid-area: ebs; }
.pillar-netsuite { grid-area: netsuite; }
.pillar-ai { grid-area: ai; }
.pillar {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--radius-panel);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-light), var(--shadow-sm);
  transition: translate .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.pillar::before { /* ember top-border grow (V1 hover kept) */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--ember-gradient) 50% 0 / 0% 2px no-repeat;
  transition: background-size .6s var(--ease-expo);
}
.pillar:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px var(--line-light), var(--shadow-lg); }
.pillar:hover::before, .pillar:focus-within::before { background-size: 70% 2px; }
.pillar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
/* icon in an ember-lit glass tile */
.pillar-icon {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(253,235,221,.7));
  color: var(--ember-700);
  box-shadow: inset 0 0 0 1px rgba(184,74,0,.14), inset 0 1px 0 #fff, 0 10px 24px -12px rgba(230,52,6,.55);
}
.pillar-icon::after { content: ""; position: absolute; inset: -10px; z-index: -1; border-radius: 22px; background: radial-gradient(closest-side, rgba(243,124,6,.22), transparent); }
.pillar-icon svg { width: 24px; height: 24px; }
.pillar .chip { background: transparent; box-shadow: inset 0 0 0 1px var(--line-light-strong); color: var(--text-light-muted); }
.pillar h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 12px; }
.pillar > p { color: var(--text-light-muted); max-width: 46ch; font-size: var(--fs-small); }
.module-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 24px; }
.module-list li {
  padding: 6px 11px; border-radius: var(--radius-pill);
  background: var(--bone-50); box-shadow: inset 0 0 0 1px var(--line-light);
  font-family: var(--font-mono); font-size: .75rem; line-height: 1.3; color: #33342E;
}
.pillar .text-link { margin-top: auto; align-self: flex-start; }
.pillar-fusion h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); }
.pillar-art { width: 100%; height: auto; margin: auto 0 20px; overflow: visible; }
.pillar-fusion .pillar-art { flex: 1 1 auto; min-height: 240px; max-height: 420px; margin: 8px 0 28px; }
.pillar-art .art-rings { fill: none; stroke: rgba(18,19,14,.14); }
.pillar-art .art-nodes { fill: var(--bone-50); stroke: rgba(18,19,14,.45); }
.pillar-art .art-core { fill: var(--ember-500); filter: drop-shadow(0 0 10px rgba(243,124,6,.6)); }
.pillar-art .art-orbit { fill: var(--ember-600); filter: drop-shadow(0 0 6px rgba(243,124,6,.55)); }
/* AI & Development: the wide obsidian tile so the AI card stands out */
.pillar-ai {
  background: var(--obsidian-900); color: var(--bone-50);
  box-shadow: inset 0 0 0 1px var(--line-dark-strong), var(--shadow-lg);
  overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; align-content: start;
}
.pillar-ai::after {
  content: ""; position: absolute; right: -10%; bottom: -60%; width: 70%; aspect-ratio: 1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243,124,6,.26), transparent);
}
.pillar-ai > :not(.tilt-glare, .tilt-glow) { position: relative; z-index: 1; }
.pillar-ai .pillar-top { grid-column: 1 / -1; }
.pillar-ai h3, .pillar-ai > p, .pillar-ai .text-link { grid-column: 1; }
.pillar-ai .text-link { justify-self: start; }
.pillar-ai .module-list { grid-column: 2; grid-row: 2 / span 3; margin: 0; align-content: flex-start; }
.pillar-ai .pillar-icon { background: rgba(243,124,6,.1); color: var(--ember-400); box-shadow: inset 0 0 0 1px rgba(243,124,6,.35), 0 0 30px -8px rgba(243,124,6,.7); }
.pillar-ai .pillar-icon::after { display: none; }
.pillar-ai .chip { color: var(--text-dark-muted); box-shadow: inset 0 0 0 1px var(--line-dark-strong); }
.pillar-ai > p { color: var(--text-dark-muted); }
.pillar-ai .module-list li { background: rgba(255,249,228,.04); box-shadow: inset 0 0 0 1px var(--line-dark-strong); color: var(--bone-50); }
.pillar-ai:hover { box-shadow: inset 0 0 0 1px var(--line-dark-strong), var(--shadow-lg); }

/* ---------- 3D tilt + parallax cards (§11.4, kept) ---------- */
.is-tilt { transform-style: preserve-3d; transition: box-shadow .4s var(--ease-out); }
.is-tilt:hover { translate: none; }
.is-tilt :is(.pillar-top, .insight-body, .insight-meta) { transform-style: preserve-3d; }
.is-tilt :is(.pillar-icon, h3, .chip, .insight-cover) { transition: transform .6s var(--ease-expo); }
.is-tilting .pillar-icon { transform: translateZ(40px); }
.is-tilting .insight-cover { transform: translateZ(40px) scale(.96); }
.is-tilting:is(.pillar, .insight) h3 { transform: translateZ(24px); }
.is-tilting:is(.pillar, .insight) .chip { transform: translateZ(16px); }
.is-tilt.is-tilting, .is-tilt.is-focus-tilt { box-shadow: inset 0 0 0 1px var(--line-light), var(--shadow-lg), 0 30px 60px -34px rgba(230,52,6,.38); }
.pillar-ai.is-tilting, .pillar-ai.is-focus-tilt { box-shadow: inset 0 0 0 1px var(--line-dark-strong), var(--shadow-lg), 0 30px 70px -30px rgba(230,52,6,.5); }
.tilt-glare, .tilt-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease-out); z-index: 3; }
.tilt-glare { background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,253,248,.18), rgba(255,253,248,0) 45%, rgba(18,19,14,.035) 100%); }
.tilt-glow {
  padding: 1px;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(243,124,6,.95), rgba(235,107,6,.35) 40%, rgba(235,107,6,0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.is-tilting > .tilt-glare, .is-tilting > .tilt-glow, .is-focus-tilt > .tilt-glow { opacity: 1; }

/* ==========================================================================
   How We Help — hover-spotlight grid with shared hairlines (Aceternity rebuild)
   ========================================================================== */
.capabilities-section .section-head { margin-inline: auto; text-align: center; max-width: 820px; }
.capabilities-section .section-head .section-sub { margin-inline: auto; }
.capabilities {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-light-strong); border-left: 1px solid var(--line-light-strong);
}
.capability {
  position: relative; overflow: hidden;
  padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 40px) clamp(32px, 3.4vw, 52px);
  border-right: 1px solid var(--line-light-strong); border-bottom: 1px solid var(--line-light-strong);
}
.cap-wash {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(253,235,221,.95), rgba(253,235,221,.35) 45%, rgba(253,235,221,0));
  opacity: 0; transform: translateY(18%);
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-expo);
}
.cap-bar {
  position: absolute; left: -1px; top: clamp(28px, 3vw, 44px); width: 2px; height: 32px; border-radius: 0 2px 2px 0;
  background: var(--ember-gradient);
  transform: scaleY(.0); transform-origin: 50% 50%;
  transition: transform .5s var(--spring);
}
.capability > :not(.cap-wash, .cap-bar) { position: relative; }
.capability-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 26px; color: var(--ember-700); transition: transform .5s var(--spring); }
.capability-icon svg { width: 26px; height: 26px; }
.capability h3 { font-size: clamp(1.25rem, 1.1rem + .4vw, 1.5rem); margin-bottom: 10px; transition: transform .5s var(--spring); }
.capability p { color: var(--text-light-muted); font-size: var(--fs-small); line-height: 1.6; max-width: 40ch; }
.capability:hover .cap-wash, .capability.is-hot .cap-wash { opacity: 1; transform: none; }
.capability:hover .cap-bar, .capability.is-hot .cap-bar { transform: scaleY(1.4); }
.capability:hover .capability-icon, .capability.is-hot .capability-icon { transform: translateY(-4px); }
.capability:hover h3 { transform: translateX(4px); }

/* ==========================================================================
   Why ProIT — sticky-scroll narrative on obsidian (§12.5)
   ========================================================================== */
.why-section h2 em { color: var(--ember-text-dark); font-size: 1.08em; }
.why-scroll { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.why-head { grid-column: 1 / span 5; position: sticky; top: 128px; margin-bottom: 0; }
.why-grid { grid-column: 7 / span 6; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 20px; row-gap: 72px; }
.why-rail { position: relative; grid-row: 1; width: 1px; justify-self: center; background: var(--line-dark-strong); }
.why-rail-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ember-400), var(--ember-600)); box-shadow: 0 0 10px rgba(243,124,6,.6); transform-origin: top; transform: scaleY(var(--why-p, 0)); }
.no-why-live .why-rail-fill { transform: scaleY(1); }
.why-list { grid-row: 1; grid-column: 2; }
.why-item {
  display: grid; grid-template-columns: clamp(84px, 9vw, 140px) 1fr; gap: 20px; align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--line-dark);
}
.why-item:last-child { border-bottom: 1px solid var(--line-dark); }
.why-num {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(3.5rem, 2.2rem + 3.6vw, 6.5rem); line-height: .8; letter-spacing: -0.03em;
  color: var(--ember-text-dark);
  transition: color .5s var(--ease-out), opacity .5s var(--ease-out), transform .7s var(--spring-soft);
}
.why-item h3 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.875rem); margin-bottom: 12px; transition: color .5s var(--ease-out); }
.why-item p { color: var(--text-dark-muted); max-width: 46ch; transition: color .5s var(--ease-out); }
/* JS on: items pass a reading line; the active one is full ivory, the rest dim */
.why-live .why-item:not(.is-current) .why-num { color: var(--text-dark-dim); opacity: .35; transform: scale(.94); transform-origin: left top; }
.why-live .why-item:not(.is-current) h3 { color: var(--text-dark-dim); }
.why-live .why-item:not(.is-current) p { color: var(--text-dark-dim); }
.why-live .why-item.is-current h3 { color: var(--bone-50); }
.why-live .why-item.is-current p { color: #C9C7BC; }
.why-live .why-item.is-current .why-num { text-shadow: 0 0 40px rgba(243,124,6,.45); }

.model-card {
  grid-column: 2; grid-row: 2;
  position: relative;
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--radius-panel);
  background: var(--noise), rgba(26, 26, 23, .7);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line-dark-strong), inset 0 1px 0 rgba(255,249,228,.07), 0 40px 100px -40px rgba(0,0,0,.8);
}
.model-card .border-beam { --beam-duration: 9s; }
.model-card h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); letter-spacing: -0.04em; line-height: 1.04; }
.model-card .check-list { font-size: var(--fs-small); gap: 12px; }
.model-card-foot { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.model-card-foot p { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.015em; color: var(--bone-50); }

/* Consultation strip: a connected timeline; the ember beam travels 01 → 04 (§12.5) */
.consult {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px;
  margin-top: clamp(96px, 10vw, 160px); padding-top: clamp(56px, 6vw, 88px);
  border-top: 1px solid var(--line-dark);
}
.consult-copy { grid-column: 1 / span 7; }
.consult-copy h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 18px; max-width: 18ch; }
.consult-copy p { color: var(--text-dark-muted); max-width: 60ch; }
.timeline { grid-column: 1 / -1; position: relative; }
.timeline-track { position: absolute; left: 36px; width: var(--tl-len, calc(75% + 18px)); top: 12px; height: 1px; background: var(--line-dark-strong); overflow: hidden; }
/* a soft highlight keeps travelling the finished beam (composited transform; paused off-screen) */
.timeline-track::after {
  content: ""; position: absolute; inset: -1px 0; opacity: 0;
  background: linear-gradient(90deg, transparent calc(100% - 160px), rgba(255,249,228,.95) calc(100% - 40px), transparent);
  transform: translateX(-100%);
}
.timeline.is-done .timeline-track::after { opacity: 1; animation: tl-travel 3.6s cubic-bezier(.45,0,.25,1) infinite; }
.timeline.is-paused .timeline-track::after { animation-play-state: paused; }
@keyframes tl-travel { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes tl-travel-y { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.timeline-beam {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ember-600), var(--ember-400) 80%, var(--cream));
  box-shadow: 0 0 12px rgba(243,124,6,.75);
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.no-timeline-live .timeline-beam { --p: 1; }
.consult-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 10px;
  padding: 72px 24px 26px;
  font-family: var(--font-sans); font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); font-weight: 500; letter-spacing: -0.02em; color: var(--bone-50);
}
.step::before { /* the dark-glass card under each node */
  content: ""; position: absolute; inset: 46px 0 0; z-index: -1; border-radius: 18px;
  background: linear-gradient(180deg, rgba(26,26,23,.92), rgba(17,17,16,.72));
  box-shadow: inset 0 0 0 1px var(--line-dark), inset 0 1px 0 rgba(255,249,228,.05), 0 30px 60px -36px rgba(0,0,0,.9);
  transition: box-shadow .6s var(--ease-out);
}
.step::after { /* stem from node to card */
  content: ""; position: absolute; left: 36px; top: 26px; width: 1px; height: 20px; background: var(--line-dark-strong); transition: background-color .4s;
}
.step.is-lit::before, .no-timeline-live .step::before { box-shadow: inset 0 0 0 1px rgba(243,124,6,.28), inset 0 1px 0 rgba(255,249,228,.06), 0 30px 60px -36px rgba(0,0,0,.9), 0 0 48px -24px rgba(243,124,6,.35); }
.step.is-lit::after, .no-timeline-live .step::after { background: rgba(243,124,6,.6); }
.step-node {
  position: absolute; left: 24px; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--obsidian-1000); box-shadow: inset 0 0 0 1px var(--line-dark-strong);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), scale .6s var(--spring);
}
.step-node::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: rgba(255,249,228,.25); transition: background-color .4s; }
.step.is-lit .step-node, .no-timeline-live .step-node { box-shadow: inset 0 0 0 1px var(--ember-400), 0 0 0 7px rgba(243,124,6,.08), 0 0 36px rgba(243,124,6,.38); scale: 1.06; }
.step.is-lit .step-node::after, .no-timeline-live .step-node::after { background: var(--ember-400); }
.consult-num { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(2.75rem, 2rem + 1.6vw, 3.75rem); line-height: .9; letter-spacing: -0.02em; color: var(--ember-text-dark); }

/* ==========================================================================
   Our Reach — glowing world map, city-network arcs, segmented control (§12.5, §13.4)
   ========================================================================== */
.tablist.segmented {
  position: relative; isolation: isolate;
  display: inline-flex; gap: 0;
  padding: 5px; margin-bottom: 44px;
  border-radius: var(--radius-pill);
  background: var(--bone-100);
  box-shadow: inset 0 0 0 1px var(--line-light);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tablist::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1;
  min-height: 44px; padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 500; font-size: .9375rem; color: var(--text-light-muted);
  white-space: nowrap;
  transition: color .3s;
}
.tab:hover { color: var(--ink-950); }
.tab[aria-selected="true"] { color: var(--ink-950); }
.tab:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-pill); }
.tab-indicator {
  position: absolute; z-index: 0; left: 0; top: 5px; bottom: 5px; width: 100px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(18,19,14,.08), 0 6px 16px -8px rgba(18,19,14,.35), inset 0 0 0 1px rgba(18,19,14,.04);
  transition: transform .6s var(--spring), width .6s var(--spring);
}
.tabpanel.is-entering { animation: fade .45s var(--ease-out) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tabpanel:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-card); }

.countries { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.map-panel {
  --pad: clamp(20px, 2.5vw, 36px);
  grid-column: 1 / -1; /* V2.2: the world map runs the full container; the regions sit in a row below it */
  position: relative;
  padding: var(--pad);
  border-radius: var(--radius-panel);
  background: var(--obsidian-900);
  color: var(--bone-50);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line-dark);
  overflow: hidden;
}
.map-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 60% at 62% 52%, rgba(243,124,6,.12), transparent 70%); }
.world-map, .map-arcs { position: relative; width: 100%; height: auto; overflow: visible; }
.map-arcs { position: absolute; left: var(--pad); top: var(--pad); width: calc(100% - 2 * var(--pad)); pointer-events: none; }
.map-land { stroke: var(--bone-50); stroke-opacity: .16; stroke-width: .62; stroke-linecap: round; fill: none; }
.map-active { stroke: var(--ember-400); stroke-opacity: .5; stroke-width: .62; stroke-linecap: round; fill: none; }
.map-city { fill: var(--ember-400); stroke: var(--obsidian-900); stroke-width: .2; transform-box: fill-box; transform-origin: center; transition: transform .4s var(--spring), fill .2s; filter: drop-shadow(0 0 .9px rgba(243,124,6,.95)); }
.map-city.is-hot { transform: scale(2.1); fill: var(--cream); }
/* V2.2a (§13.4): HQs in India and the USA get the V2 HQ treatment, a brighter core inside two staggered pulsing rings */
.map-hq-dot { fill: var(--ember-500); stroke: var(--cream); stroke-width: .35; filter: drop-shadow(0 0 1.4px rgba(243,124,6,1)); }
.map-hq-ring { fill: none; stroke: var(--ember-400); stroke-width: .25; transform-box: fill-box; transform-origin: center; animation: hq-pulse 2.8s var(--ease-out) infinite; }
.map-hq-ring-2 { animation-delay: 1.4s; }
@keyframes hq-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.6); opacity: 0; } }
/* The arcs fan out from the two HQs (--k = order), each city pulses once as its first arc lands (--t = landing step) */
.map-arcs path {
  fill: none; stroke: var(--ember-400); stroke-width: .3; stroke-linecap: round; stroke-opacity: .7;
  stroke-dasharray: 1 1; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 1.2px rgba(243,124,6,.9));
}
.kin .map-arcs:not(.is-drawn) path { stroke-dashoffset: 1; }
.kin .map-arcs path { transition: stroke-dashoffset 1.1s var(--ease-expo); transition-delay: calc(var(--k) * 180ms + 200ms); }
.map-pulse { fill: none; stroke: var(--ember-400); stroke-width: .35; opacity: 0; transform-box: fill-box; transform-origin: center; }
.kin .map-arcs.is-drawn .map-pulse { animation: pulse 1.6s var(--ease-out) both; animation-delay: calc(var(--t) * 180ms + 200ms + 550ms); }
@keyframes pulse { from { transform: scale(1); opacity: .95; } to { transform: scale(4.2); opacity: 0; } }
.map-legend { position: relative; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-family: var(--font-mono); font-size: .75rem; color: var(--text-dark-muted); }
.map-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 9px; height: 9px; border-radius: 50%; }
.lg-hq { background: var(--ember-500); box-shadow: 0 0 0 2px var(--obsidian-900), 0 0 0 3.5px var(--ember-400); }
.lg-active { background: var(--ember-400); box-shadow: 0 0 6px rgba(243,124,6,.8); }
.lg-other { background: rgba(255,249,228,.28); }

.regions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.region h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 1.5rem; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line-light-strong); }
.region-count { font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; color: var(--ember-700); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip {
  background: var(--white); color: var(--ink-950);
  box-shadow: inset 0 0 0 1px var(--line-light-strong);
  font-size: .75rem;
  padding: 7px 12px;
  cursor: default;
  transition: box-shadow .2s, background-color .2s, translate .4s var(--spring);
}
.chips .chip:hover { box-shadow: inset 0 0 0 1px var(--ember-500); translate: 0 -1px; }
.chips .chip-hq { background: var(--ink-950); color: var(--bone-50); box-shadow: none; }
.chips .chip-hq::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember-400); margin-right: 8px; box-shadow: 0 0 6px var(--ember-400); }

.industry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-light-strong); border-left: 1px solid var(--line-light-strong); }
.industry-grid li {
  display: flex; align-items: center; gap: 14px;
  min-height: 92px; padding: 20px 22px;
  border-right: 1px solid var(--line-light-strong); border-bottom: 1px solid var(--line-light-strong);
  font-weight: 500; line-height: 1.3; letter-spacing: -0.01em;
  transition: background-color .3s var(--ease-out);
}
.industry-grid li:hover { background: var(--white); }
.industry-grid svg { width: 22px; height: 22px; flex: none; color: var(--ember-700); transition: transform .5s var(--spring); }
.industry-grid li:hover svg { transform: translateY(-3px); }

.domain-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.domain-list div { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 16px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line-light-strong); }
.domain-list dt { font-size: 1.125rem; font-weight: 560; letter-spacing: -0.02em; line-height: 1.3; }
.domain-list dd { color: var(--text-light-muted); font-size: var(--fs-small); }
.domain-list div:has(dt:only-child) { grid-template-columns: 1fr; }

.reach-foot-sep { color: var(--text-light-muted); }
.reach-foot { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-family: var(--font-mono); font-size: .8125rem; color: var(--text-light-muted); }
.reach-foot .text-link { font-family: var(--font-sans); font-size: var(--fs-small); }

/* ==========================================================================
   Latest Insights — editorial feature grid, generative covers, V1 tilt kept
   ========================================================================== */
.insight-grid.editorial { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.insight {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--radius-panel);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-light), var(--shadow-sm);
  transition: box-shadow .4s var(--ease-out), translate .4s var(--ease-out);
}
.insight:hover { box-shadow: inset 0 0 0 1px var(--line-light), var(--shadow-lg); translate: 0 -2px; }
.editorial .insight:first-child { grid-row: 1 / span 2; }
.editorial .insight:first-child .insight-cover { aspect-ratio: auto; flex: 1 1 auto; min-height: 320px; }
.editorial .insight:first-child .insight-body { flex: 0 0 auto; }
.editorial .insight:first-child .insight-foot { margin-top: 0; padding-top: 28px; }
.editorial .insight:first-child h3 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.25rem); }
.editorial .insight:not(:first-child) { flex-direction: row; }
.editorial .insight:not(:first-child) .insight-cover { flex: 0 0 42%; aspect-ratio: auto; border-radius: var(--radius-panel) 0 0 var(--radius-panel); }
.editorial .insight:not(:first-child) .insight-cover svg { inset: 16px 12px; width: calc(100% - 24px); height: calc(100% - 32px); }
.editorial .insight:nth-child(2) .insight-cover { background: #F2EEE5; }
.editorial .insight:nth-child(3) .insight-cover { background: linear-gradient(135deg, #FFF6EE, #FDEBDD); }
.insight-cover { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-panel) var(--radius-panel) 0 0; }
.insight-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: scale .8s var(--ease-expo); }
.insight:hover .insight-cover svg { scale: 1.04; }
/* slow drift on hover: two layers moving against each other */
.insight-cover .drift { transition: transform 2.4s var(--ease-expo); transform-box: view-box; }
.insight:hover .drift-a { transform: translate(-10px, 4px) rotate(-1.5deg); transform-origin: 60% 50%; }
.insight:hover .drift-b { transform: translate(8px, -4px); }
.insight-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 26px 28px 20px; }
.insight-meta > * { white-space: nowrap; }
.insight-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--font-mono); font-size: .75rem; color: var(--text-light-muted); margin-bottom: 16px; }
.insight h3 { font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 12px; }
.insight h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .6s var(--ease-expo); }
.insight:hover h3 a, .insight h3 a:focus-visible { background-size: 100% 1.5px; }
.insight-body > p { color: var(--text-light-muted); font-size: var(--fs-small); }
.insight-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; flex-wrap: wrap; }
.byline { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 500; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink-950); color: var(--ember-text-dark); font-family: var(--font-mono); font-size: .625rem; font-weight: 500; letter-spacing: .04em; }

/* ==========================================================================
   Contact — cinematic close: centred aurora, huge H2, glass form (§12.5)
   ========================================================================== */
.contact-section { background: var(--obsidian-1000); padding-top: clamp(6rem, 4rem + 8vw, 12rem); }
.aurora-contact .mesh-blob:nth-child(1) { --c: rgba(243,124,6,.26); --t: 36s; --dx: 5%; --dy: -4%; width: clamp(520px, 60vw, 1200px); left: 50%; top: -18%; margin-left: calc(clamp(520px, 60vw, 1200px) / -2); }
.aurora-contact .mesh-blob:nth-child(2) { --c: rgba(230,52,6,.18); --t: 30s; --dx: -6%; --dy: 5%; --delay: -10s; width: clamp(380px, 40vw, 800px); left: 14%; top: 4%; }
.aurora-contact .mesh-blob:nth-child(3) { --c: rgba(235,107,6,.16); --t: 26s; --dx: 6%; --dy: 6%; --delay: -6s; width: clamp(360px, 36vw, 720px); right: 10%; top: 10%; }
.contact-section .aurora::after { /* keep the copy column dark and high-contrast */
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(10,10,8,.35) 40%, var(--obsidian-1000) 75%);
}
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; align-items: start; }
.contact-copy { display: contents; }
.contact-copy > .eyebrow { grid-column: 1 / -1; justify-self: center; }
.contact-copy > h2 {
  grid-column: 1 / -1; text-align: center; justify-self: center;
  font-size: clamp(2.75rem, 1rem + 6vw, 8rem); line-height: .96; letter-spacing: -0.045em; font-weight: 600;
  max-width: 15ch; margin-bottom: clamp(64px, 7vw, 112px);
}
.contact-body { grid-column: 1 / span 5; padding-top: 12px; }
.contact-body .section-sub { margin-top: 0; }
.contact-note { margin-top: 18px; font-size: var(--fs-small); color: var(--text-dark-muted); max-width: 56ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.form-card {
  grid-column: 7 / span 6;
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-panel);
  background: var(--noise), rgba(26, 26, 23, .74);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line-dark-strong), inset 0 1px 0 rgba(255,249,228,.07), 0 50px 120px -40px rgba(0,0,0,.9);
}
.form-card .border-beam { --beam-duration: 9s; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: grid; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 60px;
  padding: 26px 16px 10px;
  border-radius: 12px;
  border: 0;
  background: rgba(255,249,228,.04);
  box-shadow: inset 0 0 0 1px var(--line-dark-strong);
  color: var(--bone-50);
  font-size: 1rem;
  caret-color: var(--ember-400);
  transition: box-shadow .35s var(--ease-out), background-color .25s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; padding-top: 30px; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px rgba(255,249,228,.28); }
/* ember focus ring that animates in */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  background: rgba(255,249,228,.06);
  box-shadow: inset 0 0 0 1px var(--ember-400), 0 0 0 4px rgba(243,124,6,.18), 0 0 24px -6px rgba(243,124,6,.5);
  border-radius: 12px;
}
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1px #FF8A5B; }
/* floating labels: control first, label after (no copy order change) */
.field label {
  position: absolute; left: 17px; top: 19px;
  font-size: 1rem; font-weight: 500; color: var(--text-dark-muted);
  pointer-events: none; transform-origin: left top;
  transition: transform .45s var(--spring), color .25s;
}
.field :is(input, textarea):is(:focus, :not(:placeholder-shown)) + label { transform: translateY(-11px) scale(.75); color: var(--ember-text-dark); }
.field :is(input, textarea):not(:focus):not(:placeholder-shown) + label { color: var(--text-dark-muted); }
.field-select { display: flex; flex-direction: column; }
.field-select label { position: absolute; z-index: 1; transform: translateY(-11px) scale(.75); }
.field-error { margin-top: 6px; font-size: .8125rem; font-weight: 500; color: #FF9B70; }
.field-error:empty { display: none; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--bone-50); border-bottom: 1.5px solid var(--bone-50); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field select { appearance: none; padding-right: 44px; cursor: pointer; }
.field select option { background: var(--obsidian-800); color: var(--bone-50); }
.form-submit { margin-top: 6px; }
.form-success { text-align: left; padding: 8px 0; }
.form-success.is-entering { animation: success-in .7s var(--spring) both; }
@keyframes success-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.form-success-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(243,124,6,.14); color: var(--ember-400); box-shadow: inset 0 0 0 1px rgba(243,124,6,.4), 0 0 30px -6px rgba(243,124,6,.6); margin-bottom: 22px; }
.form-success-icon svg { width: 26px; height: 26px; stroke-width: 2; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--text-dark-muted); margin-bottom: 24px; }
.form-success .btn-secondary { color: var(--bone-50); border-color: var(--line-dark-strong); }
.form-success .btn-secondary:hover { background: rgba(255,249,228,.09); }

/* ==========================================================================
   Footer — Light Beam (§12.5): a slow diagonal shaft and a pointer glow
   ========================================================================== */
.site-footer {
  position: relative; isolation: isolate; overflow: clip;
  background: var(--obsidian-1000); color: var(--text-dark-muted);
  padding-top: clamp(80px, 8vw, 128px);
}
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(243,124,6,.6), transparent); }
.footer-beam { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.footer-shaft {
  position: absolute; top: -40%; left: 46%; width: 240px; height: 190%;
  background: linear-gradient(90deg, transparent, rgba(243,124,6,.08) 35%, rgba(249,168,80,.22) 50%, rgba(243,124,6,.08) 65%, transparent);
  rotate: 32deg; mix-blend-mode: screen; filter: blur(2px);
}
.footer-shaft::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(255,249,228,.5) 50%, transparent); }
.footer-shaft-2 { left: 66%; width: 120px; opacity: .55; }
.footer-beam.is-live .footer-shaft { animation: shaft-sway 18s ease-in-out infinite alternate; }
.footer-beam.is-live .footer-shaft-2 { animation-duration: 24s; animation-delay: -8s; }
@keyframes shaft-sway { from { translate: -6vw 0; } to { translate: 6vw 0; } }
.footer-glow { position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(243,124,6,.1), transparent 70%); opacity: 0; transition: opacity .5s; }
.footer-glow.is-on { opacity: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 72px; }
.logo-plate { display: inline-flex; padding: 12px 18px; border-radius: 14px; background: var(--white); box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); }
.logo-plate img { height: 40px; width: auto; }
.footer-tagline { margin-top: 28px; font-size: 1.375rem; font-weight: 560; line-height: 1.2; color: var(--bone-50); letter-spacing: -0.03em; }
.footer-mission { margin-top: 14px; font-size: var(--fs-small); max-width: 46ch; }
.footer-col h2 { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ember-text-dark); margin-bottom: 14px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; color: #D6D4C9; transition: color .2s; }
.footer-col a:hover { color: var(--bone-50); }
.footer-contact li { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--ember-400); flex: none; }
.footer-contact a { min-height: 0; word-break: break-word; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: .75rem; }
.footer-bottom ul { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; transition: color .2s; }
.footer-bottom a:hover { color: var(--bone-50); }
.to-top svg { width: 14px; height: 14px; transition: transform .4s var(--spring); }
.to-top:hover svg { transform: translateY(-3px); }

/* ---------- Dialogs ---------- */
.modal {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: var(--radius-panel);
  background: var(--bone-50); color: var(--ink-950);
  box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(10,10,8,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: result-in .4s var(--ease-expo) both; }
.modal-inner { position: relative; padding: clamp(28px, 4vw, 44px); display: grid; gap: 16px; justify-items: start; }
.modal-inner h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); padding-right: 40px; letter-spacing: -0.035em; }
.modal-inner p { color: var(--text-light-muted); }
.modal-inner a:not(.btn) { color: var(--ember-700); text-decoration: underline; text-underline-offset: 3px; }
.modal-note { color: var(--ink-950) !important; font-size: 1.0625rem; font-weight: 500; line-height: 1.45; }
.modal-inner .insight-meta { margin-bottom: 0; }
.modal-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color .2s; }
.modal-close:hover { background: var(--bone-100); }
.modal-close svg { width: 20px; height: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1279px) {
  .primary-nav a { padding: 0 10px; }
  .capsule { gap: 12px; }
}

@media (max-width: 1099px) {
  .primary-nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .capsule { max-width: 720px; }

  .hero-main { grid-column: 1 / -1; min-height: 0; padding-top: 128px; padding-bottom: 48px; }
  .hero-title { max-width: 12ch; }
  .console { grid-column: 1 / -1; grid-row: 2; margin: 0 0 64px; }
  .hero-stats { grid-row: 3; }

  .quiz-aside, .quiz-card { grid-column: 1 / -1; }
  .quiz-card { min-height: 0; }
  .quiz-aside { order: 2; }

  .section-head-split h2 { grid-column: 1 / -1; }
  .section-head-split .section-sub { grid-column: 1 / span 9; margin-top: 24px; }

  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "fusion fusion" "ebs netsuite" "ai ai"; }
  .pillar-art, .pillar-fusion .pillar-art { max-width: 420px; margin-inline: auto; flex: none; }

  .why-scroll { display: block; }
  .why-head { position: static; margin-bottom: 56px; }
  .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-city, .map-pulse { r: 1.35px; }
  .map-hq-dot, .map-hq-ring { r: 1.5px; }
  .map-arcs path { stroke-width: .45; }
  .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .contact-body, .form-card { grid-column: 1 / -1; }
  .form-card { margin-top: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  .insight-grid.editorial { grid-template-columns: 1fr; }
  .editorial .insight:first-child { grid-row: auto; }
  .editorial .insight:first-child .insight-cover { aspect-ratio: 16 / 9; min-height: 0; }
  .domain-list { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --seam: 120px; }
  .site-header { top: 10px; }
  .capsule { gap: 12px; }
  .brand { padding-left: 8px; }
  .brand-logo { height: 32px; }
  .header-cta { padding: 0 14px; font-size: .875rem; }

  .hero-main { padding-top: 112px; }
  .hero-pill { margin-bottom: 26px; }
  .hero-title { margin-bottom: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > div { flex-direction: row-reverse; justify-content: space-between; align-items: center; padding: 22px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .hero-stats > div:first-child { border-top: 0; }
  .hero-stats dd { font-size: 2.75rem; }
  .hero-stats dt { max-width: 18ch; text-align: right; }
  .console-bar::after { translate: -12px 0; }
  .console-mods > p { padding-left: 0; }
  .platform-title { font-size: 1rem; }

  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 68px; }
  .quiz-nav .btn, .quiz-result-actions .btn { flex: 1 1 auto; }

  .stat { padding-inline: 8px; }
  .stat dd { font-size: clamp(2.25rem, .6rem + 8vw, 4.5rem); }

  .bento { grid-template-columns: 1fr; grid-template-areas: "fusion" "ebs" "netsuite" "ai"; }
  .pillar-ai { grid-template-columns: 1fr; }
  .pillar-ai .module-list { grid-column: 1; grid-row: auto; margin: 22px 0 24px; }
  .pillar-ai .text-link { grid-row: auto; }
  .capabilities { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 16px minmax(0, 1fr); column-gap: 14px; }
  .why-item { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .why-num { font-size: 3.5rem; }

  .timeline-track { left: 12px; width: 1px; top: 34px; height: var(--tl-len, calc(100% - 140px)); }
  .timeline-beam { transform-origin: top; transform: scaleY(var(--p, 0)); background: linear-gradient(180deg, var(--ember-600), var(--ember-400) 80%, var(--cream)); }
  .timeline-track::after { inset: 0 -1px; background: linear-gradient(180deg, transparent calc(100% - 120px), rgba(255,249,228,.95) calc(100% - 30px), transparent); transform: translateY(-100%); }
  .timeline.is-done .timeline-track::after { animation-name: tl-travel-y; }
  .consult-copy { grid-column: 1 / -1; }
  .consult-steps { grid-template-columns: 1fr; gap: 16px; }
  .step { margin-left: 44px; padding: 22px; }
  .step::before { inset: 0; }
  .step::after { left: -20px; top: 34px; width: 20px; height: 1px; }
  .step-node { left: -44px; top: 22px; }

  .industry-grid { grid-template-columns: 1fr 1fr; }
  .industry-grid li { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 18px 16px; font-size: .9375rem; }
  .domain-list div { grid-template-columns: 1fr; gap: 4px; }
  .tablist.segmented { display: flex; width: 100%; }
  .tab { flex: 1 1 auto; padding: 0 10px; font-size: .8125rem; }
  .beams { display: none; }

  .editorial .insight:not(:first-child) { flex-direction: column; }
  .editorial .insight:not(:first-child) .insight-cover { flex: none; aspect-ratio: 16 / 10; border-radius: var(--radius-panel) var(--radius-panel) 0 0; }

  .contact-copy > h2 { text-align: left; justify-self: start; }
  .contact-copy > .eyebrow { justify-self: start; }
  .contact-actions .btn { flex: 1 1 100%; }
  .contact-form { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .reach-foot-sep { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 379px) {
  .header-cta { display: none; } /* the menu sheet carries the CTA; the hero CTA sits right below */
  .menu-toggle { margin-left: auto; }
  .btn { padding: 0 20px; }
}

/* Wide screens (≥ 1600): the display type and the console scale up with the frame (§4, §12.1) */
@media (min-width: 1600px) {
  :root {
    --fs-h1: clamp(3rem, 1.6rem + 5.4vw, 7.5rem);
    --fs-body: clamp(1.125rem, 0.875rem + 0.25vw, 1.25rem);
  }
  :where(.wrap) p { max-width: 72ch; }
  .hero-grid, .quiz-grid, .countries, .contact-grid, .why-scroll { column-gap: clamp(24px, 2vw, 48px); }
  .console { zoom: 1.1; }
  .capsule { max-width: 1180px; }
}
@media (min-width: 1920px) { .console { zoom: 1.2; } }
@media (min-width: 2400px) { .console { zoom: 1.3; } }

/* ---------- Touch / coarse pointers: static aurora, no spotlights (§12.4 mobile) ---------- */
@media (hover: none), (pointer: coarse), (max-width: 767px) {
  .mesh.is-live .mesh-blob, .beams.is-live .beam-shaft, .footer-beam.is-live .footer-shaft { animation: none; }
  .grid-spot, .footer-glow { display: none; }
  .console { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(26,26,23,.92); }
}

/* ---------- Glass fallback: solid token fills without backdrop-filter ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .capsule::before { background: var(--bone-50); }
  .console, .quiz-card, .model-card, .form-card { background: var(--obsidian-800); }
}

/* ---------- CTAs: glowing bezier-curve transitions (§11.5, kept) ---------- */
.kin .cta-glow { position: relative; isolation: isolate; }
.kin .cta-glow:hover { box-shadow: none; }
.kin .cta-glow::before {
  content: ""; position: absolute; inset: 8px 12px -6px; z-index: -2; border-radius: inherit; pointer-events: none;
  background: var(--ember-gradient);
  filter: blur(14px);
  opacity: .34; transform: scale(.94);
  transition: opacity .5s var(--ease-curve), transform .5s var(--ease-curve);
  animation: halo-breathe 3.6s ease-in-out infinite alternate;
}
.kin .cta-glow:is(:hover, :focus-visible)::before { opacity: .85; transform: scale(1.12); }
.kin .cta-glow:disabled::before { opacity: 0; animation: none; }
@keyframes halo-breathe { from { scale: .95; } to { scale: 1.05; } }
.cta-sheen { position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.cta-sheen::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 150%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, rgba(255,253,248,0) 0 60%, rgba(255,253,248,.95) 80%, rgba(255,253,248,0) 92%);
  animation: sheen-spin 6s linear infinite;
}
.cta-glow:hover .cta-sheen::before { animation-duration: 2.4s; }
.cta-sheen::after { content: ""; position: absolute; inset: 1.5px; border-radius: inherit; background: var(--btn-fill); transition: background-color .2s var(--ease-out); }
.cta-glow:disabled .cta-sheen { display: none; }
@keyframes sheen-spin { to { rotate: 1turn; } }

.cta-curve.btn { position: relative; }
.btn .cta-ring { position: absolute; left: -1.5px; top: -1.5px; width: calc(100% + 3px); height: calc(100% + 3px); max-width: none; overflow: visible; pointer-events: none; }
.cta-ring rect {
  x: .75px; y: .75px; width: calc(100% - 1.5px); height: calc(100% - 1.5px);
  rx: calc(var(--btn-h) / 2 - .75px); ry: calc(var(--btn-h) / 2 - .75px);
  fill: none; stroke: var(--ember-400); stroke-width: 1.5px;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 5px rgba(243,124,6,.65));
  transition: stroke-dashoffset .75s var(--ease-curve);
}
.cta-curve.btn:is(:hover, :focus-visible) .cta-ring rect { stroke-dashoffset: 0; }
.text-link.has-line { background: none; }
.text-link .cta-line { position: absolute; left: 0; top: calc(50% + .5em); width: 100%; height: .55em; max-width: none; overflow: visible; pointer-events: none; }
.text-link.has-arrow > .cta-line { width: calc(100% - 26px); }
.cta-line path {
  fill: none; stroke: currentColor; stroke-width: 1.5px; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
  opacity: 0; /* Chrome mis-scales dashes on non-scaling strokes; never show a sliver at rest */
  filter: drop-shadow(0 0 3px rgba(243,124,6,.55));
  transition: stroke-dashoffset .55s var(--ease-curve), opacity .15s linear;
}
.has-line:is(:hover, :focus-visible) .cta-line path { stroke-dashoffset: 0; opacity: 1; }
.cta-arrow { offset-path: path("M0 0C2 -3.2 4.2 -3.4 6 0"); offset-anchor: 0 0; offset-distance: 0%; offset-rotate: 0deg; transition: offset-distance .55s var(--ease-curve) !important; }
.text-link.has-line:is(:hover, :focus-visible) .cta-arrow { transform: none; offset-distance: 100%; }

/* ==========================================================================
   Reduced motion (§11.7, §12.6): every effect lands on its final static state
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee-track, .mesh-blob, .beam-shaft, .footer-shaft, .border-beam, .kin .cta-glow::before, .cta-sheen::before, .console-signal i, .hero-pill::before, .timeline-track::after { animation: none !important; }
  .border-beam { --beam-angle: 220deg; }
  .cta-sheen::before { rotate: 210deg; }
  .shimmer { animation: none !important; background-position: 50% 0, 0 0; }
  .js .hero-enter:not(.is-revealed) { transform: none; filter: none; }
  .js .hero-title .w:not(.is-revealed), .js .cut-ready .w-mask > .w:not(.is-revealed) { transform: none; }
  .js:not(.kin) :is(.hero-title .w, .hero-enter) { animation: none !important; opacity: 1; }
  .js .hero-em .hero-em-line path { stroke-dashoffset: 0 !important; animation: none !important; }
  .map-pulse { animation: none !important; opacity: 0 !important; }
  .map-hq-ring { animation: none !important; opacity: .5; transform: scale(2); }
  .map-hq-ring-2 { opacity: 0; }
  .kin .map-arcs path { stroke-dashoffset: 0 !important; }
  .grid-spot, .footer-glow { display: none; }
  .is-tilting :is(.pillar-icon, h3, .chip, .insight-cover) { transform: none; }
  .kin .stats-band:not(.is-in) :is(.stat + .stat::before, .stat dd::after) { transform: none; }
}
.nowrap { white-space: nowrap; }
