/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 88px 0 70px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .capability-web { order: -1; max-width: 380px; margin: 0 auto 20px; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 24px; }
}

.hero h1 { font-size: clamp(34px, 4.4vw, 54px); }
.hero .accent { color: var(--green-bright); }
.hero-sub { margin-top: 20px; font-size: 17px; color: var(--text-muted); max-width: 50ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stats div { min-width: 100px; }
.hero-stats dt { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; }
.hero-stats dd { font-family: var(--font-display); font-size: 23px; font-weight: 700; }

/* --- capability web graphic --- */
.capability-web { display: flex; justify-content: center; }
.web-svg { width: 100%; height: auto; }
.web-svg .trace { stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 3 5; }
.web-svg .core-node circle { fill: var(--green); }
.web-svg .core-label { font-family: var(--font-mono); font-size: 9px; fill: #06120D; font-weight: 600; }
.web-svg .leaf-node circle { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.2; }
.web-svg .leaf-node.pulse circle.ring { fill: none; stroke: var(--green); stroke-width: 1; opacity: 0; animation: ringPulse 3.2s ease-out infinite; }
.web-svg .leaf-icon { stroke: var(--green-bright); stroke-width: 1.6; fill: none; }
.web-svg .leaf-label { font-family: var(--font-mono); font-size: 8.5px; fill: var(--text-muted); text-anchor: middle; }

@keyframes ringPulse {
  0% { opacity: .55; r: 22; }
  100% { opacity: 0; r: 34; }
}

.web-svg .leaf-node:nth-child(2) .ring { animation-delay: 0s; }
.web-svg .leaf-node:nth-child(3) .ring { animation-delay: .6s; }
.web-svg .leaf-node:nth-child(4) .ring { animation-delay: 1.2s; }
.web-svg .leaf-node:nth-child(5) .ring { animation-delay: 1.8s; }
.web-svg .leaf-node:nth-child(6) .ring { animation-delay: 2.4s; }

/* ============================================================
   PROCESS ("How we work" — a real sequence, numbering earned)
   ============================================================ */
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.process-step {
  background: var(--surface);
  padding: 28px 22px;
  border-right: 1px solid var(--border);
  position: relative;
}
.process-step:last-child { border-right: none; }
.process-num { font-family: var(--font-mono); font-size: 12px; color: var(--green-bright); margin-bottom: 14px; }
.process-step h3 { font-size: 15.5px; margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--text-muted); }

@media (max-width: 980px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-step { border-right: none; border-bottom: 1px solid var(--border); }
  .process-step:nth-child(odd) { border-right: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .process-list { grid-template-columns: 1fr; }
  .process-step:nth-child(odd) { border-right: none; }
}

/* ============================================================
   SERVICES — the page's centerpiece: three capability pillars
   (what we can build) plus a closing CTA strip, not a log of past
   industry-specific projects.
   ============================================================ */
.services { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.pillar-card { padding: 36px 30px; display: flex; flex-direction: column; }
.pillar-card h3 { font-size: 20px; margin-bottom: 12px; }
.pillar-card p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 22px; flex: 1; }
.pillar-card .chip-list { margin-top: auto; }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--green-wash);
  border: 1px solid rgba(31,169,124,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--green-bright); fill: none; stroke-width: 1.6; }
.pillar-card:hover .service-icon { border-color: var(--green); box-shadow: 0 0 0 5px var(--green-wash); }

.pillar-cta {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--surface-2);
  padding: 34px 38px;
}
.pillar-cta h3 { margin-bottom: 8px; }
.pillar-cta p { margin-bottom: 0; flex: none; }
.pillar-cta .btn { flex-shrink: 0; }

@media (max-width: 900px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .pillar-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ABOUT (grid defined here since index.html uses a class now,
   not inline styles, so it can respond on mobile)
   ============================================================ */
.about-inner-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
@media (max-width: 820px) {
  .about-inner-grid { grid-template-columns: 1fr; }
}

.about-photo {
  aspect-ratio: 1;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo-fallback {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 20px;
}
