/* ================================================================
   A-Square Consultancy — Production CSS
   Design tokens: #0c0d11 bg · #f4f1ea text · #9cb6d6 navy · #e3a564 gold
   Fonts: Newsreader (serif) · Geist (sans) · Geist Mono (mono)
   ================================================================ */

/* ── Reset + base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: #0c0d11;
  color: #f4f1ea;
  font-family: 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }
strong { font-weight: 600; }

/* ── Keyframes ─────────────────────────────────────────────────── */
@keyframes ascBob  { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(5px) } }
@keyframes ascPulse{ 0%,100%{ opacity:.45;transform:scale(1) } 50%{ opacity:1;transform:scale(1.45) } }
@keyframes ascBloom{ 0%,100%{ opacity:.32;transform:scale(.86) } 50%{ opacity:.85;transform:scale(1.1) } }
@keyframes ascEq   { 0%,100%{ transform:scaleY(.35) } 50%{ transform:scaleY(1) } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ── Layout helpers ────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

/* ── Quad mark component ───────────────────────────────────────── */
.quad-mark {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  border-radius: 1px;
}
.quad-mark.xxs { gap: 1.5px; width: 9px;  height: 9px; }
.quad-mark.xs  { gap: 3px;   width: 26px; height: 26px; }

.qc { border-radius: 1px; aspect-ratio: 1; }
.qc-large {
  background: #181b22;
  border: 1px solid #2c2f37;
  border-radius: 6px;
  width: 60px; height: 60px;
  transition: background .55s, box-shadow .55s, border-color .55s;
}
.qc-engine {
  background: #181b22;
  border: 1px solid #2c2f37;
  border-radius: 6px;
  width: 58px; height: 58px;
  transition: background .55s, box-shadow .55s, border-color .55s;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .3s, box-shadow .3s, background .2s, border-color .2s, color .2s;
}
.btn-primary { background: #9cb6d6; color: #08121d; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(156,182,214,.45); background: #c4d8eb; }
.btn-ghost { background: transparent; color: #f4f1ea; border: 1px solid #373b45; }
.btn-ghost:hover { border-color: #9cb6d6; color: #9cb6d6; }
.btn-sm { padding: 9px 20px; font-size: .85rem; }

/* ── Eyebrow / section labels ──────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #83858d;
  margin-bottom: 18px;
}
.eyebrow svg { flex: none; }

/* ── Section intro block ───────────────────────────────────────── */
.section-intro { max-width: 54ch; }
.section-intro.centered { text-align: center; max-width: 34ch; margin: 0 auto; }
.section-intro.centered .eyebrow { display: inline-flex; }
.section-intro h2 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  letter-spacing: -.018em;
  line-height: 1.06;
  color: #f4f1ea;
}
.section-intro h2 em { color: #f4f1ea; }
.section-sub { font-size: 1.02rem; line-height: 1.7; color: #9a9c9f; margin-top: 14px; font-weight: 400; }

/* ── Reveal on scroll ──────────────────────────────────────────── */
[data-r] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-r].visible { opacity: 1; transform: none; }
/* JS-off fallback */
body.no-js [data-r] { opacity: 1; transform: none; }

/* ── NAV ───────────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s;
}
#site-nav.scrolled {
  background: rgba(12,13,17,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: #1b1d23;
}

.nav-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.logo { display: flex; align-items: center; justify-self: start; gap: 12px; }
.nav-logo-img { height: 36px; width: auto; display: block; }
.nav-rule { width: 1px; height: 32px; background: #4a4e57; display: block; flex: none; }
.nav-wordmark { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.nav-asc {
  font-family: 'Geist', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: .055em;
  line-height: 1;
  color: #f4f1ea;
}
.nav-fullname {
  font-size: .5rem;
  line-height: 1;
  color: #9aa0a8;
  white-space: nowrap;
}
.logo:hover .nav-asc { color: #9cb6d6; transition: color .2s; }
@media (max-width: 480px) {
  .nav-fullname { display: none; }
  .nav-wordmark { gap: 0; }
}
.footer-logo-img  { height: 38px; width: auto; display: block; }

.nav-links {
  justify-self: center;
  display: flex; align-items: center; gap: 2px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: border-color .4s ease, background .4s ease;
}
#site-nav.scrolled .nav-links {
  border-color: #20242c;
  background: rgba(22,25,31,.55);
}
.nav-links a {
  font-size: .82rem;
  font-weight: 600;
  color: #9a9c9f;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #f4f1ea; background: rgba(156,182,214,.12); }
.nav-right { justify-self: end; display: flex; align-items: center; }
.nav-cta { justify-self: end; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.nav-cta-arrow { display: inline-block; transition: transform .25s ease; }
.nav-cta:hover .nav-cta-arrow { transform: translateX(3px); }
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid #2c3a4d;
  background: transparent; color: #9cb6d6;
  cursor: pointer; justify-self: end;
  transition: background .2s, border-color .2s;
}
.nav-toggle:hover { background: rgba(156,182,214,.12); border-color: #9cb6d6; }
.nav-toggle svg { display: block; }

/* ── HERO ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 128px clamp(20px,5vw,56px) 96px;
  overflow: hidden;
  background: radial-gradient(92% 72% at 50% 40%, #16202f 0%, #10131a 52%, #0a0b0e 100%);
}
.hero .stream-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; opacity: .55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 1rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: #9cb6d6; margin-top: 0; margin-bottom: 22px;
}

/* ── Brand lockup: name above the central mark ── */
.hero-mark-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  margin: 22px 0 16px;
}
.hero-bloom {
  position: absolute; left: 50%; top: 50%;
  width: 320px; height: 270px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(70,108,164,.3), transparent 68%);
  animation: ascBloom 6.5s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
.quad-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 60px);
  grid-template-rows: repeat(2, 60px);
  gap: 10px;
  margin-bottom: 0;
}

/* One brand-name treatment everywhere the name appears (per lockup spec:
   name set in 600, uppercase, tracked out) */
.brand-name {
  font-family: 'Geist', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-feature-settings: 'ss01';
}

.hero-name {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 650;
  line-height: 1.4;
  color: rgba(255, 255, 255, .95);
  text-wrap: balance;
  margin-top: 0;
  margin-bottom: 10px;
}
.hero-hyphen { color: #9cb6d6; }
.hero-kicker {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .66rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: #6b6e76; margin-top: 14px;
}

/* Value-prop line — supporting statement below the lockup */
.hero-headline {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(1.12rem, 1.9vw, 1.5rem);
  letter-spacing: -.005em;
  line-height: 1.4;
  color: #9a9c9f;
  max-width: 28ch;
  margin-top: 30px;
  text-wrap: balance;
}
.hero-headline em { font-style: italic; color: #b9c6da; }

.hero-sub {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #7d8794;
  max-width: 50ch;
  margin-top: 20px;
  font-weight: 400;
}
.hero-ctas { display: flex; gap: 13px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-tagline {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .7rem;
  color: #6b6e76;
  letter-spacing: .04em;
  margin-top: 26px;
}

.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-hint svg { animation: ascBob 2s ease-in-out infinite; }

/* ── RULE ──────────────────────────────────────────────────────── */
.rule { border: none; border-top: 1px solid #2c2f37; margin: 0; }

/* ── SHIFT ─────────────────────────────────────────────────────── */
.shift { padding: clamp(60px,8vw,98px) 0; background: #0c0d11; }
.shift-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(36px, 6vw, 92px);
  align-items: stretch;
}
.shift-left h2 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(2.9rem, 5.7vw, 4.8rem);
  letter-spacing: -.022em;
  line-height: 1;
  color: #f4f1ea;
}
.shift-left h2 em { color: #e3a564; }
.shift-close {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.5;
  color: #9a9c9f;
  font-family: 'Newsreader', serif;
  font-weight: 400;
  max-width: 42ch;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #2c2f37;
}
.shift-close em { color: #cdd0d6; }

/* The answer — reads directly as answer below the problem */
.shift-answer-text {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -.012em;
  color: #e7e3da;
  max-width: 30ch;
  margin-top: 26px;
}
.shift-answer-text em { color: #e3a564; }

/* Right — three evidence bands distributed over full height */
.shift-stats {
  display: flex; flex-direction: column;
}
.stat-band {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-band + .stat-band { border-top: 1px solid #2c2f37; }
.stat-band:nth-child(1) { padding-bottom: 24px; }
.stat-band:nth-child(2) { padding: 24px 0; }
.stat-band:nth-child(3) { padding-top: 24px; }
.stat-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.stat-num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: clamp(3rem, 6.2vw, 4.5rem);
  font-weight: 700;
  color: #f4f1ea;
  line-height: .84;
  letter-spacing: -.035em;
}
.stat-unit { font-size: .4em; color: #83858d; font-weight: 500; letter-spacing: 0; }
.stat-src {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 4px; text-align: right; padding-top: 9px;
}
.src-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: #f4f1ea; border-radius: 6px;
  padding: 6px 9px; height: 34px;
}
.src-logo {
  display: block; height: 20px; width: auto; max-width: 92px;
  object-fit: contain;
}
.src-logo-tall { height: 26px; max-width: 56px; }
.src-study {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .58rem; letter-spacing: .13em; text-transform: uppercase;
  color: #83858d; white-space: nowrap;
}
.stat-bar {
  height: 3px; background: #23262e; border-radius: 2px;
  margin: 16px 0 13px; overflow: hidden;
}
.stat-fill { display: block; height: 100%; border-radius: 2px; transition: width 1.4s cubic-bezier(.3,.7,.3,1); }
.stat-label { font-size: 1.02rem; color: #9a9c9f; line-height: 1.5; }
.stat-em { color: #e7e3da; }

/* ── ENGINE SECTION ────────────────────────────────────────────── */
.engine-section {
  position: relative;
  padding: clamp(98px,14vw,168px) 0;
  background: radial-gradient(80% 90% at 50% 50%, #141d2b 0%, #0e1117 55%, #0a0b0e 100%);
  overflow: clip; /* clip (not hidden) so the sticky section label can work */
  border-top: 1px solid #1b1d23;
  border-bottom: 1px solid #1b1d23;
}

.engine-canvas {
  position: relative;
  margin-top: clamp(48px, 7vw, 80px);
  min-height: 540px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 2.4vw, 36px);
  padding: 0 clamp(20px, 5vw, 64px);
}
.engine-stream {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}

.engine-inputs {
  justify-self: start;
  display: flex; flex-direction: column; gap: 30px; z-index: 3;
}
.engine-agent {
  display: flex; align-items: center; gap: 11px;
  opacity: .62;
  transition: opacity .45s, transform .45s;
}
.agent-chip {
  position: relative; flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #161a22; border: 1px solid #2c3a4d;
  display: flex; align-items: center; justify-content: center;
}
.agent-chip svg { width: 18px; height: 18px; }
.chip-label {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px;
  font-weight: 700; letter-spacing: .03em; color: #9cb6d6;
}
.chip-dot {
  position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #9cb6d6;
  box-shadow: 0 0 0 2.5px #0e1117, 0 0 8px rgba(156,182,214,.8);
  animation: ascPulse 2s ease-in-out infinite;
}
.agent-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.agent-name {
  font-family: 'Geist', sans-serif; font-size: .9rem;
  font-weight: 600; color: #e7e3da; line-height: 1.15; white-space: nowrap;
}
.agent-fn {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .58rem;
  letter-spacing: .08em; text-transform: uppercase; color: #6f7682;
  white-space: nowrap;
}

.engine-core {
  justify-self: center;
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
}
.engine-word {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #9cb6d6;
  margin-bottom: 26px;
  transition: opacity .4s;
}
.engine-quad-wrap {
  position: relative; display: flex; align-items: center;
  justify-content: center; width: 304px; height: 304px;
}
.engine-bloom {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,58,95,.6), transparent 66%);
  animation: ascBloom 4.5s ease-in-out infinite;
  width: 360px; height: 336px;
  pointer-events: none;
}
.engine-quad {
  position: relative; display: grid;
  grid-template-columns: repeat(2, 78px);
  grid-template-rows: repeat(2, 78px);
  gap: 9px;
}
.engine-label {
  font-family: 'Newsreader', serif;
  font-style: italic; font-size: 1.3rem; color: #c8c4ba;
  margin-top: 18px;
}

.engine-right {
  justify-self: end;
  display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px);
  z-index: 3;
}

.engine-output {
  flex: 0 0 auto;
  width: clamp(186px, 22vw, 224px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 9px;
}
.output-card {
  width: 100%;
  background: rgba(18,22,29,.72);
  border: 1px solid #2a2f3a;
  border-radius: 13px;
  padding: 15px 16px 14px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-align: left;
}
.output-eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .55rem;
  letter-spacing: .14em; text-transform: uppercase; color: #6b6e76;
  margin-bottom: 7px;
}
.output-number { display: flex; align-items: baseline; gap: 3px; }
.output-arrow { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 1.15rem; color: #e3a564; font-weight: 700; }
.output-val {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: clamp(2.4rem, 5.4vw, 3.4rem);
  font-weight: 700; color: #e3a564;
  letter-spacing: -.02em; line-height: 1;
}
.output-x { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 1.4rem; color: #e3a564; font-weight: 700; }
.output-desc { font-size: .76rem; color: #83858d; line-height: 1.4; margin-top: 6px; }
.output-approved {
  display: flex; align-items: center; gap: 7px;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid #23262e;
}
.approved-icon {
  display: flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(156,182,214,.5); flex: none;
}
.output-approved span:last-child {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .57rem;
  letter-spacing: .03em; color: #9cb6d6;
}

.engine-note {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; text-align: center; flex-wrap: wrap;
  font-size: .9rem; color: #83858d;
  padding-top: clamp(40px, 6vw, 64px);
}
.engine-note strong { color: #bdbab1; font-weight: 600; }
.engine-note-src {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase; color: #6b6e76;
}

/* ── Operator review node (sits between engine and output) ─────── */
/* compact operator node */
.engine-operator {
  flex: 0 0 auto;
  position: relative; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-align: center; width: clamp(96px, 10vw, 118px);
}
.op-avatar {
  position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(150deg,#22324a,#131c29);
  border: 1px solid rgba(156,182,214,.55);
  box-shadow: 0 10px 26px -12px rgba(156,182,214,.6), inset 0 1px 0 rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
}
.op-avatar svg { width: 25px; height: 25px; }
.op-check {
  position: absolute; bottom: -3px; right: -3px;
  width: 19px; height: 19px; border-radius: 50%;
  background: #9cb6d6; border: 2px solid #0c0d11;
  display: flex; align-items: center; justify-content: center;
  animation: ascPulse 2.4s ease-in-out infinite;
}
.op-text { display: flex; flex-direction: column; gap: 2px; }
.op-name {
  font-family: 'Geist', sans-serif; font-weight: 600;
  font-size: .84rem; color: #e7e3da; line-height: 1.2;
}
.op-tag {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .54rem;
  letter-spacing: .12em; text-transform: uppercase; color: #9cb6d6;
}

/* ── THE WORK — case-study cards ────────────────────────────────── */
.work-section { padding: clamp(60px,8vw,100px) 0; background: #0c0d11; }

.cards-stack {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: #2c3a4d transparent;
  cursor: grab;
}
.cards-stack::-webkit-scrollbar { height: 7px; }
.cards-stack::-webkit-scrollbar-track { background: #14161b; border-radius: 4px; }
.cards-stack::-webkit-scrollbar-thumb { background: #2c3a4d; border-radius: 4px; }
.cards-stack::-webkit-scrollbar-thumb:hover { background: #3a4a5f; }
.cards-stack.grabbing { cursor: grabbing; scroll-snap-type: none; }
.cards-stack.grabbing .case-card { pointer-events: none; }

/* horizontal controls */
.cards-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.cards-hint { font-family: 'Geist Mono', ui-monospace, monospace; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #6b6e76; }
.cards-arrows { display: flex; gap: 8px; }
.cards-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #2c3a4d; background: #101319; color: #9cb6d6; font-size: 1.05rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, opacity .2s; }
.cards-arrow:hover { background: rgba(156,182,214,.12); }
.cards-arrow:disabled { opacity: .28; cursor: default; }

.case-card {
  flex: 0 0 clamp(320px, 84vw, 430px);
  scroll-snap-align: start;
  position: relative; overflow: hidden;
  background: #15171d; border: 1px solid #23262e;
  border-radius: 20px;
  padding: clamp(26px, 3vw, 34px);
  display: flex; flex-direction: column;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .5s;
}
.case-card:hover { transform: translateY(-3px); border-color: rgba(156,182,214,.3); }

.case-problem { padding: 0; margin-bottom: 18px; }
.case-detail {
  max-height: 0; overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
}
.case-detail .case-body { margin-bottom: 0; }
.case-toggle {
  margin-top: auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: transparent; border: none; border-top: 1px solid #23262e;
  padding: 16px 0 0; cursor: pointer;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .7rem;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #9cb6d6;
  transition: color .2s;
}
.case-toggle:hover { color: #cfd9e6; }
.ct-icon {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid #2c3a4d; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1; color: #9cb6d6;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
.case-card.open .ct-icon { transform: rotate(45deg); border-color: #9cb6d6; }
.case-solution {
  padding: 0; padding-top: 18px; margin-top: 18px;
  border-top: 1px solid #23262e;
  flex: 1;
  display: flex; flex-direction: column;
}
/* animated visual per work card (LottieFiles free assets) */
.case-anim {
  position: relative;
  height: 168px;
  margin-bottom: 22px;
  border-radius: 14px;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(156,182,214,.09), transparent 60%),
    linear-gradient(160deg, #12141a, #0e1015);
  border: 1px solid #23262e;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.case-anim svg { width: 100%; height: 100%; display: block; }
.case-anim text {
  font-family: 'Geist Mono', ui-monospace, monospace;
  letter-spacing: .13em; text-transform: uppercase;
}

/* ── bespoke scene animation system ─────────────────────── */
@keyframes caRing { 0% { transform: scale(.45); opacity: .85; } 100% { transform: scale(2.1); opacity: 0; } }
.ca-ring { transform-box: fill-box; transform-origin: center; animation: caRing 2.6s ease-out infinite; }
.ca-ring2 { animation-delay: 1.3s; }
@keyframes caDash { to { stroke-dashoffset: -20; } }
.ca-flow { stroke-dasharray: 3 7; animation: caDash 1.1s linear infinite; }
@keyframes caBlink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.ca-bl { animation: caBlink 2s ease-in-out infinite; }
@keyframes caCell { 0%, 12% { fill-opacity: 0; } 22%, 68% { fill-opacity: .85; } 80%, 100% { fill-opacity: 0; } }
.ca-cell { fill: #e3a564; animation: caCell 5s ease infinite; }
@keyframes caEq { 0%, 100% { transform: scaleX(.3); } 50% { transform: scaleX(1); } }
.ca-eq { transform-box: fill-box; transform-origin: left center; animation: caEq 1.6s ease-in-out infinite; }
@keyframes caCard { 0%, 6% { opacity: 0; transform: translateX(-16px); } 16%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.ca-crd { animation: caCard 5.2s ease infinite; }
@keyframes caDraw { 0% { stroke-dashoffset: 100; } 58% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
.ca-spark { stroke-dasharray: 100; animation: caDraw 7s cubic-bezier(.4,0,.3,1) infinite; }
@keyframes caAppear { 0%, 48% { opacity: 0; } 58%, 90% { opacity: 1; } 100% { opacity: 0; } }
.ca-ap { animation: caAppear 7s ease infinite; }
@keyframes caMember { 0%, 18% { opacity: .95; } 42%, 58% { opacity: .15; } 82%, 100% { opacity: .95; } }
.ca-mem { animation: caMember 7s ease infinite; }
@keyframes caBar { 0% { transform: scaleY(0); } 14% { transform: scaleY(1); } 100% { transform: scaleY(1); } }
.ca-bar { transform-box: fill-box; transform-origin: center bottom; animation: caBar 6.5s ease-out infinite; }
@keyframes caGhost { 0%, 40% { opacity: 0; } 54%, 94% { opacity: 1; } 100% { opacity: 0; } }
.ca-gh { animation: caGhost 6.5s ease infinite; }
@keyframes caQuad { 0%, 100% { fill-opacity: 0; } 8%, 18% { fill-opacity: .75; } 28% { fill-opacity: 0; } }
.ca-qs { fill: #e3a564; animation: caQuad 4.8s ease infinite; }
@keyframes caSweep { 0% { transform: rotate(-8deg); } 50% { transform: rotate(9deg); } 100% { transform: rotate(-8deg); } }
.ca-cone { transform-box: fill-box; transform-origin: 0% 0%; animation: caSweep 5.5s ease-in-out infinite; }
@keyframes caOffBox { 0%, 52% { fill-opacity: 0; } 60%, 78% { fill-opacity: .5; } 88%, 100% { fill-opacity: 0; } }
.ca-offb { fill: #e3a564; animation: caOffBox 5.5s ease infinite; }
@keyframes caOffTag { 0%, 52% { opacity: 0; } 60%, 82% { opacity: 1; } 90%, 100% { opacity: 0; } }
.ca-offt { animation: caOffTag 5.5s ease infinite; }

/* reduced motion: keep the diagrams, stop the movement */
@media (prefers-reduced-motion: reduce) {
  .case-anim * { animation: none !important; }
  .ca-crd, .ca-ap, .ca-gh { opacity: 1; }
}

.case-tag {
  display: inline-block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .58rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 12px;
}
.case-tag.problem { color: #8b8d94; }
.case-tag.solution { color: #9cb6d6; }
.case-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 24px;
}
.case-id-group { display: flex; align-items: center; gap: 15px; }
.case-icon {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 15px;
  background: linear-gradient(150deg,#1e2c40,#131c29);
  border: 1px solid rgba(156,182,214,.34); flex: none;
  box-shadow: 0 8px 20px -12px rgba(156,182,214,.6), inset 0 1px 0 rgba(255,255,255,.05);
}
.case-icon svg { width: 26px; height: 26px; stroke: #bcd0e8; }
.case-labels { display: flex; flex-direction: column; gap: 6px; }
.case-role {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .73rem;
  font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: #d2dcea;
}
.case-sub {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .58rem;
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #7d8794;
}
.case-count {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .62rem;
  letter-spacing: .12em; color: #5a5e68; white-space: nowrap;
}
.case-card h3 {
  font-family: 'Newsreader', serif; font-weight: 500;
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  letter-spacing: -.015em; line-height: 1.1; color: #f4f1ea;
  margin-bottom: 13px;
}
.case-body { font-size: .96rem; line-height: 1.6; color: #9a9c9f; }
.case-body .hl { color: #e7e3da; }

.case-divider { display: flex; align-items: center; margin: 24px 0 13px; }
.rule-accent { width: 36px; height: 2px; background: #9cb6d6; }
.rule-line { flex: 1; height: 1px; background: #2c2f37; }
.case-build-label {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .6rem;
  font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: #83858d; margin-bottom: 8px;
}
.case-build-text { font-size: .96rem; line-height: 1.58; color: #e7e3da; }
.case-build-text .nv { color: #9cb6d6; }
.case-build-text .gold { color: #e3a564; }

/* Outcome block — RESULT (gold, the growth moment) + CLOSE (human voice) + evidence anchor */
.case-result {
  display: flex; align-items: baseline; gap: 11px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid #23262e;
}
.case-result .res-arrow { color: #e3a564; font-weight: 700; font-size: .95rem; line-height: 1; flex: none; }
.case-result .res-text {
  font-family: 'Newsreader', serif; font-style: italic; font-weight: 500;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.2; color: #e3a564;
}
.case-close { font-size: .95rem; line-height: 1.6; color: #9a9c9f; margin-top: 15px; }
.case-close b { color: #cfd4dc; font-weight: 600; }
.case-anchor {
  display: flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .58rem;
  letter-spacing: .1em; text-transform: uppercase; color: #5a5e68;
}
.case-anchor b { color: #83858d; font-weight: 600; }
.case-anchor .anchor-dot { width: 5px; height: 5px; border-radius: 50%; background: #2c3a4d; flex: none; }

/* Proof sub-block (inside solution) */
.case-proof {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid #23262e;
}
.proof-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.proof-src {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .56rem;
  letter-spacing: .13em; text-transform: uppercase; color: #5a5e68;
}
.proof-live {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .56rem;
  letter-spacing: .1em; color: #9cb6d6;
  display: flex; align-items: center; gap: 5px;
}
.live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #9cb6d6; animation: ascPulse 2.2s ease-in-out infinite;
}
.proof-metric { display: flex; align-items: baseline; gap: 9px; margin-bottom: 20px; }
.proof-num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: clamp(2.2rem, 3.8vw, 3.1rem);
  font-weight: 700; color: #e3a564;
  line-height: .9; letter-spacing: -.02em;
}
.proof-metric-desc { font-size: .8rem; color: #83858d; line-height: 1.3; max-width: 14ch; }

.pip-row { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.pip-tag {
  width: 54px; flex: none;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .6rem;
  letter-spacing: .06em; text-transform: uppercase; color: #83858d;
}
.pip-tag.nv { color: #9cb6d6; }
.pip-set { display: flex; gap: 6px; flex-wrap: wrap; }
.pip-note {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .66rem;
  color: #83858d; margin-left: 2px;
}
.pip-note.gold { color: #e3a564; font-weight: 600; }
.proof-note {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .66rem;
  color: #83858d; margin-top: 14px; line-height: 1.5;
}
.proof-note .hl-mono { color: #bdbab1; }

.retention-chart { width: 100%; height: auto; font-family: 'Geist Mono', ui-monospace, monospace; margin-top: 2px; }

/* AI working feed — live timeline of the agent's steps */
.ai-feed {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid #23262e;
}
.ai-feed-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.ai-feed-title {
  display: flex; align-items: center; gap: 7px;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .58rem;
  letter-spacing: .14em; text-transform: uppercase; color: #9cb6d6;
}
.ai-feed-meta {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .56rem;
  letter-spacing: .12em; text-transform: uppercase; color: #5a5e68;
}
.ai-steps {
  list-style: none; position: relative;
  padding-left: 20px; margin: 0;
}
.ai-steps::before {
  content: ''; position: absolute;
  left: 4px; top: 12px; bottom: 16px;
  width: 1px; background: #2c2f37;
}
.ai-step {
  position: relative; display: flex; gap: 11px;
  padding: 8px 0;
  opacity: 0; transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease;
}
.ai-step::before {
  content: ''; position: absolute;
  left: -20px; top: 12px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #15171d; border: 1.5px solid #3a3f4a;
  transition: border-color .4s, background .4s, box-shadow .4s;
}
.ai-step.on { opacity: 1; transform: none; }
.ai-step.on::before { border-color: #9cb6d6; }
.ai-step.win.on::before {
  background: #e3a564; border-color: #e3a564;
  box-shadow: 0 0 9px rgba(227,165,100,.55);
}
.ai-step-time {
  flex: none; width: 46px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .62rem; color: #6b6e76; padding-top: 2px;
}
.ai-step-text { font-size: .9rem; color: #bdbab1; line-height: 1.45; }
.ai-step-text b { color: #e7e3da; font-weight: 600; }
.ai-step.win .ai-step-text { color: #e7e3da; }
.ai-step.win .ai-step-text b { color: #e3a564; }
.ai-feed-foot {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 16px; padding-top: 15px;
  border-top: 1px solid #23262e;
}
.ai-feed-foot span:last-child { font-size: .82rem; color: #83858d; line-height: 1.35; }
.proof-num.sm { font-size: clamp(1.8rem, 3vw, 2.5rem); }

/* Teaser rail */
.teaser-label {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .62rem;
  font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: #83858d;
  margin: 36px 0 12px;
}
.teaser-rail {
  display: flex; gap: clamp(14px, 3vw, 30px);
  flex-wrap: wrap; padding: 14px 0;
  border-top: 1px solid #2c2f37;
}
.teaser-item { display: flex; align-items: center; gap: 9px; font-size: .87rem; }
.teaser-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #9cb6d6; opacity: .55;
  animation: ascPulse 2.6s ease-in-out infinite;
}
.teaser-name { color: #bdbab1; font-weight: 500; }
.teaser-status { font-family: 'Geist Mono', ui-monospace, monospace; color: #6b6e76; font-size: .7rem; }

/* ── WORKING WITH US ────────────────────────────────────────────── */
.working-section {
  padding: clamp(70px,9vw,116px) 0;
  background: #0a0b0e;
  border-top: 1px solid #1b1d23;
}
.working-section h2 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  letter-spacing: -.02em; line-height: 1.04; color: #f4f1ea;
}
.working-section .section-intro { max-width: none; }
.working-section .section-intro h2 { max-width: 40ch; }
.phase-head {
  padding: clamp(16px,2.2vw,24px); cursor: pointer;
  display: flex; align-items: flex-start; gap: 13px;
}
.phase-meta { flex: 1; min-width: 0; }
.phase-icon {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  background: #101319; border: 1px solid #2c3a4d;
  display: flex; align-items: center; justify-content: center;
  transition: background .45s, border-color .45s, box-shadow .45s, transform .45s;
}
.phase-icon svg { width: 20px; height: 20px; stroke: #6f7682; transition: stroke .45s; }
.phase.open .phase-icon {
  background: linear-gradient(150deg,#1e2c40,#131c29);
  border-color: rgba(156,182,214,.5);
  box-shadow: 0 8px 18px -10px rgba(156,182,214,.55);
  transform: translateY(-1px);
}
.phase.open .phase-icon svg { stroke: #9cb6d6; }

.timeline-track {
  position: relative; height: 22px;
  margin-top: clamp(40px,5vw,56px);
}
.tl-bg-line {
  position: absolute; left: 12.5%; right: 12.5%; top: 50%;
  height: 2px; transform: translateY(-50%);
  background: #23262e; border-radius: 2px;
}
.tl-pulse {
  position: absolute; left: 12.5%; top: 50%; transform: translateY(-50%);
  height: 2px; width: 0;
  background: linear-gradient(90deg,#9cb6d6,#6abf8a); opacity: .95;
  border-radius: 2px; box-shadow: 0 0 10px rgba(156,182,214,.5);
  transition: width 1.7s cubic-bezier(.3,.7,.3,1) .2s;
  max-width: 75%;
}
.tl-nodes {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(4,1fr); align-items: center;
}
.tl-node {
  justify-self: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: #15171d; border: 2px solid #3a3f4a;
  transition: border-color .45s, background .45s, box-shadow .45s;
}
.tl-node.lit {
  background: #9cb6d6; border-color: #9cb6d6;
  box-shadow: 0 0 0 4px rgba(156,182,214,.12), 0 0 12px rgba(156,182,214,.55);
}

.phases-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 12px; margin-top: 12px;
}
.phase {
  background: #15171d; border: 1px solid #2c2f37;
  border-radius: 11px; overflow: hidden;
  transition: border-color .5s, background .5s;
}
.phase.open { background: #171a22; border-color: rgba(156,182,214,.45); }
.phase-head { padding: clamp(16px,2.2vw,24px); cursor: pointer; }
.phase-month {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .6rem;
  letter-spacing: .14em; text-transform: uppercase; color: #6b6e76;
}
.phase-title {
  font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; color: #9cb6d6;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 4px;
}
.phase-tog {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid #373b45;
  display: flex; align-items: center; justify-content: center;
  flex: none; font-size: .8rem; color: #83858d; line-height: 1;
  transition: border-color .3s, color .3s;
  font-style: normal;
}
.phase.open .phase-tog { border-color: #9cb6d6; color: #9cb6d6; }
.phase-body {
  max-height: 0; overflow: hidden;
  transition: max-height .45s cubic-bezier(.4,0,.2,1);
}
.phase-inner { padding: 0 clamp(16px,2.2vw,24px) clamp(16px,2.2vw,24px); }
.phase-bullet {
  font-size: .83rem; color: #bdbab1; line-height: 1.5;
  border-left: 2px solid rgba(156,182,214,.35);
  padding: 6px 0 6px 12px; margin-bottom: 8px;
}
.phase-deliverable {
  background: #1b1d23; border: 1px solid #2c2f37;
  border-radius: 8px; padding: 12px 14px;
  font-size: .82rem; color: #bdbab1; margin-top: 14px; line-height: 1.5;
}
.phase-deliverable strong {
  display: block; font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .56rem; letter-spacing: .14em;
  text-transform: uppercase; color: #9cb6d6; margin-bottom: 5px;
}
.owned-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 700; color: #e3a564;
  margin-top: 14px;
}
.working-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(24px,4vw,48px); margin-top: 30px; flex-wrap: wrap;
}
.working-note {
  margin: 0; font-size: .92rem;
  line-height: 1.7; color: #83858d; max-width: 58ch; flex: 1 1 380px;
}
.working-note strong { color: #bdbab1; font-weight: 600; }
.working-cta {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  background: #9cb6d6; color: #08121d; font-weight: 700; font-size: .88rem;
  padding: 14px 26px; border-radius: 50px; text-decoration: none; white-space: nowrap;
  transition: transform .3s, box-shadow .3s, background .2s;
}

/* ── CLOSE + CONTACT ────────────────────────────────────────────── */
.contact-section {
  padding: clamp(100px,13vw,164px) 0 clamp(72px,9vw,110px);
  background: #0c0d11;
}
.contact-intro {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto clamp(46px,6vw,74px);
}
.contact-intro .eyebrow { display: inline-flex; margin-bottom: 22px; }
.contact-pre { font-size: 1rem; color: #83858d; line-height: 1.6; margin-bottom: 16px; font-weight: 400; }
.contact-intro h2 {
  font-family: 'Newsreader', serif; font-weight: 500;
  font-size: clamp(2.2rem,5.4vw,4rem);
  letter-spacing: -.022em; line-height: 1.03; color: #f4f1ea;
  max-width: 17ch; margin: 0 auto;
}
.contact-intro h2 em { color: #e3a564; }
.contact-sub {
  font-size: clamp(1.05rem,1.7vw,1.2rem); color: #9a9c9f;
  line-height: 1.6; max-width: 48ch; margin: 24px auto 0; font-weight: 400;
}
.contact-sub .soft { color: #cdd0d6; }

/* Growth review offer */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-aside { display: flex; flex-direction: column; }
.gr-offer-label {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .62rem;
  font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: #6b6e76; margin-bottom: 18px;
}
.contact-aside .gr-steps {
  display: flex; flex-direction: column; gap: 10px;
}
.contact-reassure {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid #23262e;
  font-size: .85rem; color: #83858d; line-height: 1.55;
}
.reassure-dot {
  flex: none; margin-top: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #9cb6d6; animation: ascPulse 2.4s ease-in-out infinite;
}
.contact-form-wrap {
  background: #15171d; border: 1px solid #23262e;
  border-radius: 18px; padding: clamp(24px, 3vw, 36px);
}
.gr-step {
  background: #15171d; border: 1px solid #23262e;
  border-radius: 12px; padding: 18px;
}
.gr-num {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .58rem;
  letter-spacing: .14em; text-transform: uppercase; color: #9cb6d6;
  margin-bottom: 8px;
}
.gr-text { font-size: .88rem; color: #e7e3da; line-height: 1.5; }

.contact-form { max-width: 680px; margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-field label {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .64rem;
  font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: #83858d;
}
.form-field input,
.form-field textarea {
  background: #15171d; border: 1px solid #373b45;
  border-radius: 10px; padding: 12px 16px;
  font-family: inherit; font-size: .95rem; color: #f4f1ea;
  width: 100%;
  transition: border-color .25s;
  outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #4a4d55; }
.form-field input:focus,
.form-field textarea:focus { border-color: #9cb6d6; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-alt { font-size: .82rem; color: #6b6e76; }
.form-alt a { color: #9cb6d6; text-decoration: underline; text-underline-offset: 3px; }

.form-success {
  max-width: 680px; margin: 0 auto;
  text-align: center; padding: 30px 0;
}
.success-icon {
  margin: 0 auto 16px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(156,182,214,.12); border: 1px solid rgba(156,182,214,.3);
  display: flex; align-items: center; justify-content: center;
}
.form-success h3 {
  font-family: 'Newsreader', serif; font-weight: 500;
  font-size: 1.6rem; color: #f4f1ea; margin-bottom: 8px;
}
.form-success p { font-size: .95rem; color: #bdbab1; line-height: 1.6; }

/* ── TRUST STRIP ────────────────────────────────────────────────── */
.trust-strip {
  border-top: 1px solid #1b1d23; border-bottom: 1px solid #1b1d23;
  padding: 18px 0; background: #0a0b0e;
}
.trust-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 clamp(20px,5vw,56px);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.trust-label {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .58rem;
  font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: #6b6e76; flex: none;
}
.trust-text { font-size: .84rem; color: #83858d; line-height: 1.6; max-width: 72ch; }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid #2c2f37;
  padding: 44px 0; background: #0a0b0e;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 clamp(20px,5vw,56px);
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 9px; }
.footer-nav { display: flex; align-items: center; gap: 24px; }
.footer-nav a { font-size: .83rem; color: #83858d; transition: color .2s; }
.footer-nav a:hover { color: #f4f1ea; }
.footer-copy {
  font-size: .78rem; color: #6b6e76;
  width: 100%;
  display: flex; align-items: center; gap: 9px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .case-card { flex-basis: clamp(300px, 86vw, 400px); }
}

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Compact range: keep engine HORIZONTAL with labeled agents */
@media (max-width: 1180px) {
  .engine-canvas { padding: 0 clamp(14px, 2.4vw, 30px); gap: clamp(8px, 1.6vw, 18px); }
  .engine-quad-wrap { width: 252px; height: 252px; }
  .engine-quad { grid-template-columns: repeat(2, 64px); grid-template-rows: repeat(2, 64px); }
  .engine-bloom { width: 300px; height: 280px; }
  .engine-right { gap: 20px; }
  .engine-output { width: clamp(168px, 20vw, 200px); }
}

@media (max-width: 940px) {
  .agent-fn { display: none; }
}

/* Full stack only when even compact can't fit */
@media (max-width: 760px) {
  .engine-canvas {
    grid-template-columns: 1fr; gap: 34px; padding: 0 20px;
    min-height: 0; justify-items: center;
  }
  .engine-inputs { justify-self: center; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .agent-fn { display: block; }
  .engine-right { justify-self: center; flex-direction: column; gap: 22px; }
  .engine-output { width: 100%; max-width: 320px; align-items: stretch; }
  .engine-stream { display: none; }
}

@media (max-width: 860px) {
  .shift-grid { grid-template-columns: 1fr; }
  .stat-band:nth-child(1) { padding-bottom: 20px; }
  .stat-band:nth-child(2) { padding: 20px 0; }
  .stat-band:nth-child(3) { padding-top: 20px; }
  .phases-grid { grid-template-columns: 1fr 1fr; }
  .nav-inner { grid-template-columns: 1fr auto auto; gap: 10px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: clamp(20px, 5vw, 56px);
    right: clamp(20px, 5vw, 56px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: rgba(12,13,17,.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #20242c;
    border-radius: 16px;
    box-shadow: 0 24px 60px -24px rgba(0,0,0,.7);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: .95rem; color: #cfd4dc; }
  .nav-cta { padding: 9px 16px; }
}

@media (max-width: 560px) {
  .phases-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { justify-content: flex-start; }
}

/* ── Font fallback overrides (if Google Fonts fail) ── */
/* If Google Fonts fail to load, these fallbacks preserve the design intent */
    body { font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; }
    .hero-headline,
    .section-intro h2, .shift-left h2,
    .working-section h2, .contact-intro h2,
    .case-card h3, .engine-label,
    .shift-answer-text, .shift-close,
    .res-text, .form-success h3 { font-family: 'Newsreader', Georgia, 'Times New Roman', serif; }
    .eyebrow, .hero-kicker, .hero-tagline,
    .stat-num, .stat-src, .src-study,
    .case-role, .case-sub, .case-count, .case-tag,
    .case-anchor, .output-eyebrow, .output-val, .output-x, .output-arrow, .output-approved span:last-child,
    .engine-word, .engine-note-src,
    .agent-fn, .chip-label, .phase-month, .phase-deliverable strong,
    .owned-badge, .gr-offer-label, .gr-num, .teaser-status,
    .trust-label, .footer-copy, .working-foot,
    .form-field label, .proof-note, .proof-src, .proof-live,
    .ai-feed-title, .ai-feed-meta, .ai-step-time,
    .cards-hint, .cards-arrow, .case-build-label,
    .contact-reassure, .cards-hint { font-family: 'Geist Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', Courier, monospace; }

/* ── No-JS fallbacks: content fully visible without JavaScript ── */
body.no-js .case-detail,
body.no-js .phase-body { max-height: none; }
body.no-js .case-toggle { display: none; }
body.no-js .phase-tog { display: none; }
body.no-js .tl-pulse { width: 96%; }
body.no-js .tl-node { background: #9cb6d6; border-color: #9cb6d6; }
body.no-js #site-nav { background: rgba(12,13,17,.9); border-bottom-color: #1b1d23; }

/* ── Sticky section labels ─────────────────────────────────────── */
.eyebrow-sticky {
  position: sticky;
  top: 84px;                     /* clears the fixed nav */
  z-index: 40;
  width: max-content;
  padding: 9px 18px;
  margin: 0 0 58px -18px;        /* pull left so text still aligns with content; generous gap below */
  background: rgba(12, 13, 17, .72);
  border: 1px solid #22252d;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
/* "How it works" pill lives directly under the full-width section (so it stays
   sticky through the whole engine), but lines up with the container's left edge */
.engine-section > .eyebrow-sticky {
  margin-left: calc(max((100% - 1100px) / 2, 0px) + clamp(20px, 5vw, 56px) - 18px);
}
@media (max-width: 760px) {
  .eyebrow-sticky { top: 70px; padding: 7px 14px; margin-bottom: 38px; margin-left: -14px; }
  .engine-section > .eyebrow-sticky {
    margin-left: calc(max((100% - 1100px) / 2, 0px) + clamp(20px, 5vw, 56px) - 14px);
  }
}

/* ── Work cards: expanding one card must not stretch its siblings ── */
.cards-stack { align-items: flex-start; }
.case-card { height: auto; }

/* ── MIT chip on the Project NANDA stat ── */
.src-logo-mit { height: 15px; width: auto; }

/* ── Footer identity: full horizontal lockup (mark | rule | ASC + name) ── */
.footer-logo { gap: 16px; }
.footer-mark-img { height: 42px; width: auto; display: block; }
.footer-rule { width: 1px; height: 40px; background: #4a4e57; display: block; flex: none; }
.footer-wordmark { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.footer-asc {
  font-family: 'Geist', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: .055em;
  line-height: 1;
  color: #f4f1ea;
}
.footer-fullname {
  font-size: .58rem;
  line-height: 1;
  color: #9aa0a8;
  white-space: nowrap;
}
.footer-logo:hover .footer-asc { color: #9cb6d6; transition: color .2s; }
.footer-social { display: inline-flex; align-items: center; gap: 7px; }
.footer-social svg { display: block; opacity: .8; }
.footer-social:hover svg { opacity: 1; }

/* ── Clickable stat sources: chip + study name link to the source ── */
a.stat-src { color: inherit; text-decoration: none; }
a.stat-src .src-study { transition: color .2s; }
a.stat-src:hover .src-study,
a.stat-src:focus-visible .src-study { color: #f4f1ea; text-decoration: underline; text-underline-offset: 3px; }
a.stat-src:hover .src-chip { box-shadow: 0 0 0 2px rgba(156, 182, 214, .45); transition: box-shadow .2s; }
.footer-nav a { font-size: .9rem; color: #9a9da5; }
.footer-copy { font-size: .82rem; color: #7b7e86; }
