/* ==========================================================================
   Blueblaze — AI Strategy & Agentic Transformation
   ========================================================================== */

@font-face { font-family: "Wonder Unit Sans"; src: url("../fonts/WonderUnitSans-Light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Wonder Unit Sans"; src: url("../fonts/WonderUnitSans-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Wonder Unit Sans"; src: url("../fonts/WonderUnitSans-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Wonder Unit Sans"; src: url("../fonts/WonderUnitSans-Semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Wonder Unit Sans"; src: url("../fonts/WonderUnitSans-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  /* Brand */
  --navy-950: #040d1f;
  --navy-900: #071630;
  --navy-800: #0c2246;
  --navy: #012f66;          /* logo wordmark */
  --blaze: #3a55d6;         /* logo mountain */
  --blaze-light: #6f86ff;
  --spark: #2fd0db;         /* AI accent */
  --spark-soft: #b8f3f6;

  /* Neutrals */
  --ink: #0b1830;
  --ink-2: #3c4a63;
  --ink-3: #6b778c;
  --paper: #f7f6f3;
  --paper-2: #efede8;
  --white: #ffffff;
  --line: #e2e0da;
  --line-dark: rgba(255, 255, 255, 0.12);
  --on-dark: #e8edf7;
  --on-dark-2: #a9b4c9;

  /* Type */
  --font-display: "Wonder Unit Sans", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --section: clamp(72px, 10vw, 128px);
  --header-h: 72px;

  --shadow: 0 1px 2px rgba(4, 13, 31, 0.04), 0 8px 24px rgba(4, 13, 31, 0.06);
  --shadow-lg: 0 2px 4px rgba(4, 13, 31, 0.04), 0 24px 48px rgba(4, 13, 31, 0.10);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: inherit;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }
h4 { font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; }
::selection { background: var(--spark); color: var(--navy-950); }
:focus-visible { outline: 2px solid var(--blaze); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * 0.6) 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--navy-900); color: var(--on-dark); }
.section--dark .lede, .section--dark p { color: var(--on-dark-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blaze);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--spark); transform: rotate(45deg);
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--spark); }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 46em; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end;
}
.section-head--split .lede { margin: 0; }
.text-grad {
  background: linear-gradient(100deg, var(--blaze-light) 0%, var(--spark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--blaze); color: var(--white); box-shadow: 0 6px 20px rgba(58, 85, 214, 0.35); }
.btn--primary:hover { background: #2d46c0; transform: translateY(-1px); }
.btn--spark { background: var(--spark); color: var(--navy-950); }
.btn--spark:hover { background: #5fe0e8; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-dark { border-color: rgba(255,255,255,0.25); color: var(--white); }
.btn--ghost-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; color: var(--blaze);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(4, 13, 31, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-dark);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button {
  font-family: var(--font-display); font-weight: 500; font-size: 0.97rem;
  color: var(--on-dark); padding: 10px 14px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s, background-color .2s;
}
.nav > a:hover, .nav-drop > button:hover, .nav > a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-drop[data-open="true"] > button svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  width: min(620px, 90vw); padding: 12px;
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.nav-drop[data-open="true"] .dropdown,
.nav-drop:hover .dropdown, .nav-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: block; padding: 14px 16px; border-radius: 12px; transition: background-color .2s; }
.dropdown a:hover { background: var(--paper); }
.dropdown strong { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.dropdown span { display: block; font-size: 0.88rem; line-height: 1.45; color: var(--ink-3); }
.dropdown .num { font-size: 0.75rem; color: var(--blaze); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 20px; font-size: 0.95rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-dark);
  background: transparent; color: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background-color .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.is-open .nav-toggle span { background: transparent; }
.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% 30%, rgba(58, 85, 214, 0.35), transparent 60%),
              radial-gradient(800px 500px at 90% 90%, rgba(47, 208, 219, 0.14), transparent 60%),
              var(--navy-950);
  color: var(--white);
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(64px, 8vw, 112px);
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 62%); mask-image: linear-gradient(90deg, transparent 38%, #000 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--navy-950) 0%, rgba(4,13,31,0.85) 35%, rgba(4,13,31,0) 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 720px; }
.hero h1 { margin-bottom: 28px; }
.hero .lede { color: var(--on-dark-2); margin-bottom: 40px; max-width: 600px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: 0.95rem;
}
.hero-meta li { display: flex; align-items: center; gap: 10px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--spark); flex-shrink: 0; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(900px 500px at 85% 0%, rgba(58, 85, 214, 0.38), transparent 60%),
              radial-gradient(600px 400px at 100% 100%, rgba(47, 208, 219, 0.12), transparent 60%),
              var(--navy-950);
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(56px, 7vw, 96px);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 900px; }
.page-hero .lede { color: var(--on-dark-2); margin-bottom: 36px; }
.page-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; }
.page-hero-aside {
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 28px;
  background: rgba(255,255,255,0.03);
}
.page-hero-aside h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 16px; }
.page-hero-aside li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-dark); color: var(--on-dark); font-size: 0.97rem; }
.page-hero-aside li:first-child { border-top: 0; }
.page-hero-aside a { display: flex; gap: 12px; align-items: center; width: 100%; }
.page-hero-aside a:hover { color: var(--spark); }
.page-hero-aside svg { width: 16px; height: 16px; color: var(--spark); flex-shrink: 0; margin-top: 5px; }
.page-hero-aside a svg { margin-top: 0; margin-left: auto; }
.page-hero-pattern {
  position: absolute; right: -80px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%);
  opacity: 0.35; pointer-events: none;
}
.breadcrumb { display: flex; gap: 8px; font-size: 0.9rem; color: var(--on-dark-2); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--navy-900); color: var(--on-dark-2);
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  overflow: hidden; padding: 20px 0;
}
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 50s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; background: var(--spark); transform: rotate(45deg); border-radius: 1px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Problem / tangle ---------- */
.tangle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.tangle-art {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
}
.tangle-art canvas { width: 100%; height: 100%; }
.tangle-art .tag {
  position: absolute; font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.tangle-art .tag--before { left: 18px; top: 18px; background: var(--paper-2); color: var(--ink-2); }
.tangle-art .tag--after { right: 18px; bottom: 18px; background: var(--navy); color: var(--white); }
.pain-list { margin-top: 32px; display: grid; gap: 4px; }
.pain-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line);
}
.pain-list li:last-child { border-bottom: 1px solid var(--line); }
.pain-list svg { width: 22px; height: 22px; color: var(--blaze); margin-top: 2px; }
.pain-list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 2px; }
.pain-list span { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- Service pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pillar {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 44px); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pillar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--blaze), var(--spark)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.pillar:hover::after { transform: scaleX(1); }
.pillar-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.pillar-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blaze) 100%); color: var(--white);
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar-num { font-family: var(--font-display); font-weight: 500; color: var(--ink-3); font-size: 0.95rem; }
.pillar h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 12px; }
.pillar > p { color: var(--ink-2); }
.pillar-subs { margin: 8px 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.pillar-subs li {
  font-size: 0.88rem; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: var(--paper); color: var(--ink-2); border: 1px solid var(--line);
}
.pillar .link-arrow { margin-top: auto; }
.pillar--feature { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.pillar--feature > p { color: var(--on-dark-2); }
.pillar--feature .pillar-num { color: var(--on-dark-2); }
.pillar--feature .pillar-icon { background: linear-gradient(135deg, var(--blaze) 0%, var(--spark) 100%); }
.pillar--feature .pillar-subs li { background: rgba(255,255,255,0.06); border-color: var(--line-dark); color: var(--on-dark); }
.pillar--feature .link-arrow { color: var(--spark); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.process::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, var(--spark), var(--blaze-light), rgba(111,134,255,0.1));
}
.step { position: relative; padding-right: 28px; }
.step-dot {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 28px;
  background: var(--navy-900); border: 1px solid rgba(47, 208, 219, 0.5);
  font-family: var(--font-display); font-weight: 600; color: var(--spark);
}
.step h3 { color: var(--white); margin-bottom: 10px; }
.step p { font-size: 0.98rem; }
.step .step-time { display: inline-block; margin-top: 4px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--spark); }

/* ---------- Why / feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--white); padding: clamp(28px, 3vw, 40px); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(58, 85, 214, 0.08); color: var(--blaze); margin-bottom: 22px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }

/* ---------- Engagement models ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 40px);
  background: var(--white); border: 1px solid var(--line);
}
.model--highlight { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: var(--white); border-color: transparent; box-shadow: var(--shadow-lg); }
.model-label { font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blaze); margin-bottom: 16px; }
.model--highlight .model-label { color: var(--spark); }
.model h3 { font-size: 1.6rem; margin-bottom: 8px; }
.model-duration { font-size: 0.95rem; color: var(--ink-3); margin-bottom: 20px; }
.model--highlight .model-duration { color: var(--on-dark-2); }
.model > p { color: var(--ink-2); }
.model--highlight > p { color: var(--on-dark-2); }
.checklist { display: grid; gap: 10px; margin: 8px 0 32px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 0.97rem; }
.checklist svg { width: 18px; height: 18px; color: var(--blaze); margin-top: 4px; }
.model--highlight .checklist svg, .section--dark .checklist svg { color: var(--spark); }
.model .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 24px;
}
.quote:first-child { grid-row: span 2; background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--ink-2); }
.quote:first-child blockquote { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45; color: var(--white); letter-spacing: -0.01em; }
.quote > svg { width: 36px; height: 36px; color: var(--blaze); }
.quote:first-child > svg { color: var(--spark); }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; }
.quote figcaption strong { font-family: var(--font-display); font-weight: 600; }
.quote figcaption span { font-size: 0.92rem; color: var(--ink-3); }
.quote:first-child figcaption span { color: var(--on-dark-2); }

/* ---------- Mission band ---------- */
.mission { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(32px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--paper-2); }
.mission-badge {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--white); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--navy);
}
.mission h3 { margin-bottom: 8px; }
.mission p { margin: 0; color: var(--ink-2); max-width: 640px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .25s, background-color .25s, border-color .25s; }
.faq summary .plus svg { width: 14px; height: 14px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--blaze); border-color: var(--blaze); color: var(--white); }
.faq .answer { padding: 0 56px 24px 0; color: var(--ink-2); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 80px);
  background: radial-gradient(700px 400px at 100% 0%, rgba(47, 208, 219, 0.25), transparent 60%),
              radial-gradient(800px 500px at 0% 100%, rgba(58, 85, 214, 0.45), transparent 60%),
              var(--navy-950);
  color: var(--white);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--on-dark-2); margin: 0; font-size: 1.1rem; max-width: 560px; }
.cta-band .btn-row { justify-content: flex-end; }

/* ---------- Service page: sub-service blocks ---------- */
.subservice {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 88px);
  padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line);
}
.subservice:first-of-type { border-top: 0; padding-top: 0; }
.subservice-num { font-family: var(--font-display); font-weight: 500; color: var(--blaze); margin-bottom: 16px; display: block; }
.subservice h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.subservice .lede { font-size: 1.1rem; }
.subservice-body h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
.subservice-body h3 + .deliverables { margin-bottom: 36px; }
.deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deliverables li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; font-size: 0.97rem; color: var(--ink-2);
}
.deliverables strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }
.outcomes { display: flex; flex-wrap: wrap; gap: 8px; }
.outcomes li {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; background: rgba(58, 85, 214, 0.08); color: var(--navy);
}
.outcomes li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; transform: rotate(45deg); background: var(--blaze); }

/* Signals (service page intro stats / pull points) */
.signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.signal { padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.signal h3 { font-size: 1.15rem; margin-bottom: 8px; }
.signal p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.signal-icon { width: 40px; height: 40px; color: var(--blaze); margin-bottom: 18px; }

/* Related services */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related a {
  display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--white); transition: transform .25s, box-shadow .25s;
}
.related a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.related strong { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.related span { color: var(--ink-2); font-size: 0.95rem; }
.related .link-arrow { margin-top: 12px; }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 96px); }
.story-body p { font-size: 1.1rem; color: var(--ink-2); }
.timeline { display: grid; gap: 0; margin-top: 8px; }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { font-family: var(--font-display); font-weight: 600; color: var(--blaze); }
.timeline strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.timeline span { color: var(--ink-2); font-size: 0.98rem; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding-top: 24px; border-top: 2px solid var(--spark); }
.value h3 { font-size: 1.25rem; color: var(--white); }
.value p { font-size: 0.98rem; margin: 0; }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.person { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 32px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blaze)); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 1.8rem;
}
.person h3 { margin-bottom: 2px; font-size: 1.35rem; }
.person .role { color: var(--blaze); font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; display: block; }
.person p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; width: 100%;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blaze); background: var(--white); box-shadow: 0 0 0 4px rgba(58, 85, 214, 0.12); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font-size: 0.92rem; cursor: pointer; transition: all .2s; user-select: none;
}
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--blaze); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.form-foot small { color: var(--ink-3); }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 10px; display: none; }
.form-status.is-success { display: block; background: rgba(47, 208, 219, 0.14); color: var(--navy); }
.form-status.is-error { display: block; background: #fdecec; color: #8a1f1f; }
.next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.next-steps li:first-child { border-top: 0; padding-top: 0; }
.next-steps .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); font-family: var(--font-display); font-weight: 600; }
.next-steps strong { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: 2px; }
.next-steps span { color: var(--ink-2); font-size: 0.97rem; }
.contact-aside h2 { font-size: 1.6rem; margin-bottom: 24px; }
.contact-direct { margin-top: 32px; padding: 24px; border-radius: var(--radius); background: var(--paper-2); }
.contact-direct p { margin: 0 0 4px; color: var(--ink-2); font-size: 0.95rem; }
.contact-direct a { font-family: var(--font-display); font-weight: 600; color: var(--blaze); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-2); padding: clamp(64px, 8vw, 96px) 0 32px; }
.site-footer--flush { margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { height: 30px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 320px; font-size: 0.97rem; }
.footer-col h2 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; font-weight: 600; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.97rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 0.9rem; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); transition: all .2s; }
.social a:hover { color: var(--white); border-color: var(--white); }
.social svg { width: 16px; height: 16px; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 18vw, 12rem); line-height: 1; letter-spacing: -0.05em; margin-bottom: 8px; }
.notfound .lede { margin: 0 auto 36px; }
.notfound .btn-row { justify-content: center; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: .08s; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: .24s; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: .32s; }
.js .reveal-stagger.is-in > *:nth-child(6) { transition-delay: .40s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; overflow-y: auto;
    background: var(--navy-950); padding: 16px var(--gutter) 40px;
  }
  .site-header.is-open .nav > a, .site-header.is-open .nav-drop > button { font-size: 1.25rem; padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line-dark); width: 100%; justify-content: space-between; }
  .site-header.is-open .nav > a:hover { background: none; }
  .site-header.is-open .nav > .nav-mobile-cta { display: flex; background: var(--blaze); color: var(--white); margin-top: 28px; border: 0; justify-content: center; font-size: 1.05rem; padding: 16px 24px; border-radius: 999px; }
  .nav-drop .dropdown {
    position: static; transform: none; width: 100%; box-shadow: none; background: transparent; color: var(--on-dark);
    grid-template-columns: 1fr; padding: 0 0 8px; display: none; opacity: 1; visibility: visible;
  }
  .nav-drop[data-open="true"] .dropdown { display: grid; transform: none; }
  .nav-drop:hover .dropdown { transform: none; }
  .dropdown a { padding: 12px 0 12px 16px; }
  .dropdown a:hover { background: transparent; }
  .dropdown span { color: var(--on-dark-2); }
  .dropdown .num { color: var(--spark); }
  .pillars, .quotes, .faq-wrap, .tangle-grid, .page-hero-grid, .story, .contact-grid, .subservice, .cta-band, .section-head--split { grid-template-columns: 1fr; }
  .quote:first-child { grid-row: auto; }
  .faq-wrap .section-head { position: static; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .process::before { display: none; }
  .features, .models, .related, .signals { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band .btn-row { justify-content: flex-start; }
  .hero::after { background: linear-gradient(180deg, rgba(4,13,31,0.6) 0%, rgba(4,13,31,0.9) 100%); }
  .page-hero-pattern { opacity: 0.18; }
  .tangle-art { max-width: 520px; }
}
.nav > .nav-mobile-cta { display: none; }

@media (max-width: 680px) {
  body { font-size: 16px; }
  .features, .models, .related, .signals, .process, .values, .team, .deliverables, .form-grid { grid-template-columns: 1fr; }
  .mission { grid-template-columns: 1fr; text-align: left; }
  .person { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; }
  .faq .answer { padding-right: 0; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* Late additions */
.related a .link-arrow { color: var(--blaze); }
.pillar h3 a:hover { color: var(--blaze); }
.pillar--feature h3 a:hover { color: var(--spark); }
.section-head .lede .link-arrow { display: inline; }
.tangle-art .tag { transition: opacity .4s ease; }
.tangle-art[data-state="after"] .tag--before, .tangle-art:not([data-state="after"]) .tag--after { opacity: 0; }
@media (max-width: 1040px) {
  .hero-canvas { -webkit-mask-image: none; mask-image: none; opacity: 0.55; }
}
/* backdrop-filter would make the header the containing block for the fixed mobile menu */
.site-header.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--navy-950); }
