/* Kos Digital Consulting — Design Tokens */

:root {
  --bg: oklch(98.5% 0.004 90);
  --bg-2: oklch(96.5% 0.005 90);
  --bg-sunken: oklch(94.5% 0.006 90);
  --ink: oklch(15% 0.01 90);
  --ink-2: oklch(32% 0.01 90);
  --ink-3: oklch(52% 0.008 90);
  --ink-4: oklch(72% 0.006 90);
  --line: oklch(88% 0.008 90);
  --line-2: oklch(92% 0.006 90);

  --accent-h: 35;
  --accent: oklch(63% 0.17 var(--accent-h));
  --accent-ink: oklch(30% 0.13 var(--accent-h));
  --accent-tint: oklch(95% 0.04 var(--accent-h));
  --accent-contrast: oklch(98% 0.005 90);

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --fs-mono: 12px;
  --fs-body: 16px;
  --fs-lg: 19px;
  --fs-h4: 22px;
  --fs-h3: 28px;
  --fs-h2: 44px;
  --fs-h1: 72px;
  --fs-display: clamp(56px, 9vw, 148px);

  --gutter: 24px;
  --section-y: 120px;
  --radius: 2px;
  --radius-lg: 4px;

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

[data-theme="dark"] {
  --bg: oklch(13% 0.005 90);
  --bg-2: oklch(17% 0.006 90);
  --bg-sunken: oklch(10% 0.005 90);
  --ink: oklch(97% 0.005 90);
  --ink-2: oklch(82% 0.008 90);
  --ink-3: oklch(62% 0.008 90);
  --ink-4: oklch(42% 0.008 90);
  --line: oklch(24% 0.01 90);
  --line-2: oklch(20% 0.008 90);
  --accent: oklch(72% 0.17 var(--accent-h));
  --accent-ink: oklch(82% 0.15 var(--accent-h));
  --accent-tint: oklch(22% 0.06 var(--accent-h));
  --accent-contrast: oklch(13% 0.005 90);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.mono-bracket::before { content: "["; margin-right: 4px; color: var(--ink-4); }
.mono-bracket::after { content: "]"; margin-left: 4px; color: var(--ink-4); }

.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gutter);
  margin-bottom: 72px;
  align-items: start;
}

.section-num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.section-lead {
  font-size: var(--fs-lg);
  color: var(--ink-2);
  max-width: 58ch;
  margin: 24px 0 0;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  border-radius: 0;
  transition: all 180ms var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn .arrow { transition: transform 180ms var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 32px;
  transition: all 220ms var(--ease);
  position: relative;
}
.card:hover { border-color: var(--ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

::selection { background: var(--ink); color: var(--bg); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-word {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-word { display: inline-block; opacity: 0; animation: hero-word 900ms var(--ease-out) forwards; }
.hero-fade { opacity: 0; animation: hero-fade 600ms var(--ease-out) forwards; }

/* ─────────────────────────────────────────────────────────────────────────── */
/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), backdrop-filter 200ms var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom-color: var(--line);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.02em;
  text-transform: uppercase; font-weight: 500; color: var(--ink);
}
.wordmark svg { flex-shrink: 0; }
.wordmark .brand-1 { font-weight: 600; }
.wordmark .brand-2 { color: var(--ink-3); margin-left: 6px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a.nav-link {
  padding: 8px 14px; font-size: 14px; color: var(--ink-2);
  position: relative; transition: color 160ms;
}
.site-nav a.nav-link:hover { color: var(--ink); }
.site-nav a.nav-link.is-current { color: var(--ink); font-weight: 500; }
.site-nav a.nav-link.is-current::after {
  content: ""; position: absolute; bottom: -2px; left: 14px; right: 14px;
  height: 2px; background: var(--accent);
}
.site-nav .btn { margin-left: 16px; padding: 10px 18px; font-size: 12px; }

/* Hero */
.hero { position: relative; padding: 80px 0 120px; border-bottom: 1px solid var(--line); }
.hero-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 48px; border-bottom: 1px solid var(--line); margin-bottom: 64px;
}
.hero-meta .group { display: flex; gap: 32px; }
.hero-meta .dot-active { color: var(--accent); }
.hero-lead { align-items: end; }
.hero-headline {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.hero-headline .accent {
  font-style: italic; font-weight: 400; color: var(--accent);
}
.hero-kicker { margin-bottom: 32px; }
.hero-copy {
  font-size: 18px; color: var(--ink-2); line-height: 1.55;
  margin: 0 0 32px; text-wrap: pretty; max-width: 380px;
  animation-delay: 600ms;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; animation-delay: 800ms; }

.hero-visuals { margin-top: 96px; align-items: stretch; }
.hero-diagram-box {
  grid-column: span 7;
  border: 1px solid var(--line);
  background: var(--bg-2);
  aspect-ratio: 1 / 1;
  position: relative;
}
.hero-stats {
  grid-column: span 5;
  display: grid; grid-template-rows: 1fr 1fr; gap: 24px;
}
.stat-block {
  border: 1px solid var(--line); padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg);
}
.stat-big {
  font-family: var(--font-display); font-size: 96px; font-weight: 500;
  letter-spacing: -0.04em; line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 15px; color: var(--ink); font-weight: 500; margin-bottom: 4px; }

/* Trust bar */
.trust { padding: 48px 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.trust-cell {
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  transition: all 200ms;
}
.trust-cell:hover { color: var(--ink); background: var(--bg); }

/* Problem / Value lists */
.pv-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pv-list.pv-gains { border-top-color: var(--ink); }
.pv-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 16px;
  font-size: 17px;
}
.pv-list.pv-pains li { color: var(--ink-2); }
.pv-list.pv-pains .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-4); width: 28px; flex-shrink: 0; margin-top: 4px;
  text-decoration: line-through;
}
.pv-list.pv-pains .text {
  text-decoration: line-through;
  text-decoration-color: var(--line);
}
.pv-list.pv-gains li { color: var(--ink); font-weight: 500; }
.pv-list.pv-gains .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); width: 28px; flex-shrink: 0; margin-top: 4px;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-right: none; border-bottom: none;
}
.service-card {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  transition: background 220ms var(--ease);
  position: relative;
  display: flex; flex-direction: column; min-height: 320px;
  color: var(--ink);
}
.service-card:hover { background: var(--bg); }
.service-card .hl {
  position: absolute; top: 16px; right: 16px;
  background: var(--accent); color: var(--accent-contrast);
  padding: 4px 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.service-card .head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 48px;
}
.service-card .body { margin-top: auto; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500; letter-spacing: -0.015em;
  margin: 0 0 4px; line-height: 1.1;
}
.service-card.is-wide { grid-column: span 3; }
.service-card.is-wide h3 { font-size: 36px; }
.service-card .sub { margin-bottom: 16px; color: var(--accent); }
.service-card p {
  font-size: 14px; color: var(--ink-2); margin: 0 0 20px;
  line-height: 1.6;
}
.service-card.is-wide p { max-width: 560px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  font-family: var(--font-mono); font-size: 10px;
  padding: 3px 8px; border: 1px solid var(--line);
  color: var(--ink-3); letter-spacing: 0.06em;
}
.service-card .cta-row {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
  transition: transform 200ms var(--ease);
}
.service-card:hover .cta-row { transform: translateX(4px); }

/* Process */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); position: relative;
}
.process-step {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  transition: background 240ms var(--ease);
  position: relative;
}
.process-step:last-child { border-right: none; }
.process-step.is-active { background: var(--bg-2); }
.process-step.is-active::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  animation: slide-in 400ms var(--ease-out);
}
.process-step .step-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.08em; margin-bottom: 24px;
}
.process-step.is-active .step-num { color: var(--accent); }
.process-step h4 {
  font-family: var(--font-display); font-size: 28px;
  letter-spacing: -0.015em; margin: 0 0 12px; font-weight: 500;
}
.process-step p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6; }

.process-footer {
  margin-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
}
.process-dots { display: flex; gap: 8px; }
.process-dot {
  width: 24px; height: 4px; border: none; padding: 0;
  background: var(--line); cursor: pointer;
  transition: background 200ms;
}
.process-dot.is-active { background: var(--accent); }

/* Industries table */
.industries-table { border: 1px solid var(--line); background: var(--bg); }
.industries-header, .industries-row {
  display: grid;
  grid-template-columns: 60px 2fr 1fr 3fr 120px;
}
.industries-header {
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase;
}
.industries-row {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  align-items: center;
  transition: background 160ms;
  color: var(--ink);
}
.industries-row:last-child { border-bottom: none; }
.industries-row:hover { background: var(--bg-2); }
.industries-row .num { color: var(--ink-3); }
.industries-row.is-featured .num { color: var(--accent); }
.industries-row .sector {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 500; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 12px;
}
.badge-featured {
  font-family: var(--font-mono); font-size: 10px;
  background: var(--accent); color: var(--accent-contrast);
  padding: 2px 8px; letter-spacing: 0.08em;
}
.industries-row .size { color: var(--ink-2); }
.industries-row .need { font-size: 14px; color: var(--ink-2); }
.industries-row .action {
  text-align: right; font-family: var(--font-mono); font-size: 12px;
  color: var(--ink);
  transition: transform 200ms var(--ease);
}
.industries-row.is-disabled .action { color: var(--ink-4); }
.industries-row:hover:not(.is-disabled) .action { transform: translateX(4px); }

/* Case teaser */
.case-wrap { align-items: stretch; }
.case-visual-box {
  grid-column: span 7;
  border: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  min-height: 480px;
  overflow: hidden;
}
.case-text {
  grid-column: span 5;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px 0;
}
.case-quote {
  font-family: var(--font-display); font-size: 28px;
  font-weight: 400; letter-spacing: -0.01em;
  line-height: 1.25; margin: 0; color: var(--ink);
  text-wrap: balance;
}
.case-author { margin-top: 24px; font-size: 14px; }
.case-author .name { color: var(--ink); font-weight: 500; }
.case-metrics {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
  margin-top: 40px; padding-top: 32px; gap: 24px;
}
.metric-big {
  font-family: var(--font-display); font-size: 48px; font-weight: 500;
  letter-spacing: -0.03em; line-height: 1; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.metric-label { margin-top: 8px; }

/* Why us */
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--line);
  border-right: none; border-bottom: none;
}
.why-cell {
  padding: 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-cell h3 {
  font-family: var(--font-display); font-size: 52px; font-weight: 500;
  letter-spacing: -0.025em; line-height: 1; margin: 0 0 8px;
}
.why-cell .sub { color: var(--accent); margin-bottom: 24px; }
.why-cell p {
  font-size: 15px; color: var(--ink-2); line-height: 1.6;
  margin: 0; max-width: 480px;
}

/* Insights */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight-card {
  padding: 32px;
  background: transparent;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 320px; justify-content: space-between;
  transition: all 220ms var(--ease);
  color: var(--ink);
}
.insight-card:hover { background: var(--bg); }
.insight-card:hover h3 { color: var(--accent); }
.insight-head {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; margin-bottom: 32px;
}
.insight-head .tag { color: var(--accent); border: none; padding: 0; font-size: 11px; letter-spacing: 0.08em; }
.insight-head .date { color: var(--ink-3); }
.insight-thumb {
  width: 100%; aspect-ratio: 16/10;
  background: repeating-linear-gradient(45deg, var(--line-2) 0 6px, transparent 6px 12px);
  margin-bottom: 32px;
  transition: background 300ms;
}
.insight-card:hover .insight-thumb {
  background: repeating-linear-gradient(135deg, var(--line-2) 0 6px, transparent 6px 12px);
}
.insight-card h3 {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 500; letter-spacing: -0.01em;
  margin: 0; line-height: 1.2; color: var(--ink);
  transition: color 200ms;
}
.insight-read {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); margin-top: 24px;
}

.section-head.insights-split > div:nth-child(2) {
  display: flex; justify-content: space-between; align-items: end; gap: 32px;
}

/* Big CTA */
.big-cta {
  padding: 160px 0;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.big-cta .inner { position: relative; z-index: 2; }
.big-cta .kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 32px;
}
.big-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 108px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--bg);
  text-wrap: balance;
}
.big-cta h2 .em { font-style: italic; color: var(--accent); }
.big-cta .ctas { display: flex; gap: 12px; margin-top: 48px; flex-wrap: wrap; }
.big-cta .ctas .btn-accent {
  background: var(--accent); border-color: var(--accent);
  color: var(--accent-contrast);
}
.big-cta .ctas .btn-dark-ghost {
  background: transparent; color: var(--bg); border-color: var(--ink-3);
}
.big-cta .ctas .btn-dark-ghost:hover { background: var(--bg); color: var(--ink); }
.big-cta .aside {
  grid-column: span 4; display: flex; align-items: flex-end;
}
.big-cta .aside .list {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); line-height: 1.8;
}
.big-cta::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-3), transparent);
  opacity: 0.3;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); margin-top: 0; }
.site-footer .inner { padding: 80px 40px 32px; }
.footer-heading {
  font-family: var(--font-display); font-size: 48px; line-height: 1.02;
  letter-spacing: -0.02em; font-weight: 500; margin: 0;
}
.footer-heading .accent { color: var(--accent); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 14px; color: var(--ink-2);
  transition: color 160ms;
}
.footer-links a:hover { color: var(--accent); }
.footer-address {
  font-size: 14px; color: var(--ink-2); line-height: 1.7;
}
.footer-address a.email {
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.footer-phone {
  font-family: var(--font-mono); font-size: 12px;
}
.footer-bottom {
  margin-top: 80px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.footer-bottom .left, .footer-bottom .right {
  display: flex; gap: 24px; align-items: center;
}
.status-dot {
  display: inline-flex; align-items: center; gap: 8px;
}
.status-dot::before {
  content: ""; width: 6px; height: 6px; background: oklch(70% 0.18 145);
  border-radius: 50%; animation: pulse-dot 2s infinite;
}
.clock { font-variant-numeric: tabular-nums; }

/* Grid helpers */
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }

/* ── Subpage hero (shared) ─────────────────────────────────────────── */
.subpage-hero { padding: 80px 0 0; border-bottom: 1px solid var(--line); }
.subpage-hero .meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 48px; border-bottom: 1px solid var(--line); margin-bottom: 64px;
}
.subpage-hero .lead-grid { align-items: end; padding-bottom: 80px; }
.subpage-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 128px);
  font-weight: 500; line-height: 0.95; letter-spacing: -0.035em;
  margin: 0; text-wrap: balance;
}
.subpage-hero h1 .muted { color: var(--ink-3); }
.subpage-hero h1 .accent-it {
  font-style: italic; font-weight: 400; color: var(--accent);
}
.subpage-hero h1 .accent { color: var(--accent); }
.subpage-hero p.lead {
  font-size: 18px; color: var(--ink-2); line-height: 1.55;
  margin: 0; max-width: 420px;
}
.subpage-hero .service-jump {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
}
.subpage-hero .service-jump a {
  padding: 6px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between;
  color: var(--ink-2);
  transition: color 160ms;
}
.subpage-hero .service-jump a:hover { color: var(--accent); }

/* ── Service block (services.html) ─────────────────────────────────── */
.service-block { padding: 80px 0; border-top: 1px solid var(--line); position: relative; }
.service-block.is-alt { background: var(--bg-2); }
.service-block .big-num {
  font-family: var(--font-display); font-size: 160px; font-weight: 500;
  letter-spacing: -0.04em; line-height: 0.85; color: var(--line);
}
.service-block .icon-wrap { margin-top: 32px; }
.service-block h2 {
  font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1;
  margin: 0 0 32px;
}
.service-block .lead {
  font-size: 20px; color: var(--ink-2); line-height: 1.5;
  max-width: 620px; margin: 0 0 48px;
}
.service-block .what-list { list-style: none; padding: 0; margin: 0; }
.service-block .what-list li {
  display: flex; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--ink);
}
.service-block .what-list .num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3); flex-shrink: 0; width: 24px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.service-block .when {
  font-size: 15px; color: var(--ink-2); line-height: 1.6; margin: 0 0 32px;
}
.service-block .stack-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-block .stack-tags span {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 10px; border: 1px solid var(--ink);
  color: var(--ink); letter-spacing: 0.04em;
}

/* ── Handwerk: Pain/Gain grid ──────────────────────────────────────── */
.pg-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--line);
}
.pg-grid .pg-head {
  padding: 20px 24px; background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.pg-grid .pg-head.left { border-right: 1px solid var(--line); }
.pg-grid .pg-pain {
  padding: 24px; border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 16px; color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--line);
}
.pg-grid .pg-gain {
  padding: 24px; border-bottom: 1px solid var(--line);
  font-size: 16px; color: var(--ink); font-weight: 500;
  display: flex; gap: 12px;
}
.pg-grid .pg-gain .arrow {
  font-family: var(--font-mono); color: var(--accent);
  flex-shrink: 0; margin-top: 2px;
}
.pg-grid .pg-pain:nth-last-of-type(2), .pg-grid .pg-gain:last-of-type {
  border-bottom: none;
}

/* ── Handwerk: Modules ─────────────────────────────────────────────── */
.modules-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); background: var(--bg);
}
.modules-grid .module {
  padding: 32px;
  border-right: 1px solid var(--line);
  min-height: 380px;
  display: flex; flex-direction: column;
}
.modules-grid .module:last-child { border-right: none; }
.modules-grid .mod-letter {
  font-family: var(--font-display); font-size: 112px; font-weight: 500;
  color: var(--accent); line-height: 0.9; letter-spacing: -0.04em;
}
.modules-grid .module h3 {
  font-family: var(--font-display); font-size: 28px; font-weight: 500;
  margin: 24px 0 16px; letter-spacing: -0.015em;
}
.modules-grid .module ul { flex-grow: 1; }
.modules-grid .module ul li {
  font-size: 14px; color: var(--ink-2); padding: 8px 0;
  border-top: 1px solid var(--line);
}

/* ── Packages ──────────────────────────────────────────────────────── */
.packages-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line); border-right: none;
}
.package {
  padding: 32px; border-right: 1px solid var(--line);
  background: var(--bg); color: var(--ink);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 560px;
}
.package.is-featured {
  background: var(--ink); color: var(--bg);
}
.package .ribbon {
  position: absolute; top: 0; right: 0; padding: 4px 12px;
  background: var(--accent); color: var(--accent-contrast);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
}
.package h3 {
  font-family: var(--font-display); font-size: 48px; font-weight: 500;
  letter-spacing: -0.025em; margin: 0;
}
.package .for-who {
  font-size: 13px; color: var(--ink-3); margin: 8px 0 32px;
}
.package.is-featured .for-who { color: var(--ink-4); }
.package .price-block {
  padding-top: 24px; margin-top: auto; margin-bottom: 24px;
  border-top: 1px solid var(--line);
}
.package.is-featured .price-block { border-top-color: var(--ink-3); }
.package .price-label {
  font-size: 14px; color: var(--ink-3); margin-bottom: 4px;
}
.package.is-featured .price-label { color: var(--ink-4); }
.package .price {
  font-family: var(--font-display); font-size: 32px; font-weight: 500;
  letter-spacing: -0.02em;
}
.package .monthly { font-size: 13px; color: var(--accent); margin-top: 4px; }
.package.is-featured .monthly { color: var(--accent-ink); }
.package .scope {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase;
}
.package.is-featured .scope { color: var(--ink-4); }
.package .features {
  margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px;
}
.package .features li {
  display: flex; gap: 8px;
  color: var(--ink-2);
}
.package.is-featured .features li { color: var(--bg); }
.package .features li .plus { color: var(--accent); }
.package .btn {
  align-self: stretch; justify-content: center;
}
.package.is-featured .btn {
  background: var(--accent); color: var(--accent-contrast); border-color: var(--accent);
}

/* ── FAQ accordion ─────────────────────────────────────────────────── */
.faq-list { border: 1px solid var(--line); background: var(--bg); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-btn {
  width: 100%; padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: center;
  background: transparent; border: none; text-align: left;
  cursor: pointer; color: var(--ink);
}
.faq-btn .q-inner {
  display: flex; gap: 24px; align-items: center;
}
.faq-btn .q-num { color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.faq-btn .q-text {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 500; letter-spacing: -0.01em;
}
.faq-btn .q-icon {
  font-family: var(--font-mono); font-size: 20px;
  transition: transform 220ms var(--ease);
}
.faq-item.is-open .q-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 32px 32px 88px;
  font-size: 15px; color: var(--ink-2); line-height: 1.6;
  max-width: 720px;
  display: none;
}
.faq-item.is-open .faq-answer { display: block; }
.faq-list.is-plain .faq-btn {
  padding: 24px 32px;
  font-family: var(--font-display); font-size: 20px; font-weight: 500;
}
.faq-list.is-plain .faq-answer {
  padding: 0 32px 28px;
}

/* ── Case page meta column ─────────────────────────────────────────── */
.meta-col { border-left: 1px solid var(--line); padding-left: 32px; }
.meta-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.meta-row span.v { color: var(--ink); font-weight: 500; }
.meta-row .status-live { color: oklch(62% 0.15 145); }

.case-hero-visual {
  width: 100%; aspect-ratio: 21 / 9; background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden; position: relative;
}

/* ── Results bar (case) ────────────────────────────────────────────── */
.results-bar {
  padding: 64px 0; background: var(--ink); color: var(--bg);
}
.results-bar .kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-4); margin-bottom: 32px;
}
.results-bar .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink-3);
}
.results-bar .cell {
  padding: 40px 32px 40px 0;
  border-bottom: 1px solid var(--ink-3);
  border-right: 1px solid var(--ink-3);
}
.results-bar .cell:last-child { border-right: none; }
.results-bar .cell + .cell { padding-left: 32px; }
.results-bar .num {
  font-family: var(--font-display); font-size: 72px; font-weight: 500;
  letter-spacing: -0.03em; line-height: 0.9; color: var(--accent);
}
.results-bar .label {
  margin-top: 16px; font-size: 15px; color: var(--bg); font-weight: 500;
}
.results-bar .detail {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); margin-top: 4px;
}

/* ── Timeline ──────────────────────────────────────────────────────── */
.timeline { border: 1px solid var(--line); }
.timeline-row {
  display: grid; grid-template-columns: 160px 180px 1fr;
  padding: 32px;
  border-bottom: 1px solid var(--line);
  align-items: start; gap: 32px;
}
.timeline-row:last-child { border-bottom: none; }
.timeline-row .wk { color: var(--accent); }
.timeline-row .phase {
  font-family: var(--font-display); font-size: 28px; font-weight: 500;
  letter-spacing: -0.015em;
}
.timeline-row .body {
  font-size: 15px; color: var(--ink-2); line-height: 1.6; max-width: 720px;
}

/* ── Tech stack ────────────────────────────────────────────────────── */
.stack-grid {
  border: 1px solid var(--line); background: var(--bg);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.stack-cell {
  padding: 28px; border-right: 1px solid var(--line);
  min-height: 240px; display: flex; flex-direction: column;
}
.stack-cell:last-child { border-right: none; }
.stack-cell h4 { margin: 0 0 20px; }
.stack-cell ul { margin: 0; padding: 0; list-style: none; flex: 1; }
.stack-cell ul li {
  font-size: 14px; padding: 10px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); color: var(--ink);
}

/* ── Big testimonial ───────────────────────────────────────────────── */
.testimonial-big blockquote {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 500; line-height: 1.15; letter-spacing: -0.015em;
  margin: 0; text-wrap: balance;
}
.testimonial-big blockquote .accent { color: var(--accent); }
.testimonial-big .cite {
  display: flex; align-items: center; gap: 24px; margin-top: 48px;
}
.testimonial-big .avatar {
  width: 64px; height: 64px; background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 20px; color: var(--ink-3);
}
.testimonial-big .name {
  font-family: var(--font-display); font-size: 20px; font-weight: 500;
}

/* ── More cases ───────────────────────────────────────────────────── */
.more-cases-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-right: none;
}
.more-cases-grid a {
  padding: 28px; border-right: 1px solid var(--line);
  background: var(--bg); color: var(--ink);
  min-height: 280px; display: flex; flex-direction: column;
  justify-content: space-between;
  transition: background 200ms;
}
.more-cases-grid a:hover { background: var(--bg-2); }
.more-cases-grid .mc-name {
  font-family: var(--font-display); font-size: 24px; font-weight: 500;
  letter-spacing: -0.015em; margin: 0 0 8px;
}
.more-cases-grid .mc-result {
  font-family: var(--font-display); font-size: 32px;
  color: var(--accent); font-weight: 500; letter-spacing: -0.02em;
}

/* ── Contact form ──────────────────────────────────────────────────── */
.contact-form { border: 1px solid var(--line); background: var(--bg); }
.form-progress {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.form-progress .step {
  padding: 16px 24px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-3);
  display: flex; justify-content: space-between; align-items: center;
  transition: all 200ms;
}
.form-progress .step:last-child { border-right: none; }
.form-progress .step.is-current { background: var(--bg-2); color: var(--ink); }
.form-progress .step.is-done { background: var(--ink); color: var(--bg); }
.form-progress .step .pulse {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}
.form-body { padding: 32px; }
.form-step { display: none; gap: 24px; }
.form-step.is-current { display: grid; }
.field { display: block; }
.field-head {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
.field.is-error .field-head { color: var(--accent); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--ink); font-size: 15px; font-family: var(--font-body);
  outline: none; transition: border-color 160ms;
  border-radius: 0;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: 180px; resize: vertical; }
.field.is-error input, .field.is-error textarea { border-color: var(--accent); }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.option-row {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
}
.option-row.is-4 { grid-template-columns: repeat(4, 1fr); }
.option-btn {
  padding: 14px 8px;
  background: transparent; color: var(--ink-2);
  border: none; border-right: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px;
  cursor: pointer; transition: all 160ms;
}
.option-row > .option-btn:last-child { border-right: none; }
.option-btn.is-selected { background: var(--ink); color: var(--bg); }

.topic-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.topic-btn {
  padding: 14px 16px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px;
  cursor: pointer; text-align: left;
  letter-spacing: 0.02em;
  transition: all 160ms;
  display: flex; justify-content: space-between; align-items: center;
}
.topic-btn.is-selected {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.topic-btn .check { color: var(--accent); }

.privacy-note {
  padding: 20px; background: var(--bg-2); border: 1px solid var(--line);
  display: flex; gap: 16px; align-items: flex-start;
}
.privacy-note .icon {
  width: 24px; height: 24px; border: 1px solid var(--ink);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
  font-size: 12px;
}
.privacy-note .text {
  font-size: 13px; color: var(--ink-2); line-height: 1.6;
}
.privacy-note .text a { color: var(--ink); text-decoration: underline; }

.review-box { border: 1px solid var(--line); }
.review-box h4 {
  padding: 12px 20px; background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.review-row {
  display: grid; grid-template-columns: 180px 1fr;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.review-row:last-child { border-bottom: none; }
.review-row .v { color: var(--ink); }

.form-footer {
  padding: 20px 32px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-2);
}
.form-footer .actions { display: flex; gap: 8px; }

.form-success {
  padding: 64px; border: 1px solid var(--line); background: var(--bg-2);
  text-align: center; min-height: 480px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
}
.form-success .check {
  width: 64px; height: 64px; border: 2px solid var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 24px; color: var(--accent);
  margin-bottom: 32px;
}
.form-success h3 {
  font-family: var(--font-display); font-size: 40px; font-weight: 500;
  letter-spacing: -0.02em; margin: 0 0 16px;
}
.form-success p {
  font-size: 17px; color: var(--ink-2); margin: 0; max-width: 480px;
}
.form-success .ref-id {
  margin-top: 48px; font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase;
}

/* ── Contact aside ─────────────────────────────────────────────────── */
.contact-aside { display: flex; flex-direction: column; gap: 32px; }
.contact-block .rows { border-top: 1px solid var(--line); }
.contact-block .row {
  display: grid; grid-template-columns: 100px 1fr;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.contact-block .row .v { color: var(--ink); }
.contact-block .row .v.is-mono { font-family: var(--font-mono); }
.cta-card {
  padding: 24px; background: var(--ink); color: var(--bg);
}
.cta-card .heading {
  font-family: var(--font-display); font-size: 28px; font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 24px;
}
.cta-card .btn-accent {
  background: var(--accent); border-color: var(--accent);
  color: var(--accent-contrast);
  width: 100%; justify-content: center;
}

/* Responsive */
@media (max-width: 960px) {
  :root { --section-y: 80px; }
  .wrap { padding: 0 24px; }
  .section-head { grid-template-columns: 1fr; margin-bottom: 48px; }
  .hero-meta .group { display: none; }
  .hero-visuals { margin-top: 56px; }
  .hero-diagram-box, .hero-stats { grid-column: span 12; }
  .hero-stats { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.is-wide { grid-column: span 2; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2n) { border-right: none; }
  .process-step:nth-child(1), .process-step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .industries-header, .industries-row { grid-template-columns: 40px 1fr 100px; }
  .industries-header .col-need, .industries-row .need,
  .industries-header .col-action, .industries-row .action { display: none; }
  .case-visual-box, .case-text { grid-column: span 12; }
  .why-grid { grid-template-columns: 1fr; }
  .why-cell { padding: 32px; }
  .why-cell h3 { font-size: 40px; }
  .insights-grid { grid-template-columns: 1fr; }
  .site-footer .inner .grid-12 > * { grid-column: span 12 !important; margin-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .site-nav { gap: 0; }
  .site-nav .nav-link { padding: 8px 8px; font-size: 13px; }
  .site-nav .btn { margin-left: 8px; }
}
@media (max-width: 960px) {
  .subpage-hero .meta-row { flex-direction: column; gap: 12px; align-items: flex-start; }
  .subpage-hero .lead-grid > * { grid-column: span 12; }
  .service-block .grid-12 > * { grid-column: span 12; }
  .service-block .big-num { font-size: 96px; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid .module:nth-child(2) { border-right: none; }
  .modules-grid .module:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .packages-grid { grid-template-columns: 1fr; border-right: 1px solid var(--line); }
  .package { min-height: 0; border-bottom: 1px solid var(--line); }
  .pg-grid { grid-template-columns: 1fr; }
  .pg-grid .pg-head.left { border-right: none; }
  .pg-grid .pg-pain { border-right: none; }
  .timeline-row { grid-template-columns: 1fr; gap: 12px; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 0; }
  .stack-cell:nth-child(2n) { border-right: none; }
  .more-cases-grid { grid-template-columns: 1fr 1fr; }
  .more-cases-grid a { border-bottom: 1px solid var(--line); min-height: 0; }
  .results-bar .grid { grid-template-columns: 1fr 1fr; }
  .results-bar .cell + .cell { padding-left: 0; }
  .results-bar .cell:nth-child(2n) { border-right: none; padding-left: 32px; }
  .results-bar .num { font-size: 56px; }
  .contact-form .grid-12 > * { grid-column: span 12 !important; }
  .form-row-2 { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .option-row { grid-template-columns: repeat(2, 1fr); }
  .option-btn:nth-child(2n) { border-right: none; }
  .option-btn:nth-last-child(n+3) { border-bottom: 1px solid var(--line); }
  .meta-col { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; margin-top: 32px; }
}
/* ── Article page (insights/…) ────────────────────────────────────── */
.article-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.article-hero .meta-row {
  display: flex; gap: 16px 32px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 32px;
}
.article-hero .meta-row .tag { color: var(--accent); }
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 500; line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 24px; text-wrap: balance; max-width: 20ch;
}
.article-hero .lead {
  font-size: 20px; color: var(--ink-2); line-height: 1.55;
  max-width: 64ch; margin: 0;
}
.article-hero .authors {
  margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto auto 1fr; gap: 32px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase;
}
.article-hero .authors strong { color: var(--ink); font-weight: 500; }

.article-figure {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.article-figure .inner {
  max-width: 1100px; margin: 0 auto;
  padding: 48px 40px;
}
.article-figure img, .article-figure svg {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line);
  background: var(--bg);
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 40px 96px;
  font-size: 17px; line-height: 1.7;
  color: var(--ink);
}
.article-body > p { margin: 0 0 20px; text-wrap: pretty; }
.article-body > p.intro {
  font-size: 19px; color: var(--ink-2);
  border-left: 3px solid var(--accent);
  padding-left: 20px; margin: 0 0 40px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.15;
  margin: 56px 0 20px;
  scroll-margin-top: 88px;
}
.article-body h2 .num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); letter-spacing: 0.08em;
  display: block; margin-bottom: 8px; font-weight: 500;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em; margin: 40px 0 12px;
}
.article-body a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.article-body a:hover { color: var(--accent); }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body em { font-style: italic; color: var(--ink-2); }
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 2px;
  word-break: break-word;
}
.article-body pre {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 2px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.6;
}
.article-body pre code {
  background: transparent; border: none; padding: 0; color: inherit;
  font-size: inherit;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px; padding: 0;
}
.article-body ul li, .article-body ol li {
  list-style: none;
  position: relative;
  padding: 6px 0 6px 28px;
}
.article-body ul li::before {
  content: "";
  position: absolute; left: 4px; top: 17px;
  width: 8px; height: 1px;
  background: var(--accent);
}
.article-body ol {
  counter-reset: a-ol;
}
.article-body ol li {
  counter-increment: a-ol;
}
.article-body ol li::before {
  content: counter(a-ol, decimal-leading-zero);
  position: absolute; left: 0; top: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); letter-spacing: 0.05em;
}
.article-body blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  font-size: 18px; color: var(--ink);
  font-style: italic;
}
.article-body blockquote cite {
  display: block; margin-top: 8px;
  font-style: normal; font-size: 13px;
  color: var(--ink-3);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 15px;
}
.article-body th, .article-body td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article-body th {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
  border-bottom-color: var(--ink);
}
.article-body td a { word-break: break-word; }

.callout {
  margin: 32px 0;
  padding: 24px 28px;
  border: 1px solid var(--ink);
  background: var(--bg-2);
  font-size: 15px;
  position: relative;
}
.callout .head {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px;
}
.callout p { margin: 0 0 8px; line-height: 1.6; }
.callout p:last-child { margin: 0; }

.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 40px 0;
  border: 1px solid var(--line);
}
.stat-strip .s {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.stat-strip .s:last-child { border-right: none; }
.stat-strip .s .n {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-strip .s .l {
  font-size: 13px; color: var(--ink-2);
  margin-top: 8px; line-height: 1.4;
}
.stat-strip .s .src {
  margin-top: 8px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-4); letter-spacing: 0.05em;
}

.sources {
  margin: 56px 0 0;
  padding: 32px 36px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.sources h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  margin: 0 0 16px !important;
  letter-spacing: -0.01em;
}
.sources ol { margin: 0; padding: 0; counter-reset: src; }
.sources li {
  padding: 8px 0 8px 34px;
  border-bottom: 1px dashed var(--line);
  counter-increment: src;
  font-size: 14px;
  position: relative; line-height: 1.5;
  list-style: none;
}
.sources li:last-child { border-bottom: none; }
.sources li::before {
  content: counter(src, decimal-leading-zero);
  position: absolute; left: 0; top: 10px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.05em;
}
.sources a { border-bottom: 1px solid var(--line); color: var(--ink); word-break: break-word; }
.sources a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.related-row {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.related-row .head {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 24px;
}
.related-row .grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.related-row a {
  display: block; padding: 28px;
  border: 1px solid var(--line); background: var(--bg);
  transition: border-color 200ms, background 200ms;
}
.related-row a:hover { border-color: var(--ink); }
.related-row .t {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 500; letter-spacing: -0.01em;
  margin: 0 0 8px; line-height: 1.2;
}
.related-row .d {
  font-size: 14px; color: var(--ink-3);
  font-family: var(--font-mono); letter-spacing: 0.06em;
}

.breadcrumb {
  padding: 16px 40px 0;
  max-width: 1440px; margin: 0 auto;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.08em;
}
.breadcrumb a { color: inherit; border-bottom: 1px solid var(--line); }
.breadcrumb a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.breadcrumb .sep { color: var(--ink-4); padding: 0 8px; }

@media (max-width: 768px) {
  .article-body { padding: 48px 24px 72px; font-size: 16px; }
  .article-figure .inner { padding: 32px 24px; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip .s { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-strip .s:last-child { border-bottom: none; }
  .related-row .grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav .nav-link:not(.nav-primary) { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.is-wide { grid-column: span 1; }
  .services-grid { border-right: 1px solid var(--line); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: 1fr; }
  .stat-big { font-size: 72px; }
  .case-metrics { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: none; }
  .modules-grid { grid-template-columns: 1fr; }
  .modules-grid .module { border-right: none; border-bottom: 1px solid var(--line); }
  .modules-grid .module:last-child { border-bottom: none; }
  .more-cases-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .stack-cell { border-right: none; }
  .stack-cell:last-child { border-bottom: none; }
  .topic-grid { grid-template-columns: 1fr; }
  .faq-btn .q-text { font-size: 17px; }
  .faq-answer { padding-left: 32px; }
  .service-block .big-num { font-size: 72px; }
  .results-bar .grid { grid-template-columns: 1fr; }
  .results-bar .cell { border-right: none !important; padding-left: 0 !important; }
}
