.immersive .agent-section {
  background: #fff;
}
.agent-explorer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #dfe1e4;
  border-radius: 8px;
  overflow: hidden;
  transition: grid-template-columns 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.agent-explorer.has-selection {
  grid-template-columns: 1.08fr 1fr;
}
.agent-stage {
  min-width: 0;
  position: relative;
  background: #f6f6f4;
  min-height: 630px;
}
.agent-overview {
  position: absolute;
  inset: 0;
  background: #181b20;
  color: #fff;
}
.agent-overview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.52);
}
.agent-overview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 10%, #0c1118c9);
}
.agent-overview-copy {
  position: absolute;
  z-index: 1;
  bottom: 42px;
  left: 38px;
  right: 38px;
}
.agent-overview-copy .eyebrow {
  color: #c3ccd7;
  margin-bottom: 24px;
}
.agent-overview-copy h3 {
  font-size: clamp(32px, 3.5vw, 54px);
  line-height: 1.08;
}
.agent-overview-copy > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.6;
  max-width: 260px;
  color: #d0d5dd;
  margin-top: 24px;
}
.agent-overview-copy > span {
  display: block;
  font-size: 26px;
  margin-top: 28px;
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 1fr);
}
.agent-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  min-height: 210px;
  padding: 26px 20px 22px;
  border: 0;
  border-left: 1px solid #dfe1e4;
  border-bottom: 1px solid #dfe1e4;
  color: #202327;
  background: #fdfdfd;
  transition: background 0.25s;
}
.agent-tile:nth-child(n + 7) {
  border-bottom: 0;
}
.agent-tile > .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 20px;
  color: #353b44;
}
.agent-name {
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.4;
}
.agent-plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  border-radius: 4px;
  font-size: 23px;
  line-height: 1;
  margin-top: auto;
  background: #eee;
  color: #343c46;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.35s;
}
.agent-tile:hover {
  background: #f1f3f6;
}
.agent-tile[aria-expanded="true"] {
  background: #eaf0f6;
}
.agent-tile[aria-expanded="true"] .agent-plus {
  background: #233143;
  color: #fff;
  transform: rotate(45deg);
}
.agent-tile:focus-visible {
  z-index: 2;
  outline: 2px solid #607d9d;
  outline-offset: -4px;
}
.agent-detail {
  position: relative;
  padding: 28px 34px;
  min-height: 630px;
  background: #f6f6f4;
}
.agent-detail.is-entering {
  animation: agent-reveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.agent-detail.is-auto.is-entering {
  animation-duration: 0.7s;
}
.agent-detail {
  transition: opacity 0.35s ease;
}
.agent-detail.is-leaving {
  opacity: 0;
}
.agent-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.agent-detail-top .eyebrow {
  font-size: 9px;
  color: #6b7889;
}
.agent-close {
  border: 1px solid #d8dce1;
  background: transparent;
  color: #626e7d;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  flex-shrink: 0;
}
.agent-detail h3 {
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.12;
  max-width: 470px;
}
.agent-description {
  color: #6a717a;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 18px;
  max-width: 490px;
}
.agent-detail-visual {
  margin-top: 24px;
  border: 1px solid #d9dfe7;
  border-radius: 5px;
  overflow: hidden;
  height: 180px;
  background: #fff;
}
.agent-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.agent-process {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.agent-process > div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  border-top: 1px solid #dce0e5;
  padding-top: 12px;
}
.agent-process span {
  font-size: 10px;
  color: #738194;
  line-height: 1.5;
}
.agent-process p {
  font-size: 12px;
  color: #3d4754;
  line-height: 1.5;
}
.agent-detail .agent-cta {
  margin-top: 25px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.agent-example-note {
  margin-top: 16px;
  font-size: 9px;
  color: #818b98;
}
.agent-section-note {
  color: #757d89;
  font-size: 12px;
  max-width: 620px;
  margin-top: 24px;
}
.agent-detail .homepage-text-reveal,
.agent-tile .homepage-text-reveal {
  opacity: 1 !important;
  clip-path: none !important;
}
@keyframes agent-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1100px) {
  .agent-tile {
    padding: 22px 14px;
  }
  .agent-name {
    font-size: 13px;
  }
  .agent-detail {
    padding-inline: 24px;
  }
}
@media (max-width: 800px) {
  .agent-explorer,
  .agent-explorer.has-selection {
    grid-template-columns: 1fr;
  }
  .agent-stage {
    min-height: 350px;
  }
  .agent-overview-copy {
    bottom: 28px;
    left: 26px;
    right: 26px;
  }
  .agent-overview-copy h3 {
    font-size: 38px;
  }
  .agent-overview-copy > p:not(.eyebrow) {
    margin-top: 18px;
  }
  .agent-overview-copy > span {
    display: none;
  }
  .agent-grid {
    border-top: 1px solid #dfe1e4;
  }
  .agent-tile {
    min-height: 150px;
  }
  .agent-tile:nth-child(3n + 1) {
    border-left: 0;
  }
  .agent-detail {
    min-height: 0;
    padding: 24px;
  }
  .agent-detail h3 {
    font-size: 32px;
  }
  .agent-detail-visual {
    height: 170px;
  }
}
@media (max-width: 380px) {
  .agent-tile {
    padding: 18px 10px;
    min-height: 145px;
  }
  .agent-name {
    font-size: 12px;
  }
  .agent-process > div {
    grid-template-columns: 70px 1fr;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .agent-explorer,
  .agent-tile,
  .agent-plus {
    transition: none;
  }
  .agent-detail.is-entering {
    animation: none;
  }
}

/* Five examples and an open-ended sixth tile share one stable preview frame. */
.agent-stage {
  height: 720px;
  min-height: 0;
}
.agent-grid {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.agent-tile {
  min-height: 0;
}
.agent-tile:nth-child(n + 4) {
  border-bottom: 0;
}
.agent-benefit {
  display: block;
  font-size: 11px;
  color: #79828e;
  margin-top: 12px;
  line-height: 1.6;
  max-width: 150px;
}
.agent-more-description {
  display: block;
  margin-top: 20px;
  color: #79828e;
  font-size: 11px;
  line-height: 1.65;
}
.agent-tile[data-agent="more"] {
  background: #f0f2f5;
}
.agent-tile[data-agent="more"] .agent-name {
  font-size: 22px;
}
.agent-tile[data-agent="more"][aria-expanded="true"] {
  background: #e5ecf4;
}
.agent-detail {
  height: 720px;
  min-height: 0;
  padding: 26px 30px;
  display: grid;
  grid-template-rows: 30px 78px 60px var(--agent-preview-height, 246px) 90px;
  gap: 12px;
  align-content: space-between;
}
.agent-detail-top,
.agent-description,
.agent-detail .agent-cta,
.agent-example-note {
  margin: 0;
}
.agent-detail h3 {
  font-size: clamp(28px, 2.55vw, 36px);
  line-height: 1.08;
  margin: 0;
  align-self: center;
}
.agent-description {
  font-size: 12px;
  line-height: 1.65;
}
.agent-studio {
  border: 1px solid #d5dce5;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px #2331430a;
  min-width: 0;
}
.studio-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  border-bottom: 1px solid #e6eaf0;
  padding: 0 13px;
  font-size: 10px;
}
.studio-bar > b {
  font-weight: 500;
}
.studio-logo {
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #26374d;
  color: #fff;
  width: 19px;
  height: 19px;
  font-size: 14px;
  font-weight: 600;
}
.studio-example {
  margin-left: auto;
  color: #8691a0;
  font-size: 8px;
}
.studio-body {
  padding: 14px;
  font-size: 10px;
  color: #384454;
}
.studio-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 8px;
  color: #8490a0;
  letter-spacing: 0.04em;
}
.studio-badge {
  display: inline-block;
  background: #edf2f8;
  color: #4e6989;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 8px;
  letter-spacing: 0;
  white-space: nowrap;
}
.studio-body b {
  font-weight: 500;
}
.studio-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 10px;
}
.studio-body th {
  text-align: left;
  font-weight: 400;
  font-size: 8px;
  color: #8b96a4;
  padding: 6px 4px;
  background: #f7f9fb;
}
.studio-body td {
  padding: 8px 4px;
  border-bottom: 1px solid #edf0f4;
}
.studio-body th:last-child,
.studio-body td:last-child {
  text-align: right;
}
.studio-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  font-size: 8px;
  color: #8a95a2;
}
.studio-bottom b {
  color: #4f6987;
  font-size: 9px;
}
.studio-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.studio-drawing {
  padding: 7px;
  background: #f5f7fa;
  border: 1px solid #e4e9f0;
  border-radius: 4px;
}
.studio-drawing svg {
  width: 100%;
  height: 87px;
  fill: none;
  stroke: #7c90a9;
  stroke-width: 1.2;
}
.studio-drawing circle {
  stroke: #2f536f;
  stroke-dasharray: 3 2;
}
.studio-drawing span {
  display: block;
  text-align: center;
  font-size: 7px;
  color: #8a96a4;
}
.studio-match {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.studio-match > small {
  font-size: 7px;
  color: #8b96a4;
}
.studio-match > b {
  font-size: 15px;
}
.studio-match > span {
  font-size: 8px;
  color: #8b96a4;
}
.studio-match > strong {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.studio-match strong small {
  font-size: 9px;
  color: #8692a0;
  letter-spacing: 0;
}
.studio-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 12px;
  font-size: 14px;
}
.studio-route > span {
  font-size: 10px;
  color: #a3afbf;
}
.studio-totals {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}
.studio-totals > span {
  font-size: 8px;
  color: #8290a0;
}
.studio-totals b {
  display: block;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: #2e4159;
  margin-top: 4px;
}
.studio-document,
.studio-job {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.studio-document div > span,
.studio-job div > span {
  display: block;
  font-size: 8px;
  color: #8b96a4;
  margin-top: 5px;
}
.studio-file {
  font-size: 8px;
  padding: 10px 6px;
  border: 1px solid #d8e0e9;
  border-radius: 3px;
  color: #637993;
}
.studio-tick {
  margin-left: auto;
  color: #526d8d;
}
.studio-recovery {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #e1e7ef;
  background: #f4f7fa;
  border-radius: 4px;
}
.studio-recovery small {
  font-size: 7px;
  color: #8996a5;
}
.studio-recovery b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: #38516d;
}
.studio-recovery > span {
  font-size: 8px;
  line-height: 1.7;
  color: #7a899b;
}
.studio-chart > span {
  font-size: 9px;
  color: #7f8c9c;
}
.studio-chart svg {
  display: block;
  width: 100%;
  height: 78px;
  margin-top: 10px;
  fill: none;
  stroke: #637f9f;
  stroke-width: 1.5;
}
.studio-chart .chart-guide {
  stroke: #e1e8ef;
  stroke-dasharray: 3 3;
}
.studio-chart circle {
  fill: #fff;
}
.studio-job {
  margin-top: 18px;
  margin-bottom: 0;
  background: #f4f7fa;
  padding: 10px;
  border-radius: 4px;
}
.studio-job .studio-tick {
  margin-left: 0;
}
.studio-opportunities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.studio-opportunities span {
  padding: 12px 9px;
  border: 1px solid #e1e7ef;
  border-radius: 4px;
  font-size: 10px;
}
.studio-opportunities span:last-child {
  border-style: dashed;
  background: #f0f4f8;
  color: #506b8b;
}
.agent-impact {
  border-top: 1px solid #dce2e9;
  border-bottom: 1px solid #dce2e9;
  padding: 12px 0;
}
.agent-impact .eyebrow {
  display: block;
  color: #5e748f;
  font-size: 8px;
  margin-bottom: 8px;
}
.agent-impact p {
  font-size: 12px;
  line-height: 1.55;
  color: #394b61;
}
.agent-detail.is-entering .studio-body {
  animation: agent-studio-in 0.55s ease both;
}
.agent-detail.is-entering .studio-badge {
  animation: agent-studio-in 0.45s 0.18s ease both;
}
@keyframes agent-studio-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .agent-detail {
    padding-inline: 20px;
  }
  .agent-detail h3 {
    font-size: 28px;
  }
  .agent-description {
    font-size: 11px;
  }
  .agent-impact p {
    font-size: 11px;
  }
  .studio-body {
    padding: 12px;
  }
  .studio-route {
    font-size: 11px;
  }
}
@media (max-width: 800px) {
  .agent-stage {
    height: 400px;
  }
  .has-selection .agent-stage {
    height: 820px;
  }
  .agent-detail {
    height: 820px;
    padding: 22px;
    grid-template-rows: 30px 100px 86px var(--agent-preview-height, 246px) 108px;
    gap: 8px;
  }
  .agent-detail h3 {
    font-size: 30px;
  }
  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
  }
  .agent-grid .agent-tile {
    min-height: 210px;
    border-left: 1px solid #dfe1e4;
    border-bottom: 1px solid #dfe1e4;
  }
  .agent-grid .agent-tile:nth-child(odd) {
    border-left: 0;
  }
  .agent-grid .agent-tile:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .agent-more-description {
    margin-bottom: 20px;
  }
  .agent-benefit {
    font-size: 10px;
  }
  .agent-tile[data-agent="more"] .agent-name {
    font-size: 17px;
  }
  .agent-impact p {
    font-size: 12px;
  }
  .agent-section-note {
    font-size: 11px;
  }
}
@media (max-width: 380px) {
  .agent-detail {
    padding-inline: 18px;
  }
  .agent-detail h3 {
    font-size: 28px;
  }
  .studio-body {
    padding: 10px;
  }
  .studio-context {
    font-size: 7px;
    gap: 3px;
  }
  .studio-badge {
    font-size: 7px;
    padding: 4px;
  }
  .studio-route {
    font-size: 10px;
  }
  .studio-body table {
    font-size: 9px;
  }
  .studio-opportunities span {
    font-size: 9px;
  }
  .studio-bottom {
    font-size: 7px;
  }
  .studio-bottom b {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .agent-detail.is-entering .studio-body,
  .agent-detail.is-entering .studio-badge {
    animation: none;
  }
}
/* Keep every example comfortably inside the same preview dimensions. */
.studio-body { padding: 10px 14px; }
.studio-context { margin-bottom: 10px; }
.studio-body td { padding-block: 6px; }
.studio-recovery { margin-top: 8px; padding: 6px 10px; }
.studio-bottom { padding-top: 8px; }
.studio-chart svg { height: 110px; margin-top: 6px; }
.studio-chart path { vector-effect: non-scaling-stroke; }
.studio-job { margin-top: 12px; padding: 8px 10px; }
@media (max-width: 380px) {
  .studio-body { padding-inline: 10px; }
  .studio-body table { font-size: 8px; }
  .studio-body td { padding: 5px 2px; }
  .studio-body th { font-size: 7px; padding-inline: 2px; }
  .studio-recovery b { font-size: 20px; }
  .studio-bottom { gap: 5px; }
}

.agent-detail[data-agent="maintenance"] { --agent-preview-height: 280px; }
