.illustrated-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 1rem;
}
.illustrated-service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #b68a5159;
  border-radius: 1rem;
  background: #0e1b24;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.illustrated-service:hover, .illustrated-service:focus-visible { border-color: var(--champagne); background: #152631; color: inherit }
.illustrated-service:focus-visible { outline-offset: -4px }
.illustrated-service img, .service-feature img { display: block; width: 100%; height: auto; object-fit: cover }
.illustrated-service img { aspect-ratio: 16 / 10; height: auto; border-bottom: 1px solid #b68a5140 }
.illustrated-service > div { display: flex; flex: 1; flex-direction: column; padding: 1.2rem; gap: .55rem }
.illustrated-service h2 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.3rem; overflow-wrap: anywhere }
.illustrated-service h2 svg { width: 1.35rem; flex: 0 0 1.35rem; color: var(--champagne) }
.illustrated-service .prose { color: var(--muted); margin: 0 0 .4rem }
.service-more { margin-top: auto; color: var(--champagne); font-size: .9rem }
.service-more span { margin-left: .25rem }
.service-other { margin-top: 1rem }
.service-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.15rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.service-feature .page-heading { margin: 0 }
.service-feature h1 { font-size: clamp(2.5rem, 4.4vw, 4.3rem) }
.service-feature img { border: 1px solid #b68a5159; border-radius: 1rem; aspect-ratio: 3 / 2 }
.service-example { margin-top: clamp(1.4rem, 3vw, 2.4rem) }
.service-example ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem 1.75rem;
  padding-inline-start: 1.4rem;
  margin-block: 1.2rem 0;
}
.service-example li { padding-inline-start: .2rem }
.service-example li::marker { color: var(--champagne); font-weight: 700 }
.service-example h3 { font-size: 1.05rem; margin: 0 0 .35rem }
.service-example .button { margin-top: 1rem }
.agent-playground {
  margin-top: 1.5rem;
  padding: clamp(.85rem, 2.7vw, 1.9rem);
  border: 1px solid #b68a5180;
  border-radius: .9rem;
  background: radial-gradient(ellipse at 10% 0%, #203542 0%, transparent 55%), #0a151e;
  box-shadow: inset 0 1px #ecce9740, 0 1.4rem 3rem #0003;
}
.agent-masthead, .agent-review-header, .agent-editor-heading, .agent-approval {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem .85rem;
}
.agent-masthead { align-items: flex-start }
.agent-masthead h3 { font-size: clamp(1.45rem, 3vw, 2.25rem) }
.agent-masthead p { margin: 0; max-width: 54ch }
.agent-masthead > span, #agent-category, #agent-review-state {
  padding: .25rem .65rem;
  border: 1px solid #c59f6869;
  border-radius: 2rem;
  color: #f2d6ad;
  font-size: .8rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.service-example .agent-stages {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .4rem;
  margin-block: 1.25rem;
  padding: 0;
  list-style: none;
}
.agent-stages li {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
  padding: .65rem;
  border: 1px solid #ffffff2c;
  border-radius: .5rem;
  background: #101d27;
  color: #c5d2db;
  font-size: clamp(.79rem, 1.2vw, .94rem);
  line-height: 1.3;
  transition: background .2s ease, border-color .2s ease;
}
.agent-stages svg, .agent-message > svg { width: 1.1rem; height: 1.1rem; flex: 0 0 1.1rem }
.agent-stages [aria-current="step"] { border-color: #d4ad77; background: #322b22; color: #fce0b4 }
.agent-stages .is-complete { border-color: #679c84; color: #bbdfcd }
.agent-stages [aria-current="step"].is-complete { background: #1e362f; color: #ddf6e7 }
.agent-workspace { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1rem; align-items: start }
.agent-controls { display: grid; gap: .65rem; min-width: 0 }
.agent-controls .button { justify-self: start; margin: 0 }
.agent-controls select, .agent-playground textarea { display: block; margin-top: .35rem }
.agent-message, .agent-analysis > div, .agent-editor {
  padding: .85rem 1rem;
  border: 1px solid #ffffff20;
  border-radius: .55rem;
  background: #162732;
}
.agent-message { display: flex; align-items: start; gap: .65rem }
.agent-message > svg { margin-top: .22rem; color: var(--champagne) }
.agent-message p { min-width: 0; margin: 0 }
.agent-message strong, .agent-analysis dt { display: block; margin-bottom: .25rem; color: var(--champagne); font-weight: 650 }
#agent-review { margin-top: 1.25rem; animation: agent-reveal .28s ease-out both }
#agent-review-title { margin: 0; font: 500 clamp(1.2rem, 2vw, 1.6rem)/1.2 var(--heading) }
.agent-analysis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .65rem; margin-block: .65rem 1rem }
.agent-analysis dd { margin: 0; color: #cfd8e0 }
.agent-editor { background: #10202a }
.agent-editor label { font-weight: 650 }
.agent-editor .button { margin: 0 }
.agent-approval { justify-content: flex-start; margin-top: .75rem }
.agent-playground button:disabled { opacity: .55; cursor: default }
.agent-playground .agent-result { margin: 0; color: #d5ead7 }
@keyframes agent-reveal {
  from { opacity: 0; transform: translateY(.35rem) }
  to { opacity: 1; transform: translateY(0) }
}
@media (max-width: 680px) {
  .service-feature { grid-template-columns: minmax(0, 1fr) }
  .service-feature h1 { font-size: clamp(2.2rem, 9vw, 3.15rem) }
  .service-example .agent-stages { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .agent-workspace { grid-template-columns: minmax(0, 1fr) }
}
@media (prefers-reduced-motion: reduce) {
  .illustrated-service, .agent-stages li { transition: none }
  #agent-review { animation: none }
}
