.agent-preview {
  padding-top: 120px;
  padding-bottom: 120px;
}
.agent-preview-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}
.agent-preview-intro h2 {
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.065em;
  margin: 0;
}
.agent-preview-intro h2 span,
.agent-cinema-heading h1 span {
  color: #929fb8;
}
.agent-preview-intro p {
  max-width: 510px;
  color: #a2adc0;
  line-height: 1.7;
  margin: 24px 0 0;
}
.agent-preview-intro > a {
  white-space: nowrap;
  margin-bottom: 6px;
}
.agent-film {
  position: relative;
  border: 1px solid #35445f;
  border-radius: 20px;
  background: linear-gradient(125deg, #151e31, #0d111b 55%, #121a2c);
  box-shadow:
    0 30px 100px #0008,
    0 -20px 100px #315ceb12;
  overflow: hidden;
  text-align: left;
}
.agent-film:before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #91baff, transparent);
}
.film-top,
.film-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  color: #a3b0c7;
  font-size: 12px;
}
.film-top {
  border-bottom: 1px solid #ffffff0d;
}
.film-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d9e3f4;
  font-weight: 600;
}
.film-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(140deg, #2c4d8e, #121e38);
  box-shadow:
    inset 0 1px #9ec5ff5c,
    0 4px 14px #0004;
  color: #b4d2ff;
  font-size: 23px;
  flex: none;
}
.film-divider {
  color: #53617c;
  margin: 0 3px;
}
.film-selector {
  display: flex;
  gap: 8px;
  padding: 22px 28px 0;
}
.film-selector button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #7c8da9;
  font-size: 23px;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}
.film-selector button span {
  font-size: 14px;
  font-weight: 600;
}
.film-selector small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 4px;
  color: #a0aec4;
}
.film-selector button.is-active {
  border-color: #5275b345;
  background: #4267a51c;
  color: #c8dcff;
}
.film-scene {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  padding: 32px 36px 40px;
  min-height: 346px;
  align-items: center;
}
.film-scene[hidden] {
  display: none;
}
.film-source {
  background: #080d17;
  border: 1px solid #738db72b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px #0003;
  transform: perspective(1000px) rotateY(3deg);
}
.film-file {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid #ffffff0c;
  font-size: 12px;
  color: #c6d1e5;
}
.film-file > span {
  color: #71809c;
  font-size: 11px;
}
.film-source pre {
  font-size: clamp(10px, 1.05vw, 14px);
  line-height: 2.15;
  padding: 26px 20px;
  margin: 0;
  color: #b7c8e7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code-muted {
  color: #6e819f;
}
.code-violet {
  color: #b5a2ff;
}
.code-green {
  color: #8cdac0;
}
.film-source mark {
  display: block;
  background: #cd965414;
  color: #efbf84;
  border-left: 2px solid #dda563;
  margin: 5px -20px 0;
  padding: 3px 18px;
}
.film-run {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  padding: 16px 20px;
  border-top: 1px solid #ffffff0b;
  color: #d2a979;
}
.film-run > span:last-child {
  margin-left: auto;
  color: #8595b0;
}
.run-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #edb56f;
  flex: none;
}
.run-dot.blue {
  background: #80acff;
}
.film-agent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.film-agent > span:last-child {
  margin-left: auto;
  color: #8a9ab5;
  font-size: 10px;
}
.film-answer h3 {
  font-size: clamp(22px, 2.3vw, 32px);
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin: 22px 0 14px;
  color: #eef3ff;
}
.film-answer > p {
  color: #a7b5ce;
  line-height: 1.8;
  font-size: 13px;
  max-width: 430px;
}
.film-answer code {
  color: #bad4ff;
}
.film-hint {
  border-left: 2px solid #6c9eff;
  padding: 6px 0 6px 16px;
  font-size: 12px;
  color: #aabbd7;
  line-height: 1.7;
  margin-top: 24px;
}
.film-hint > span {
  display: block;
  color: #dbe8ff;
  font-weight: 600;
  margin-bottom: 5px;
}
.film-reference {
  font-size: 10px;
  color: #95b8f2;
  margin-top: 20px;
}
.film-reference span {
  color: #7486a5;
  margin-left: 10px;
}
.film-bottom {
  border-top: 1px solid #ffffff0a;
  color: #7e8da7;
  padding: 16px 28px;
  font-size: 10px;
}
.film-replay {
  font: inherit;
  color: #b5c6e3;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 5px;
}
.film-replay span {
  margin-left: 8px;
}
.film-replay:disabled {
  opacity: 0.5;
  cursor: default;
}
.film-note {
  padding: 28px;
}
.film-note > span {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #8598b9;
}
.film-note h3 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.035em;
  color: #e1eaff;
  margin: 16px 0;
}
.film-note p {
  font-size: 12px;
  color: #8d9ebc;
  line-height: 1.8;
}
.film-plan {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.film-plan span {
  padding: 10px;
  border: 1px solid #728dbd35;
  border-radius: 7px;
  color: #bccde9;
  font-size: 10px;
}
.film-plan i {
  color: #6c99e9;
  font-style: normal;
}
.agent-cinema-hero {
  padding-top: 100px;
  padding-bottom: 110px;
  position: relative;
}
.agent-cinema-heading {
  text-align: center;
  position: relative;
  padding-bottom: 60px;
}
.agent-cinema-heading:before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -100px -15% -250px;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 65%, #254eab30, transparent 63%);
}
.agent-cinema-heading h1 {
  font-size: clamp(48px, 7.6vw, 108px);
  letter-spacing: -0.075em;
  line-height: 1.04;
  margin: 25px 0;
}
.agent-cinema-heading > p {
  color: #9eacc4;
  font-size: 17px;
  line-height: 1.8;
}
.agent-cinema-heading .hero-actions {
  justify-content: center;
  margin-top: 26px;
}
.agent-identity {
  display: flex;
  justify-content: center;
  gap: 9px;
}
.agent-identity .film-mark {
  width: 46px;
  height: 46px;
  font-size: 30px;
  border-radius: 14px;
  transform: rotate(-9deg);
}
.agent-identity .architect-mark {
  transform: rotate(9deg);
  background: linear-gradient(140deg, #3d4681, #171c37);
}
.agent-cinema-hero .agent-film {
  max-width: 1100px;
  margin: auto;
}
.agent-profile {
  position: relative;
  padding-top: 110px;
  padding-bottom: 110px;
}
.agent-profile:before {
  content: "";
  position: absolute;
  left: 35%;
  right: -5%;
  top: 10%;
  bottom: 10%;
  background: radial-gradient(ellipse, #23478813, transparent 65%);
  pointer-events: none;
}
.agent-console,
.architecture-canvas {
  box-shadow: 0 24px 90px #0005;
  border-color: #43577655;
  background: linear-gradient(130deg, #151e30, #0c1019);
}
.agent-name {
  color: #a6c7ff;
}
.agent-boundaries {
  padding-bottom: 90px;
}
@media (min-width: 1100px) {
  .agent-cinema-hero .film-scene {
    padding: 45px;
    gap: 48px;
    min-height: 385px;
  }
  .agent-cinema-hero .film-source pre {
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  .agent-preview {
    padding-top: 75px;
    padding-bottom: 75px;
  }
  .agent-preview-intro {
    display: block;
  }
  .agent-preview-intro > a {
    display: inline-flex;
    margin-top: 24px;
  }
  .film-scene {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 26px;
    min-height: 0;
  }
  .film-source {
    transform: none;
  }
  .film-source pre {
    font-size: 12px;
  }
  .film-selector {
    padding: 16px 16px 0;
    gap: 2px;
  }
  .film-selector button {
    padding: 9px 12px;
    flex: 1;
  }
  .film-selector small {
    font-size: 10px;
  }
  .film-top {
    padding: 16px;
  }
  .film-example {
    font-size: 9px;
  }
  .film-bottom {
    padding: 14px 16px;
    gap: 10px;
  }
  .film-bottom > span {
    max-width: 160px;
    line-height: 1.6;
  }
  .film-agent > span:last-child {
    font-size: 9px;
  }
  .agent-cinema-hero {
    padding-top: 70px;
    padding-bottom: 60px;
  }
  .agent-cinema-heading > p {
    font-size: 14px;
  }
  .agent-cinema-heading > p br {
    display: none;
  }
  .agent-cinema-heading {
    padding-bottom: 40px;
  }
  .agent-profile {
    padding-top: 65px;
    padding-bottom: 65px;
  }
  .film-answer h3 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .film-source {
    transform: none;
  }
}

/* Keep atmospheric light inside the page's visual bounds. */
.agent-cinema-heading:before {
  left: 0;
  right: 0;
}
.agent-profile:before {
  right: 0;
}

.agent-video-showcase {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid #4d70a64a;
  border-radius: 18px;
  overflow: hidden;
  background: #0b111d;
  box-shadow:
    0 24px 100px #0006,
    0 -25px 100px #2862c812;
  text-align: left;
}
.agent-video-showcase video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #080c14;
}
.agent-video-showcase figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 24px;
  color: #8399b9;
  font-size: 11px;
  line-height: 1.7;
}
.agent-video-showcase figcaption > span:first-child {
  color: #bdd3f3;
}
.agent-video-transcript {
  padding: 0 24px 20px;
  font-size: 12px;
  color: #9caec9;
  line-height: 1.8;
}
.agent-video-transcript summary {
  cursor: pointer;
  color: #aec8f0;
}
.agent-video-transcript p {
  max-width: 840px;
}
@media (max-width: 600px) {
  .agent-video-showcase figcaption {
    display: block;
    padding: 14px 16px;
  }
  .agent-video-showcase figcaption span {
    display: block;
  }
  .agent-video-transcript {
    padding: 0 16px 16px;
  }
}
