/* ============================================================
   codefactory.work — build + advisory studio
   Modern tech / product aesthetic: Space Grotesk display,
   bento grid, rounded cards, electric blue on near-white.
   Distinct from the seyiadedokun.com editorial design.
   ============================================================ */

:root {
  --paper: #ffffff;
  --paper-2: #f3f5fb;
  --paper-3: #e9edf8;
  --navy: #0c226a;
  --navy-deep: #08184f;
  --ink: #0d1018;
  --ink-2: #2a3142;
  --muted: #5b6478;
  --faint: #9aa1b4;
  --accent: #3b56ff;
  --accent-deep: #2438d6;
  --accent-soft: #eaeeff;
  --line: rgba(13, 16, 24, 0.10);
  --line-2: rgba(13, 16, 24, 0.16);
  --on-navy: #eef1ff;
  --on-navy-muted: #aebbf0;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;

  --pad: clamp(1.1rem, 3.5vw, 3.5rem);
  --maxw: 1280px;
  --gap: clamp(3.5rem, 8vw, 7rem);
  --r: 22px;
  --r-sm: 14px;
  --shadow: 0 24px 50px -34px rgba(13, 16, 24, 0.38);
  --shadow-blue: 0 30px 60px -32px rgba(59, 86, 255, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background:
    radial-gradient(55% 45% at 100% 0%, rgba(59, 86, 255, 0.08), transparent 55%),
    radial-gradient(48% 42% at 0% 14%, rgba(12, 34, 106, 0.06), transparent 55%),
    radial-gradient(60% 50% at 90% 80%, rgba(59, 86, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #fdfdff 0%, #eef1fb 50%, #e7ecf8 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem;
  font-family: var(--font-mono); font-size: 0.8rem;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- primitives ---------- */

.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-deep);
  background: var(--accent-soft); border: 1px solid rgba(59,86,255,0.18);
  padding: 0.4rem 0.8rem; border-radius: 999px;
}
.chip .n { color: var(--accent); font-weight: 500; }
.chip.dark { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); color: #c5cffb; }

.btn {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.92rem; letter-spacing: -0.01em;
  padding: 0.85rem 1.4rem; border-radius: 12px; border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  background: none; color: inherit; transition: all 0.22s ease;
}
.btn .arrow { transition: transform 0.22s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--accent-soft); }
.btn-onnavy { color: var(--on-navy); border-color: rgba(255,255,255,0.28); }
.btn-onnavy:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.cf-mark { display: block; }

/* ---------- section heading ---------- */

.section { padding: var(--gap) 0; position: relative; }
.section.tint {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(59, 86, 255, 0.09), transparent 60%),
    radial-gradient(45% 55% at 0% 100%, rgba(12, 34, 106, 0.07), transparent 60%),
    linear-gradient(180deg, #eef1fb, #e6ebf9);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* dark contrast band */
.section.dark {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: var(--on-navy);
  overflow: hidden;
}
.section.dark::after {
  content: ""; position: absolute; right: -8%; top: -25%;
  width: 45%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 120, 255, 0.4), transparent 65%);
  pointer-events: none;
}
.section.dark .wrap { position: relative; z-index: 1; }
.section.dark .s-head h2 { color: #fff; }
.section.dark .s-head h2 em { color: #8fa2ff; }
.section.dark .s-head .sub { color: var(--on-navy-muted); }
.section.dark .chip { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: #c5cffb; }
.section.dark .chip .n { color: #8fa2ff; }

.s-head { max-width: 60rem; margin-bottom: clamp(2.2rem, 4.5vw, 3.5rem); }
.s-head .chip { margin-bottom: 1.2rem; }
.s-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.04; letter-spacing: -0.03em;
}
.s-head h2 em { font-style: normal; color: var(--accent); }
.s-head .sub { margin-top: 1.1rem; color: var(--muted); max-width: 44rem; font-size: 1.06rem; }

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem var(--pad);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand .cf-mark { width: 30px; height: 30px; border-radius: 8px; }
.brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.02em; color: var(--ink); }
.brand .name .dot { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: 0.92rem;
  letter-spacing: -0.01em; color: var(--ink-2); transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .btn { color: #fff; }

.burger { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; position: relative; z-index: 120; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: rgba(255,255,255,0.98);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); gap: 0.2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 8vw, 2.7rem);
  letter-spacing: -0.02em; padding: 0.5rem 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 0.9rem; align-items: baseline;
}
.mobile-menu a .idx { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); }

/* ---------- hero / bento ---------- */

.hero {
  padding: clamp(7rem, 13vw, 9.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative; overflow: hidden;
  /* distinct from the plain Services gradient: deeper blue wash */
  background: linear-gradient(170deg, #eaeefb 0%, #dde4f7 55%, #d3dcf4 100%);
}
/* the tiles' backdrop-filter can paint above the fixed mobile-menu overlay;
   disable it while the menu is open so the overlay covers cleanly */
body.menu-open .tile { -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 88% -5%, rgba(59,86,255,0.16), transparent 60%),
    radial-gradient(45% 50% at -5% 5%, rgba(12,34,106,0.10), transparent 60%);
}
/* three.js animated network background */
#hero-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;
}
#hero-bg.ready { opacity: 1; }
.hero .wrap { position: relative; z-index: 2; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 1.4vw, 1.1rem);
}
.tile-head { grid-column: 1 / -1; }
/* frosted glass so the animated network glows through */
.tile {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--r);
  padding: clamp(1.5rem, 2.6vw, 2.3rem);
  box-shadow: 0 24px 60px -40px rgba(13, 16, 24, 0.4);
}
.tile-head { display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; }
.tile-head h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em;
}
.tile-head h1 em { font-style: normal; color: var(--accent); }
.tile-head .lede { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 34rem; }
.tile-head .lede strong { color: var(--ink); font-weight: 600; }
.tile-head .ctas { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.4rem; }

.tile-stat {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(168px, 18vw, 210px);
  /* pronounced glassmorphism — translucent so the network shows through */
  background: linear-gradient(155deg, rgba(255,255,255,0.5), rgba(255,255,255,0.3));
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    0 26px 55px -36px rgba(13,16,24,0.45),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -10px 30px -18px rgba(59,86,255,0.18);
}
/* radial accent glow */
.tile-stat::before {
  content: ""; position: absolute; right: -30%; top: -45%; width: 70%; aspect-ratio: 1; z-index: 0;
  border-radius: 50%; background: radial-gradient(circle, rgba(59,86,255,0.12), transparent 65%);
  pointer-events: none;
}
/* diagonal glass sheen */
.tile-stat::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 72%, rgba(255,255,255,0.22) 100%);
}
.tile-stat .v, .tile-stat .l, .tile-stat .bar { position: relative; z-index: 1; }
.tile-stat .v {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 4.6vw, 3.7rem); letter-spacing: -0.035em;
  color: var(--navy); line-height: 1;
}
.tile-stat .v .plus { color: var(--accent); }
.tile-stat .l { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.7rem; }
.tile-stat .bar {
  margin-top: 1.2rem; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #8fa2ff, var(--accent));
  background-size: 200% 100%; animation: barflow 3.2s linear infinite;
}
@keyframes barflow { to { background-position: -200% 0; } }

.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.hero-tags .t { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.75rem; }

/* hero head: copy left, neural-network brain right */
.th-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.th-row > * { min-width: 0; }
.th-copy { display: flex; flex-direction: column; gap: 1.4rem; }
.th-visual { display: grid; place-items: center; margin: 0; }
.th-visual svg {
  width: 100%; max-width: 360px; height: auto;
  filter: drop-shadow(0 14px 34px rgba(59, 86, 255, 0.2));
  animation: brainFloat 7s ease-in-out infinite;
}
@keyframes brainFloat { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(6px); } }

/* circuit-board brain */
.circuit-brain .trace { fill: none; stroke: #3b56ff; stroke-opacity: 0.30; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.circuit-brain .bus { stroke-opacity: 0.42; stroke-width: 2.4; }
.circuit-brain .chip-ic { fill: rgba(59, 86, 255, 0.08); stroke: #3b56ff; stroke-opacity: 0.4; stroke-width: 1.4; }
.circuit-brain .pad { fill: #3b56ff; opacity: 0.5; }
.circuit-brain .trace { stroke-opacity: 0.22; }
.circuit-brain .pad.live { fill: #3b56ff; animation: cbPad 1.7s ease-in-out infinite; }
.circuit-brain .flow {
  fill: none; stroke: #3b56ff; stroke-width: 2.7; stroke-linecap: round;
  stroke-dasharray: 9 91; filter: url(#cbGlow);
  animation: cbFlow 1.4s linear infinite;
}
.circuit-brain .bus-flow { stroke: #3b56ff; stroke-width: 3.1; animation-duration: 1s; }
@keyframes cbFlow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes cbPad { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .th-visual svg { animation: none; }
  .circuit-brain .flow { animation: none; stroke-dasharray: none; stroke-opacity: 0.5; }
  .circuit-brain .pad.live { animation: none; }
}
@media (max-width: 860px) {
  .th-row { grid-template-columns: 1fr; }
  /* show the brain below the copy, centered and a touch smaller */
  .th-visual { display: grid; margin-top: 0.5rem; }
  .th-visual svg { max-width: 300px; }
}

/* ---------- services / two pillars ---------- */

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.6rem); }
.pillar-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.pillar-head .tag { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; }
.pillar-head .lbl { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.svc-card {
  background: linear-gradient(165deg, #ffffff, #f4f7ff); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 1.2rem 1.3rem; margin-bottom: 0.8rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.svc-card .badge {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--accent-soft); color: var(--accent-deep);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  display: grid; place-items: center;
}
.svc-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; margin-bottom: 0.25rem; }
.svc-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- engagements ---------- */

.eng-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 1.8vw, 1.3rem); }
.eng {
  background: linear-gradient(165deg, #ffffff, #f2f5ff); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.5rem, 2.4vw, 2rem); display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.eng:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.eng.feature { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: var(--on-navy); border-color: transparent; box-shadow: var(--shadow); }
.eng .chip { margin-bottom: 1.2rem; }
.eng h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.eng > p { color: var(--muted); font-size: 0.94rem; margin-bottom: 1.3rem; }
.eng.feature > p { color: var(--on-navy-muted); }
.eng ul { list-style: none; margin-top: auto; display: grid; gap: 0.55rem; }
.eng li { font-size: 0.9rem; padding-left: 1.5rem; position: relative; }
.eng li::before {
  content: ""; position: absolute; left: 0; top: 0.36em; width: 0.85rem; height: 0.85rem;
  background: var(--accent); -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat;
}
.eng.feature li::before { background: #8fa2ff; }

/* ---------- work / cases ---------- */

.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.9rem, 1.8vw, 1.3rem); }
.case {
  background: linear-gradient(165deg, #ffffff, #f2f5ff); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.5rem, 2.6vw, 2.1rem); display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.case .top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.case .sector { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); }
.case .client { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); }
.case .metric { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -0.035em; color: var(--navy); line-height: 1; }
.case .metric span { color: var(--accent); }
.case h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.case p { color: var(--muted); font-size: 0.93rem; }

/* ---------- clients ---------- */

.client-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.client-track {
  display: flex; align-items: center; width: max-content;
  animation: client-scroll 34s linear infinite;
}
.client-marquee:hover .client-track { animation-play-state: paused; }
/* symmetric padding (not gap) so spacing is identical across the loop seam */
.client-logo {
  flex: none; display: grid; place-items: center; height: 64px;
  padding: 0 clamp(1.8rem, 4vw, 3.5rem);
}
.client-logo img {
  max-height: 56px; max-width: 168px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.client-logo:hover img { filter: grayscale(0); opacity: 1; }
@keyframes client-scroll { to { transform: translateX(-50%); } }

/* ---------- approach ---------- */

.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.9rem, 1.8vw, 1.3rem); }
.app {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.13); border-radius: var(--r);
  padding: clamp(1.5rem, 2.4vw, 2rem); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.app .pn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(143, 162, 255, 0.16); color: #c8d2ff;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 1.1rem;
}
.app h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; letter-spacing: -0.02em; margin-bottom: 0.45rem; color: #fff; }
.app p { color: var(--on-navy-muted); font-size: 0.94rem; }

/* ---------- leadership ---------- */

.lead-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1rem, 2.5vw, 2rem); align-items: stretch; }
.lead-card {
  border-radius: var(--r); background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: var(--on-navy); padding: clamp(1.8rem, 3.5vw, 2.8rem); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow);
}
.lead-card::after { content: ""; position: absolute; right: -28%; bottom: -36%; width: 85%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(91,120,255,0.45), transparent 65%); }
.lead-card .cf-mark { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.4rem; position: relative; }
.lead-card .lead-photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 18%;
  border: 2px solid rgba(255, 255, 255, 0.28); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.4rem; position: relative;
}
.lead-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; letter-spacing: -0.02em; position: relative; }
.lead-card .role { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-muted); margin: 0.4rem 0 1.3rem; position: relative; }
.lead-card .quote { font-family: var(--font-display); font-weight: 500; font-size: 1.18rem; line-height: 1.35; letter-spacing: -0.01em; position: relative; }
.lead-copy { background: linear-gradient(165deg, #ffffff, #f2f5ff); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.8rem, 3.5vw, 2.8rem); display: flex; flex-direction: column; justify-content: center; }
.lead-copy .chip { margin-bottom: 1.1rem; align-self: flex-start; }
.lead-copy h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 1.1rem; }
.lead-copy h2 em { font-style: normal; color: var(--accent); }
.lead-copy p { color: var(--muted); margin-bottom: 0.9rem; }
.lead-copy p strong { color: var(--ink); font-weight: 600; }
.lead-copy .ctas { margin-top: 0.8rem; }

/* ---------- process ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.9rem, 1.8vw, 1.3rem); }
.step {
  background: linear-gradient(165deg, #ffffff, #f3f6ff); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.4rem, 2.4vw, 1.9rem); position: relative;
}
.step .sn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  margin-bottom: 1.1rem;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.02em; margin-bottom: 0.45rem; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- CTA ---------- */

.cta { padding: var(--gap) 0; }
.cta-box {
  position: relative; overflow: hidden; border-radius: clamp(22px, 3vw, 34px);
  background: linear-gradient(155deg, var(--navy), var(--navy-deep));
  color: var(--on-navy); text-align: center; padding: clamp(3rem, 7vw, 5.5rem) var(--pad); box-shadow: var(--shadow);
}
.cta-box::after { content: ""; position: absolute; left: 50%; top: -55%; transform: translateX(-50%); width: 65%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(91,120,255,0.4), transparent 60%); pointer-events: none; }
.cta-box .chip { margin-bottom: 1.3rem; position: relative; }
.cta-box h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 1.2rem; position: relative; }
.cta-box h2 em { font-style: normal; color: #8fa2ff; }
.cta-box p { color: var(--on-navy-muted); max-width: 36rem; margin: 0 auto 2rem; position: relative; }
.cta-box .ctas { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-box .email { display: block; margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--on-navy-muted); position: relative; }
.cta-box .email a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4); }

/* ---------- footer ---------- */

.footer { background: var(--ink); color: #c4cadb; }
.footer .wrap { padding: clamp(3rem, 6vw, 4.5rem) var(--pad); }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer .brand .name { color: #fff; }
.footer .f-tag { color: #8089a0; max-width: 22rem; font-size: 0.92rem; margin-top: 1rem; }
.footer-cols { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.footer-cols .col h4 { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: #717a91; margin-bottom: 0.9rem; }
.footer-cols .col a, .footer-cols .col span { display: block; font-size: 0.9rem; color: #c4cadb; margin-bottom: 0.5rem; }
.footer-cols .col a:hover { color: #fff; }
.footer-bot { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.8rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: #717a91; }

/* check icon for engagement lists */
:root { --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .tile-stat .bar { animation: none; }
  .client-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .client-track [aria-hidden="true"] { display: none; }
  html { scroll-behavior: auto; }
}

/* prevent grid/flex children forcing tracks wider than viewport */
.bento > *, .pillars > *, .eng-grid > *, .cases > *, .app-grid > *, .lead-grid > *, .steps > *, .footer-top > * { min-width: 0; }
.metric, .tile-stat .v, .case h3, .eng h3 { overflow-wrap: break-word; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .bento { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 2rem; }
  .eng-grid { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .eng-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tile-head .ctas .btn { flex: 1; justify-content: center; }
}
