.ai-room {
  --room-accent: #97dfca;
  background-color: #10191b;
  color: #f1f5ef;
}

.ai-room-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
}

.ai-room-copy h2 { max-width: 12ch; }
.ai-room-copy h2 em { display: block; }
.ai-room-copy > p {
  max-width: 46ch;
  margin-block: 1.4rem 2rem;
  color: #c1d3cd;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.5;
}

.ai-room-actions .inline-link { text-decoration: underline; text-underline-offset: .3em; }
.ai-flow {
  width: min(100%, 36rem);
  margin-inline: auto;
  isolation: isolate;
}
.ai-flow figcaption {
  padding-bottom: .85rem;
  border-bottom: 1px solid #3e5453;
  color: #e5eee9;
  font-size: clamp(1.14rem, 1.9vw, 1.6rem);
  font-weight: 560;
  letter-spacing: -.025em;
}
.ai-flow-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(1.45rem, 3vw, 2.45rem);
}
.ai-flow-inputs > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: .12rem;
  padding-inline: .25rem;
  text-align: center;
}
.ai-flow-inputs img { width: 2rem; height: 2rem; margin-bottom: .35rem; }
.ai-flow-inputs strong, .ai-flow-model strong { font-size: .96rem; font-weight: 650; }
.ai-flow-inputs span { color: #b9cfc9; font-size: .9rem; line-height: 1.35; }
.ai-flow-lines {
  display: block;
  width: 100%;
  height: clamp(3.25rem, 6vw, 5rem);
  margin-top: .5rem;
  overflow: visible;
}
.ai-flow-wire, .ai-flow-transmission { stroke-width: 1.4; stroke-linecap: round; }
.ai-flow-wire { stroke: #608478; }
.ai-flow-transmission { stroke: #a7efdd; stroke-dasharray: 7 170; stroke-dashoffset: -57; }
.ai-flow-model {
  display: grid;
  place-items: center;
  position: relative;
  width: 3.75rem;
  height: 3.75rem;
  margin: -.2rem auto 1.55rem;
}
.ai-flow-model span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid #93bead;
  border-radius: 50%;
  background: #1b312e;
  outline: 1px solid #39524c;
  outline-offset: .28rem;
}
.ai-flow-model strong { position: absolute; left: calc(100% + .9rem); white-space: nowrap; }
.ai-flow-model::after {
  content: "";
  position: absolute;
  top: calc(100% + .28rem);
  height: 1.27rem;
  border-left: 1px solid #8ab3a5;
}
.ai-flow-answer {
  position: relative;
  width: min(100%, 24rem);
  margin-inline: auto;
  padding: clamp(1.05rem, 2.4vw, 1.65rem);
  background: #e5eee6;
  clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 0 100%);
  color: #13271f;
}
.ai-flow-answer::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 1rem;
  height: 1rem;
  background: #b0c7ba;
}
.ai-flow-answer strong { font-size: .88rem; font-weight: 650; color: #384e43; }
.ai-flow-answer p {
  margin-block: .45rem .85rem;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.22;
  letter-spacing: -.025em;
}
.ai-flow-answer span { display: flex; align-items: center; gap: .35rem; font-size: .84rem; color: #3c5348; }
.ai-flow-answer svg { flex: 0 0 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.4; }

@media (max-width: 800px) {
  .ai-room-inner { grid-template-columns: 1fr; gap: 3rem; }
  .ai-room-copy h2 { font-size: clamp(3.1rem, 10vw, 5rem); }
  .ai-flow { justify-self: start; margin-inline: 0; }
}
@media (max-width: 440px) {
  .ai-room-actions { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .ai-flow-inputs span { max-width: 16ch; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ai-flow { view-timeline-name: --ai-workflow; view-timeline-axis: block; }
    .ai-flow-transmission {
      animation: ai-packet-travel 1s linear both;
      animation-timeline: --ai-workflow;
      animation-range: entry 15% exit 85%;
    }
    @keyframes ai-packet-travel { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -138; } }
  }
}
