.service-grid article {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 198, 0, 0.055), transparent 42%),
    var(--card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-grid { align-items: start; }

.service-grid article::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -72px;
  width: 155px;
  height: 155px;
  border: 1px solid rgba(255, 198, 0, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.service-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 198, 0, 0.5);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

.service-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 198, 0, 0.38);
  border-radius: 12px;
  background: rgba(255, 198, 0, 0.08);
  color: var(--brand-amber);
  font: 800 0.78rem/1 ui-sans-serif, system-ui, sans-serif;
}

.service-grid .number {
  position: absolute;
  top: 27px;
  right: 28px;
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.service-grid h3 { margin-top: 4px; }
.service-fit {
  margin: 4px 0 22px;
  padding-left: 12px;
  border-left: 2px solid var(--brand-amber);
  color: var(--brand-green);
  font-size: 0.84rem;
  font-weight: 750;
}

.service-scope {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.service-scope summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 2px;
  color: var(--brand-green);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.service-scope summary::-webkit-details-marker { display: none; }
.service-scope summary span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 198, 0, 0.32);
  border-radius: 50%;
  background: var(--brand-sage);
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}
.service-scope[open] summary span { transform: rotate(45deg); }

.scope-content { padding: 18px 0 4px; }
.scope-value {
  margin: 0 0 20px;
  padding: 16px;
  border-radius: 14px;
  background: var(--brand-sage);
  color: var(--brand-text);
  font-size: 0.9rem;
}
.scope-content h4 { margin: 0 0 10px; font-size: 0.88rem; }
.scope-content ul { margin: 0; padding-left: 19px; color: var(--brand-muted); font-size: 0.86rem; }
.scope-content li + li { margin-top: 6px; }
.scope-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.scope-meta p { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 0.83rem; }
.scope-meta span { display: block; margin-bottom: 3px; color: var(--brand-muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.scope-meta strong { color: var(--brand-green); font-size: 1.08rem; }
.scope-note { margin: 13px 0 0; color: var(--brand-muted); font-size: 0.74rem; }
.scope-action { display: inline-block; margin-top: 16px; color: var(--brand-green); font-size: 0.84rem; font-weight: 850; text-decoration: none; }
.scope-action:hover { text-decoration: underline; text-underline-offset: 4px; }

.project {
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-amber), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project:hover {
  border-color: rgba(255, 198, 0, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.project:hover::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .service-grid article,
  .project { transition: none; }
  .service-grid article:hover { transform: none; }
}

@media (max-width: 420px) {
  .scope-meta { grid-template-columns: 1fr; }
}
