/* Components shared by the five service pages. Loaded after site.css; each page keeps its own technical demo and layout variation inline. */

main {
  font-size: 16px;
  line-height: 1.65;
}

main p {
  margin: 0 0 16px;
}

main h1,
main h2,
main h3 {
  font-family: var(--mono);
}

main h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.4px;
}

main .section-headline {
  margin-bottom: 20px;
}

/* HERO */

.service-hero .page-hero-inner {
  padding: 95px 0 90px;
}

.hero-content {
  max-width: 900px;
}

.service-headline {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.17;
  letter-spacing: -3px;
  margin: 0;
}

.lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: #555;
  font-size: 17px;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  margin: 23px 0 0;
  color: #666;
  font: 400 11px/1.6 var(--mono);
}

.muted {
  color: var(--muted);
}

/* TECHNICAL DEMO SECTION */

.technical {
  padding: 85px 0;
  background: #0a0a0a;
  color: white;
}

.technical .section-label {
  color: #ff674b;
}

.technical-intro {
  max-width: 790px;
  margin-bottom: 36px;
}

.technical-intro p {
  color: #bdbdbd;
}

.technical-caption {
  margin: 18px 0 0;
  color: #afafaf;
  font: 400 11px/1.7 var(--mono);
}

/* SECTION HEADS */

.section-head {
  max-width: 750px;
  margin-bottom: 40px;
}

.section-alt {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* PROBLEM CARDS */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #111;
  border: 1px solid #111;
}

.problem {
  min-width: 0;
  padding: 30px 26px;
  background-color: #fafafa;
  background-image: radial-gradient(#d7d7d7 .7px, transparent .7px);
  background-size: 18px 18px;
}

.problem-num {
  margin-bottom: 28px;
  color: var(--accent);
  font: 600 11px var(--mono);
}

.problem p {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* DELIVERABLES */

.dark-section {
  background: #0a0a0a;
  color: white;
}

.dark-section .section-label {
  color: #ff674b;
}

.dark-section .muted {
  color: #bbb;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  border-top: 1px solid #333;
}

.deliverable {
  min-width: 0;
  padding: 26px 0;
  border-bottom: 1px solid #333;
}

.deliverable .section-label {
  margin-bottom: 14px;
}

.deliverable h3 {
  font-size: 16px;
}

.deliverable p {
  margin: 0;
  color: #bbb;
  font-size: 14px;
}

/* PROCESS */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.steps {
  border-top: 1px solid #111;
}

.step {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.step > span {
  color: var(--accent);
  font: 600 11px/1.9 var(--mono);
}

.step h3 {
  font-size: 15px;
}

.step p {
  margin: 0;
  color: #555;
  font-size: 14px;
}

/* RELATED */

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.related a {
  padding: 12px 14px;
  border: 1px solid #111;
  font: 600 12px var(--mono);
  transition: background .2s, color .2s;
}

.related a:hover {
  background: #111;
  color: white;
}

/* CTA */

.cta .hero-note {
  margin-top: 0;
  text-align: center;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .service-hero .page-hero-inner {
    padding: 70px 0 60px;
  }

  .service-headline {
    font-size: clamp(34px, 8vw, 42px);
  }

  .technical {
    padding: 65px 0;
  }

  .problem-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .service-headline {
    letter-spacing: -2px;
  }

  .deliverables {
    grid-template-columns: 1fr;
  }

  .problem {
    padding: 24px 18px;
  }
}
