@font-face { font-family: 'Lufga'; src: url('/fonts/lufga-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lufga'; src: url('/fonts/lufga-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lufga'; src: url('/fonts/lufga-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lufga'; src: url('/fonts/lufga-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lufga'; src: url('/fonts/lufga-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --ink: #1A1044;
  --paper: #fff;
  --muted: #A198D4;
  --line: #4A289E;
  --accent: #8377F7;
  --violet: #7040F4; --purple: #8014E2; --deep: #4A289E;
  --mpurple: #51429C; --lilac: #A198D4; --gray: #B3B3B3;
  --font: 'Lufga', system-ui, sans-serif;
  --gutter: clamp(16px, 4.4vw, 64px);
  --ease: cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(48px, 7.5vw, 112px); line-height: 1.02; font-weight: 500; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.08; font-weight: 500; letter-spacing: -0.02em; }
h3 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; font-weight: 500; }
.lead { font-size: clamp(20px, 2vw, 28px); line-height: 1.6; color: var(--muted); }
.eyebrow { font-size: clamp(18px, 1.7vw, 24px); color: var(--muted); margin-bottom: 0.8em; }

a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; transition: border-color .25s var(--ease), color .25s var(--ease); }
a:hover { border-bottom-color: transparent; }
button { font: inherit; cursor: pointer; }

.wrap { width: 100%; padding: 0 var(--gutter); }
.indent { padding-left: calc((100% - 2 * var(--gutter)) / 6 + var(--gutter)); }
@media (max-width: 767px) { .indent { padding-left: var(--gutter); } }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 28px var(--gutter);
  background: var(--ink);
}
.logo { border: 0; display: inline-flex; line-height: 0; }
.logo svg { height: 18px; width: auto; display: block; }
.page-title { margin-left: 8vw; font-size: 18px; }
/* Division tabs in the top bar (user 2026-11-13): >=900px tabs + Contact pill; below, page title + Menu button as before */
.top-tabs { display: flex; gap: clamp(20px, 2.6vw, 40px); margin-left: 8vw; font-size: 18px; }
.top-tabs a { white-space: nowrap; border-bottom: 1px solid transparent; padding: 4px 0; opacity: .72; transition: opacity .2s, border-color .2s; }
.top-tabs a:hover { opacity: 1; }
.top-tabs a[aria-current="page"] { opacity: 1; border-bottom-color: currentColor; }
.site-nav .top-contact { margin-left: auto; border-bottom: 0; display: inline-flex; align-items: center; }
@media (min-width: 900px) { .site-nav .page-title, .site-nav .menu-open { display: none; } }
@media (max-width: 899px) { .top-tabs, .site-nav .top-contact { display: none; } }
.pill {
  margin-left: auto;
  border: 0; border-radius: 999px;
  padding: 10px 40px 11px;
  background: var(--paper); color: var(--ink);
  font-size: 15px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.pill:hover { background: var(--muted); color: var(--paper); }
.pill.dark { background: var(--ink); color: var(--accent); }
.pill.dark:hover { background: var(--line); }

/* ---------- Side menu ---------- */
.menu-panel {
  position: fixed; inset: 0 0 0 auto; z-index: 999;
  width: min(520px, 100%); /* was 466px; "Software Factory" on 1 line at 44px (2026-11-13, user) */
  padding: 28px var(--gutter) 64px;
  /* Near-black panel, same on every page (user 2026-11-13; was lavender --accent with --ink text). Own tokens, so page token flips don't reach it. */
  --menu-bg: #0E0D14; --menu-fg: #fff; --menu-accent: #8377F7; --menu-edge: #2A2833;
  background: var(--menu-bg); color: var(--menu-fg); border-left: 1px solid var(--menu-edge);
  display: flex; flex-direction: column;
  transform: translate3d(100%, 0, 0);
}
.menu-panel .pill.dark { background: var(--menu-fg); color: var(--menu-bg); }
.menu-panel .pill.dark:hover { background: var(--menu-accent); color: var(--menu-bg); }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-top .pill { margin-left: 0; }
.menu-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: 40px; }
.menu-links a { font-size: 44px; line-height: 57px; border-bottom-color: transparent; } /* was 48/62px (2026-11-13, user); phone: 38/50px below */
.menu-links a:hover { border-bottom-color: currentColor; }
.menu-social { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; font-size: 18px; line-height: 33px; }
.menu-social a { color: var(--menu-accent); border-bottom-color: transparent; }
.menu-social a:hover { border-bottom-color: currentColor; }

/* ---------- Sections ---------- */
main { padding-top: 220px; }
section { padding: 120px 0; }
.hero { padding-top: 0; padding-bottom: 64px; }
.hero h1 { max-width: 13ch; margin-bottom: 0.45em; }
.hero .lead { max-width: 34ch; }

.media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.media-fill {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 25% 30%, #7040F4 0%, transparent 60%),
    radial-gradient(50% 70% at 80% 70%, #8014E2 0%, transparent 60%),
    linear-gradient(135deg, #4A289E, #1A1044);
}
.media-fill.alt {
  background:
    radial-gradient(70% 60% at 70% 30%, #8377F7 0%, transparent 60%),
    radial-gradient(50% 70% at 20% 80%, #A198D444 0%, transparent 60%),
    linear-gradient(160deg, #51429C, #1A1044);
}
.media-caption { position: absolute; left: 6%; bottom: 10%; }
.media-caption .eyebrow { margin-bottom: .3em; }
.play {
  position: absolute; left: 50%; top: 50%;
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  border: 1px solid var(--paper); border-radius: 50%;
  background: transparent; color: var(--paper);
  display: grid; place-items: center;
  transition: background-color .35s var(--ease), opacity .35s var(--ease);
}
.play:hover { background: rgba(255, 255, 255, .15); }

.tags { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 12px 40px; max-width: 900px; }
.tags li { color: var(--muted); font-size: 21px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; }
.pair .media { aspect-ratio: 4 / 5; width: 65%; }
.pair .media.wide { aspect-ratio: 4 / 3; width: 100%; }
@media (max-width: 767px) { .pair { grid-template-columns: 1fr; } .pair .media { width: 100%; } }

/* ---------- Process rows with looping art ---------- */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; padding: 80px 0; }
.process p { margin-top: 1em; max-width: 30em; }
@media (max-width: 767px) { .process { grid-template-columns: 1fr; } }

.loop-art { width: 100%; max-width: 420px; margin: 0 auto; }
.loop-art circle { fill: none; stroke: var(--paper); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.loop-art .on { fill: var(--paper); }
.loop-art * { animation-play-state: paused; }
.loop-art.is-playing * { animation-play-state: running; }

.art-orbit .dot { animation: orbit 4s cubic-bezier(0.77, 0, 0.175, 1) infinite; }
.art-orbit .dot:nth-child(2) { animation-delay: -1s; }
.art-orbit .dot:nth-child(3) { animation-delay: -2s; }
.art-orbit .dot:nth-child(4) { animation-delay: -3s; }
@keyframes orbit {
  0%, 20% { transform: translate(0, 0); }
  25%, 45% { transform: translate(60px, 0); }
  50%, 70% { transform: translate(60px, 60px); }
  75%, 95% { transform: translate(0, 60px); }
  100% { transform: translate(0, 0); }
}

.art-filter circle { animation: filter 3.2s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; }
@keyframes filter {
  0% { opacity: 0; transform: translateY(-30px); }
  20%, 70% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(30px); }
}
.art-filter circle:nth-child(n+2) { animation-name: filter-out; }
@keyframes filter-out {
  0% { opacity: 0; transform: translateY(-30px); }
  20%, 40% { opacity: 1; transform: translateY(0); }
  60%, 100% { opacity: 0; transform: translateX(80px); }
}

.art-grow circle { animation: grow 2.8s cubic-bezier(0.86, 0, 0.07, 1) infinite alternate; }
@keyframes grow { 0%, 15% { transform: scale(.25); } 85%, 100% { transform: scale(1); } }

/* ---------- Results ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: 48px; }
.stat-num {
  font-size: clamp(96px, 12.5vw, 180px); line-height: 1.15; font-weight: 500;
  color: transparent; -webkit-text-stroke: 1px var(--paper);
  border-bottom: 1px solid var(--muted); padding-bottom: .2em; margin-bottom: .25em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 767px) { .stats { grid-template-columns: 1fr; } }

.link-list { list-style: none; padding: 0; margin: 48px 0 0; }
.link-list li { margin-bottom: .75em; }
.link-list a { color: var(--muted); font-size: 21px; border-bottom-color: transparent; }
.link-list a:hover { border-bottom-color: var(--muted); }

/* ---------- Footer ---------- */
footer { padding: clamp(48px, 4vw, 80px) 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1fr 3fr 2fr; gap: var(--gutter); }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.35; }
.foot-links a { border-bottom-color: transparent; }
.foot-links a:hover { border-bottom-color: var(--paper); }
.foot-small a { color: var(--muted); font-size: 15px; border-bottom-color: transparent; }
.foot-small a:hover { border-bottom-color: var(--muted); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: clamp(48px, 5vw, 96px); }
form label { display: block; color: var(--muted); font-size: 15px; margin-bottom: 12px; }
form input[type=email] {
  width: 100%; padding: 10px 0; margin-bottom: 20px;
  background: transparent; color: var(--paper);
  border: 0; border-bottom: 1px solid var(--muted); font: inherit; font-size: 15px;
}
form input::placeholder { color: var(--paper); }
form .pill { width: 100%; margin: 0; }
@media (max-width: 767px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 999;
  display: none; align-items: center; justify-content: center;
  padding: 8vh 8vw;
  background: var(--ink); opacity: 0;
}
.modal-body { width: 100%; aspect-ratio: 16 / 9; max-height: 100%; opacity: 0; transform: scale3d(.85, .85, 1); }
.modal-body .media { height: 100%; aspect-ratio: auto; display: grid; place-items: center; }
.modal-close {
  position: absolute; top: 2em; right: 2em;
  border: 0; background: none; color: var(--paper); font-size: 32px; line-height: 1;
  opacity: 0; transition: opacity .35s var(--ease);
}

/* ---------- Initial states (set before JS runs) ---------- */
html.js main { opacity: 0; transform: translate3d(0, 20px, 0); }
html.js .page-title { opacity: 0; transform: translate3d(10px, 0, 0); }
html.js [data-reveal]:not(.is-armed) { opacity: 0; }
html.js [data-reveal='fade'], html.js [data-reveal='rise'] { opacity: 0; }
html.js [data-reveal='clip'] { clip-path: inset(100% 0% 0% 0%); }
html.js [data-reveal='count'] { opacity: 0; }
html.js [data-reveal='type'] { opacity: 0; }
[data-reveal='type'] .tw { white-space: nowrap; }
[data-reveal='type'] .ch:not(.on) { opacity: 0; }
.menu-top, .menu-social, .menu-links a { opacity: 0; }
.menu-links a { transform: translate3d(24px, 0, 0); }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-inner { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .loop-art * { animation: none !important; }
}

/* ---------- Venture Builder page additions ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: 56px; }
.split h3 { margin-bottom: .4em; }
.split .tags { margin-top: 0; flex-direction: column; gap: 10px; }
.split .tags li { color: var(--paper); }
.callout { margin-top: 72px; color: var(--accent); }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: 56px; }
.points h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: .5em; }
.points p { color: var(--muted); }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stats.four .stat-num { font-size: clamp(56px, 6.2vw, 96px); }
.stats.four h3 { font-size: 18px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.team { list-style: none; padding: 0; margin: 64px 0 0; border-top: 1px solid var(--line); }
.team li { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 21px; }
.team li span { color: var(--muted); }
.more-link { display: inline-block; margin-top: 32px; color: var(--muted); }
.urgency h2 { max-width: 18ch; }
.cta { text-align: left; }
.cta .pill { margin: 40px 0 0; display: inline-block; border: 0; font-size: 18px; padding: 16px 48px 17px; }
@media (max-width: 991px) { .stats.four, .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .split, .points, .stats.four, .team li { grid-template-columns: 1fr; } .team li { gap: 4px; } }

/* Build: a grid assembling dot by dot */
.art-build circle { opacity: 0; animation: build 4.5s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; }
@keyframes build {
  0% { opacity: 0; transform: scale(.2); }
  12%, 80% { opacity: 1; transform: scale(1); }
  92%, 100% { opacity: 0; transform: scale(1); }
}
.art-build circle:nth-child(2) { animation-delay: .15s; } .art-build circle:nth-child(3) { animation-delay: .3s; }
.art-build circle:nth-child(4) { animation-delay: .45s; } .art-build circle:nth-child(5) { animation-delay: .6s; }
.art-build circle:nth-child(6) { animation-delay: .75s; } .art-build circle:nth-child(7) { animation-delay: .9s; }
.art-build circle:nth-child(8) { animation-delay: 1.05s; } .art-build circle:nth-child(9) { animation-delay: 1.2s; }

/* Product-market fit: signal rippling out to a network */
.art-ripple .ring { animation: ripple 3s cubic-bezier(0.23, 1, 0.32, 1) infinite; }
.art-ripple .ring:nth-child(3) { animation-delay: 1s; }
.art-ripple .ring:nth-child(4) { animation-delay: 2s; }
@keyframes ripple { 0% { opacity: 1; transform: scale(.15); } 100% { opacity: 0; transform: scale(1); } }
.logo, .page-title { white-space: nowrap; }
@media (max-width: 479px) { .page-title { display: none; } }

/* ---------- Phone refinements ---------- */
@media (max-width: 767px) {
  main { padding-top: 150px; }
  section { padding: 64px 0; }
  .hero { padding-bottom: 32px; }
  .hero .wrap[style] { margin-top: 48px !important; }
  .split, .points, .stats { margin-top: 32px; }
  .callout { margin-top: 48px; }
  .process { padding: 40px 0; gap: 20px; }
  .process .loop-art { order: -1; max-width: 180px; margin: 0; }
  .team { margin-top: 40px; }
  .more-link, .foot-small a, .foot-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-bottom { margin-top: 48px; gap: 0 32px; }
  .menu-links a { font-size: 38px; line-height: 50px; } /* "Software Factory" on 1 line down to 360px (2026-11-13, user) */
}

/* ---------- Legal pages (Privacy, 2026-11-13): one readable text column on the default navy ---------- */
.legal > section { padding-top: 0; }   /* first text level with the division pages (main already pads 220/150px) */
.legal-wrap > * { max-width: 760px; }   /* column starts at the site's .indent offset on desktop */
.legal h1 { font-size: clamp(44px, 6vw, 88px); margin-bottom: 0.3em; }
.legal-meta { font-size: 15px; color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 56px 0 16px; }
.legal p + p { margin-top: 16px; }
.legal ul { margin: 0 0 16px; padding-left: 1.2em; }
.legal li + li { margin-top: 10px; }
.legal strong { font-weight: 500; }

/* ---------- TikTok Shop page (division look, scoped) ---------- */
/* Chrome on this page sits on the division's navy ground. */
body:has(.div-tiktok) { --ink: #1A1044; --paper: #fff; --muted: #A198D4; --line: #4A289E; }
.div-tiktok {
  --tt-navy: #1A1044; --tt-violet: #7040F4; --tt-purple: #8014E2; --tt-lavender: #8377F7;
  --tt-lilac: #A198D4; --tt-deep: #4A289E; --tt-amber: #FFB627; --tt-white: #fff;
  --tt-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14 C 20 0 60 0 80 14 S 140 28 160 14 V28 H0Z'/%3E%3C/svg%3E");
  padding-top: 170px;
  overflow-x: clip;
  counter-reset: tt-sec;
  color: var(--tt-white);
}
.div-tiktok section { position: relative; }
.div-tiktok a { border-bottom: 0; }
.tt-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Type */
.tt-display { font-weight: 800; text-transform: uppercase; letter-spacing: -0.045em; line-height: .9; }
.tt-row { display: block; }
.tt-h1 { font-size: clamp(40px, 8vw, 120px); }
.tt-h2 { font-size: clamp(40px, 7.6vw, 120px); max-width: 15ch; }
.tt-soft { color: var(--tt-lavender); }
.tt-violet { color: var(--tt-violet); }
.tt-eyebrow {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em;
  color: var(--tt-lilac); margin-bottom: 28px;
}
.tt-eyebrow::before { counter-increment: tt-sec; content: counter(tt-sec, decimal-leading-zero) " / "; color: var(--tt-lavender); }
.tt-statement { font-size: clamp(34px, 5.4vw, 84px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; max-width: 17ch; }
.tt-body { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.55; max-width: 38ch; margin-top: 36px; color: var(--tt-lilac); }
.tt-mark { color: var(--tt-amber); }

/* Button: amber pill with a hard offset shadow */
.tt-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 30px 20px 36px; border-radius: 999px;
  background: var(--tt-amber); color: var(--tt-navy);
  font-size: 18px; font-weight: 800;
  box-shadow: 6px 6px 0 var(--tt-purple);
  transition: translate .25s var(--ease), box-shadow .25s var(--ease);
}
.tt-btn svg { width: 22px; height: 22px; transition: rotate .35s var(--ease); }
.tt-btn:hover { translate: 3px 3px; box-shadow: 3px 3px 0 var(--tt-purple); }
.tt-btn:hover svg { rotate: -45deg; }

/* Wavy section edges: the section's own background spills over the boundary */
.tt-wave-top::before, .tt-wave-bottom::after {
  content: ''; position: absolute; left: 0; right: 0; height: 28px; z-index: 1;
  background: inherit; pointer-events: none;
  -webkit-mask: var(--tt-wave) repeat-x 0 0 / 160px 100%; mask: var(--tt-wave) repeat-x 0 0 / 160px 100%;
  animation: tt-drift 6s linear infinite;
}
.tt-wave-top::before { top: -27px; }
.tt-wave-bottom::after { bottom: -27px; scale: 1 -1; } /* vertical flip only: rotate would mirror a gradient left-right */
@keyframes tt-drift { to { -webkit-mask-position: 160px 0; mask-position: 160px 0; } }

/* Floating TikTok-native icons */
.tt-float { position: absolute; width: 44px; height: 44px; fill: currentColor; animation: tt-bob 5s ease-in-out infinite; pointer-events: none; }
@keyframes tt-bob { 0%, 100% { translate: 0 0; rotate: -8deg; } 50% { translate: 0 -18px; rotate: 8deg; } }

/* 1 Hero */
.tt-hero { padding: 0 0 120px; }
.tt-h1 { max-width: 12ch; }
.tt-hero-grid { display: grid; grid-template-columns: 5fr 6fr; gap: var(--gutter); align-items: end; margin-top: 40px; }
.tt-hero-copy { align-self: start; } /* text sits right under the H1; art stays bottom-aligned */
.tt-lead { font-size: clamp(21px, 2vw, 30px); font-weight: 700; line-height: 1.3; max-width: 24ch; }
.tt-range { margin: 18px 0 40px; color: var(--tt-lilac); max-width: 32ch; }
/* Hero art: the Wave test. Every video gets an organic test (bar rises to --t);
   most fade, the winners turn amber and get funded (bar grows to full). Loops while on screen. */
.tt-test { position: relative; width: 100%; max-width: none; margin: 0; padding: 48px 8px 0; }
.tt-bars { list-style: none; margin: 0; padding: 0; height: 340px; display: flex; align-items: flex-end; gap: 10px; }
.tt-bars li { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.tt-bar {
  position: relative; display: block; flex: 1; border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #A198D4, #7040F4); transform-origin: bottom;
  animation: tt-lose 7s var(--ease) infinite; animation-delay: calc(var(--i) * 70ms);
}
.win .tt-bar { animation-name: tt-win; }
.tt-vid {
  flex: none; aspect-ratio: 9 / 16; border-radius: 6px; border: 2px solid rgba(161, 152, 212, .5);
  background: linear-gradient(160deg, #4A289E, #1A1044);
  animation: tt-vid 7s var(--ease) infinite; animation-delay: calc(var(--i) * 70ms);
}
.win .tt-vid { animation-name: tt-vid-win; }
.tt-pop {
  position: absolute; left: 50%; top: -34px; width: 26px; height: 26px; translate: -50% 0;
  fill: var(--tt-amber); opacity: 0; animation: tt-pop 7s var(--ease) infinite;
}
@keyframes tt-lose {
  0% { scale: 1 .02; opacity: 1; }
  18%, 40% { scale: 1 var(--t); opacity: 1; }
  50%, 86% { scale: 1 var(--t); opacity: .2; }
  96%, 100% { scale: 1 .02; opacity: 1; }
}
@keyframes tt-win {
  0% { scale: 1 .02; }
  18%, 40% { scale: 1 var(--t); background: linear-gradient(180deg, #A198D4, #7040F4); }
  50% { scale: 1 var(--t); background: linear-gradient(180deg, #FFB627, #FFB627); }
  66%, 86% { scale: 1 1; background: linear-gradient(180deg, #FFB627, #FFB627); }
  96%, 100% { scale: 1 .02; }
}
@keyframes tt-vid { 0%, 40% { opacity: 1; } 50%, 86% { opacity: .25; } 96%, 100% { opacity: 1; } }
@keyframes tt-vid-win { 0%, 40% { border-color: rgba(161, 152, 212, .5); } 50%, 86% { border-color: #FFB627; } 96%, 100% { border-color: rgba(161, 152, 212, .5); } }
@keyframes tt-pop {
  0%, 60% { opacity: 0; scale: .4; }
  68% { opacity: 1; scale: 1.25; }
  74%, 86% { opacity: 1; scale: 1; }
  94%, 100% { opacity: 0; scale: 1; }
}
.tt-base { display: block; width: 100%; height: 24px; margin-top: 8px; }
.tt-base path { fill: none; stroke: var(--tt-lavender); stroke-width: 3; }
.tt-test .f1 { left: 0; top: 0; color: var(--tt-purple); }
.tt-test .f2 { right: 0; top: -10px; color: var(--tt-lavender); animation-delay: -1.5s; }
.tt-test .f4 { left: 52%; top: 4px; width: 28px; height: 28px; color: var(--tt-lilac); animation-delay: -2s; }

.tt-stats { list-style: none; padding: 0; margin: 96px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tt-stats li { padding: 32px 32px 36px; border: 1px solid rgba(161, 152, 212, .35); border-radius: 28px; background: rgba(74, 40, 158, .25); transition: translate .3s var(--ease), background-color .3s var(--ease); }
.tt-stats li:hover { translate: 0 -6px; background: rgba(112, 64, 244, .35); }
.tt-stat-num { font-size: clamp(56px, 6.6vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--tt-amber); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.tt-stats li p:last-child { font-size: 18px; font-weight: 700; line-height: 1.35; max-width: 20ch; }
.tt-footnote { margin-top: 24px; font-size: 13px; line-height: 1.5; color: var(--tt-lilac); max-width: 70ch; }
.tt-notes { padding: 40px 0 0; }
.tt-notes .tt-footnote { margin-top: 0; }

/* 2 Pain */
.tt-pain { padding: 120px 0 160px; }
.tt-squiggle { position: relative; white-space: nowrap; }
.tt-squiggle::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.06em; height: .16em; background: var(--tt-purple);
  -webkit-mask: var(--tt-wave) repeat-x 0 0 / .8em 100%; mask: var(--tt-wave) repeat-x 0 0 / .8em 100%;
}

/* 3 Why different: contrasting band */
.tt-why { padding: 140px 0; background: linear-gradient(90deg, #7040F4, #8014E2); z-index: 1; } /* 90deg: wave edges inherit it; any other angle re-maps on the 28px strip and shows a seam */
.tt-why .tt-eyebrow, .tt-why .tt-eyebrow::before { color: var(--tt-white); }
.tt-why .tt-h2 { max-width: 17ch; }
.tt-why .tt-body { color: var(--tt-white); }
.tt-why .tt-float { opacity: .9; }
.tt-why .f6 { right: 22%; bottom: 14%; width: 52px; height: 52px; color: var(--tt-lilac); animation-delay: -2.5s; }

/* 4 Wave Testing System */
.tt-waves { padding: 180px 0 160px; background: var(--tt-navy); }
.tt-steps-wrap { position: relative; margin-top: 88px; }
/* Wave: crests grow step by step and turn amber once funded (04), biggest at Repeat (05). Cards ride their crest. */
.tt-wave-line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 170px; overflow: visible; }
.tt-wave-line path { fill: none; }
.tt-wave-line .tt-wave-area { fill: url(#tt-wave-fill); }
.tt-wave-echo { stroke: var(--tt-lavender); stroke-opacity: .3; stroke-width: 2; }
.tt-wave-crest { stroke: url(#tt-wave-stroke); stroke-width: 4; stroke-linecap: round; }
.tt-wave-nodes { position: absolute; left: 0; right: 0; top: 0; height: 170px; pointer-events: none; }
.tt-wave-node { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--tt-navy); border: 3px solid var(--tt-lavender); }
.tt-wave-node::after { content: ""; position: absolute; left: 50%; top: 11px; height: var(--drop); border-left: 2px dashed rgba(161, 152, 212, .35); }
.tt-wave-node.is-funded { width: 20px; height: 20px; margin: -10px 0 0 -10px; background: var(--tt-amber); border-color: var(--tt-amber); box-shadow: 0 0 0 7px rgba(255, 182, 39, .16), 0 0 24px rgba(255, 182, 39, .5); }
.tt-wave-node.is-funded::after { top: 17px; border-left-color: rgba(255, 182, 39, .5); }
.tt-wave-node.is-top { width: 26px; height: 26px; margin: -13px 0 0 -13px; box-shadow: 0 0 0 10px rgba(255, 182, 39, .18), 0 0 36px rgba(255, 182, 39, .6); }
.tt-wave-node.is-top::after { top: 22px; }
.tt-steps { list-style: none; padding: 190px 0 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tt-steps li {
  padding: 28px 24px 32px; border-radius: 28px; background: rgba(74, 40, 158, .35);
  border: 1px solid rgba(161, 152, 212, .3);
  transition: translate .3s var(--ease), background-color .3s var(--ease);
}
.tt-steps li:nth-child(1) { margin-top: 106px; } .tt-steps li:nth-child(2) { margin-top: 90px; } .tt-steps li:nth-child(3) { margin-top: 68px; } .tt-steps li:nth-child(4) { margin-top: 34px; } .tt-steps li:nth-child(5) { margin-top: 0px; }
.tt-steps li:hover { translate: 0 -8px; background: rgba(112, 64, 244, .45); }
.tt-steps li.is-key { background: var(--tt-violet); border-color: var(--tt-violet); }
.tt-step-tag { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--tt-lilac); }
.tt-step-tag span { display: block; font-size: 64px; line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--tt-lavender); margin-bottom: 10px; }
.tt-steps li.is-key .tt-step-tag { color: var(--tt-white); }
.tt-steps li.is-key .tt-step-tag span { -webkit-text-stroke-color: var(--tt-white); }
.tt-steps h3 { font-size: clamp(21px, 1.7vw, 26px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 22px 0 12px; }
.tt-steps li > p:last-child { font-size: 16px; line-height: 1.5; color: var(--tt-lilac); }
.tt-steps li.is-key > p:last-child { color: var(--tt-white); }

/* 5 The whole shop (light band) */
.tt-shop { padding: 150px 0 170px; background: var(--tt-white); color: var(--tt-navy); z-index: 1; }
.tt-shop .tt-eyebrow { color: var(--tt-deep); }
.tt-shop .tt-eyebrow::before { color: var(--tt-violet); }
.tt-shop-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.tt-shop-title { font-size: clamp(56px, 9vw, 144px); }
.tt-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 420px; }
.tt-chips a {
  display: inline-block; padding: 9px 18px; border-radius: 999px; border: 2px solid var(--tt-navy);
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.tt-chips a:hover { background: var(--tt-navy); color: var(--tt-white); }
.tt-cards { counter-reset: tt-card; display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; margin-top: 88px; }
.tt-card {
  position: relative; grid-column: span 2; display: flex; flex-direction: column;
  background: var(--tt-white); border: 2px solid var(--tt-navy); border-radius: 22px; overflow: hidden;
  box-shadow: 10px 10px 0 var(--tt-navy); padding: 0 28px 32px;
  transition: translate .3s var(--ease), box-shadow .3s var(--ease);
  scroll-margin-top: 120px;
}
.tt-card:nth-child(-n+2) { grid-column: span 3; }
.tt-card:nth-child(2), .tt-card:nth-child(4) { margin-top: 32px; }
.tt-card:hover { translate: -4px -4px; box-shadow: 14px 14px 0 var(--tt-violet); }
.tt-card::before {
  counter-increment: tt-card; content: counter(tt-card, decimal-leading-zero);
  position: absolute; left: 24px; top: 20px; z-index: 1;
  font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--tt-white);
}
.tt-img { position: relative; margin: 0 -28px; aspect-ratio: 16 / 8; overflow: hidden; }
.tt-img::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, var(--tt-white)); }
.tt-img svg { width: 100%; height: 100%; transition: scale .6s var(--ease); }
.tt-card:hover .tt-img svg { scale: 1.06; }
.tt-img .w { fill: rgba(255, 255, 255, .9); }
.tt-img .w2 { fill: rgba(255, 255, 255, .45); }
.tt-img .a { fill: var(--tt-amber); }
.tt-img .d { fill: var(--tt-deep); }
.tt-img .ln { stroke: var(--tt-white); stroke-width: 4; stroke-linecap: round; }
.tt-img.g1 { background: radial-gradient(80% 90% at 20% 20%, #8377F7, transparent), linear-gradient(135deg, #7040F4, #4A289E); }
.tt-img.g2 { background: radial-gradient(70% 90% at 80% 20%, #A198D4, transparent), linear-gradient(135deg, #8014E2, #7040F4); }
.tt-img.g3 { background: radial-gradient(70% 90% at 30% 70%, #8014E2, transparent), linear-gradient(135deg, #4A289E, #1A1044); }
.tt-img.g4 { background: radial-gradient(70% 90% at 70% 30%, #8377F7, transparent), linear-gradient(135deg, #8014E2, #4A289E); }
.tt-img.g5 { background: radial-gradient(70% 90% at 20% 80%, #A198D4, transparent), linear-gradient(135deg, #7040F4, #8014E2); }
.tt-icon {
  position: absolute; right: 22px; top: 18px; z-index: 1; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tt-white); color: var(--tt-violet);
  box-shadow: 0 6px 18px rgba(26, 16, 68, .25); transition: rotate .4s var(--ease);
}
.tt-icon svg { width: 26px; height: 26px; fill: currentColor; }
.tt-card:hover .tt-icon { rotate: 12deg; }
.tt-card h3 { font-size: clamp(24px, 2.1vw, 32px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-top: 4px; }
.tt-card p { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--tt-deep); max-width: 34ch; }

/* 6 Proof: pill case cards */
.tt-proof { padding: 150px 0 170px; background: var(--tt-navy); z-index: 1; }
.tt-cases { display: flex; flex-direction: column; gap: 28px; margin-top: 24px; }
.tt-case { display: grid; grid-template-columns: 6fr 5fr; width: min(100%, 1060px); }
.tt-case.flip { grid-template-columns: 5fr 6fr; align-self: flex-end; }
.tt-case.flip .tt-case-art { order: 2; border-radius: 0 999px 999px 0; }
.tt-case-art { border-radius: 999px 0 0 999px; display: grid; place-items: center; padding: 32px 48px; min-height: 340px; }
.tt-case-art svg { width: 100%; max-width: 420px; }
.tt-case-art.c1 { background: linear-gradient(120deg, #8377F7, #7040F4); }
.tt-case-art.c2 { background: linear-gradient(120deg, #8014E2, #A198D4); }
.tt-case-art .grid { stroke: rgba(255, 255, 255, .3); stroke-width: 2; fill: none; }
.tt-case-art .ln { stroke: var(--tt-white); stroke-width: 7; stroke-linecap: round; fill: none; }
.tt-case-art .dot { fill: var(--tt-navy); stroke: var(--tt-white); stroke-width: 4; }
.tt-case-art .bar-big { fill: rgba(26, 16, 68, .55); }
.tt-case-art .bar-small { fill: var(--tt-white); }
.tt-case-body { border: 1px solid rgba(161, 152, 212, .4); padding: 44px 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.tt-case:not(.flip) .tt-case-body { border-left: 0; border-radius: 0 28px 28px 0; }
.tt-case.flip .tt-case-body { border-right: 0; border-radius: 28px 0 0 28px; }
.tt-case-num { font-size: clamp(80px, 9vw, 148px); font-weight: 800; line-height: .9; letter-spacing: -0.06em; color: var(--tt-amber); font-variant-numeric: tabular-nums; }
.tt-case h3 { margin-top: 16px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; line-height: 1.5; color: var(--tt-amber); }
.tt-case-body > p:last-child { margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--tt-white); max-width: 34ch; }

/* 7 Packages */
.tt-packages { padding: 150px 0 200px; background: var(--tt-lilac); color: var(--tt-navy); z-index: 1; }
.tt-packages .tt-eyebrow, .tt-packages .tt-eyebrow::before { color: var(--tt-navy); }
.tt-packs { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 72px; }
.tt-pack {
  padding: 48px 44px 52px; border-radius: 36px; background: var(--tt-white); border: 2px solid var(--tt-navy);
  box-shadow: 10px 10px 0 var(--tt-navy); transition: translate .3s var(--ease), box-shadow .3s var(--ease);
}
.tt-pack:hover { translate: -4px -4px; box-shadow: 14px 14px 0 var(--tt-navy); }
.tt-pack.dark { background: var(--tt-navy); color: var(--tt-white); box-shadow: 10px 10px 0 var(--tt-violet); }
.tt-pack.dark:hover { box-shadow: 14px 14px 0 var(--tt-violet); }
.tt-pack h3 { font-size: clamp(36px, 4.4vw, 64px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; line-height: .95; }
.tt-pack-line { margin-top: 16px; font-size: 19px; font-weight: 700; line-height: 1.4; color: var(--tt-deep); max-width: 30ch; }
.tt-pack.dark .tt-pack-line { color: var(--tt-lilac); }
.tt-pack ul { list-style: none; padding: 28px 0 0; margin: 28px 0 0; border-top: 2px solid currentColor; }
.tt-pack li { display: flex; align-items: center; gap: 14px; padding: 8px 0; font-size: 18px; font-weight: 500; }
.tt-pack li svg { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--tt-violet); color: var(--tt-white); }
.tt-pack.dark li svg { background: var(--tt-amber); color: var(--tt-navy); }

/* 8 Urgency: tilted marquee strip over the section seam */
.tt-urgency { padding: 0; height: 0; z-index: 2; }
.tt-ticker {
  position: absolute; left: -5%; right: -5%; top: 0; translate: 0 -50%; rotate: -2.5deg;
  background: var(--tt-amber); color: var(--tt-navy); overflow: hidden; padding: 22px 0;
  box-shadow: 0 12px 0 var(--tt-navy);
}
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-time, 28s) linear infinite; animation-play-state: paused; }
[data-marquee].is-playing .marquee-track { animation-play-state: running; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.tt-tick { display: flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap; }
.tt-tick h2 { font-size: clamp(34px, 4.6vw, 72px); line-height: 1; }
.tt-tick svg { width: clamp(28px, 3vw, 48px); height: clamp(28px, 3vw, 48px); fill: var(--tt-purple); }

/* 9 CTA: loud closing band */
.tt-cta { padding: 220px 0 180px; background: linear-gradient(150deg, #8014E2, #7040F4 55%, #4A289E); }
.tt-cta .tt-eyebrow, .tt-cta .tt-eyebrow::before { color: var(--tt-white); }
.tt-cta-title { font-size: clamp(44px, 8.6vw, 140px); max-width: 13ch; margin-bottom: 56px; }
.tt-outline { color: transparent; -webkit-text-stroke: 2px var(--tt-white); }
.tt-cta .tt-btn { box-shadow: 6px 6px 0 var(--tt-navy); font-size: 20px; padding: 24px 34px 24px 42px; }
.tt-cta .tt-btn:hover { box-shadow: 3px 3px 0 var(--tt-navy); }
.tt-cta .f7 { right: 12%; top: 26%; width: 96px; height: 96px; color: var(--tt-navy); }
.tt-cta .f8 { right: 26%; bottom: 18%; width: 64px; height: 64px; color: var(--tt-white); animation-delay: -2s; }
.tt-cta .f9 { right: 6%; bottom: 30%; width: 40px; height: 40px; color: var(--tt-amber); animation-delay: -3.5s; }

html.js [data-reveal='pop'] { opacity: 0; }

@media (max-width: 991px) {
  .tt-hero-grid { grid-template-columns: 1fr; }
  .tt-steps { grid-template-columns: 1fr 1fr; }
  .tt-steps li:nth-child(n) { margin-top: 0; }
  .tt-steps li:last-child { grid-column: span 2; }
  .tt-wave-line, .tt-wave-nodes { display: none; }
  .tt-steps { padding-top: 0; }
  .tt-cards { grid-template-columns: 1fr 1fr; }
  .tt-card, .tt-card:nth-child(-n+2) { grid-column: span 1; }
  .tt-card:nth-child(5) { grid-column: span 2; }
  .tt-card:nth-child(2), .tt-card:nth-child(4) { margin-top: 0; }
  .tt-cta .tt-float { display: none; }
}

@media (max-width: 767px) {
  .div-tiktok { padding-top: 130px; }
  .tt-h1 { font-size: 13vw; }
  .tt-hero { padding-bottom: 72px; }
  .tt-hero-grid { margin-top: 60px; gap: 40px; }
  .tt-lead { font-size: 19px; line-height: 1.4; }
  .tt-range { margin: 24px 0 40px; font-size: 16px; }
  .tt-btn { font-size: 17px; padding: 18px 24px 18px 28px; }
  .tt-cta .tt-btn { font-size: 17px; padding: 18px 24px 18px 28px; }
  .tt-bars { height: 240px; gap: 6px; }
  .tt-bars li:nth-child(n+9) { display: none; }
  .tt-bar { border-radius: 8px 8px 3px 3px; }
  .tt-vid { border-radius: 4px; }
  .tt-pop { width: 20px; height: 20px; top: -28px; }
  .tt-stats { grid-template-columns: 1fr; margin-top: 56px; gap: 12px; }
  .tt-stats li { padding: 22px 24px 24px; border-radius: 22px; }
  .tt-stat-num { margin-bottom: 8px; font-size: 52px; }
  .tt-stats li p:last-child { font-size: 16px; }
  .tt-pain { padding: 72px 0 100px; }
  .tt-why { padding: 96px 0; }
  .tt-why .f6 { display: none; }
  .tt-waves, .tt-shop, .tt-proof { padding: 110px 0 110px; }
  .tt-steps-wrap { margin-top: 48px; }
  .tt-steps { grid-template-columns: 1fr; gap: 12px; }
  .tt-steps li:last-child { grid-column: auto; }
  .tt-steps li { padding: 22px 22px 26px; border-radius: 22px; }
  .tt-step-tag span { font-size: 48px; }
  .tt-cards { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .tt-card, .tt-card:nth-child(-n+2), .tt-card:nth-child(5) { grid-column: auto; }
  .tt-card { box-shadow: 7px 7px 0 var(--tt-navy); padding: 0 22px 26px; }
  .tt-img { margin: 0 -22px; }
  .tt-chips a { font-size: 12px; padding: 8px 14px; }
  .tt-case, .tt-case.flip { grid-template-columns: 1fr; }
  .tt-case.flip .tt-case-art { order: 0; }
  .tt-case-art, .tt-case.flip .tt-case-art { border-radius: 999px 999px 0 0; min-height: 0; padding: 40px 32px 24px; }
  .tt-case-body, .tt-case:not(.flip) .tt-case-body, .tt-case.flip .tt-case-body { border: 1px solid rgba(161, 152, 212, .4); border-top: 0; border-radius: 0 0 24px 24px; padding: 28px 24px 32px; }
  .tt-packages { padding: 110px 0 150px; }
  .tt-packs { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
  .tt-pack { padding: 32px 26px 36px; border-radius: 28px; box-shadow: 7px 7px 0 var(--tt-navy); }
  .tt-pack.dark { box-shadow: 7px 7px 0 var(--tt-violet); }
  .tt-ticker { padding: 16px 0; }
  .tt-cta { padding: 140px 0 120px; }
  .tt-cta-title { margin-bottom: 40px; }
  .tt-outline { -webkit-text-stroke-width: 1.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .tt-wave-top::before, .tt-wave-bottom::after, .tt-float, .marquee-track, .tt-bars * { animation: none !important; }
  .tt-bar { scale: 1 var(--t); opacity: .2; }
  .tt-vid { opacity: .25; }
  .win .tt-bar { scale: 1 1; opacity: 1; background: var(--tt-amber); }
  .win .tt-vid { opacity: 1; border-color: var(--tt-amber); }
  .tt-pop { opacity: 1; }
}

/* ---------- AI Consulting page (division look, scoped) ---------- */
/* White page: chrome tokens flip so nav + footer read on white; the menu has its own tokens (.menu-panel). */
body:has(.div-consulting) { --ink: #fff; --paper: #1A1044; --muted: #51429C; }
body:has(.div-consulting) .site-nav .pill:hover { color: #fff; }
.div-consulting {
  --ink: #1A1044; --paper: #fff; --muted: #A198D4;
  --sig: var(--violet); --ink-soft: rgba(26, 16, 68, .6); --rule: rgba(26, 16, 68, .12); --tint: rgba(161, 152, 212, .16);
  --nav: 100px;
  padding-top: 160px;
  overflow-x: clip;
  background: var(--paper); color: var(--ink);
}
.div-consulting section { padding: 120px 0; }
.div-consulting section[id] { scroll-margin-top: 110px; }

/* Type: very large, tight, two beats (second beat lighter, Deep purple) */
.ac-eyebrow { font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--deep); margin-bottom: 20px; }
.ac-h1 { font-size: clamp(40px, 4.2vw, 100px); line-height: 1; font-weight: 500; letter-spacing: -.035em; }
.ac-h2 { font-size: clamp(38px, 5vw, 72px); line-height: 1.02; font-weight: 500; letter-spacing: -.03em; max-width: 16ch; }
.ac-h2.ac-wide { max-width: 20ch; }
.ac-row { display: block; }
.ac-b2 { font-weight: 300; color: var(--deep); }
.ac-body { font-size: 20px; line-height: 1.5; color: var(--mpurple); max-width: 38ch; margin-top: 28px; }
.ac-btn {
  display: inline-block; padding: 16px 28px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 17px; font-weight: 500;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.ac-btn:hover { background: var(--deep); }

/* 1 Hero: text left, sphere right */
.div-consulting .ac-hero { padding: 0 0 96px; }
.ac-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr); align-items: center; column-gap: 48px; }
.ac-hero .ac-row { text-wrap: balance; }   /* no lone word on phones; set before motion.js splits the lines */
.ac-hero .ac-body { max-width: 34ch; margin-bottom: 32px; }
.ac-hero-visual { position: relative; height: min(72vh, 680px); min-height: 360px; }
.ac-hero-visual canvas, .caps__visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* 2 How it works: sticky walkthrough (class hooks shared with floorplan.js Caps) */
.caps { --pin: calc(var(--nav) + 8px); border-top: 1px solid var(--rule); }
.caps__head { padding-bottom: clamp(72px, 9vw, 140px); margin-bottom: clamp(64px, 7vw, 112px); border-bottom: 1px solid var(--rule); }   /* stacked divider: H2 + large intro, then the walkthrough */
.caps__head .ac-row { text-wrap: balance; }   /* no lone word in the How it works H2; set before motion.js splits the lines */
.caps__head .ac-body { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.3; max-width: 30ch; margin-top: clamp(28px, 3vw, 44px); }
.caps__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); column-gap: 64px; align-items: start; }
.caps__list { list-style: none; margin: 0; padding: 0; grid-column: 1; grid-row: 1; }
/* stage hugs the drawing; JS centres its pinned position on screen (--stage-top); spans the footnote row so the pin holds through it */
.caps__stage { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: var(--stage-top, var(--pin)); display: flex; flex-direction: column; }
.caps__visual { position: relative; aspect-ratio: 1.5; max-height: calc(100vh - var(--pin) - 60px); max-height: calc(100svh - var(--pin) - 60px); }
.caps__legend { height: 44px; display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--mpurple); border-top: 1px solid var(--rule); margin: 0; }
.caps__legend i { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; }
.lg-found { background: var(--sig); }
.lg-buy { border: 1.5px solid var(--deep); box-shadow: inset 0 0 0 3px var(--paper); background: var(--accent); }
.lg-build { background: var(--deep); }
.caps__legend .lg-flow { height: 2px; width: 18px; background: var(--deep); vertical-align: 3px; }
.caps__legend .lg-review { border: 2px solid var(--sig); background: var(--paper); }
.lg-prod { background: linear-gradient(135deg, var(--deep) 50%, var(--ink) 50%); }

.cap { min-height: 60vh; min-height: 60svh; padding-block: 56px; border-top: 1px solid var(--rule); }
/* last stage: room below it so the drawing stays pinned about half a stage length after it activates (an end state, read at a glance) */
.cap:last-child { min-height: calc(30vh + var(--stage-h, 600px) / 2 + 120px); min-height: calc(30svh + var(--stage-h, 600px) / 2 + 120px); }
/* first stage: centred on screen when the diagram pins, held for about one screen */
.cap:first-child { min-height: calc(85vh - var(--pin)); min-height: calc(85svh - var(--pin)); border-top: 0; padding-top: max(24px, calc(var(--stage-h, 600px) / 2 - 150px)); }
.cap__meta { font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); transition: color .32s; }
.cap__name { font-size: 32px; line-height: 1.15; font-weight: 500; letter-spacing: -.015em; margin-top: 10px; color: var(--ink-soft); transition: color .32s; }
.cap__claim { font-size: 21px; font-weight: 500; margin-top: 12px; max-width: 34ch; color: var(--ink-soft); transition: color .32s; }
.cap__desc { font-size: 18px; margin-top: 10px; max-width: 44ch; color: var(--ink-soft); transition: color .32s; }
.cap.is-active .cap__meta { color: var(--sig); }
.cap.is-active .cap__name, .cap.is-active .cap__claim { color: var(--ink); }
.cap.is-active .cap__desc { color: var(--mpurple); }
.ac-footnote { grid-column: 1; grid-row: 2; font-size: 14px; color: var(--mpurple); max-width: 60ch; padding-top: 24px; border-top: 1px solid var(--rule); }
/* static fallback (page can't scroll, e.g. a content-sized iframe): stages are buttons, heights collapse */
.caps.is-static .cap, .caps.is-static .cap:first-child, .caps.is-static .cap:last-child { min-height: 0; padding-block: 32px; cursor: pointer; }
.caps.is-static .cap:focus-visible { outline: 2px solid var(--sig); outline-offset: 8px; border-radius: 4px; }

/* 3 Why different: lilac statement band, 3 backing lines */
.div-consulting .ac-why { padding: 140px 0; background: var(--tint); }
.ac-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px var(--gutter); margin-top: 72px; }
.ac-cols > div { padding-top: 20px; border-top: 1px solid var(--deep); }
.ac-cols h3 { font-size: clamp(21px, 1.9vw, 26px); font-weight: 500; line-height: 1.2; margin-bottom: 10px; }
.ac-cols p { color: var(--mpurple); max-width: 40ch; text-wrap: pretty; }   /* no lone last word */

/* 4 Closing CTA: Navy band */
.div-consulting .ac-cta { padding: 160px 0; background: var(--ink); color: var(--paper); }
.ac-cta .ac-b2, .ac-cta .ac-body { color: var(--lilac); }
.ac-cta .ac-row { text-wrap: balance; }   /* no lone word on phones; set before motion.js splits the lines */
.ac-cta .ac-body { margin-bottom: 40px; }
.ac-cta .ac-btn { background: var(--paper); color: var(--ink); }
.ac-cta .ac-btn:hover { background: var(--accent); }

/* Stacked: diagram pinned on top of the walkthrough, list scrolls beneath */
@media (max-width: 1023px) {
  .ac-hero-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .ac-hero-visual { height: auto; min-height: 0; aspect-ratio: 1.15; }
  .caps__body { display: flex; flex-direction: column; }
  .caps__stage { order: -1; align-self: stretch; top: var(--nav-shown, var(--nav)); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .caps__visual { flex: none; aspect-ratio: 1.5; max-height: 42vh; max-height: 42svh; }
  .caps__legend { font-size: 12px; gap: 12px; height: 36px; }
  .cap, .cap:first-child { min-height: 50vh; min-height: 50svh; padding-block: 40px; }
  .cap:first-child { padding-top: 24px; min-height: 70vh; min-height: 70svh; }
  .cap:last-child { min-height: 25vh; min-height: 25svh; padding-bottom: 0; }   /* the footnote below adds to the last hold */
}
@media (max-width: 767px) {
  .div-consulting { padding-top: 130px; }
  .div-consulting section { padding: 72px 0; }
  .div-consulting .ac-hero { padding-bottom: 64px; }
  .div-consulting .ac-why { padding: 88px 0; }
  .div-consulting .ac-cta { padding: 110px 0; }
  .ac-body { font-size: 18px; }
  .ac-cols { grid-template-columns: 1fr; margin-top: 40px; }
  .cap__name { font-size: 26px; }
  .cap__claim { font-size: 19px; }
  .cap__desc { font-size: 17px; }
}

/* ---------- Custom Software page (division look, scoped) ---------- */
/* Technical voice: light, restrained, Factory-style. White page → chrome tokens flip like AI Consulting. */
body:has(.div-software) { --ink: #fff; --paper: #1A1044; --muted: #51429C; }
body:has(.div-software) .site-nav .pill:hover { color: #fff; }
.div-software {
  --cs-navy: #1A1044; --cs-sec: #51429C; --cs-border: #B3B3B3; --cs-sunk: rgba(161, 152, 212, .12);
  --cs-dot: var(--violet); --cs-rule-dark: #4A289E;
  padding-top: 160px;
  overflow-x: clip;
  background: #fff; color: var(--cs-navy);
  font-size: 17px; line-height: 1.5;
}
.div-software section { padding: 112px 0; }
.div-software section[id] { scroll-margin-top: 100px; }
.div-software a { border-bottom: 0; }
.div-software ul, .div-software ol { list-style: none; margin: 0; padding: 0; }

/* Type */
.cs-label { font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--cs-sec); line-height: 1.4; }
.cs-dotted::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cs-dot); margin-right: 10px; vertical-align: 1px; }
p.cs-dotted { margin-bottom: 24px; }
.cs-h1 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1; font-weight: 500; letter-spacing: -.04em; text-transform: uppercase; }
.cs-h1 > span { display: block; }
.cs-h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.1; font-weight: 400; letter-spacing: -.02em; max-width: 18ch; }
.cs-h2--wide { max-width: 24ch; }
.div-software h3 { font-size: 20px; line-height: 1.25; font-weight: 400; letter-spacing: -.01em; }
.cs-body { font-size: 18px; line-height: 1.5; color: var(--cs-sec); max-width: 46ch; }
.cs-body strong { font-weight: 500; color: var(--cs-navy); }
.cs-fn { color: var(--violet); padding-left: 1px; }
.cs-fn:hover { color: var(--cs-navy); }

/* Buttons: sharp, uppercase; hover = moving diagonal hatch (scoped to this page) */
.cs-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.div-software .cs-btn {
  --hatch: #4A289E;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--cs-navy); border-radius: 3px;
  background: var(--cs-navy); color: #fff;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  transition: background-color .15s, color .15s, border-color .15s;
}
.cs-btn svg, .cs-more svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cs-btn::before {
  content: ''; position: absolute; inset: -30px; z-index: -1;
  background: repeating-linear-gradient(45deg, transparent 0 2px, var(--hatch) 2px 3px, transparent 3px 5px);
  opacity: 0; transition: opacity .15s;
}
.cs-btn:hover::before, .cs-btn:focus-visible::before { opacity: 1; animation: cs-hatch 2s linear infinite; }
.cs-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.div-software .cs-btn--line { --hatch: #A198D4; background: #fff; color: var(--cs-navy); border-color: var(--cs-border); }
.cs-btn--line:hover { border-color: var(--cs-navy); }
.div-software .cs-btn--light { --hatch: #4A289E; background: transparent; color: #fff; border-color: var(--lilac); }
.cs-btn--light:hover { border-color: #fff; }
@keyframes cs-hatch { to { transform: translate(28.28px, -28.28px); } }

/* 1 Hero */
.div-software .cs-hero { padding: 24px 0 96px; }
.cs-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 56px; align-items: center; }
.cs-hero .cs-body { margin: 28px 0 36px; }

/* Hero figure: research → factory → any software (engine: js/factory-art.js, SVG drawn in a 480×520 box) */
.cs-art { position: relative; width: 100%; aspect-ratio: 480 / 520; margin: 0; }
.cs-art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cs-art text { font-family: var(--font); }
.cs-art text:not([fill]) { fill: var(--cs-navy); }   /* body --ink is white on this page; uncoloured figure text = navy */
.cs-art .tab { cursor: pointer; }

/* Build log panel (engine: js/buildlog.js) */
.blog {
  --blog-fade: 1;
  background: var(--cs-navy); color: #fff; border: 1px solid #4A289E; border-radius: 12px;
  padding: 0 24px 28px;
  font-size: 13px; line-height: 1.4;
}
.blog-bar { display: flex; align-items: center; gap: 6px; height: 48px; margin: 0 -24px 22px; padding: 0 24px; border-bottom: 1px solid #4A289E; }
.blog-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--mpurple); }
.blog-bar span { margin-left: 12px; color: var(--lilac); letter-spacing: .04em; }
.blog ol { display: grid; gap: 20px; }
.blog li { display: grid; grid-template-columns: 8px 92px minmax(0, 1fr); column-gap: 14px; align-items: baseline; }
.blog-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--mpurple); align-self: center; transition: background-color .2s, border-color .2s; }
.blog b { font-weight: 500; font-size: 12.5px; letter-spacing: .1em; color: var(--mpurple); transition: color .2s; }
.blog-d { position: relative; color: var(--lilac); opacity: var(--blog-fade); }
.blog-last .blog-d { color: #fff; }
.blog li[data-state='run'] .blog-dot { background: var(--accent); border-color: var(--accent); animation: blog-pulse 1.2s ease-in-out infinite; }
.blog li[data-state='done'] .blog-dot { background: var(--accent); border-color: var(--accent); opacity: var(--blog-fade); }
.blog li[data-state='run'] b, .blog li[data-state='done'] b { color: #fff; }
.blog .ch { position: relative; }
.blog:not(.is-static) .ch:not(.on) { opacity: 0; }
/* caret: block after the last typed character (or at the start of an empty detail) */
.blog .is-typing .ch.cur::after, .blog .is-typing .blog-d.at0::before {
  content: ''; position: absolute; top: .1em; width: .55em; height: 1.1em; background: var(--accent);
  animation: blog-caret 1s steps(1) infinite;
}
.blog .is-typing .ch.cur::after { left: calc(100% + 2px); }
.blog .is-typing .blog-d.at0::before { left: 0; }
.blog.is-paused * { animation-play-state: paused !important; }
.blog.is-static .blog-dot { background: var(--accent); border-color: var(--accent); }
.blog.is-static b { color: #fff; }
@keyframes blog-pulse { 50% { opacity: .35; } }
@keyframes blog-caret { 50% { opacity: 0; } }

/* 2 Proof band: three cells, hairlines */
.div-software .cs-proof { padding: 0 0 24px; }
.cs-proof-band { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--cs-border); border-bottom: 1px solid var(--cs-border); }
.cs-proof-band li { padding: 32px 32px 36px; }
.cs-proof-band li + li { border-left: 1px solid var(--cs-border); }
.cs-proof-band li:first-child { padding-left: 0; }
.cs-big { font-size: clamp(40px, 4vw, 56px); line-height: 1; font-weight: 400; letter-spacing: -.03em; margin-bottom: 16px; }
.cs-proof-band p:last-child { color: var(--cs-sec); max-width: 30ch; text-wrap: balance; }

/* 3 The problem: Navy band */
.div-software .cs-problem { --cs-dot: var(--accent); background: var(--cs-navy); color: #fff; margin-top: 88px; padding: 120px 0 128px; }
.cs-problem .cs-label { color: var(--lilac); }
.cs-split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 64px; border-top: 1px solid var(--cs-rule-dark); }
.cs-split > div { padding: 28px 48px 8px 0; }
.cs-split > div + div { padding: 28px 0 8px 48px; border-left: 1px solid var(--cs-rule-dark); }
.cs-split h3 { margin-bottom: 10px; }
.cs-split p, .cs-term-def { color: var(--lilac); max-width: 44ch; }
.cs-term { margin-top: 96px; }
.cs-term-word { font-size: clamp(40px, 5vw, 72px); line-height: 1; font-weight: 400; letter-spacing: -.035em; }
.cs-term-def { font-size: 20px; margin-top: 18px; max-width: none; }
.cs-term-def em { color: var(--accent); margin-right: 6px; }
/* above / below the line: few muted items over the rule, many brighter items under it */
.cs-line { margin-top: 72px; }
.cs-line-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 32px; align-items: start; }
.cs-line-row ul { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-line-row li { padding: 7px 12px; border: 1px solid var(--cs-rule-dark); border-radius: 3px; font-size: 15px; line-height: 1.3; }
.cs-line-above .cs-label { padding-top: 8px; }
.cs-line-below .cs-label { padding-top: 8px; color: #fff; }
.cs-line-above li { color: var(--mpurple); border-style: dashed; }
.cs-line-below li { color: #fff; border-color: rgba(161, 152, 212, .45); background: rgba(131, 119, 247, .08); }
.cs-line-rule { position: relative; height: 1px; margin: 24px 0; background: var(--accent); }
.cs-line-rule::before { content: ''; position: absolute; left: 0; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cs-statement { margin-top: 72px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.015em; }

/* 4 How it works: loop cards + principles */
.cs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; }
.cs-head .cs-body { margin-bottom: 4px; }
.div-software .cs-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.cs-card { background: #fff; border: 1px solid var(--cs-border); border-radius: 6px; padding: 24px 24px 28px; }
.cs-card .cs-label { margin-bottom: 40px; }
.cs-card h3 { margin-bottom: 8px; }
.cs-card p:last-child { font-size: 16px; color: var(--cs-sec); }
/* connectors: a hairline + arrowhead across the gap to the next step */
.cs-loop .cs-card { position: relative; }
.cs-loop .cs-card + .cs-card::before {
  content: ''; position: absolute; left: -25px; top: 30px; width: 24px; height: 1px; background: var(--cs-navy);
}
.cs-loop .cs-card + .cs-card::after {
  content: ''; position: absolute; left: -6px; top: 27px; width: 6px; height: 6px;
  border-top: 1px solid var(--cs-navy); border-right: 1px solid var(--cs-navy); transform: rotate(45deg);
}
.cs-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 88px; }
.cs-principles > div { padding-top: 20px; border-top: 1px solid var(--cs-border); }
.div-software .cs-principles h3 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.02em; margin-bottom: 10px; }
.cs-principles p { color: var(--cs-sec); }
.k1 { color: var(--accent); } .k2 { color: var(--violet); } .k3 { color: var(--purple); }

/* 5 What we build */
.div-software .cs-build { padding-top: 24px; }
.cs-card--special { background: var(--cs-sunk); border-color: var(--lilac); }
.cs-card--special .cs-dotted::before { margin-left: 2px; margin-right: 8px; }
.cs-more { display: inline-flex; align-items: center; gap: 4px; color: var(--violet); }
.cs-more:hover { color: var(--cs-navy); }

/* 6 AI solutions: dark panel, heading left, text right */
.div-software .cs-ai { padding-top: 24px; }
.cs-panel {
  --cs-dot: var(--accent);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; row-gap: 40px;
  background: var(--cs-navy); color: #fff; border-radius: 12px; padding: 56px;
}
.cs-panel .cs-label { color: var(--lilac); }
.cs-panel-text p { color: var(--lilac); max-width: 50ch; }
.cs-panel-text p + p { margin-top: 18px; }
.cs-panel-text p.cs-credential { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--cs-rule-dark); font-size: 14.5px; color: var(--lilac); opacity: .85; }
.cs-panel-text p:first-child { color: #fff; }

/* 7 Cost */
.div-software .cs-cost { padding-top: 48px; }
.cs-cost .cs-head { align-items: start; }
.cs-cost-text .cs-body + .cs-body { margin-top: 18px; }
.cs-cost-text { padding-top: 46px; }

/* 8 Engagement: sticky heading left, numbered list right */
.div-software .cs-engage { padding-top: 48px; }
.div-software .cs-engage .cs-h2 { text-wrap: balance; }
.cs-sticky { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: start; }
.cs-sticky-head { position: sticky; top: 120px; }
.cs-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 28px 0 32px; border-bottom: 1px solid var(--cs-border); }
.cs-steps li:first-child { padding-top: 6px; }
.cs-steps .cs-label { padding-top: 6px; }
.div-software .cs-steps h3 { font-size: 24px; margin-bottom: 8px; }
.cs-steps p:not(.cs-label) { color: var(--cs-sec); max-width: 44ch; }
.cs-get { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 32px; }
.cs-get ul { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-get li { padding: 6px 12px; border-radius: 3px; background: var(--cs-sunk); font-size: 14px; }

/* 9 Closing CTA: centred dark card with grain, sized to its content (user 2026-11-05) */
.div-software .cs-cta { padding: 96px 0 72px; }
.cs-cta-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: min(100%, 720px); margin-inline: auto; padding: 64px 48px;
  border-radius: 12px; color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, #4A289E 0%, transparent 60%), radial-gradient(90% 70% at 0% 100%, #2a1a63 0%, transparent 70%), var(--cs-navy);
}
.cs-cta-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.div-software .cs-cta-card .cs-h2 { font-size: clamp(30px, 2.6vw, 36px); }
.cs-cta-card p { color: var(--lilac); margin: 16px auto 32px; max-width: 34ch; }
.div-software .cs-cta-card .cs-h2, .cs-cta-card p { text-wrap: balance; }
.cs-footnote { margin: 40px auto 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--cs-sec); max-width: 70ch; }

@media (max-width: 1023px) {
  .cs-hero-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .blog { max-width: 620px; }
  .cs-art { max-width: 480px; }
  .cs-head, .cs-sticky, .cs-panel { grid-template-columns: 1fr; row-gap: 24px; }
  .cs-cost-text { padding-top: 0; }
  .cs-sticky-head { position: static; margin-bottom: 32px; }
  .div-software .cs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-loop .cs-card:nth-child(3)::before, .cs-loop .cs-card:nth-child(3)::after { display: none; }
}
@media (max-width: 767px) {
  .div-software { padding-top: 120px; font-size: 16px; }
  .div-software section { padding: 72px 0; }
  .div-software .cs-hero { padding: 8px 0 56px; }
  .cs-body { font-size: 17px; }
  .cs-hero .cs-body { margin: 20px 0 28px; }
  .div-software .cs-btn { width: 100%; justify-content: space-between; }
  .blog { padding: 0 16px 20px; font-size: 12px; }
  .blog-bar { margin: 0 -16px 18px; padding: 0 16px; height: 42px; }
  .blog ol { gap: 14px; }
  .blog li { grid-template-columns: 8px 78px minmax(0, 1fr); column-gap: 10px; }
  .blog b { font-size: 11.5px; }
  .cs-proof-band { grid-template-columns: 1fr; }
  .cs-proof-band li, .cs-proof-band li:first-child { padding: 24px 0 26px; }
  .cs-proof-band li + li { border-left: 0; border-top: 1px solid var(--cs-border); }
  .div-software .cs-problem { margin-top: 56px; padding: 80px 0 88px; }
  .cs-split { grid-template-columns: 1fr; margin-top: 40px; }
  .cs-split > div, .cs-split > div + div { padding: 24px 0 8px; border-left: 0; }
  .cs-split > div + div { border-top: 1px solid var(--cs-rule-dark); margin-top: 16px; }
  .cs-term { margin-top: 64px; }
  .cs-term-def { font-size: 18px; }
  .cs-line { margin-top: 48px; }
  .cs-line-row { grid-template-columns: 1fr; row-gap: 14px; }
  .cs-line-row li { font-size: 14px; padding: 6px 10px; }
  .cs-statement { margin-top: 56px; }
  .div-software .cs-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .cs-card .cs-label { margin-bottom: 24px; }
  .div-software .cs-loop { gap: 24px; }
  .cs-loop .cs-card + .cs-card::before { left: 30px; top: -25px; width: 1px; height: 24px; }
  .cs-loop .cs-card + .cs-card::after { left: 27px; top: -7px; transform: rotate(135deg); }
  .cs-loop .cs-card:nth-child(3)::before, .cs-loop .cs-card:nth-child(3)::after { display: block; }
  .cs-principles { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .cs-panel { padding: 32px 24px; }
  .cs-steps li { grid-template-columns: 40px minmax(0, 1fr); }
  .cs-cta-card { padding: 48px 24px; }
  .div-software .cs-cta { padding: 64px 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-btn:hover::before, .cs-btn:focus-visible::before { animation: none; }
  .blog * { animation: none !important; }
}
/* Custom Software: hero credential line + two-paragraph How intro */
.cs-hero-cred { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--cs-border); font-size: 14.5px; line-height: 1.5; color: var(--cs-sec); max-width: 52ch; }
.cs-how-text .cs-body + .cs-body { margin-top: 16px; }

/* ---------- AI Software Factory page: simple hero + three step sections (promoted from the lab mock, 2026-11-04) ---------- */
/* Hero: type only, wide */
.div-software .mk-hero { padding: 40px 0 72px; }
.mk-hero .cs-h1 { font-size: clamp(40px, 6.4vw, 96px); }
.mk-hero .cs-body { margin: 32px 0 48px; max-width: 52ch; }
.mk-hero .cs-hero-cred { max-width: 60ch; }
/* Desktop hero rhythm (user 2026-11-04): more air under the H1 and before the proof band */
@media (min-width: 1024px) { .div-software .mk-hero { padding-bottom: 104px; } .mk-hero .cs-body { margin-top: 44px; } }

/* stepper: hero contents row and section headers share the figure's tab look */
.mk-disc { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.2px solid var(--violet); font-size: 14px; color: var(--violet); flex: none; }

.mk-stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 28px; }
.mk-stepper li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--cs-sec); }
.mk-stepper li .mk-disc { width: 22px; height: 22px; font-size: 13px; border-color: var(--lilac); color: var(--cs-sec); }
.mk-stepper li.is-on { color: var(--cs-navy); }
.mk-stepper li.is-on .mk-disc { background: var(--violet); border-color: var(--violet); color: #fff; }
.mk-stepper li + li::before { content: '›'; color: rgba(26, 16, 68, .45); margin-right: 10px; }
/* Phone stepper (user 2026-11-05): one line, no "›" starting a second row; arrows drop on very narrow screens */
@media (max-width: 767px) {
  .mk-stepper { flex-wrap: nowrap; gap: 0 12px; }
  .mk-stepper li { gap: 6px; font-size: 14px; white-space: nowrap; }
  .mk-stepper li .mk-disc { width: 20px; height: 20px; font-size: 12px; }
  .mk-stepper li + li::before { margin-right: 6px; }
}
@media (max-width: 369px) {
  .mk-stepper { gap: 0 10px; }
  .mk-stepper li { gap: 5px; font-size: 13px; }
  .mk-stepper li + li::before { content: none; }
}

/* step sections: text + sticky figure */
.div-software .mk-step { padding: 112px 0; border-top: 1px solid var(--cs-border); }
.mk-step-grid { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 480px); column-gap: 96px; justify-content: start; align-items: start; }
.mk-step--flip .mk-step-grid { grid-template-columns: minmax(0, 480px) minmax(0, 680px); }
.mk-step--flip .mk-fig { order: -1; }
.mk-fig { margin: 0; }   /* no longer sticky (user 2026-11-04): figures stay in place while scrolling */
.mk-fig .cs-art { aspect-ratio: 480 / 460; }
.mk-figcap { margin-top: -7%; font-size: 15px; line-height: 1.45; color: var(--cs-sec); }   /* step 1: "four of many" under the graphs (user 2026-11-04, R1); -7% (of width) pulls it up over the empty bottom of the SVG */
.mk-step .cs-h2 { max-width: 20ch; }
.mk-step .cs-body { margin-top: 24px; }

/* step 2: the stations */
.div-software .mk-stations { margin-top: 44px; counter-reset: st; }   /* .div-software so it beats the page's list reset (.div-software ol { margin: 0 }) */
.mk-stations li { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 20px; padding: 18px 0; border-top: 1px solid rgba(26, 16, 68, .1); }
.mk-stations li:last-child { border-bottom: 1px solid rgba(26, 16, 68, .1); }
.mk-st { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; }
.mk-st::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 1.2px solid var(--cs-navy); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--cs-navy); flex: none; }
.mk-stations p { font-size: 16px; color: var(--cs-sec); }
.mk-ans { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 3px; background: var(--cs-sunk); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.mk-improve { margin-top: 48px; padding: 28px 28px 30px; border: 1px solid var(--lilac); border-radius: 6px; background: var(--cs-sunk); }
.mk-improve .cs-label { color: var(--violet); margin-bottom: 14px; }
.div-software .mk-improve h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.015em; margin-bottom: 10px; }
.mk-improve p:last-child { color: var(--cs-sec); max-width: 52ch; }
.mk-step .cs-principles { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
.mk-step .cs-principles > div { display: grid; grid-template-columns: minmax(0, 15ch) minmax(0, 1fr); column-gap: 24px; padding: 18px 0; }
.div-software .mk-step .cs-principles h3 { font-size: 22px; margin: 0; }

/* step 3: the five products */
.div-software .mk-products { margin-top: 44px; }   /* .div-software so it beats the page's list reset */
.mk-products li { display: grid; grid-template-columns: 130px minmax(0, 1fr); column-gap: 20px; padding: 18px 0; border-top: 1px solid rgba(26, 16, 68, .1); }
.mk-products li:last-child { border-bottom: 1px solid rgba(26, 16, 68, .1); }
.mk-products .cs-label { padding-top: 5px; }
.div-software .mk-products h3 { font-size: 20px; margin-bottom: 4px; }
.mk-products p { font-size: 16px; color: var(--cs-sec); }
.mk-also { margin-top: 24px; font-size: 16px; color: var(--cs-sec); }
/* step 3: types of software, 2-column grid under the intro (user 2026-11-05, F3) */
.div-software .mk-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin-top: 44px; }
.mk-types li { padding: 22px 0 24px; border-top: 1px solid rgba(26, 16, 68, .1); }
.div-software .mk-types h3 { font-size: 20px; margin: 0 0 6px; }
.mk-types p { font-size: 16px; line-height: 1.45; color: var(--cs-sec); }
.mk-types .cs-more { margin-top: 4px; }
.mk-types li:nth-child(5), .mk-types li:nth-child(6) { border-bottom: 1px solid rgba(26, 16, 68, .1); }   /* line under the last row (6 tiles, user 2026-11-05) */
#software .mk-fig { align-self: center; }   /* step 3: figure centred on the whole text block (user 2026-11-05) */
#improving .cs-panel-text { align-self: center; }   /* Always improving band: the one paragraph centred on the label + H2 (user 2026-11-05) */
@media (max-width: 479px) {
  .div-software .mk-types { grid-template-columns: 1fr; }
  .mk-types li:nth-child(5) { border-bottom: 0; }
}

.div-software .mk-after { padding-top: 24px; } /* was 112px; gap above navy panel = gap below it (160 / 120px), user 2026-11-13 */

@media (max-width: 1023px) {
  .mk-step-grid, .mk-step--flip .mk-step-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .mk-step--flip .mk-fig { order: 0; }
  .mk-fig { position: static; max-width: 480px; }
}
@media (max-width: 767px) {
  .div-software .mk-step { padding: 72px 0; }
  .mk-stations li, .mk-products li, .mk-step .cs-principles > div { grid-template-columns: 1fr; row-gap: 6px; }
  .mk-improve { padding: 22px 20px; }
}

/* Hero with animation B2 (wide art column) */
.mk-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 680px); column-gap: 48px; }
.mk-hero .cs-h1 { font-size: clamp(32px, 4.2vw, 60px); }
.mk-hero-art { width: 100%; aspect-ratio: 560 / 340; margin: 0; }
.mk-hero-art svg { width: 100%; height: 100%; overflow: visible; }
.mk-hero-art text { font-family: var(--font); }
@media (max-width: 1023px) { .mk-hero-grid { grid-template-columns: 1fr; row-gap: 40px; } .mk-hero-art { max-width: 640px; } }
/* Phone hero (user 2026-11-05): art between the body text and the buttons, tight so "Tell us what to build" stays on the first screen at 390x844 */
@media (max-width: 767px) {
  .mk-hero-grid { row-gap: 0; }
  .mk-hero .cs-hero-text { display: contents; }
  .mk-hero-art { order: 1; max-width: 340px; margin: 0 0 28px; }
  .mk-hero .cs-btns { order: 2; }
  .mk-hero .cs-body { margin-bottom: 20px; }
}

/* no second line under the proof band: Research follows it directly */
.cs-proof + .mk-step { border-top: 0; }

/* Body sections centred (user 2026-11-04): from step 1 Research down, content is a 1440px block (incl. gutters) centred on wide screens (as the home page's capped block). Header, hero, proof band stay edge to edge like the other pages. */
.mk-step > .wrap, .cs-ai > .wrap, .cs-cost > .wrap, .cs-engage > .wrap, .cs-cta > .wrap { max-width: 1440px; margin-inline: auto; }

/* Step 1: researcher proof block (user 2026-11-04) replaces the failure-mode list */
.mk-researcher { margin-top: 48px; }
.mk-researcher ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--cs-border); border-bottom: 1px solid var(--cs-border); }
.mk-researcher li { padding: 22px 20px 24px; }
.mk-researcher li:first-child { padding-left: 0; }
.mk-researcher li + li { border-left: 1px solid var(--cs-border); }
.mk-rs-big { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15; letter-spacing: -.015em; color: var(--cs-navy); margin-bottom: 8px; }
/* logos replace the big text (user 2026-11-13): grayscale, matched by visual area, not height */
.mk-rs-logo { display: flex; align-items: center; height: 64px; margin-bottom: 14px; }
.mk-rs-logo img { display: block; width: auto; max-width: 100%; filter: grayscale(1); }
.mk-rs-logo .is-lanl { height: 31px; }
.mk-rs-logo .is-ieee { height: 53px; }
.mk-rs-logo .is-neurips { height: 62px; }
.mk-researcher li p:last-child { font-size: 15px; line-height: 1.45; color: var(--cs-sec); }
@media (max-width: 767px) {
  .mk-researcher ul { grid-template-columns: 1fr; }
  .mk-researcher li, .mk-researcher li:first-child { padding: 18px 0; }
  .mk-researcher li + li { border-left: 0; border-top: 1px solid var(--cs-border); }
}

/* Stepper → H2 gap (user 2026-11-04): the 28px margin was being reset to 0; set explicitly */
.div-software .mk-stepper { margin-bottom: 40px; }
/* Researcher cards (user 2026-11-04): titles share one row so the descriptions start on the same line */
@media (min-width: 768px) {
  .mk-researcher ul { grid-template-rows: auto auto; }
  .mk-researcher li { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 10px; align-content: start; }
  .div-software .mk-researcher .mk-rs-big { margin-bottom: 0; align-self: start; }
}
