/* ============ VERIDIS — AGENT TEAM COMPONENTS ============
   Components introduced with the team reframing — agent marks,
   roster grid, full-bleed agent strips, status pills.
   Loaded after base.css so it inherits all tokens.
   ========================================================= */

/* ---------- Agent mark ---------- */
.agent-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 3px;
  flex-shrink: 0;
  position: relative;
}
.agent-mark img, .agent-mark svg { width: 100%; height: 100%; display: block; }
.agent-mark--lg { width: 88px; height: 88px; }
.agent-mark--xl { width: 200px; height: 200px; }
.agent-mark--sm { width: 32px; height: 32px; }

/* ---------- Status pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill--available { background: var(--bronze); color: var(--ink); }
.pill--soon {
  background: rgba(160, 112, 59, 0.10);
  color: var(--bronze-deep);
  border-color: rgba(160, 112, 59, 0.32);
}
.pill--soon-dark {
  background: transparent;
  color: var(--bronze);
  border-color: rgba(160, 112, 59, 0.45);
}
.pill--ghost {
  background: transparent;
  color: rgba(237, 232, 220, 0.55);
  border-color: rgba(237, 232, 220, 0.32);
  border-style: dashed;
}

/* ---------- Hero roster grid (3×2) ---------- */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.roster-cell {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(237, 232, 220, 0.16);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 232, 220, 0.5);
  position: relative;
  overflow: hidden;
}
.roster-cell--filled { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.roster-cell--ink { background: var(--ink-soft); color: var(--bone); }
.roster-cell--ghost { border-style: dashed; }
.roster-cell .cell-letter {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: none;
  color: inherit;
}
.roster-cell--filled .cell-letter { color: var(--ink); }
.roster-cell--ink .cell-letter { color: var(--bone); }
.roster-cell--ghost .cell-letter { color: rgba(237, 232, 220, 0.32); }
.roster-cell .cell-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.roster-cell .cell-accent { color: var(--bronze); }

@media (max-width: 760px) {
  .roster-grid { gap: 6px; }
  .roster-cell {
    padding: clamp(8px, 2vw, 16px);
    letter-spacing: 0.1em;
  }
  .roster-cell .cell-letter { font-size: clamp(36px, 8vw, 56px); }
  .roster-cell .cell-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* ---------- Agent strip (full-bleed) ---------- */
.agent-strip {
  padding: 88px 0;
  border-top: 1px solid var(--rule);
}
.agent-strip--dark {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink-deep);
}
.agent-strip--ghost {
  background: var(--ink);
  color: var(--bone);
  border-top: 1px dashed rgba(237, 232, 220, 0.18);
  padding: 72px 0;
}
.agent-strip__inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.agent-strip__id {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agent-strip__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 24px 0 4px;
  color: inherit;
}
.agent-strip--ghost .agent-strip__name {
  font-size: 40px;
  color: rgba(237, 232, 220, 0.55);
  letter-spacing: 0.6em;
}
.agent-strip__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-deep);
}
.agent-strip--dark .agent-strip__role,
.agent-strip--ghost .agent-strip__role {
  color: var(--bronze);
}
.agent-strip__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 26ch;
  margin: 0;
}
.agent-strip--dark .agent-strip__quote { color: var(--bone); }
.agent-strip--ghost .agent-strip__quote {
  color: rgba(237, 232, 220, 0.62);
  font-size: 22px;
  max-width: 40ch;
}

.agent-strip__caps {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}
.agent-strip__cap-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 6px;
}
.agent-strip--dark .agent-strip__cap-num { color: var(--bronze); }
.agent-strip__cap-body {
  font-size: 14px;
  color: rgba(19, 21, 26, 0.78);
  line-height: 1.55;
  margin: 0;
}
.agent-strip--dark .agent-strip__cap-body { color: rgba(237, 232, 220, 0.7); }

@media (max-width: 880px) {
  .agent-strip { padding: 56px 0; }
  .agent-strip__inner { grid-template-columns: 1fr; gap: 32px; }
  .agent-strip__caps { grid-template-columns: 1fr; }
  .agent-strip__name { font-size: 44px; }
}

/* ---------- Per-agent pricing row ---------- */
.agent-price {
  display: grid;
  grid-template-columns: 88px 1.4fr 1fr 180px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.agent-price:last-child { border-bottom: 1px solid var(--rule); }
.agent-price--ghost { color: var(--muted-soft); }
.agent-price__name {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
}
.agent-price--ghost .agent-price__name { color: var(--muted-soft); letter-spacing: 0.6em; font-size: 22px; }
.agent-price__role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-top: 6px;
}
.agent-price__body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--char);
  max-width: 36ch;
  margin: 0;
}
.agent-price--ghost .agent-price__body { color: var(--muted-soft); }
.agent-price__amount {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-align: right;
}
.agent-price__amount small {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
  font-weight: 400;
}
.agent-price--ghost .agent-price__amount { color: var(--muted-soft); }

.agent-price__amount.agent-price__amount--soft {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  text-align: right;
  line-height: 1.4;
}
.agent-price__amount.agent-price__amount--soft em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-top: 6px;
}
.agent-price--ghost .agent-price__amount.agent-price__amount--soft { color: var(--muted-soft); }

@media (max-width: 760px) {
  .agent-price {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    row-gap: 12px;
  }
  .agent-price > .agent-mark { grid-row: 1 / 3; }
  .agent-price__amount { text-align: left; grid-column: 2; }
}

/* ---------- Role rotator (cycles future-agent titles in the 003 cell) ---------- */
.role-rotator {
  display: inline-grid;
  grid-template-areas: "stack";
  vertical-align: bottom;
}
.role-rotator > span {
  grid-area: stack;
  opacity: 0;
  animation: roleRotate 12s infinite;
}
.role-rotator > span:nth-child(1) { animation-delay: 0s; }
.role-rotator > span:nth-child(2) { animation-delay: 3s; }
.role-rotator > span:nth-child(3) { animation-delay: 6s; }
.role-rotator > span:nth-child(4) { animation-delay: 9s; }
@keyframes roleRotate {
  0%, 22% { opacity: 1; }
  25%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .role-rotator > span { animation: none; opacity: 0; }
  .role-rotator > span:first-child { opacity: 1; }
}
