.page-services main { background: var(--paper); }

.services-hero {
  position: relative;
  padding: 168px 0 70px;
  overflow: hidden;
}
.services-hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 90% 14%, rgba(0,168,121,.14), transparent 36%),
    radial-gradient(circle at 6% 86%, rgba(95,143,232,.09), transparent 42%),
    linear-gradient(180deg, var(--white), var(--paper) 64%);
}
.services-hero-inner { position: relative; z-index: 1; }
.services-hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  margin: 16px 0 22px;
  letter-spacing: -.015em;
}
.services-hero-lead {
  max-width: none;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--soft-ink);
}

.services-section { padding: 36px 0 96px; }
.services-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}

.bento-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .28s var(--ease), border-color .28s, box-shadow .28s;
}

.bento-cell::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .42s var(--ease);
}
.bento-cell:hover {
  transform: translateY(-6px);
  border-color: rgba(0,168,121,.34);
  box-shadow: var(--shadow-sm);
}
.bento-cell:hover::before { transform: scaleX(1); }

.bento-cell:nth-child(3n+2)::before { background: var(--blue); }
.bento-cell:nth-child(3n+2):hover  { border-color: rgba(95,143,232,.4); }
.bento-cell:nth-child(3n+3)::before { background: var(--rose); }
.bento-cell:nth-child(3n+3):hover  { border-color: rgba(217,111,101,.4); }

.bento-cell-feature {
  grid-column: span 2;
  grid-row: span 2;
  padding: 44px 42px 46px;
  background:
    radial-gradient(circle at 88% 12%, rgba(54,208,170,.16), transparent 42%),
    linear-gradient(160deg, var(--white), var(--paper-2));
}
.bento-cell-feature::before { height: 4px; }
.bento-cell-feature .bento-title { font-size: clamp(26px, 3vw, 38px); }
.bento-cell-feature .bento-sub  { font-size: 17px; }
.bento-cell-feature .bento-text { font-size: 17px; max-width: 30em; }
.bento-cell-feature .bento-icon { width: 60px; height: 60px; margin-bottom: 28px; }
.bento-cell-feature .bento-icon svg { width: 30px; height: 30px; }

.bento-icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; margin-bottom: 24px;
  color: var(--teal-deep);
  border: 1px solid rgba(0,168,121,.26);
  border-radius: 13px;
  background: rgba(0,168,121,.06);
}
.bento-icon svg { width: 25px; height: 25px; }

.bento-cell:nth-child(3n+2) .bento-icon { color: var(--blue); border-color: rgba(95,143,232,.3); background: rgba(95,143,232,.07); }
.bento-cell:nth-child(3n+3) .bento-icon { color: var(--rose); border-color: rgba(217,111,101,.3); background: rgba(217,111,101,.07); }

.bento-copy { display: flex; flex-direction: column; flex: 1; }
.bento-title { font-size: 21px; line-height: 1.25; margin-bottom: 6px; }
.bento-sub {
  font-size: 14px; font-weight: 600; color: var(--teal-deep);
  margin-bottom: 14px;
}
.bento-cell:nth-child(3n+2) .bento-sub { color: var(--blue); }
.bento-cell:nth-child(3n+3) .bento-sub { color: var(--rose); }
.bento-text { color: var(--soft-ink); font-size: 15px; }

.services-bento .reveal:nth-child(2) { transition-delay: 60ms; }
.services-bento .reveal:nth-child(3) { transition-delay: 120ms; }
.services-bento .reveal:nth-child(4) { transition-delay: 180ms; }
.services-bento .reveal:nth-child(5) { transition-delay: 240ms; }
.services-bento .reveal:nth-child(6) { transition-delay: 300ms; }

.services-cta {
  position: relative;
  padding: 92px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 30%, rgba(95,143,232,.12), transparent 40%),
    linear-gradient(90deg, var(--paper-2), var(--white));
  border-top: 1px solid var(--line);
}
.services-cta-inner { max-width: 700px; margin: 0; }
.services-cta h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.1; }
.services-cta p { margin: 18px 0 30px; color: var(--soft-ink); font-size: clamp(17px, 2vw, 20px); }

@media (max-width: 1024px) {
  .services-bento { grid-template-columns: repeat(2, 1fr); }
  .bento-cell-feature { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 768px) {
  .services-hero { padding: 130px 0 52px; }
  .bento-cell-feature { padding: 36px 30px; }
}
@media (max-width: 560px) {
  .services-bento { grid-template-columns: 1fr; }
  .bento-cell-feature { grid-column: span 1; }
  .services-section { padding: 24px 0 64px; }
  .services-cta { padding: 64px 0; }
}
