/* ============================================
   Kohlisys — Home page sections
   Mirrors the <style> block from the static
   pages/home.html design comp.
   ============================================ */

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
}
/* Home-hero headline uses the original design-comp scale — single
   posts, single case studies, and 404 keep the smaller .h-display
   set globally in globals.css. */
.hero h1.h-display {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero h1 .accent { color: var(--accent-coral); font-style: italic; font-weight: 500; }
.hero h1 .underline {
  position: relative;
  white-space: nowrap;
}
.hero h1 .underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 10px;
  background: var(--brand-200);
  z-index: -1;
  border-radius: 2px;
}
.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  background: var(--ink-900);
  color: var(--paper);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.hero-overlay strong { display: block; font-family: var(--font-display); font-size: 22px; }
.hero-overlay-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-300); letter-spacing: 0.08em; text-transform: uppercase; }

/* Logos strip */
.logos {
  padding: 56px 0;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}
.logos-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logos-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); max-width: 26ch; line-height: 1.4; }
.logos-row { display: flex; gap: 85px; align-items: center; flex: 1; justify-content: flex-end; flex-wrap: wrap; opacity: 0.6; }
.logo-pl { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink-700); letter-spacing: -0.01em; }
.logo-pl.italic { font-style: italic; font-weight: 400; }

/* Services */
.services-header {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-bottom: 72px;
  align-items: end;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.service-card {
  background: var(--paper);
  padding: 40px 32px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  transition: background 0.2s;
}
.service-card:hover { background: var(--white); }
.service-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-coral); letter-spacing: 0.06em; margin-bottom: 24px; }
.service-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.service-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-card p { color: var(--ink-600); font-size: 15px; flex: 1; }
.service-card .more {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-700);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Approach */
.approach {
  background: var(--ink-900);
  color: var(--paper);
  padding: 128px 0;
  margin: 96px 0;
  border-radius: var(--r-xl);
}
.approach-header {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-bottom: 80px;
}
.approach h2 { color: var(--paper); }
.approach .lead { color: var(--ink-300); max-width: 52ch; }
.approach .eyebrow { color: var(--ink-300); }
.approach .eyebrow::before { background: var(--accent-coral); }
.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.approach-step {
  padding: 32px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}
.approach-step .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-coral);
  letter-spacing: 0.08em;
  position: absolute;
  top: -10px;
  background: var(--ink-900);
  padding-right: 10px;
}
.approach-step h4 { color: var(--paper); font-size: 20px; margin-bottom: 12px; }
.approach-step p { color: var(--ink-300); font-size: 14px; line-height: 1.55; }

/* Case studies preview */
.cases-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.2s ease;
}
.case-card:hover { box-shadow: var(--shadow-md); }
.case-card.feature .case-photo { aspect-ratio: 16 / 8.5; }
.case-card .case-photo { aspect-ratio: 16/9; }
.case-card .photo { width: 100%; height: 100%; }
.case-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.case-card h3 { font-size: 26px; max-width: 22ch; }
.case-card.feature h3 { font-size: 34px; }
.case-stats {
  display: flex;
  gap: 36px;
  margin-top: auto;
  border-top: 1px solid var(--ink-100);
  padding-top: 20px;
}
.case-stats .s { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.case-stats small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-top: 4px; }

.cases-col { display: flex; flex-direction: column; gap: 24px; }

/* Stats band */
.stats-band {
  padding: 96px 0;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink-900);
}
.stat-num .unit { font-size: 32px; color: var(--accent-coral); font-weight: 500; vertical-align: top; }
.stat-label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 16px; max-width: 24ch; line-height: 1.5; }

/* Testimonial */
.testimonial {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: center;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 32px 0 0;
  color: var(--ink-900);
  text-wrap: balance;
}
.testimonial blockquote .mark { color: var(--accent-coral); }
.testimonial-author { margin-top: 40px; display: flex; gap: 16px; align-items: center; }
.testimonial-author .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background-image: url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=200&auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--ink-200);
}
.testimonial-author strong { display: block; font-size: 15px; }
.testimonial-author span { font-size: 14px; color: var(--ink-500); }

/* Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.insight-card { display: flex; flex-direction: column; gap: 16px; }
.insight-card .photo { aspect-ratio: 16/10; }
.insight-meta { display: flex; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); letter-spacing: 0.06em; text-transform: uppercase; }
.insight-card h4 { font-size: 22px; line-height: 1.2; }
.insight-card p { color: var(--ink-600); font-size: 14px; }

/* CTA band */
.cta-band {
  position: relative;
  background: var(--paper-2);
  border-radius: var(--r-xl);
  padding: 96px 64px;
  overflow: hidden;
  margin: 96px 0;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 100% 100%, rgba(232, 78, 31, 0.10), transparent 70%),
    radial-gradient(60% 80% at 0% 0%, rgba(53, 86, 216, 0.07), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.cta-band h2 { font-size: 64px; line-height: 1; letter-spacing: -0.035em; }
.cta-band .actions { display: flex; gap: 12px; align-items: center; }
.cta-band .actions .mono { color: var(--ink-500); margin-left: 8px; }

/* ============================================
   Workflow demo — animated hero asset
   ============================================
   Self-contained, prefixed with .wd-. CSS
   custom properties map to kohlisys tokens
   so the demo retheme automatically.
   ============================================ */
.workflow-demo {
  --wd-accent: var(--accent-coral);
  --wd-ink: var(--ink-900);
  --wd-paper: var(--paper);
  --wd-font-mono: var(--font-mono);
  --wd-font-display: var(--font-display);

  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4/5;
  background: var(--wd-ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-family: var(--wd-font-mono);
}

/* ---- Chrome bar ---- */
.wd-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.wd-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.wd-dot-r { background: #ED6A5E; }
.wd-dot-y { background: #F4BF4F; }
.wd-dot-g { background: #61C554; }
.wd-title {
  font-size: 10px; color: rgba(255, 255, 255, 0.5);
  margin-left: 8px;
  letter-spacing: 0.03em;
  flex: 1; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wd-pill {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(232, 78, 31, 0.15);
  color: #f5a48b;
  border: 1px solid rgba(232, 78, 31, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
}
[data-stage="live"] .wd-pill {
  background: rgba(141, 203, 153, 0.15);
  color: #8DCB99;
  border-color: rgba(141, 203, 153, 0.4);
}

/* ---- Stepper ---- */
.wd-stepper {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  gap: 2px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 8.5px;
  flex-shrink: 0;
  position: relative;
}
.wd-stepper::before {
  content: '';
  position: absolute;
  left: 18px; right: 18px;
  bottom: 7px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 0;
}
.wd-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.04em;
  position: relative; z-index: 1;
  white-space: nowrap;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.wd-step-dot {
  order: 2;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
[data-stage="write"]  .wd-step[data-step="write"],
[data-stage="commit"] .wd-step[data-step="commit"],
[data-stage="qa"]     .wd-step[data-step="qa"],
[data-stage="push"]   .wd-step[data-step="push"],
[data-stage="deploy"] .wd-step[data-step="deploy"],
[data-stage="live"]   .wd-step[data-step="live"] {
  color: var(--wd-accent);
}
[data-stage="write"]  .wd-step[data-step="write"]  .wd-step-dot,
[data-stage="commit"] .wd-step[data-step="commit"] .wd-step-dot,
[data-stage="qa"]     .wd-step[data-step="qa"]     .wd-step-dot,
[data-stage="push"]   .wd-step[data-step="push"]   .wd-step-dot,
[data-stage="deploy"] .wd-step[data-step="deploy"] .wd-step-dot,
[data-stage="live"]   .wd-step[data-step="live"]   .wd-step-dot {
  background: var(--wd-accent);
  border-color: var(--wd-accent);
  box-shadow: 0 0 0 3px rgba(232, 78, 31, 0.15);
}
[data-stage="live"] .wd-step[data-step="live"] { color: #8DCB99; }
[data-stage="live"] .wd-step[data-step="live"] .wd-step-dot {
  background: #8DCB99; border-color: #8DCB99;
  box-shadow: 0 0 0 3px rgba(141, 203, 153, 0.18);
}
[data-stage="commit"] .wd-step[data-step="write"]  .wd-step-dot,
[data-stage="qa"]     .wd-step[data-step="write"]  .wd-step-dot,
[data-stage="qa"]     .wd-step[data-step="commit"] .wd-step-dot,
[data-stage="push"]   .wd-step[data-step="write"]  .wd-step-dot,
[data-stage="push"]   .wd-step[data-step="commit"] .wd-step-dot,
[data-stage="push"]   .wd-step[data-step="qa"]     .wd-step-dot,
[data-stage="deploy"] .wd-step[data-step="write"]  .wd-step-dot,
[data-stage="deploy"] .wd-step[data-step="commit"] .wd-step-dot,
[data-stage="deploy"] .wd-step[data-step="qa"]     .wd-step-dot,
[data-stage="deploy"] .wd-step[data-step="push"]   .wd-step-dot,
[data-stage="live"]   .wd-step[data-step="write"]  .wd-step-dot,
[data-stage="live"]   .wd-step[data-step="commit"] .wd-step-dot,
[data-stage="live"]   .wd-step[data-step="qa"]     .wd-step-dot,
[data-stage="live"]   .wd-step[data-step="push"]   .wd-step-dot,
[data-stage="live"]   .wd-step[data-step="deploy"] .wd-step-dot {
  background: rgba(141, 203, 153, 0.7);
  border-color: rgba(141, 203, 153, 0.7);
}

/* ---- Stage area (swappable panels) ---- */
.wd-stage-area {
  flex: 1.5;
  min-height: 0;
  position: relative;
  background: var(--wd-ink);
}
.wd-panel {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
[data-stage="write"]  .wd-panel-code,
[data-stage="commit"] .wd-panel-code,
[data-stage="qa"]     .wd-panel-code,
[data-stage="push"]   .wd-panel-code { opacity: 1; }
[data-stage="deploy"] .wd-panel-pipeline { opacity: 1; }
[data-stage="live"]   .wd-panel-health { opacity: 1; }

/* ---- Code panel ---- */
.wd-panel-code {
  display: flex; gap: 10px;
  padding: 14px 14px 12px;
  overflow: hidden;
}
.wd-gutter {
  font-size: 9.5px; line-height: 1.65;
  color: rgba(255, 255, 255, 0.18);
  text-align: right;
  user-select: none;
  padding-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.wd-code {
  margin: 0;
  font-family: var(--wd-font-mono);
  font-size: 10.5px; line-height: 1.65;
  color: #DDE3F0;
  white-space: pre;
  overflow: hidden;
  flex: 1;
}
.wd-code code { display: block; }
.wd-line {
  display: block;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.wd-line.shown { opacity: 1; transform: translateX(0); }
.wd-kw  { color: #F0A57A; }
.wd-fn  { color: #8DB7F7; }
.wd-str { color: #A6D89E; }
.wd-num { color: #F0A57A; }
.wd-cm  { color: rgba(255, 255, 255, 0.32); font-style: italic; }
.wd-caret {
  color: var(--wd-accent);
  animation: wdBlink 1.05s steps(1) infinite;
}
[data-stage="commit"] .wd-caret,
[data-stage="qa"]     .wd-caret,
[data-stage="push"]   .wd-caret { display: none; }
@keyframes wdBlink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ---- Pipeline panel ---- */
.wd-panel-pipeline {
  display: flex; flex-direction: column;
  padding: 16px 18px; gap: 10px;
}
.wd-pipe-title {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  display: flex; justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}
.wd-pipe-step {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  padding: 6px 0;
  transition: color 0.3s ease;
}
.wd-pipe-icon {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  position: relative;
  transition: all 0.3s ease;
}
.wd-pipe-step.running .wd-pipe-icon {
  border-color: var(--wd-accent);
  border-top-color: transparent;
  animation: wdSpin 0.9s linear infinite;
}
.wd-pipe-step.running { color: #f5a48b; }
.wd-pipe-step.done .wd-pipe-icon {
  background: #8DCB99;
  border-color: #8DCB99;
}
.wd-pipe-step.done .wd-pipe-icon::after {
  content: '';
  position: absolute;
  left: 3px; top: 6px;
  width: 4px; height: 7px;
  border-right: 1.5px solid var(--wd-ink);
  border-bottom: 1.5px solid var(--wd-ink);
  transform: rotate(45deg);
}
.wd-pipe-step.done { color: rgba(255, 255, 255, 0.82); }
.wd-pipe-time {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.02em;
}
.wd-pipe-step.done .wd-pipe-time    { color: rgba(141, 203, 153, 0.7); }
.wd-pipe-step.running .wd-pipe-time { color: var(--wd-accent); }
.wd-dim { color: rgba(255, 255, 255, 0.4); font-weight: 400; }
@keyframes wdSpin { to { transform: rotate(360deg); } }

/* ---- Health panel ---- */
.wd-panel-health {
  display: flex; flex-direction: column;
  padding: 16px 18px 14px;
  gap: 12px;
}
.wd-health-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wd-health-status {
  display: flex; align-items: center; gap: 6px;
  color: #8DCB99;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.wd-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #8DCB99;
  box-shadow: 0 0 0 0 rgba(141, 203, 153, 0.6);
  animation: wdPulse 2s ease-in-out infinite;
}
@keyframes wdPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(141, 203, 153, 0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(141, 203, 153, 0); }
}
.wd-health-hero { display: flex; flex-direction: column; }
.wd-metric-num {
  font-family: var(--wd-font-display);
  font-size: 36px; font-weight: 600;
  letter-spacing: -0.02em;
  color: #FBFAF6;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wd-metric-num.sm { font-size: 18px; }
.wd-metric-num.ok { color: #8DCB99; }
.wd-metric-unit {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 2px;
  font-weight: 400;
}
.wd-metric-lbl {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}
.wd-health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.wd-mono { font-family: var(--wd-font-mono); }

/* ---- AI co-pilot strip ---- */
.wd-copilot {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: linear-gradient(180deg, rgba(232, 78, 31, 0.10), rgba(232, 78, 31, 0.04));
  border-top: 1px solid rgba(232, 78, 31, 0.22);
  border-bottom: 1px solid rgba(232, 78, 31, 0.22);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  font-family: var(--wd-font-mono);
}
.wd-copilot-glyph { color: var(--wd-accent); font-size: 11px; line-height: 1; }
.wd-copilot-name  { color: rgba(255, 255, 255, 0.78); font-weight: 600; letter-spacing: 0.04em; }
.wd-copilot-sep   { color: rgba(255, 255, 255, 0.3); }
.wd-copilot-msg {
  color: rgba(255, 255, 255, 0.92);
  flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.25s ease;
}
.wd-copilot-msg.fading { opacity: 0; }
.wd-cp-meta { color: rgba(255, 255, 255, 0.45); }
.wd-copilot-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--wd-accent);
  box-shadow: 0 0 0 0 rgba(232, 78, 31, 0.6);
  animation: wdCpPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes wdCpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 78, 31, 0.55); }
  50%      { box-shadow: 0 0 0 5px rgba(232, 78, 31, 0); }
}

/* ---- Terminal ---- */
.wd-terminal {
  flex: 1;
  min-height: 0;
  background: #060912;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.wd-thead {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.40);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.wd-log {
  font-size: 10px; line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  flex: 1;
  display: flex; flex-direction: column;
  gap: 1px; overflow: hidden;
}
.wd-log .wd-line-log {
  opacity: 0;
  transform: translateY(3px);
  animation: wdLogIn 0.28s ease forwards;
  font-variant-numeric: tabular-nums;
}
.wd-log .wd-line-log.fade { animation: wdLogOut 0.4s ease forwards; }
.wd-log .wd-ts     { color: rgba(255, 255, 255, 0.32); margin-right: 6px; }
.wd-log .wd-ok     { color: #8DCB99; }
.wd-log .wd-warn   { color: #F0A57A; }
.wd-log .wd-dim-l  { color: rgba(255, 255, 255, 0.38); }
.wd-log .wd-prompt { color: var(--wd-accent); margin-right: 4px; }
.wd-log .wd-ci     { color: #8DB7F7; margin-right: 4px; }
@keyframes wdLogIn  { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wdLogOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .wd-caret, .wd-live-dot, .wd-log .wd-line-log,
  .wd-pipe-step.running .wd-pipe-icon, .wd-line, .wd-copilot-pulse {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================================
   Mobile (max-width: 720px) — stack all desktop grids.
   ============================================================================ */
@media (max-width: 720px) {

  .hero { padding: 32px 0 48px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero h1.h-display { font-size: clamp(36px, 9vw, 56px); line-height: 1.02; }
  .hero-meta { gap: 12px; margin-top: 24px; }
  .hero-photo { aspect-ratio: 4/3; }

  .logos { padding: 32px 0; }
  .logos-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .logos-row {
    gap: 32px;
    justify-content: flex-start;
  }
  .logo-pl { font-size: 18px; }

  .services-header {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
  }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 28px 24px; }

  .approach {
    padding: 56px 24px;
    margin: 56px 0;
    border-radius: var(--r-lg);
  }
  .approach-header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .approach-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cases-grid { grid-template-columns: 1fr; gap: 16px; }
  .cases-col { gap: 16px; }
  .case-card { padding: 24px; gap: 20px; }
  .case-card h3 { font-size: 22px; }
  .case-card.feature h3 { font-size: 26px; }
  .case-stats { gap: 24px; flex-wrap: wrap; }
  .case-stats .s { font-size: 22px; }

  .stats-band { padding: 56px 0; }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .stat-num { font-size: 48px; }
  .stat-num .unit { font-size: 20px; }

  .testimonial {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .testimonial blockquote { font-size: 26px; line-height: 1.22; margin-top: 16px; }
  .testimonial-author { margin-top: 28px; }

  .insights-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-band {
    padding: 48px 24px;
    margin: 56px 0;
    border-radius: var(--r-lg);
  }
  .cta-band h2 { font-size: 36px; line-height: 1.05; }
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }
  .cta-band .actions { flex-wrap: wrap; gap: 8px; }
}
