/* One clear story per scene; Seda remains visible around the content. */
.hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  column-gap: 36px;
}
.hero > *,
.context-inner > *,
.context-heading > *,
.team-section > *,
.setup-layout > *,
.faq-section > * { min-width: 0; }
.hero-copy { isolation: isolate; }
.hero-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -22px -12px;
  background: linear-gradient(90deg, #0a0a0a42, #0a0a0a14 80%, transparent);
  pointer-events: none;
}
.hero-stage.narrative-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 490px;
  margin: 0;
}
.narrative-stage::before { display: none; }
.narrative-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 430px);
}
.flow-step {
  position: relative;
  width: min(100%, 350px);
  min-width: 0;
  padding: 21px 23px;
  border: 1px solid #425b4e;
  border-radius: 12px;
  background: #152019f5;
  box-shadow: 0 18px 40px #0002;
}
.flow-query { align-self: flex-start; }
.flow-context {
  align-self: flex-end;
  background: #111b16f5;
}
.flow-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: #b4c7bc;
  font-size: 12px;
  font-weight: 550;
}
.flow-label > span:first-child { display: flex; align-items: center; gap: 8px; }
.flow-label svg { width: 16px; height: 16px; }
.flow-label img { object-fit: contain; }
.flow-example { color: #90a297; font-size: 12px; font-weight: 400; }
.flow-query .message-meta { color: #e6eee8; }
.flow-query > p { margin-top: 16px; color: #d8e5dc; font-size: 15px; line-height: 1.7; }
.flow-summary { color: #bbcec2; font-size: 23px; line-height: 1.4; letter-spacing: -.04em; }
.flow-summary strong { color: #f0f7f2; font-weight: 550; }
.flow-context-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  gap: 14px;
}
.flow-context .flow-summary { min-width: 0; font-size: 24px; line-height: 1.35; font-weight: 500; }
.flow-context .flow-summary strong { font-weight: 600; }
.hero-mascot { display: grid; place-items: center; width: 72px; height: 120px; }
.hero-mascot .mascot-figure { width: 72px; height: 120px; margin: 0; }
.flow-context .micro-lines { margin-top: 18px; border-color: #51685a66; }
.flow-context .micro-lines span { font-size: 12px; }
.flow-connector { height: 27px; width: 1px; flex: 0 0 27px; background: #71877980; }
.flow-team {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  background: #e8eeea;
  border-color: #e8eeea;
  color: #172b22;
  padding-block: 19px;
}
.flow-team strong { display: block; font-size: 14px; font-weight: 590; }
.flow-team div > span { display: block; margin-top: 3px; color: #52695b; font-size: 12px; line-height: 1.5; }
.flow-team .person-avatar { flex: 0 0 auto; }
.flow-team .check-icon { flex: 0 0 auto; }

.context-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 48px;
  padding-top: 90px;
  padding-bottom: 65px;
}
.context-heading { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 18px; align-items: center; }
.context-heading .eyebrow { font-size: 12px; letter-spacing: .08em; }
.context-heading h2 { font-size: clamp(39px, 3.9vw, 54px); line-height: 1.13; margin-top: 22px; }
.intelligence-companion { display: flex; align-items: flex-end; justify-content: center; min-width: 0; }
.context-tools { flex-direction: row; flex-wrap: wrap; gap: 7px; }
.context-tools button { margin-left: 0; font-size: 14px; padding: 9px 11px; gap: 7px; }
.context-copy > p:not(.eyebrow) { max-width: 540px; }
.context-inner .intelligence-art { padding: 0; }
.context-inner .paper-stack { display: none; }
.context-inner .intelligence-paper,
.context-inner .intelligence-art:hover .intelligence-paper { transform: none; }
.context-inner .art-note { transform: none; padding-right: 0; }
.team-section, .setup-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.faq-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }

.view-controls {
  position: fixed;
  z-index: 120;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: calc(100vw - 36px);
}
.motion-toggle {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #444d47;
  border-radius: 10px;
  background: #131514f5;
  color: #dce5df;
  font: 500 14px/1.4 Inter, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(16px);
}
.motion-toggle:hover { background: #232925; }
.motion-toggle:focus-visible { outline: 2px solid #66e9b2; outline-offset: 3px; }
.motion-toggle[aria-pressed="true"] { border-color: #9bad9f; color: #f1f5f2; }
.view-controls .motion-toggle { position: static; left: auto; bottom: auto; max-width: none; }
.view-controls .background-switcher,
.view-controls .background-switcher:not([open]) {
  position: static;
  inset: auto;
  transform: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}
.view-controls .background-switcher summary { margin: 0; padding: 11px 14px; font-size: 14px; }
.view-controls .background-switcher[open] {
  position: absolute;
  left: auto;
  right: 0;
  bottom: 0;
  transform: none;
  width: min(480px, calc(100vw - 36px));
  padding: 8px 10px 9px;
}
.view-controls .background-switcher[open] summary { margin-bottom: 5px; padding: 7px 6px 9px; }

@media (max-width: 1024px) {
  .hero { column-gap: 24px; }
  .context-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 75px; }
  .context-copy, .context-inner .intelligence-art { width: 100%; max-width: 680px; margin-inline: auto; }
  .context-heading h2 { font-size: 43px; }
  .context-inner .light-demo-note { text-align: left; width: 100%; max-width: 680px; margin-inline: auto; }
  .js .context-copy.reveal,
  .js .intelligence-art.reveal,
  .js .team-art.reveal,
  .js .team-copy.reveal,
  .js .faq-heading.reveal { transform: translateY(24px); }
  .js .context-copy.reveal.visible,
  .js .intelligence-art.reveal.visible,
  .js .team-art.reveal.visible,
  .js .team-copy.reveal.visible,
  .js .faq-heading.reveal.visible { transform: none; }
}
@media (max-width: 640px) {
  .hero-stage.narrative-stage { min-height: 0; margin-top: 36px; max-width: 420px; }
  .narrative-flow { width: 100%; }
  .flow-step { width: calc(100% - 16px); max-width: 350px; padding: 18px 19px; }
  .flow-label { gap: 8px; }
  .flow-query > p { font-size: 14px; }
  .flow-summary { font-size: 22px; }
  .flow-context-body { grid-template-columns: minmax(0, 1fr) 60px; gap: 12px; }
  .flow-context .flow-summary { font-size: 22px; }
  .hero-mascot, .hero-mascot .mascot-figure { width: 60px; height: 100px; }
  .flow-team { gap: 10px; }
  .flow-team strong { font-size: 13px; }
  .flow-team div > span { font-size: 11px; }
  .flow-team .person-avatar { width: 32px; height: 32px; font-size: 12px; }
  .context-inner { display: grid; padding-top: 65px; padding-bottom: 45px; }
  .context-heading { grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; }
  .context-heading h2 { font-size: 34px; letter-spacing: -.045em; }
  .context-heading .eyebrow { font-size: 12px; letter-spacing: .04em; gap: 8px; }
  .context-heading .line-mark { width: 18px; }
  .context-copy > p:not(.eyebrow) { margin-top: 23px; font-size: 16px; }
  .context-tools { margin-top: 23px; }
  .context-tools button { font-size: 14px; padding: 8px 9px; }
  .view-controls { right: 12px; bottom: 12px; max-width: calc(100vw - 24px); gap: 6px; }
  .motion-toggle { padding-inline: 11px; }
  .view-controls .background-switcher summary { padding-inline: 11px; }
  .view-controls .background-switcher[open] { width: calc(100vw - 24px); padding: 7px 8px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy::before { transition: none; }
}
.view-controls .background-switcher[open] { padding-bottom: 62px; }
@media (max-width: 640px) {
  .view-controls .background-switcher[open] {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
}
