/* One public-study example: define a joint cohort, generate profiles, choose a message. */
.hero--outcome { padding-block: 112px 30px; }
.hero--outcome .hero__inner { margin-block-start: 0; grid-template-columns: .94fr 1.06fr; gap: clamp(36px, 4.5vw, 64px); }
.hero--outcome .hero__h1 { font-size: clamp(2.9rem, 4.5vw, 4rem); line-height: 1.08; margin-block: 16px 22px; }
.hero--outcome .hero__lede { max-width: 44ch; font-size: 1.125rem; line-height: 1.55; }
.hero--outcome .hero__actions { margin-block: 26px 0; align-items: center; gap: 16px; }
.hero__validation-link { font-size: .9375rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-3); padding-block: 12px; }
.hero__validation-link:hover { color: var(--brand-1); }
.cell-story { --cohort-blue: #245e7a; --cohort-wash: #e9f0f2; --cohort-line: #b9ced6; min-width: 0; }
.cell-story__top { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 32px; font-size: .875rem; color: var(--text-2); }
.cell-story__top button { appearance: none; border: 0; background: transparent; padding: 7px 0 7px 12px; color: var(--text-2); font: .875rem/1.4 var(--font-body); min-width: 62px; }
.cell-story__top button:hover { color: var(--cohort-blue); }
.cell-story__question { font-size: clamp(1.4rem, 1.85vw, 1.65rem); line-height: 1.25; font-weight: 500; letter-spacing: -.02em; margin: 9px 0 12px; max-width: 35ch; }
.cell-story [hidden] { display: none; }
.cell-story__steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-2); }
.cell-story__steps button { position: relative; border: 0; background: transparent; padding: 10px 2px; color: var(--text-2); font: .875rem/1.4 var(--font-body); text-align: center; }
.cell-story__steps button[aria-selected="true"] { color: var(--cohort-blue); font-weight: 600; }
.cell-story__steps button::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--cohort-blue); opacity: 0; transform-origin: left; }
.cell-story__steps button[aria-selected="true"]::after { opacity: 1; }
.cell-story[data-autoplay="true"] .cell-story__steps button[aria-selected="true"]::after { animation: cellProgress var(--stage-duration) linear both; animation-play-state: paused; }
.cell-story[data-playing="true"] .cell-story__steps button[aria-selected="true"]::after { animation-play-state: running; }
.cell-story button:focus-visible, .cell-story__scene:focus-visible { outline: 2px solid var(--cohort-blue); outline-offset: 4px; }

/* Read-only condition fields stay selected across every stage. */
.cell-story__audience { padding: 10px 16px 12px; border-inline: 1px solid var(--line-1); background: var(--ink-800); }
.cell-story__audience-label { margin-bottom: 7px; color: var(--text-2); font-size: .8125rem; line-height: 1.4; }
.cell-story__conditions { display: grid; grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr); align-items: stretch; gap: 4px; }
.cell-story__conditions > span { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 6px 7px; background: var(--cohort-wash); border-bottom: 2px solid var(--cohort-line); color: var(--cohort-blue); }
.cell-story__conditions small { font-size: .75rem; line-height: 1.3; }
.cell-story__conditions strong { font-size: .875rem; line-height: 1.3; font-weight: 600; }
.cell-story__conditions > b { align-self: center; justify-self: center; text-align: center; font-size: .6875rem; line-height: 1; font-weight: 600; color: var(--text-2); }
.cell-story__viewport { height: 320px; position: relative; background: var(--ink-800); border: 1px solid var(--line-1); }
.cell-story__scene { padding: 18px 22px; height: 100%; animation: cellSceneIn 500ms cubic-bezier(.2,.7,.2,1); }
.cell-story__scene h3 { margin: 0 0 10px; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; letter-spacing: -.012em; }
#cell-audience { animation: none; }
.cell-story__counts { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.3; }
.cell-story__counts caption { text-align: left; font-size: .8125rem; line-height: 1.4; color: var(--text-2); padding: 0 0 8px; }
.cell-story__counts th { text-align: left; font-weight: 500; }
.cell-story__counts th span { font-size: .75rem; color: var(--text-2); font-weight: 400; margin-left: 8px; }
.cell-story__counts th, .cell-story__counts td { padding: 7px 10px; border-bottom: 1px solid var(--line-1); }
.cell-story__counts td { text-align: right; font-size: 1.0625rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.cell-story__counts tr { transition: background-color 650ms; }
.cell-story__counts tfoot th, .cell-story__counts tfoot td { border-bottom: 0; padding-top: 8px; padding-bottom: 8px; }
.cell-story__counts tfoot th { color: var(--cohort-blue); font-weight: 600; }
.cell-story__counts tfoot th span { display: block; margin: 4px 0 0; }
.cell-story__counts tfoot td { color: var(--cohort-blue); font-size: 1.875rem; line-height: 1; }
.cell-story[data-filter="0"] [data-filter-row="0"],
.cell-story[data-filter="1"] [data-filter-row="1"],
.cell-story[data-filter="2"] [data-filter-row="2"],
.cell-story[data-filter="3"] [data-filter-row="3"] { background: var(--cohort-wash); }
.cell-story__read { position: absolute; bottom: 19px; inset-inline: 22px; margin: 0; font-size: .875rem; line-height: 1.45; color: var(--text-1); transition: opacity 300ms 250ms; }
.cell-story[data-autoplay="true"] .cell-story__read { opacity: 0; transition-delay: 0s; }
.cell-story__model-note { margin: 0 0 12px; font-size: .875rem; line-height: 1.45; color: var(--text-2); }
.cell-story__generation { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 12px; margin: 12px 0; }
.cell-story__generation > div > p { margin: 0 0 8px; font-size: .8125rem; line-height: 1.35; }
.cell-story__generation strong { display: block; font-weight: 500; font-size: 1.5rem; margin-bottom: 4px; }
.cell-story__generation > div:last-child strong { color: var(--cohort-blue); }
.cell-story__generation > div > span { display: block; font-size: .75rem; line-height: 1.4; color: var(--text-2); margin-top: 8px; }
.cell-story__study, .cell-story__generated { display: block; width: 100%; height: auto; max-height: 85px; transition: background-color 500ms, box-shadow 500ms; }
.cell-story__people { fill: #7b8387; }
.cell-story__arrow { stroke: var(--cohort-blue); stroke-width: 1.2; fill: none; width: 34px; }
.cell-story__arrow path { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 900ms ease; }
.cell-story[data-generated="true"] .cell-story__arrow path { stroke-dashoffset: 0; }
.cell-story__batch { fill: var(--cohort-blue); opacity: 0; transform: translateY(3px); transition: opacity 600ms ease, transform 600ms ease; transition-delay: calc(var(--batch) * 120ms); }
.cell-story[data-generated="false"] .cell-story__generated { visibility: hidden; }
.cell-story[data-generated="true"] .cell-story__batch { opacity: .85; transform: translateY(0); }

/* A recommendation first; comparable evidence beneath it. */
.cell-story__scene .cell-story__recommendation { font-size: clamp(1.5rem, 2.1vw, 1.875rem); line-height: 1.18; color: var(--cohort-blue); letter-spacing: -.025em; margin-bottom: 14px; }
.cell-story__recommendation > span { display: block; color: var(--text-2); font-size: .8125rem; line-height: 1.4; letter-spacing: 0; margin-bottom: 4px; }
.cell-story__decisions { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-block: 0 10px; }
.cell-story__decision:first-child { padding-right: 16px; }
.cell-story__decision + .cell-story__decision { position: relative; padding-left: 16px; }
.cell-story__decision + .cell-story__decision::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-1); }
.cell-story__decision + .cell-story__decision::after { content: "→"; position: absolute; left: -10px; top: 18px; width: 20px; text-align: center; font-size: 1.125rem; line-height: 1.4; color: var(--cohort-blue); background: var(--ink-800); }
.cell-story__scope { font-size: .75rem; color: var(--text-2); margin: 0 0 3px; line-height: 1.35; }
.cell-story__decision h4 { margin: 0 0 4px; font-size: 1.125rem; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.cell-story__decision[data-comparison="audience"] h4 { color: var(--cohort-blue); }
.cell-story__decision-sample { margin: 0 0 10px; font-size: .75rem; line-height: 1.4; color: var(--text-2); }
.cell-story__decision-row { margin-bottom: 10px; font-size: .8125rem; line-height: 1.35; transition: background-color 500ms, box-shadow 500ms; }
.cell-story__decision-row > div:first-child { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.cell-story__decision-row strong { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell-story__decision-row[data-winner="true"] strong { font-weight: 600; }
.cell-story__decision-track { height: 4px; background: var(--line-1); margin-top: 5px; }
.cell-story__decision-track i { display: block; height: 100%; background: #7b8387; transform-origin: left; }
[data-comparison="audience"] .cell-story__decision-track i { background: var(--cohort-blue); animation: cellBarIn 1000ms cubic-bezier(.2,.7,.2,1) both; }
[data-comparison="audience"] .cell-story__decision-row:last-child i { animation-delay: 180ms; }
.cell-story[data-autoplay="true"] .cell-story__recommendation { animation: cellSceneIn 700ms 700ms both; }
.cell-story__measure { color: var(--text-3); font-size: .75rem; line-height: 1.4; margin: 0; }

/* Temporary attention notes occupy a reserved caption area. */
.cell-story__annotation { position: absolute; z-index: 2; inset-inline: 22px; bottom: 17px; padding: 10px 12px; border: 1px solid var(--cohort-line); border-left: 2px solid var(--cohort-blue); background: var(--ink-900); color: var(--text-1); font-size: .875rem; line-height: 1.4; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity 350ms ease, transform 450ms cubic-bezier(.2,.7,.2,1), visibility 0s 350ms; }
.cell-story[data-guide="cell"] [data-story-note="cell"],
.cell-story[data-guide="study"] [data-story-note="study"],
.cell-story[data-guide="profiles"] [data-story-note="profiles"],
.cell-story[data-guide="result"] [data-story-note="result"] { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 350ms, 350ms, 0s; }
.cell-story[data-guide="study"] .cell-story__study,
.cell-story[data-guide="profiles"] .cell-story__generated,
.cell-story[data-guide="result"] [data-comparison="audience"] [data-winner="true"] { background: var(--cohort-wash); box-shadow: 0 0 0 5px var(--cohort-wash); }
.cell-story[data-playing="false"] .cell-story__scene,
.cell-story[data-playing="false"] .cell-story__decision-track i,
.cell-story[data-playing="false"] .cell-story__recommendation { animation-play-state: paused; }
.cell-story[data-autoplay="false"] .cell-story__scene,
.cell-story[data-autoplay="false"] .cell-story__decision-track i,
.cell-story[data-autoplay="false"] .cell-story__recommendation { animation: none; }
.cell-story[data-autoplay="false"] .cell-story__batch,
.cell-story[data-autoplay="false"] .cell-story__arrow path { transition: none; }
.cell-story__source { font-size: .75rem; color: var(--text-3); line-height: 1.4; margin: 10px 0 0; }
.cell-story__source a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.cell-story__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home-validation { scroll-margin-top: 90px; }
.home-validation__more { margin: 20px 0 0; font-size: 1rem; }
.home-validation__more a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-3); }
@keyframes cellSceneIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cellBarIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cellProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (min-width: 981px) and (max-width: 1200px) {
  .hero--outcome { padding-block: 104px 26px; }
  .hero--outcome .hero__inner { gap: 32px; }
  .hero--outcome .hero__h1 { font-size: 2.9rem; }
  .hero--outcome .hero__actions { gap: 10px; }
  .hero--outcome .hero__actions .btn { padding-inline: 16px; font-size: .875rem; }
  .hero__validation-link { font-size: .875rem; }
  .cell-story__viewport { height: 332px; }
  .cell-story__scene { padding-inline: 16px; }
  .cell-story__audience { padding-inline: 10px; }
  .cell-story__conditions { grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr); gap: 2px; }
  .cell-story__conditions > span { padding-inline: 5px; }
  .cell-story__read, .cell-story__annotation { inset-inline: 16px; }
}
@media (max-width: 980px) {
  .hero--outcome { padding-block: 100px 32px; }
  .hero--outcome .hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .hero--outcome .hero__content { max-width: 660px; margin-inline: auto; width: 100%; }
  .hero--outcome .hero__h1 { max-width: 17ch; font-size: clamp(2.2rem, 6.2vw, 3.2rem); }
  .cell-story { width: 100%; max-width: 660px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero--outcome { padding-top: 94px; }
  .hero--outcome .hero__h1 { font-size: clamp(2.1rem, 8.8vw, 2.65rem); margin-block: 12px 16px; }
  .hero--outcome .hero__lede { font-size: 1rem; line-height: 1.5; }
  .hero--outcome .hero__actions { gap: 14px; margin-top: 18px; }
  .hero--outcome .hero__actions .btn { font-size: .875rem; padding-inline: 16px; }
  .hero__validation-link { font-size: .875rem; padding-block: 4px; }
  .cell-story__question { font-size: 1.4rem; }
  .cell-story__steps button { font-size: .8125rem; }
  .cell-story__audience { padding-inline: 10px; }
  .cell-story__conditions { grid-template-columns: minmax(0,1fr) 22px minmax(0,1fr) 22px minmax(0,1fr); gap: 2px; }
  .cell-story__conditions > span { padding-inline: 4px; }
  .cell-story__conditions strong { font-size: .8125rem; }
  .cell-story__viewport { height: 410px; }
  .cell-story__scene { padding: 18px 15px; }
  .cell-story__counts th span { display: block; margin: 3px 0 0; }
  .cell-story__counts th, .cell-story__counts td { padding-block: 10px; }
  .cell-story__counts tfoot th, .cell-story__counts tfoot td { padding-block: 12px; }
  .cell-story__read, .cell-story__annotation { inset-inline: 15px; bottom: 18px; }
  .cell-story__generation { gap: 9px; grid-template-columns: 1fr 24px 1fr; margin-block: 22px; }
  .cell-story__generation > div > p { min-height: 5.5em; }
  .cell-story__generation > div > span { min-height: 2.8em; }
  .cell-story__arrow { width: 24px; }
  .cell-story__scene .cell-story__recommendation { font-size: 1.625rem; margin-bottom: 18px; }
  .cell-story__decision:first-child { padding-right: 12px; }
  .cell-story__decision + .cell-story__decision { padding-left: 12px; }
  .cell-story__decision-sample { min-height: 2.8em; }
  .cell-story__decision-row > div:first-child { align-items: flex-start; }
  .cell-story__measure { margin-top: 14px; }
}
@media (max-width: 360px) {
  .cell-story__viewport { height: 456px; }
  .cell-story__scope { min-height: 2.7em; }
  .cell-story__decision + .cell-story__decision::after { top: 34px; }
  .cell-story__counts caption { max-width: 26ch; }
  .cell-story__decision:first-child { padding-right: 10px; }
  .cell-story__decision + .cell-story__decision { padding-left: 10px; }
  .cell-story__decision-row > div:first-child { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .cell-story *, .cell-story *::before, .cell-story *::after { animation: none !important; transition: none !important; }
  .cell-story__annotation { display: none; }
}
