.consultant-scene { min-width: 0; min-height: 0; padding-block: clamp(8px, 2.5vh, 26px); display: flex; }
.consultant-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
  flex: 1;
  min-width: 0;
  border: 1px solid #383451;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 52%, #28234f, #10152a 62%, #0b1123);
}
.consultant-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 69% 62%, #7261cf55, transparent 54%),
    radial-gradient(circle at 1px 1px, #c8c0ff28 1px, transparent 1.5px) 0 0 / 25px 25px;
  animation: consultant-ambient 5s ease-in-out infinite alternate paused;
}
.is-playing .consultant-stage::before { animation-play-state: running; }
.consultant-media {
  grid-area: 1 / 2;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}
.consultant-placeholder {
  grid-area: 1 / 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 15px;
  min-height: 0;
}
.consultant-placeholder img { width: clamp(56px, 8vw, 105px); height: auto; filter: drop-shadow(0 0 32px #a798ff87); }
.consultant-placeholder p { font: 11px var(--mono); color: #d7cffd; letter-spacing: .14em; }
.consultant-media video { grid-area: 1 / 1; display: block; width: 100%; height: 100%; min-height: 0; background: transparent; object-fit: contain; object-position: center bottom; }
.consultant-placeholder, .consultant-media video { animation: consultant-enter .55s ease-out both; }
.is-ended .consultant-media video { animation: consultant-out .48s ease-out both; }
.consultant-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 45% 30%, #c4b2ff, transparent 68%);
  opacity: 0;
  animation: consultant-light .68s ease-out both;
}
.consultant-credit {
  grid-area: 2 / 1;
  position: relative;
  padding: clamp(12px, 2.3vw, 29px);
  animation: consultant-credit .55s .18s ease-out both;
}
.consultant-credit h2 { font-size: clamp(30px, 4.6vw, 65px); line-height: 1.03; }
.has-media .consultant-credit h2 { font-size: clamp(24px, 3vw, 42px); }
.consultant-credit p { color: #c2b8ec; margin-top: 6px; font-size: clamp(13px, 1.35vw, 19px); }
.consultant-copy { grid-area: 1 / 1; position: relative; align-self: center; min-width: 0; padding: clamp(14px, 3.1vw, 46px); }
.consultant-copy .eyebrow { margin-bottom: 10px; }
.consultant-network { display: block; width: 100%; max-height: min(24vh, 210px); overflow: visible; }
.consultant-links, .consultant-flow { fill: none; stroke: #9186de; stroke-width: 2; }
.consultant-flow { stroke: var(--cyan); stroke-width: 4; stroke-dasharray: 1 9; stroke-dashoffset: var(--consultant-flow-offset, 0); stroke-linecap: round; opacity: .65; }
.motion-off .consultant-flow { stroke-dashoffset: 0; }
.consultant-node rect { fill: #1a2341; stroke: #766da9; }
.consultant-node text, .consultant-core text { text-anchor: middle; fill: #e2e5fb; font: 600 14px "Segoe UI", sans-serif; }
.consultant-core circle { fill: #211d44; stroke: #a99ae8; }
.consultant-core circle:first-child { stroke-opacity: .38; }
.consultant-core text { font: 600 10px var(--mono); letter-spacing: 1px; }
.consultant-question {
  font-size: clamp(19px, 2.6vw, 35px);
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -.035em;
  margin-top: 12px;
  color: #eeeaff;
  animation: consultant-credit .5s .25s ease-out both;
}
.has-media:not(.has-finished) .consultant-question { visibility: hidden; animation: none; }
.consultant-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.consultant-status { color: #c8c1de; font-size: 13px; line-height: 1.4; }
.consultant-status:not(:empty) { margin-top: 9px; }
.consultant-transcript-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.consultant-transcript-heading h3 { font-size: clamp(16px, 4vw, 23px); }
@keyframes consultant-enter { from { opacity: 0; transform: translateX(9px); } to { opacity: 1; transform: translateX(0); } }
@keyframes consultant-out { from { opacity: 1; transform: translateY(0); } to { opacity: .55; transform: translateY(5px); } }
@keyframes consultant-light { 40% { opacity: .22; } }
@keyframes consultant-credit { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes consultant-ambient { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .consultant-flow { stroke-dashoffset: 0; }
}
@media (max-width: 760px) {
  .consultant-active { height: auto; min-height: 100svh; overflow: visible; }
  .consultant-stage { grid-template-columns: minmax(0, 1fr); border-radius: 13px; }
  .consultant-media { grid-area: 1 / 1; }
  .consultant-placeholder { min-height: clamp(150px, 30vw, 240px); }
  .consultant-media video { aspect-ratio: auto 16 / 9; height: auto; }
  [data-media-format="webm"] .consultant-media video { aspect-ratio: auto 1 / 1; }
  .consultant-credit { padding-inline: 16px; }
  .consultant-copy { grid-area: 2 / 1; padding: 14px 16px; }
  .consultant-network { max-height: 135px; }
  .consultant-question { margin-top: 7px; }
  .consultant-actions { margin-top: 10px; }
  .story-active .steps { gap: 2px; }
  .story-active .step { width: 12px; }
}
@media (min-width: 761px) and (max-height: 565px) {
  .consultant-copy { padding-block: 9px; }
  .consultant-network { max-height: 100px; }
  .consultant-copy .eyebrow, .consultant-question { margin-top: 4px; margin-bottom: 4px; }
  .consultant-question { font-size: clamp(18px, 2.5vw, 24px); }
  .consultant-actions { margin-top: 8px; }
}
@media (min-width: 761px) and (max-height: 450px) {
  .consultant-active .header-inner, .consultant-active .footer-inner { min-height: 54px; }
  .consultant-scene { padding-block: 6px; }
  .consultant-copy { padding: 8px 14px; }
  .consultant-network { max-height: 16vh; }
  .consultant-question { font-size: 18px; }
}
@media (max-width: 350px) {
  .story-active .footer-inner { flex-wrap: nowrap; }
  .story-active .counter { font-size: 11px; letter-spacing: .04em; }
  .story-active .progress, .story-active .controls { gap: 4px; }
  .story-active .step { width: 10px; }
  .story-active .controls .button { padding-inline: 6px; }
}
