/* ==========================================================================
   MTM — Business Automation & Software Engineering
   Design tokens, base, layout, components
   ========================================================================== */

:root {
  /* Surfaces */
  --ink: #0a0c10;
  --ink-2: #11141a;
  --ink-3: #181c24;
  --ink-4: #222733;
  --paper: #f6f6f2;
  --paper-2: #ecece6;
  --white: #ffffff;

  /* Text */
  --text: #0a0c10;
  --text-2: #3a3f4b;
  --muted: #646a78;
  --text-inv: #f3f4f6;
  --muted-inv: #9aa1b0;

  /* Lines */
  --line: #e2e2db;
  --line-strong: #cfcfc6;
  --line-inv: rgba(255, 255, 255, 0.09);
  --line-inv-strong: rgba(255, 255, 255, 0.16);

  /* Brand */
  --accent: #2f5bff;
  --accent-hover: #1f45e0;
  --accent-soft: rgba(47, 91, 255, 0.1);
  --signal: #34d17f;
  --signal-soft: rgba(52, 209, 127, 0.14);
  --manual: #e8a23a;
  --manual-soft: rgba(232, 162, 58, 0.14);

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --section-y: clamp(80px, 11vw, 144px);

  --shadow-sm: 0 1px 2px rgba(10, 12, 16, 0.06);
  --shadow: 0 1px 2px rgba(10, 12, 16, 0.05), 0 8px 24px -8px rgba(10, 12, 16, 0.12);
  --shadow-lg: 0 2px 4px rgba(10, 12, 16, 0.04), 0 24px 60px -20px rgba(10, 12, 16, 0.3);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--white { background: var(--white); }
.section--paper-2 { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--text-inv); }
.section--dark .muted, .section--dark .lead { color: var(--muted-inv); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.section--dark .eyebrow { color: var(--muted-inv); }
.section--dark .eyebrow::before { background: var(--signal); }

.display {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.0; letter-spacing: -0.045em; font-weight: 600;
}
.h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 600;
  text-wrap: balance;
}
.h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.h4 { font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.accent-text { color: var(--accent); }
.section--dark .accent-text { color: #8ea6ff; }

.section-head { display: grid; gap: 20px; max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head--split {
  max-width: none; grid-template-columns: 1fr; align-items: end;
}
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .section-head--split .lead { justify-self: end; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-size: 15.5px; font-weight: 550; letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px -8px rgba(47, 91, 255, 0.7); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-4); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.section--dark .btn--ghost, .hero .btn--ghost { border-color: var(--line-inv-strong); color: var(--text-inv); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { border-color: #fff; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 550; font-size: 15.5px; color: var(--accent);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.section--dark .link-arrow { color: #a9bbff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
  color: var(--text-inv);
}
.site-header.is-scrolled, .site-header.is-light {
  background: rgba(246, 246, 242, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  color: var(--text);
}
.site-header.is-light:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; letter-spacing: -0.02em; font-size: 18px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name small { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; opacity: 0.6; margin-top: 3px; }

.nav-menu { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { display: none; }

@media (min-width: 1060px) {
  .nav-menu { display: flex; align-items: center; gap: 4px; }
  .nav-actions .btn { display: inline-flex; }
  .nav-toggle { display: none !important; }
}

.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border-radius: 999px; font-size: 15px; font-weight: 500; opacity: 0.86;
  transition: opacity 0.2s, background-color 0.2s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { opacity: 1; background: rgba(127, 127, 127, 0.12); }
.nav-link[aria-current="page"] { opacity: 1; }
.nav-link svg { width: 12px; height: 12px; opacity: 0.6; transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 300px;
  background: var(--white); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: grid; gap: 1px; padding: 10px 12px; border-radius: var(--radius-sm); transition: background-color 0.15s; }
.dropdown a:hover { background: var(--paper); }
.dropdown a strong { font-size: 14.5px; font-weight: 600; }
.dropdown a span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.dropdown--grid { display: grid; grid-template-columns: 1fr 1fr; min-width: 460px; }

.nav-toggle {
  width: 44px; height: 44px; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid currentColor; border-color: rgba(127, 127, 127, 0.35);
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.25s var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 72px 0 0 0; z-index: 99; background: var(--paper); color: var(--text);
  padding: 16px var(--gutter) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.nav-open .site-header { background: var(--paper); color: var(--text); border-bottom-color: var(--line); }
.mobile-menu details { border-bottom: 1px solid var(--line); }
.mobile-menu summary, .mobile-menu > a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; cursor: pointer; list-style: none;
}
.mobile-menu > a { border-bottom: 1px solid var(--line); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "+"; font-weight: 400; font-size: 24px; color: var(--muted); }
.mobile-menu details[open] summary::after { content: "–"; }
.mobile-menu details ul { padding: 0 0 16px; display: grid; gap: 2px; }
.mobile-menu details a { display: block; padding: 8px 0; color: var(--text-2); }
.mobile-menu .btn { width: 100%; margin-top: 28px; }
@media (min-width: 1060px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--text-inv); overflow: hidden;
  padding: calc(72px + clamp(56px, 8vw, 104px)) 0 clamp(64px, 8vw, 104px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-inv) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-inv) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 10%, transparent 75%);
  opacity: 0.55;
}
.hero::after {
  content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; pointer-events: none;
  background: radial-gradient(circle, rgba(47, 91, 255, 0.28), transparent 62%);
  filter: blur(10px);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 64px; } }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero .display span { color: var(--muted-inv); }
.hero .lead { color: #c3c8d2; font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pills li {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; color: #cfd4dd;
  border: 1px solid var(--line-inv-strong); border-radius: 999px; padding: 6px 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-pills li i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); display: inline-block; }
.hero-pills li:nth-child(1) i { background: #8ea6ff; }
.hero-pills li:nth-child(3) i { background: var(--manual); }
.hero-note {
  display: flex; gap: 12px; align-items: flex-start; max-width: 52ch;
  font-size: 15px; color: var(--muted-inv); padding-top: 8px;
}
.hero-note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--signal); }

/* Hero visual: live workflow console */
.console {
  position: relative; background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line-inv-strong); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.console-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-inv);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-inv);
}
.console-bar .dots { display: flex; gap: 6px; }
.console-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-4); display: block; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px;
  background: var(--signal-soft); color: var(--signal); font-size: 11.5px; font-family: var(--font-mono);
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.console-body { padding: 18px; display: grid; gap: 6px; }
.console-trigger {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px;
  background: rgba(47, 91, 255, 0.12); border: 1px solid rgba(47, 91, 255, 0.35); margin-bottom: 6px;
}
.console-trigger .ic { background: rgba(47, 91, 255, 0.25); color: #b8c6ff; }
.console-trigger strong { font-size: 14px; display: block; }
.console-trigger span { font-family: var(--font-mono); font-size: 12px; color: var(--muted-inv); }

.ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--ink-4); color: #cfd4dd; }
.ic svg { width: 16px; height: 16px; }

.wf-step {
  position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: 12px; border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), opacity 0.35s;
  opacity: 0.42;
}
.wf-step::before {
  content: ""; position: absolute; left: 29px; top: -6px; height: 8px; width: 1px; background: var(--line-inv-strong);
}
.wf-step:first-of-type::before { display: none; }
.wf-step strong { font-size: 14px; font-weight: 550; display: block; }
.wf-step small { font-size: 12px; color: var(--muted-inv); font-family: var(--font-mono); }
.wf-step .state { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-inv); }
.wf-step.is-active { opacity: 1; background: rgba(255, 255, 255, 0.04); border-color: var(--line-inv-strong); }
.wf-step.is-active .state { color: #b8c6ff; }
.wf-step.is-done { opacity: 1; }
.wf-step.is-done .ic { background: var(--signal-soft); color: var(--signal); }
.wf-step.is-done .state { color: var(--signal); }

.console-foot {
  display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-inv);
}
.console-foot div { padding: 14px 18px; border-right: 1px solid var(--line-inv); }
.console-foot div:last-child { border-right: 0; }
.console-foot dt { font-family: var(--font-mono); font-size: 11px; color: var(--muted-inv); letter-spacing: 0.04em; text-transform: uppercase; }
.console-foot dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.console-foot dd em { font-style: normal; color: var(--signal); }

.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; background: var(--white); color: var(--text);
  box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 550; white-space: nowrap;
}
.float-card small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 400; }
.float-card .ic { width: 28px; height: 28px; background: var(--signal-soft); color: #149153; }
.hero-visual { position: relative; }
.hero-visual .float-card--a { left: -28px; bottom: 76px; animation: floaty 6s ease-in-out infinite; }
.hero-visual .float-card--b { right: -18px; top: -22px; animation: floaty 7s ease-in-out infinite reverse; }
.hero-visual .float-card--b .ic { background: var(--accent-soft); color: var(--accent); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 640px) {
  .float-card { display: none; }
  .console-foot div { padding: 12px; }
  .console-foot dd { font-size: 13.5px; }
}

/* ---------- Proof strip ---------- */
.proof { background: var(--ink); color: var(--text-inv); border-top: 1px solid var(--line-inv); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .proof-grid { grid-template-columns: repeat(4, 1fr); } }
.proof-item { padding: 32px 24px 36px; border-right: 1px solid var(--line-inv); border-bottom: 1px solid var(--line-inv); }
.proof-item:nth-child(2n) { border-right: 0; }
@media (min-width: 900px) {
  .proof-item { border-bottom: 0; padding: 40px 28px 44px; }
  .proof-item:nth-child(2n) { border-right: 1px solid var(--line-inv); }
  .proof-item:first-child { padding-left: 0; }
  .proof-item:last-child { border-right: 0; }
}
@media (max-width: 899px) {
  .proof-item:nth-child(odd) { padding-left: 0; }
  .proof-item:nth-child(n+3) { border-bottom: 0; }
}
.proof-num { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.proof-num .arrow { color: var(--muted-inv); font-weight: 400; margin: 0 0.12em; }
.proof-label { margin-top: 12px; font-size: 14.5px; color: var(--muted-inv); line-height: 1.45; max-width: 26ch; }
.proof-label b { color: var(--text-inv); font-weight: 550; }

/* ---------- Problem cards ---------- */
.problem-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }
.problem-card {
  position: relative; display: grid; gap: 14px; align-content: start;
  padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.problem-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.problem-card .q { font-size: 1.3rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.problem-card p { color: var(--muted); font-size: 16px; }
.problem-card .tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.problem-card .tag b { color: var(--accent); font-weight: 500; }
.problem-card--cta { background: var(--ink); color: var(--text-inv); border-color: var(--ink); }
.problem-card--cta p { color: var(--muted-inv); }
.problem-card--cta .tag { color: var(--muted-inv); }
.problem-card--cta .tag b { color: var(--signal); }
.problem-card--cta .link-arrow { color: #fff; margin-top: 6px; }

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 16px; }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px;
  padding: clamp(28px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line);
}
.pillar-top { display: flex; justify-content: space-between; align-items: center; }
.pillar-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; font-weight: 600; }
.pillar-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.pillar-glyph { width: 100%; height: 132px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.pillar h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; }
.pillar p { color: var(--text-2); font-size: 16px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-list li {
  font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--text-2);
}
.section--dark .chip-list li { background: transparent; border-color: var(--line-inv-strong); color: #cfd4dd; }
.pillar .btn { justify-self: start; margin-top: 4px; }
.pillar--build .pillar-label { color: var(--accent); }
.pillar--automate .pillar-label { color: #129a57; }
.pillar--scale .pillar-label { color: #b9720c; }

/* ---------- Before / After workflow ---------- */
.flow-toggle {
  display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ink-3); border: 1px solid var(--line-inv);
  margin-bottom: 28px;
}
.flow-toggle button {
  height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 550; color: var(--muted-inv);
  transition: background-color 0.2s, color 0.2s;
}
.flow-toggle button[aria-selected="true"] { background: var(--white); color: var(--ink); }
@media (min-width: 960px) { .flow-toggle { display: none; } }

.flow-compare { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .flow-compare { grid-template-columns: 1fr 1fr; gap: 24px; }
  .flow-panel[hidden] { display: grid !important; }
}
.flow-panel {
  display: grid; gap: 0; align-content: start;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); border: 1px solid var(--line-inv); background: var(--ink-2);
}
.flow-panel--after { border-color: rgba(52, 209, 127, 0.3); background: linear-gradient(180deg, rgba(52, 209, 127, 0.06), var(--ink-2) 50%); }
.flow-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.flow-panel-head h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.flow-panel-head .count { white-space: nowrap; font-family: var(--font-mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.flow-panel--before .count { background: var(--manual-soft); color: var(--manual); }
.flow-panel--after .count { background: var(--signal-soft); color: var(--signal); }

.flow-list { display: grid; gap: 0; counter-reset: flow; }
.flow-list li {
  position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center;
  padding: 10px 0;
}
.flow-list li:not(:last-child)::after {
  content: ""; position: absolute; left: 16.5px; top: calc(50% + 17px); height: calc(100% - 34px); width: 1px; background: var(--line-inv-strong);
}
.flow-list .node {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line-inv-strong); background: var(--ink-3); color: #cfd4dd;
}
.flow-list .node svg { width: 16px; height: 16px; }
.flow-list .txt { font-size: 15.5px; }
.flow-list .who { font-family: var(--font-mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.flow-panel--before .who { color: var(--manual); background: var(--manual-soft); }
.flow-panel--before .who.sys { color: var(--muted-inv); background: rgba(255,255,255,0.05); }
.flow-panel--after .who { color: var(--signal); background: var(--signal-soft); }
.flow-panel--after .who.sys { color: var(--muted-inv); background: rgba(255,255,255,0.05); }
.flow-panel--after .node { border-color: rgba(52, 209, 127, 0.35); }
.flow-panel--after li.is-start .node { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.flow-panel--after li.is-start .txt { font-weight: 600; }

.flow-panel--after li { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.js .flow-panel--after:not(.is-played) li { opacity: 0.25; transform: translateX(-4px); }
.flow-panel--after li.lit .node { box-shadow: 0 0 0 4px rgba(52, 209, 127, 0.15); }

.flow-result {
  margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding-top: clamp(28px, 3vw, 36px); border-top: 1px solid var(--line-inv);
}
.flow-result p { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.flow-result p span { color: var(--muted-inv); }

/* ---------- AI ---------- */
.ai-layout { display: grid; gap: 48px; }
@media (min-width: 1000px) { .ai-layout { grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; } .ai-sticky { position: sticky; top: 110px; } }
.ai-sticky { display: grid; gap: 22px; align-content: start; }
.ai-principle {
  margin-top: 12px; padding: 22px 24px; border-radius: var(--radius); border-left: 3px solid var(--accent);
  background: var(--white); font-size: 1.1rem; font-weight: 550; line-height: 1.45; letter-spacing: -0.01em; box-shadow: var(--shadow-sm);
}
.ai-diagram { margin-top: 8px; }
.ai-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
.ai-card {
  display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.ai-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ai-card .ic { background: var(--accent-soft); color: var(--accent); }
.ai-card h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }
.ai-card p { font-size: 15px; color: var(--muted); }
.ai-card .loop { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); }
.ai-card .loop i { font-style: normal; color: var(--muted); }

/* ---------- Industries (tabs) ---------- */
.tabs { display: grid; gap: 28px; }
.tablist {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
  margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
  scroll-snap-type: x proximity;
}
.tablist::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .tablist { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; } }
.tab {
  flex: none; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 15px; font-weight: 550; color: var(--text-2); background: var(--white); scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s var(--ease);
}
.tab:hover { border-color: var(--text); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab svg { width: 16px; height: 16px; }

.tabpanel {
  display: grid; gap: 32px; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
}
.tabpanel[hidden] { display: none; }
@media (min-width: 960px) { .tabpanel { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.tabpanel .copy { display: grid; gap: 18px; align-content: start; justify-items: start; }
.tabpanel .copy .h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.03em; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--text-2); }
.check-list li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232f5bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check-list--cols { grid-template-columns: 1fr; }
@media (min-width: 560px) { .check-list--cols { grid-template-columns: 1fr 1fr; gap: 10px 20px; } }

.mini-flow {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px;
}
.mini-flow-title { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; display: flex; justify-content: space-between; }
.mini-flow-title b { color: #129a57; font-weight: 500; }
.mini-flow ol { display: grid; gap: 8px; }
.mini-flow li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; position: relative;
}
.mini-flow li:not(:last-child)::after { content: ""; position: absolute; left: 29px; bottom: -9px; height: 8px; width: 1px; background: var(--line-strong); }
.mini-flow li .ic { width: 28px; height: 28px; background: var(--paper-2); color: var(--text-2); }
.mini-flow li .ic svg { width: 14px; height: 14px; }
.mini-flow li em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.mini-flow li.ai .ic { background: var(--accent-soft); color: var(--accent); }
.mini-flow li.ok .ic { background: var(--signal-soft); color: #129a57; }

/* ---------- Case studies ---------- */
.case-feature {
  display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-inv-strong); background: var(--ink-2);
}
@media (min-width: 960px) { .case-feature { grid-template-columns: 1.15fr 0.85fr; } }
.case-feature .body { padding: clamp(28px, 4vw, 48px); display: grid; gap: 20px; align-content: start; }
.case-feature .metric-side {
  padding: clamp(28px, 4vw, 48px); background: var(--ink-3); border-top: 1px solid var(--line-inv);
  display: grid; align-content: space-between; gap: 32px;
}
@media (min-width: 960px) { .case-feature .metric-side { border-top: 0; border-left: 1px solid var(--line-inv); } }
.case-client { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-inv); }
.case-title { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.case-text { color: var(--muted-inv); font-size: 16px; max-width: 54ch; }
.big-metric { font-size: clamp(3.2rem, 7vw, 5.6rem); line-height: 0.95; letter-spacing: -0.05em; font-weight: 600; }
.big-metric small { font-size: 0.4em; letter-spacing: -0.02em; color: var(--muted-inv); font-weight: 500; }
.metric-caption { color: var(--muted-inv); font-size: 15px; margin-top: 10px; }

.case-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }
.case-card {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--line-inv-strong); background: var(--ink-2); transition: border-color 0.25s, transform 0.3s var(--ease);
}
.case-card:hover { border-color: rgba(255, 255, 255, 0.32); transform: translateY(-3px); }
.case-card .h3 { font-size: 1.3rem; text-wrap: balance; }
.case-card .metric { font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; padding-top: 20px; border-top: 1px solid var(--line-inv); }
.case-card .metric small { display: block; font-size: 14px; letter-spacing: 0; font-weight: 400; color: var(--muted-inv); margin-top: 8px; line-height: 1.4; }
.case-card p { color: var(--muted-inv); font-size: 15px; }

.case-automation {
  margin-top: 16px; display: grid; gap: 24px; align-items: center; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg);
  border: 1px solid rgba(52, 209, 127, 0.28); background: linear-gradient(110deg, rgba(52, 209, 127, 0.08), transparent 60%);
}
@media (min-width: 960px) { .case-automation { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.pipe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12.5px; }
.pipe span { padding: 8px 12px; border-radius: 8px; background: var(--ink-3); border: 1px solid var(--line-inv-strong); color: #dfe3ea; }
.pipe span.ok { border-color: rgba(52, 209, 127, 0.45); color: var(--signal); }
.pipe i { color: var(--muted-inv); font-style: normal; }

/* ---------- Trust ---------- */
.trust { display: grid; gap: 40px; }
@media (min-width: 1000px) { .trust { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.trust-statements { display: grid; gap: 0; }
.trust-statements li {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 550; letter-spacing: -0.02em; line-height: 1.35;
}
.trust-statements li:first-child { border-top: 1px solid var(--line); }
.trust-statements .x { font-family: var(--font-mono); font-size: 12px; color: #c2410c; background: rgba(194, 65, 12, 0.08); padding: 3px 8px; border-radius: 6px; letter-spacing: 0.04em; }
.trust-statements .ok { color: #11804a; background: var(--signal-soft); }
.trust-statements li.final { color: var(--text); }
.trust-statements li span.dim { color: var(--muted); }

/* ---------- Process ---------- */
.process { display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 700px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
}
.step-num { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); font-weight: 500; letter-spacing: 0.06em; }
.step h3 { font-size: 1.15rem; letter-spacing: -0.015em; font-weight: 600; }
.step p, .step li { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.step ul { display: grid; gap: 4px; }
.step ul li::before { content: "— "; color: var(--line-strong); }
.step--highlight { background: var(--ink); border-color: var(--ink); color: var(--text-inv); }
.step--highlight p, .step--highlight li { color: var(--muted-inv); }
.step--highlight .step-num { color: var(--signal); }
.step .badge { justify-self: start; font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--signal-soft); color: #11804a; }
.step--highlight .badge { color: var(--signal); }

/* ---------- CTA + form ---------- */
.cta { position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; width: 900px; height: 900px; left: -300px; bottom: -560px; pointer-events: none;
  background: radial-gradient(circle, rgba(47, 91, 255, 0.25), transparent 60%);
}
.cta-grid { position: relative; display: grid; gap: 48px; }
@media (min-width: 1000px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.cta-copy { display: grid; gap: 22px; align-content: start; }
.cta-copy .lead + .lead { margin-top: -6px; }
.cta-assurances { display: grid; gap: 12px; margin-top: 8px; }
.cta-assurances li { display: flex; gap: 12px; align-items: center; color: #cfd4dd; font-size: 15.5px; }
.cta-assurances svg { width: 18px; height: 18px; color: var(--signal); flex: none; }

.form-card {
  background: var(--white); color: var(--text); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); display: grid; gap: 20px;
}
.form-card h3 { font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 600; }
.form-card .sub { color: var(--muted); font-size: 15px; margin-top: -10px; }
.field { display: grid; gap: 8px; }
.field legend { padding: 0; margin-bottom: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 550; color: var(--text-2); }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper);
  padding: 12px 14px; font-size: 16px; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px var(--accent-soft); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chips label { position: relative; cursor: pointer; }
.choice-chips input { position: absolute; opacity: 0; inset: 0; }
.choice-chips span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 500; color: var(--text-2); background: var(--white); transition: all 0.15s;
}
.choice-chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-card .btn { width: 100%; height: 54px; }
.form-foot { font-size: 13px; color: var(--muted); text-align: center; }
.form-status { font-size: 14.5px; padding: 12px 14px; border-radius: 10px; display: none; }
.form-status.is-ok { display: block; background: var(--signal-soft); color: #0f6b3d; }
.form-status.is-err { display: block; background: rgba(194, 65, 12, 0.08); color: #9a3412; }

/* Direct email link (contact page, homepage CTA) */
.contact-direct {
  display: inline-flex; align-items: center; gap: 14px; justify-self: start; margin-top: 8px;
  padding: 14px 20px 14px 14px; border-radius: var(--radius); border: 1px solid var(--line-inv-strong);
  color: var(--text-inv); font-size: 16.5px; font-weight: 550; letter-spacing: -0.01em;
  transition: border-color 0.2s, background-color 0.2s;
}
.contact-direct:hover { border-color: #fff; background: rgba(255, 255, 255, 0.04); }
.contact-direct .ic { background: var(--signal-soft); color: var(--signal); }
.contact-direct small { display: block; font-size: 13px; font-weight: 400; color: var(--muted-inv); letter-spacing: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-inv); padding: clamp(64px, 8vw, 96px) 0 32px; border-top: 1px solid var(--line-inv); }
.footer-brand {
  display: grid; gap: 14px; padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line-inv);
}
.footer-brand .wordmark { font-size: clamp(4rem, 14vw, 10rem); font-weight: 650; letter-spacing: -0.06em; line-height: 0.85; }
.footer-brand .positioning { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-inv); }
.footer-brand .tagline { font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: -0.025em; font-weight: 550; margin-top: 8px; }
.footer-brand .tagline span { color: var(--muted-inv); }
.footer-cols { display: grid; gap: 36px; padding: 48px 0; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-cols { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-cols h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-inv); font-weight: 500; margin-bottom: 16px; }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { color: #cfd4dd; font-size: 15px; transition: color 0.15s; }
.footer-cols a:hover { color: #fff; }
.footer-cta { grid-column: 1 / -1; display: grid; gap: 16px; align-content: start; justify-items: start; }
@media (min-width: 900px) { .footer-cta { grid-column: auto; } }
.footer-cta p { color: var(--muted-inv); font-size: 15px; max-width: 34ch; }
.footer-email { color: #cfd4dd; font-size: 15px; border-bottom: 1px solid var(--line-inv-strong); padding-bottom: 2px; transition: color 0.15s, border-color 0.15s; }
.footer-email:hover { color: #fff; border-color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-inv); font-size: 13.5px; color: var(--muted-inv); }

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative; background: var(--ink); color: var(--text-inv); overflow: hidden;
  padding: calc(72px + clamp(56px, 8vw, 96px)) 0 clamp(56px, 7vw, 88px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-inv) 1px, transparent 1px), linear-gradient(90deg, var(--line-inv) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 0%, #000 10%, transparent 70%);
  opacity: 0.5;
}
.page-hero .container { position: relative; display: grid; gap: 22px; }
.page-hero .display { font-size: clamp(2.4rem, 5.4vw, 4.4rem); max-width: 18ch; }
.page-hero .lead { color: #c3c8d2; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.anchor-nav a {
  font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-inv-strong); color: #cfd4dd; transition: all 0.15s;
}
.anchor-nav a:hover { border-color: #fff; color: #fff; }

.service-block { display: grid; gap: 32px; padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.service-block:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 1000px) { .service-block { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.service-block .intro { display: grid; gap: 18px; align-content: start; }
@media (min-width: 1000px) { .service-block .intro { position: sticky; top: 110px; align-self: start; } }
.service-block .intro .tagline { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.service-block .closing {
  padding: 20px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); font-weight: 550; letter-spacing: -0.01em;
}
.service-detail { display: grid; gap: 20px; align-content: start; }
.service-panel { padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); display: grid; gap: 16px; }
.service-panel h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.outcome-list { display: grid; gap: 0; }
.outcome-list li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.outcome-list li:last-child { border-bottom: 0; }
.outcome-list .from { color: var(--muted); }
.outcome-list .to { font-weight: 550; }
.outcome-list svg { width: 16px; height: 16px; color: var(--accent); }

.industry-block { display: grid; gap: 32px; padding: clamp(56px, 7vw, 80px) 0; border-top: 1px solid var(--line); }
.industry-block:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 1000px) { .industry-block { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }
.industry-block .copy { display: grid; gap: 18px; justify-items: start; }

.case-full { display: grid; gap: 32px; padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.case-full:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 1000px) { .case-full { grid-template-columns: 1fr 1fr; gap: 72px; } }
.case-full .head { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1000px) { .case-full .head { position: sticky; top: 110px; align-self: start; } }
.case-full .client { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.case-full .h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.case-full .body { display: grid; gap: 16px; }
.case-section { padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); display: grid; gap: 14px; }
.case-section h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.case-section p { color: var(--text-2); }
.result-grid { display: grid; gap: 12px; }
@media (min-width: 560px) { .result-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.result {
  padding: 22px; border-radius: var(--radius); background: var(--ink); color: var(--text-inv); display: grid; gap: 8px; align-content: start;
}
.result b { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.result span { font-size: 14px; color: var(--muted-inv); line-height: 1.4; }

.prose { display: grid; gap: 18px; max-width: 68ch; }
.prose p { color: var(--text-2); font-size: 17.5px; }
.principles { display: grid; gap: 12px; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principle { padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.principle .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.principle h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
.principle p { color: var(--muted); font-size: 15.5px; }

.path { display: grid; gap: 8px; }
@media (min-width: 900px) { .path { grid-template-columns: repeat(7, 1fr); gap: 0; } }
.path li {
  position: relative; padding: 18px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14.5px; font-weight: 550; display: grid; gap: 6px;
}
.path li small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 400; }
@media (min-width: 900px) {
  .path li { border-radius: 0; border-right: 0; }
  .path li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .path li:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-right: 1px solid var(--line); background: var(--ink); color: #fff; border-color: var(--ink); }
  .path li:last-child small { color: var(--muted-inv); }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.12s; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.18s; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.24s; }
.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
.js .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.36s; }
.js .reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.42s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}
