/* WMC AI agent team: about page grid and per-service spotlight. Uses the site tokens from style.css. */
.ag-section { position: relative; }
.ag-head { text-align: center; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ag-head p { margin: 0; }

/* Human lead + summary */
.ag-lead { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; padding: 28px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(208,100,62,.14), rgba(23,18,13,.9) 45%, #0B0806);
  border: 1px solid rgba(224,215,199,.10); box-shadow: 0 30px 80px -40px rgba(208,100,62,.45); }
.ag-lead__photo { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: #17120D; }
.ag-lead__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-lead__label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--star-color); font-weight: 600; }
.ag-lead h3 { margin: 8px 0 2px; }
.ag-lead .ag-role { color: var(--accent-color); font-weight: 600; }
.ag-lead p { margin: 12px 0 0; }
.ag-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ag-stat { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 14px; background: rgba(0,0,0,.45); border: 1px solid rgba(224,215,199,.10); min-width: 120px; }
.ag-stat b { font-family: var(--heading-font); font-size: 22px; color: var(--primary); line-height: 1.2; }
.ag-stat span { font-size: 13px; color: var(--text-color); }

/* Grid of agents */
.ag-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ag-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #17120D 0%, #0B0806 100%); border: 1px solid rgba(224,215,199,.08);
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .35s, box-shadow .35s;
  opacity: 0; transform: translateY(18px); }
.ag-card.is-in { opacity: 1; transform: none; }
.ag-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; pointer-events: none;
  background-image: linear-gradient(rgba(224,215,199,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(224,215,199,.05) 1px, transparent 1px);
  background-size: 18px 18px; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.ag-card:hover { transform: translateY(-6px); border-color: rgba(208,100,62,.6); box-shadow: 0 24px 60px -30px rgba(208,100,62,.7); }
a.ag-card { color: inherit; text-decoration: none; }
.ag-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.ag-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .08em; color: var(--accent-color-7); }
.ag-card h3 { margin: 0; font-size: 22px; }
.ag-card .ag-role { color: var(--accent-color); font-weight: 600; font-size: 14px; margin-top: -8px; }
.ag-card p { margin: 0; font-size: 15px; line-height: 1.55; }
.ag-card__link { margin-top: auto; font-size: 14px; color: var(--primary); display: inline-flex; gap: 8px; align-items: center; }
.ag-card:hover .ag-card__link i { transform: translateX(4px); }
.ag-card__link i { transition: transform .25s; }

/* Avatar orb */
.ag-orb { --s: 58px; position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #3a2416, #120c08 70%); color: var(--star-color); font-size: calc(var(--s) * .38); isolation: isolate; }
.ag-orb::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, #D0643E, #E7A265, #E0D7C7, #D0643E);
  animation: ag-spin 7s linear infinite; }
.ag-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #3a2416, #120c08 70%); z-index: -1; }
.ag-orb i { position: relative; z-index: 1; }
.ag-orb--lg { --s: 120px; }
@keyframes ag-spin { to { transform: rotate(360deg); } }

/* Status pill */
.ag-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ag-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(208,100,62,.12); color: var(--star-color); border: 1px solid rgba(208,100,62,.3); }
.ag-pill--live { background: rgba(123,211,137,.10); color: #9BE3A6; border-color: rgba(123,211,137,.3); }
.ag-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; }
.ag-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: ag-ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ag-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* "Now working on" ticker */
.ag-now { display: flex; gap: 8px; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.55); border: 1px solid rgba(224,215,199,.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; color: var(--text-color); min-height: 58px; }
.ag-now b { color: var(--accent-color); font-weight: 600; flex: none; }
.ag-now [data-ag-tasks]::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent-color); animation: ag-blink 1s steps(1) infinite; }
@keyframes ag-blink { 50% { opacity: 0; } }

/* Service page spotlight */
.ag-spot { display: grid; grid-template-columns: 300px 1fr; gap: 0; border-radius: 28px; overflow: hidden; border: 1px solid rgba(224,215,199,.10);
  background: #0B0806; box-shadow: 0 40px 100px -50px rgba(208,100,62,.55); }
.ag-spot__id { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 24px; text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(208,100,62,.35), transparent 60%), linear-gradient(180deg, #1d140d, #0B0806); }
.ag-spot__id::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(224,215,199,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(224,215,199,.05) 1px, transparent 1px); background-size: 22px 22px; }
.ag-spot__id > * { position: relative; }
.ag-spot__id h3 { margin: 6px 0 0; font-size: 30px; }
.ag-spot__id .ag-role { color: var(--accent-color); font-weight: 600; }
.ag-spot__body { padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.ag-spot__body h2 { margin: 0; }
.ag-tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ag-tasks li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #17120D; border: 1px solid rgba(224,215,199,.06); font-size: 15px; line-height: 1.45; color: var(--primary); }
.ag-tasks li i { color: var(--accent-color); margin-top: 3px; }
.ag-human { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--text-color); }
.ag-human img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(208,100,62,.6); }
.ag-spot__foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 4px; }
.ag-spot__foot a { color: var(--accent-color); font-weight: 600; text-decoration: none; }

@media (max-width: 1199px) { .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .ag-spot { grid-template-columns: 1fr; }
  .ag-spot__body { padding: 28px 22px; }
}
@media (max-width: 767px) {
  .ag-lead { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .ag-lead__photo { max-width: 220px; }
  .ag-grid { grid-template-columns: 1fr; }
  .ag-tasks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-orb::before, .ag-dot::after, .ag-now [data-ag-tasks]::after { animation: none; }
  .ag-card { opacity: 1; transform: none; transition: none; }
}
