body {
  --top-container: var(--max);
  --top-container-narrow: 940px;
  --top-hero-copy: var(--top-container);
  --top-gutter: 32px;
}

.header-inner,
.hero-inner,
#top .section-inner,
#top .cta-inner,
.site-footer .footer-inner {
  width: min(var(--top-container), calc(100% - var(--top-gutter)));
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(58, 155, 220, 0.22), transparent 32%),
    radial-gradient(circle at 84% 22%, rgba(31, 111, 178, 0.18), transparent 30%),
    linear-gradient(135deg, #fff 0%, #eef5fb 52%, #e8f0f8 100%);
  border-bottom: 1px solid var(--border);
}

.hero:before {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -230px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(23, 42, 74, 0.06);
}

.hero-inner {
  position: relative;
  margin: 0 auto;
  padding: 74px 0 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy {
  width: 100%;
  max-width: var(--top-hero-copy);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(31, 111, 178, 0.10);
  color: var(--blue-dark);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.eyebrow:before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
}

.hero h1 {
  max-width: var(--top-hero-copy);
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.35rem, 4.2vw, 3.55rem);
  line-height: 1.25;
}

.hero-lead {
  max-width: var(--top-container-narrow);
  margin: 20px 0 0;
  color: #344253;
  font-size: 1.06rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 111, 178, 0.24);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(23, 42, 74, 0.08);
}

.hero-panel {
  width: 100%;
  max-width: var(--top-hero-copy);
  margin: 36px auto 0;
  padding: 28px;
  border: 1px solid rgba(219, 227, 236, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow2);
}

.hero-panel-title {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.6;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  position: relative;
  padding: 15px 15px 15px 42px;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  background: #f6f9fc;
  color: #344253;
  font-size: 0.98rem;
  line-height: 1.65;
}

.flow-list li:before {
  content: "";
  position: absolute;
  top: 23px;
  left: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 0 auto;
}

.problem-card {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.problem-card:before {
  content: "";
  display: block;
  width: 42px;
  height: 5px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--accent);
}

.problem-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.06rem;
  line-height: 1.48;
}

.problem-card p {
  margin: 0;
  color: var(--sub);
  font-size: 0.98rem;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}

.service-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(31, 111, 178, 0.10);
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 900;
}

.service-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.5;
}

.service-card p {
  margin: 0;
  color: var(--sub);
  font-size: 0.98rem;
  line-height: 1.75;
}

.philosophy {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 38px;
  align-items: stretch;
}

.philosophy-box {
  display: flex;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), #204b78);
  color: #fff;
  box-shadow: var(--shadow2);
}

.philosophy-box h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  line-height: 1.5;
}

.philosophy-text p {
  margin: 0 0 1em;
  color: #344253;
}

.philosophy-text p:last-of-type {
  margin-bottom: 0;
}

.quote-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.quote-list li {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.65;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 0 auto;
}

.work-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f7fafd;
}

.work-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.04rem;
  line-height: 1.5;
}

.work-card p {
  margin: 0;
  color: #344253;
  font-size: 0.96rem;
  line-height: 1.7;
}

.small-note {
  margin-top: 20px;
  color: #6d7a89;
  font-size: 0.9rem;
  line-height: 1.7;
}

#top .section-head {
  max-width: none;
}

#top .section-desc {
  max-width: var(--top-container-narrow);
}

#top .cta h2,
#top .cta p {
  max-width: var(--top-container-narrow);
}

@media (min-width: 1081px) {
  .works-grid .work-card:nth-child(4) {
    grid-column: 1 / 2;
  }

  .works-grid .work-card:nth-child(5) {
    grid-column: 2 / 3;
  }
}

@media (max-width: 1080px) {
  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-grid,
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    --top-gutter: 32px;
  }

  .hero-inner {
    padding: 46px 0 42px;
  }

  .hero-copy,
  .hero h1,
  .hero-lead,
  .hero-panel {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
  }

  .eyebrow {
    gap: 10px;
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.75;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-panel {
    margin-top: 28px;
    padding: 22px;
  }

  .flow-list,
  .problem-grid,
  .service-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .flow-list li {
    font-size: 0.98rem;
  }

  .problem-card,
  .service-card,
  .work-card {
    padding: 22px;
  }

  .problem-card {
    min-height: auto;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .service-num {
    width: 52px;
    height: 52px;
  }

  .philosophy-box {
    padding: 26px;
  }

  .quote-list li {
    font-size: 0.98rem;
  }
}
