/* AI Agent topic page. The portal navigation and footer remain shared. */
.personal-series .agent-hero {
  min-height: 560px;
  height: auto;
  max-height: none;
  padding: 148px 0 52px;
}
.agent-hero-content {
  position: relative;
  z-index: 1;
}
.agent-hero .hero-eyebrow {
  font: 11px var(--mono);
  letter-spacing: 2px;
  margin-bottom: 22px;
}
.agent-hero h1 {
  font-size: clamp(30px, 3.6vw, 50px);
  letter-spacing: -1px;
}
.agent-hero h1 span {
  color: #b5d9ee;
}
.agent-intro {
  max-width: 620px;
  color: #abb6cc;
  font-size: 14px;
  line-height: 2;
  margin-top: 22px;
}
.agent-count {
  margin-top: 32px;
  font: 18px var(--mono);
  color: #bdcfe5;
}
.agent-count span {
  font: 11px var(--body);
  margin-left: 6px;
}
.agent-count b {
  font-weight: 400;
  margin: 0 18px;
  opacity: 0.4;
}
.agent-hero .button-primary {
  background: #bddbea;
  color: #11283a;
}
.agent-hero .button:hover {
  transform: none;
  background: #ffffff22;
  color: white;
}
.agent-orbits {
  position: absolute;
  width: 450px;
  height: 450px;
  right: 4%;
  top: 105px;
  opacity: 0.55;
  pointer-events: none;
}
.agent-orbits i {
  position: absolute;
  inset: 25px;
  border: 1px solid #8faaca45;
  border-radius: 50%;
  transform: rotate(-32deg) scaleY(0.48);
}
.agent-orbits i:nth-child(2) {
  transform: rotate(36deg) scaleY(0.64);
  inset: 45px;
}
.agent-orbits i:nth-child(3) {
  transform: rotate(90deg) scaleY(0.65);
  inset: 65px;
}
.agent-orbits i::after {
  content: "";
  width: 5px;
  height: 5px;
  background: #b5ddff;
  box-shadow: 0 0 18px #89c4ff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: -3px;
}
.agent-orbits span {
  position: absolute;
  top: 49%;
  left: 39%;
  font: 10px var(--mono);
  letter-spacing: 3px;
  color: #9baecc;
}
.agent-path {
  padding-top: 64px;
  padding-bottom: 46px;
}
.agent-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.agent-section-heading .eyebrow {
  color: #647c91;
  font-size: 10px;
  margin-bottom: 12px;
}
.agent-section-heading h2 {
  font-size: 26px;
  font-weight: 500;
}
.agent-section-heading > p,
.agent-section-heading > a {
  font-size: 12px;
  color: var(--muted);
}
.agent-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}
.agent-steps li {
  position: relative;
}
.agent-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 44px;
  right: 0;
  top: 21px;
  height: 1px;
  background: #d6dee5;
}
.agent-steps a {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 12px;
  width: fit-content;
  position: relative;
  z-index: 1;
}
.step-number {
  display: grid;
  place-items: center;
  border: 1px solid #b7c8d5;
  border-radius: 50%;
  width: 43px;
  height: 43px;
  background: var(--paper);
  color: #56758d;
  font: 12px var(--mono);
  margin-bottom: 10px;
  transition: background 0.2s;
}
.agent-steps strong {
  font-size: 18px;
  font-weight: 500;
}
.agent-steps small {
  color: var(--muted);
  font-size: 12px;
}
.agent-steps a:hover .step-number {
  background: #dcebf3;
}
.agent-article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 36px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.agent-chapter {
  font: 50px var(--display);
  color: #a6b9c8;
  border-right: 1px solid var(--line);
}
.agent-chapter span {
  display: block;
  font: 9px var(--mono);
  letter-spacing: 2px;
  margin-top: 10px;
  color: #718295;
}
.agent-capability {
  font-size: 11px;
  color: #557891;
  margin-bottom: 10px;
}
.agent-article h2 {
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.55;
}
.agent-article h2 a:hover,
.agent-read:hover,
.agent-related a:hover {
  color: #3f799c;
}
.agent-article-desc {
  max-width: 800px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 16px;
}
.agent-article-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}
.agent-article-bottom p {
  font-size: 11px;
  color: #758496;
}
.agent-read {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  font-size: 12px;
  white-space: nowrap;
}
.agent-read span {
  transition: transform 0.2s;
}
.agent-read:hover span {
  transform: translate(2px, -2px);
}
.agent-related {
  padding-top: 48px;
  padding-bottom: 90px;
  border-top: 1px solid var(--line);
}
.agent-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.agent-related-grid > a {
  padding: 24px 0;
  border-top: 1px solid #bdccd7;
}
.agent-related-grid small {
  font-size: 11px;
  color: var(--muted);
}
.agent-related-grid h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  margin-top: 10px;
}
@media (max-width: 1100px) {
  .agent-orbits {
    right: -130px;
    opacity: 0.25;
  }
}
@media (max-width: 760px) {
  .personal-series .agent-hero {
    padding: 126px 0 40px;
    min-height: 0;
  }
  .agent-orbits {
    right: -260px;
    top: 110px;
    opacity: 0.18;
  }
  .agent-hero h1 {
    font-size: clamp(27px, 6.3vw, 40px);
    letter-spacing: -0.8px;
  }
  .agent-intro {
    font-size: 13px;
  }
  .agent-hero .hero-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .agent-hero .button {
    padding: 10px 14px;
    font-size: 12px;
    gap: 12px;
  }
  .agent-path {
    padding-top: 42px;
    padding-bottom: 24px;
  }
  .agent-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .agent-section-heading h2 {
    font-size: 24px;
  }
  .agent-steps {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }
  .agent-steps a {
    width: 100%;
    display: grid;
    grid-template-columns: 43px 54px 1fr;
    align-items: center;
    column-gap: 16px;
    padding-bottom: 22px;
  }
  .step-number {
    margin: 0;
  }
  .agent-steps li:not(:last-child)::after {
    width: 1px;
    height: auto;
    left: 21px;
    top: 43px;
    bottom: 0;
  }
  .agent-article {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
    padding: 32px 0;
  }
  .agent-chapter {
    font-size: 30px;
    border: 0;
  }
  .agent-chapter span {
    display: none;
  }
  .agent-article h2 {
    font-size: 20px;
  }
  .agent-article-desc {
    font-size: 13px;
  }
  .agent-article-bottom {
    flex-direction: column;
    align-items: start;
    gap: 6px;
    margin-top: 18px;
  }
  .agent-related {
    padding-top: 32px;
    padding-bottom: 48px;
  }
  .agent-related-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .agent-read span,
  .step-number {
    transition: none;
  }
  .agent-read:hover span {
    transform: none;
  }
}
