/* A normal-flow runway contains the short three-scene desktop hold. */
.human-client-sequence { position: relative; z-index: 4; isolation: isolate; background: #faf7f2; }
.human-scroll-runway { position: relative; }
.human-scroll-runway[data-human-scroll] > .human-chapter { position: sticky; top: 0; z-index: 1; }
.human-client-sequence[data-human-scroll] > .client-chapter .testimonial-surface { scale: var(--human-client-scale, .92); transform-origin: center top; }
.human-chapter {
  --human-ink: #183b43;
  --human-berry: #9b2b66;
  --human-paper: #faf7f2;
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: var(--scene-height, 100svh);
  padding: 32px clamp(24px, 6vw, 104px);
  background: var(--human-paper);
  color: var(--human-ink);
  isolation: isolate;
  overflow: clip;
  outline: none;
  scroll-margin-top: 0;
}
.human-chapter::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: #faf7f2; }
.human-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(40px, 6vw, 96px);
  max-width: 1376px;
  width: 100%;
  min-height: min(620px, calc(var(--scene-height, 100svh) - 160px));
  margin: auto;
  align-content: center;
  transform: scale(calc(1 - var(--human-retreat, 0) * .025));
  transform-origin: center bottom;
}
.human-heading { grid-column: 2; align-self: center; padding-block: 8px 24px; }
.human-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; font-size: 11px; font-weight: 500; letter-spacing: .13em; }
.human-mark { width: 29px; height: 29px; background: var(--human-berry); mask: url('/assets/wellist-mark.svg') center / contain no-repeat; -webkit-mask: url('/assets/wellist-mark.svg') center / contain no-repeat; }
.human-heading h2 { margin: 0; font: 500 clamp(42px, 4.7vw, 72px)/1.13 Sora, Arial, sans-serif; letter-spacing: -.065em; }
.human-heading h2 span { color: var(--human-berry); }
.human-intro { margin: 20px 0 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.65; color: #576568; text-wrap: balance; }
.human-portrait { grid-area: 1 / 1 / 3 / 2; display: flex; flex-direction: column; align-self: stretch; margin: 0; min-width: 0; }
/* Each scenario shares one stable canvas. Only its inner composition changes. */
.human-scene {
  position: relative; flex: 1; min-height: 540px;
  overflow: hidden; isolation: isolate; border-radius: 36px;
  background: linear-gradient(155deg, #e7d9e7 0%, #d1e9e5 48%, #27606a 100%);
  container-type: inline-size;
}
.human-scene-art { position: absolute; inset: 0; }
.human-scenarios { position: relative; display: grid; align-items: center; height: 100%; padding: 32px clamp(20px, 7cqi, 44px) 40px; }
.human-scenario { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translate3d(0, -10px, 0) scale(.97); transition: opacity .18s ease, visibility .18s, transform .4s cubic-bezier(.22,1,.36,1); }
.human-scenario[data-active] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; transition-duration: .32s; }
.human-scenario svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.human-conversation-card, .human-options-card, .human-next-card { background: #fffdfa; box-shadow: 0 20px 50px #173e4a24, 0 0 0 6px #ffffff42; border-radius: 25px; }
.human-conversation-card { width: 79%; margin-inline: auto; padding: 10px; }
.human-mini-heading { display: flex; align-items: center; gap: 9px; padding: 6px 5px 13px; font-size: clamp(9px, 1.8cqi, 11px); line-height: 1.4; letter-spacing: .06em; }
.human-mini-mark { flex: 0 0 22px; width: 22px; height: 22px; background: #397667; mask: url('/assets/wellist-mark.svg') center / contain no-repeat; -webkit-mask: url('/assets/wellist-mark.svg') center / contain no-repeat; }
.human-photo-frame { overflow: hidden; aspect-ratio: 1.25; border-radius: 17px; background: #d5d5c9; }
.human-photo-frame > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 39%; }
.human-call-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 5px 5px; font-size: clamp(11px, 2.25cqi, 13px); line-height: 1.4; }
.human-voice { flex: 0 0 44px; display: flex; align-items: center; justify-content: center; gap: 3px; height: 25px; color: var(--human-berry); }
.human-voice i { width: 3px; height: 7px; border-radius: 2px; background: currentColor; animation: human-listening .9s ease-in-out infinite alternate; animation-play-state: paused; }
.human-voice i:nth-child(2n) { height: 16px; animation-delay: -.4s; }
.human-voice i:nth-child(3n) { height: 22px; animation-delay: -.7s; }
.human-chat { display: flex; align-items: center; gap: 11px; width: max-content; max-width: 88%; padding: 16px 20px; font-size: clamp(13px, 2.8cqi, 16px); line-height: 1.45; box-shadow: 0 8px 24px #173e4a12; }
.human-chat-question { margin-block: 19px 10px; margin-inline-start: auto; border-radius: 18px 18px 5px 18px; background: #f0dfea; color: #6e3056; }
.human-chat-answer { margin-inline-end: auto; border-radius: 18px 18px 18px 5px; background: #fffdfa; }
.human-chat-answer .human-mini-mark { flex-basis: 25px; height: 25px; }
.human-options-card, .human-next-card { padding: clamp(19px, 5cqi, 30px); }
.human-guide { display: flex; align-items: center; gap: 13px; padding-bottom: 24px; }
.human-guide img, .human-next-guide img { flex: 0 0 46px; width: 46px; height: 46px; object-fit: cover; object-position: center 22%; border-radius: 50%; }
.human-guide > div { min-width: 0; }
.human-guide > div > span, .human-option-row > div > span { display: block; color: #637475; font-size: clamp(9px, 1.8cqi, 11px); line-height: 1.5; letter-spacing: .04em; }
.human-guide strong { display: block; margin-top: 5px; font: 500 clamp(18px, 3.8cqi, 23px)/1.25 Sora, Arial, sans-serif; letter-spacing: -.055em; }
.human-need-tag { display: flex; align-items: center; width: fit-content; max-width: 100%; gap: 9px; margin-bottom: 23px; padding: 9px 13px; color: #803459; background: #f1e3ec; border-radius: 11px; font-size: clamp(12px, 2.5cqi, 14px); line-height: 1.4; }
.human-need-tag .icon { flex: 0 0 22px; width: 22px; height: 22px; }
.human-option-row { display: flex; align-items: center; gap: 12px; padding: 19px 14px; background: #f5eeef; border-radius: 15px; }
.human-option-row + .human-option-row { margin-top: 12px; }
.human-option-community { background: #eaf2ee; }
.human-option-symbol { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 11px; color: #976182; background: #ffffffa6; }
.human-option-community .human-option-symbol { color: #468275; }
.human-option-symbol svg { width: 23px; height: 23px; }
.human-option-row > div { flex: 1; min-width: 0; }
.human-option-row strong { display: block; font: 500 clamp(14px, 3cqi, 18px)/1.4 Inter, Arial, sans-serif; letter-spacing: -.035em; margin-top: 4px; }
.human-option-check { width: 19px; height: 19px; flex: 0 0 19px; color: #4d8c7c; }
.human-next-card .human-mini-heading { padding: 0 0 20px; font-size: clamp(11px, 2.2cqi, 13px); }
.human-next-title { display: block; font: 500 clamp(23px, 5.5cqi, 32px)/1.2 Sora, Arial, sans-serif; letter-spacing: -.055em; }
.human-plan { position: relative; display: grid; gap: 12px; padding-block: 26px; }
.human-plan::before { content: ''; position: absolute; top: 40px; bottom: 40px; inset-inline-start: 18px; width: 1px; background: #cadbd3; }
.human-plan-row { position: relative; display: flex; align-items: center; gap: 13px; min-height: 47px; font-size: clamp(13px, 2.85cqi, 16px); line-height: 1.4; }
.human-plan-node { display: grid; place-items: center; flex: 0 0 37px; height: 37px; border-radius: 50%; background: #e4efe8; color: #3e7c65; border: 4px solid #fffdfa; }
.human-plan-node svg { width: 19px; height: 19px; }
.human-plan-current { color: var(--human-berry); }
.human-plan-current .human-plan-node { background: #f0dfea; color: var(--human-berry); }
.human-next-guide { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid #183b4317; font-size: clamp(12px, 2.6cqi, 15px); line-height: 1.4; }
.human-next-guide img { flex-basis: 38px; width: 38px; height: 38px; }
.human-step { position: relative; }
/* Paused/outgoing scenes have no hidden background work. Finite entrances reveal
   once, including on rapid reversals; a user-selected scene restarts its cues. */
.human-chapter[data-human-ready] .human-scenario[data-active] .human-cue { animation: human-cue-enter .45s var(--cue-delay, 0s) cubic-bezier(.22,1,.36,1) both; animation-play-state: running; }
.human-chapter[data-human-ready] .human-scene[data-scene-running] .human-scenario[data-active] .human-cue,
.human-scene[data-scene-running] .human-scenario[data-active] .human-voice i { animation-play-state: running; }
.human-chapter[data-human-ready] .human-scene:not([data-human-entered]) .human-scenarios,
.human-chapter[data-human-ready] .human-heading:not([data-human-entered]) > *,
.human-chapter[data-human-ready] .human-step:not([data-human-entered]) { opacity: 0; }
.human-scene[data-human-entered] .human-scenarios { animation: human-scene-enter .5s cubic-bezier(.22,1,.36,1) both; }
.human-heading[data-human-entered] > * { animation: human-text-enter .5s cubic-bezier(.22,1,.36,1) both; }
.human-heading[data-human-entered] h2 { animation-delay: .06s; }
.human-heading[data-human-entered] .human-intro { animation-delay: .12s; }
.human-step[data-human-entered] { animation: human-text-enter .45s .14s cubic-bezier(.22,1,.36,1) both; }
.human-step[data-human-entered]:nth-child(2) { animation-delay: .2s; }
.human-step[data-human-entered]:nth-child(3) { animation-delay: .26s; }
@keyframes human-scene-enter { from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes human-cue-enter { from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes human-text-enter { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
.human-steps { grid-column: 2; align-self: end; padding-bottom: 20px; min-height: var(--human-steps-space, 0px); }
.human-step { border-top: 1px solid #183b4326; }
.human-step:last-child { border-bottom: 1px solid #183b4326; }
.human-step summary { display: flex; align-items: center; gap: 18px; min-height: 76px; padding: 16px 0; cursor: pointer; list-style: none; font: 400 clamp(17px, 1.65vw, 24px)/1.35 Sora, Arial, sans-serif; letter-spacing: -.045em; transition: color .2s; }
.human-step summary::-webkit-details-marker { display: none; }
.human-step summary::marker { content: ''; }
.human-step summary > span:first-of-type { flex: 1; }
.human-step summary:focus-visible { outline: 2px solid var(--human-berry); outline-offset: 5px; border-radius: 3px; }
.human-step summary[aria-expanded="true"], .human-chapter:not([data-human-ready]) .human-step[open] summary { color: var(--human-berry); }
.human-step-icon { flex: 0 0 29px; width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.human-step-icon circle { fill: var(--human-paper); }
.human-step-toggle { position: relative; flex: 0 0 24px; height: 24px; }
.human-step-toggle::before, .human-step-toggle::after { content: ''; position: absolute; top: 11px; left: 5px; width: 14px; height: 1.5px; background: currentColor; transition: transform .22s; }
.human-step-toggle::after { transform: rotate(90deg); }
.human-step summary[aria-expanded="true"] .human-step-toggle::after, .human-chapter:not([data-human-ready]) .human-step[open] .human-step-toggle::after { transform: rotate(0); }
.human-step-copy { padding-block: 0 22px; padding-inline: 47px 28px; }
.human-step-copy p { margin: 0; max-width: 390px; min-height: 54px; color: #576568; font-size: 15px; line-height: 1.65; }
.human-chapter[data-human-ready] .human-step summary[aria-expanded="true"] + .human-step-copy { animation: human-copy-in .28s ease-out; }
@keyframes human-listening { 0%, 100% { transform: scaleY(.65); } 45% { transform: scaleY(1.15); } }
@keyframes human-copy-in { from { opacity: .3; } to { opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .human-step summary:hover { color: var(--human-berry); }
}
@media (max-width: 900px) {
  .human-chapter { padding: 26px clamp(20px, 5vw, 40px); }
  .human-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 20px; min-height: 0; max-width: 640px; }
  .human-heading { grid-area: auto; padding: 0; }
  .human-eyebrow { font-size: 10px; margin-bottom: 18px; gap: 10px; }
  .human-mark { width: 23px; height: 23px; }
  .human-heading h2 { font-size: clamp(34px, 7vw, 50px); }
  .human-intro { margin-top: 14px; font-size: 14px; line-height: 1.5; }
  .human-portrait { grid-area: auto; }
  .human-scene { flex: none; min-height: 0; height: 490px; max-height: none; border-radius: 28px; }
  .human-scenarios { padding: 28px 24px 32px; }
  .human-conversation-card { width: 82%; }
  .human-chat { padding: 13px 16px; }
  .human-options-card, .human-next-card { border-radius: 21px; }
  .human-option-row { padding: 16px 10px; gap: 9px; }
  .human-option-symbol { flex-basis: 30px; height: 33px; }
  .human-steps { grid-area: auto; padding-bottom: 0; }
  .human-step summary { min-height: 58px; gap: 13px; padding-block: 14px; font-size: 18px; }
  .human-step-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .human-step-copy { padding-block: 0 16px; padding-inline: 38px 20px; }
  .human-step-copy p { min-height: 63px; font-size: 14px; line-height: 1.5; }
}
@media (max-width: 380px) {
  .human-chapter { padding: 24px 20px; }
  .human-inner { gap: 20px; }
  .human-heading h2 { font-size: 32px; }
  .human-scene { height: 485px; }
  .human-scenarios { padding-inline: 19px; }
  .human-options-card, .human-next-card { padding: 18px; }
  .human-option-check { display: none; }
  .human-step summary { font-size: 16px; gap: 10px; }
  .human-step-copy { padding-inline-start: 35px; padding-inline-end: 0; }
}
@media (min-width: 901px) and (max-height: 740px) {
  .human-chapter { padding-block: 28px; }
  .human-inner { min-height: calc(100svh - 104px); }
  .human-heading { padding-bottom: 22px; }
  .human-heading h2 { font-size: clamp(40px, 4.3vw, 62px); }
  .human-eyebrow { margin-bottom: 24px; }
  .human-intro { margin-top: 18px; }
  .human-scene { min-height: 515px; }
  .human-step summary { min-height: 62px; }
  .human-steps { padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .human-scroll-runway[data-human-scroll] > .human-chapter { position: relative; top: auto; }
  .human-client-sequence > .client-chapter .testimonial-surface { scale: 1; }
  .human-chapter::before, .human-chapter::after { opacity: 0; }
  .human-inner { opacity: 1; transform: none; }
  .human-portrait, .human-heading, .human-steps { transform: none; }
  .human-chapter[data-human-ready] .human-scene:not([data-human-entered]) .human-scenarios,
  .human-chapter[data-human-ready] .human-heading:not([data-human-entered]) > *,
  .human-chapter[data-human-ready] .human-step:not([data-human-entered]) { opacity: 1; }
  .human-chapter *, .human-chapter *::before, .human-chapter *::after { animation: none !important; transition: none !important; }
}

.human-cue[data-cue-delay="0s"] { --cue-delay: 0s; }
.human-cue[data-cue-delay=".55s"] { --cue-delay: .3s; }
.human-cue[data-cue-delay="1.25s"] { --cue-delay: .69s; }
.human-cue[data-cue-delay=".4s"] { --cue-delay: .22s; }
.human-cue[data-cue-delay=".85s"] { --cue-delay: .47s; }
.human-cue[data-cue-delay="1.35s"] { --cue-delay: .74s; }
.human-cue[data-cue-delay="1.9s"] { --cue-delay: 1.04s; }
.human-cue[data-cue-delay=".45s"] { --cue-delay: .25s; }
.human-cue[data-cue-delay="1s"] { --cue-delay: .55s; }
.human-cue[data-cue-delay="1.6s"] { --cue-delay: .88s; }
.human-cue[data-cue-delay="2.15s"] { --cue-delay: 1.18s; }
/* Conversation bubbles answer across the canvas; options rise into a shortlist;
   the last scene traces confirmations along its vertical next-step path. */
.human-chat-question { --cue-x: 16px; }
.human-chat-answer { --cue-x: -16px; }
.human-chat-question:dir(rtl) { --cue-x: -16px; }
.human-chat-answer:dir(rtl) { --cue-x: 16px; }
.human-chapter[data-human-ready] .human-scenario[data-active] .human-chat { animation-name: human-chat-enter; }
.human-chapter[data-human-ready] .human-scenario[data-active] .human-plan-node path { stroke-dasharray: 30; animation: human-check-enter .4s calc(var(--cue-delay, 0s) + .15s) ease both; animation-play-state: paused; }
.human-scene[data-scene-running] .human-scenario[data-active] .human-plan-node path { animation-play-state: running; }
@keyframes human-chat-enter { from { opacity: 0; transform: translate3d(var(--cue-x), 8px, 0) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes human-check-enter { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@media (min-width: 901px) { .human-conversation-card { width: 70%; } }
/* The longest localized scenario reserves its space in normal grid flow.
   This keeps every translation inside the canvas without a reserved control strip. */
.human-scene { display: grid; }
.human-scene-art { position: relative; display: grid; min-height: 100%; }
.human-scenarios { height: auto; min-height: 100%; padding-bottom: 40px; }
.human-scenario { align-self: center; }
.human-conversation-card { max-width: 320px; }
@media (max-width: 900px) {
  .human-scene { height: auto; min-height: 490px; }
  .human-scenarios { padding-bottom: 32px; }
  .human-conversation-card { max-width: 270px; }
}

/* Card bodies stay legible even when a fast wheel skips directly to a beat. */
.human-chapter[data-human-ready] .human-scenario[data-active] > .human-cue:first-child { animation-name: human-card-enter; }
@keyframes human-card-enter { from { opacity: 1; transform: translate3d(0, 10px, 0) scale(.98); } to { opacity: 1; transform: none; } }
