/* Local three-outcome study; see motion-reference.md for reference measurements. */
.header-study .ai-outcomes { background:#fff; color:#27272c; padding:104px var(--study-gutter) 88px; font-family:var(--study-body); scroll-margin-top:64px; }
.outcomes-inner { max-width:1680px; margin:auto; }
.outcomes-heading { text-align:center; margin:0 auto 60px; max-width:900px; }
.outcomes-eyebrow { font:400 11px/1.4 var(--study-body); letter-spacing:.28em; text-transform:uppercase; margin:0 0 22px; }
.header-study .outcomes-heading h2 { max-width:none; font:400 clamp(36px,4.0625vw,56px)/1 var(--study-heading); letter-spacing:-.025em; margin:0 0 24px; }
.outcomes-intro { font-size:18px; line-height:1.5; color:#686873; }
.outcomes-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.outcome { min-width:0; }
.outcome-stage { position:relative; height:clamp(360px,32vw,500px); overflow:hidden; border-radius:16px; background:#0c111b; padding:30px; isolation:isolate; }
.header-study .outcome h3 { font:400 18px/1.35 var(--study-body); letter-spacing:0; margin:18px 0 8px; }
.outcome > p { font-size:17px; line-height:1.5; color:#686873; max-width:46ch; }
.outcomes-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

/* Measured Biograph glass recipe and unscaled 280 × 54px card geometry. */
@font-face { font-family:"Octave Text"; src:url("/brand/fonts/Supreme-Medium.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; }
.header-study .outcome-cost { padding:0; background:#080d19; container-type:inline-size; }
.cost-photograph { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:60% 50%; }
.outcome-cost::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg,transparent 65%,rgba(5,8,20,.16)); }
.cost-stack { --cost-ease:linear(0,.076,.238,.411,.564,.687,.781,.849,.897,.931,.954,.969,.980,.987,.992,.995,.997,.999,1); position:absolute; z-index:1; left:50%; top:62%; width:min(280px,calc((100cqw - 32px)/1.2)); height:54px; transform:translate(-50%,-50%) scale(1.2); }
.cost-stack-card { position:absolute; inset:0; border:0; border-radius:13px; background:rgba(255,255,255,.08); box-shadow:none; backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); transform-origin:50% 50%; color:#fff; }
.cost-stack-card::after { content:""; position:absolute; inset:0; border:1px solid rgba(255,255,255,.1); border-radius:inherit; pointer-events:none; }
.cost-stack-card[data-depth="0"] { z-index:4; }
.cost-stack-card[data-depth="1"] { z-index:3; transform:translateY(11px) scale(.9); }
.cost-stack-card[data-depth="2"] { z-index:2; transform:translateY(21px) scale(.8); }
.cost-stack-card[data-depth="3"] { z-index:1; transform:translateY(32px) scale(.8); opacity:0; }
.cost-card-content { height:100%; padding:10px 15px 10px 10px; display:flex; align-items:center; gap:8px; }
.cost-stack-card:not([data-depth="0"]) .cost-card-content { opacity:0; }
.cost-card-icon { flex:0 0 34px; height:34px; display:grid; place-items:center; border-radius:8px; background:rgba(232,237,247,.12); overflow:hidden; }
.cost-card-icon svg { width:21px; height:21px; fill:none; stroke:#fff; stroke-width:1.25; stroke-linecap:round; stroke-linejoin:round; }
.cost-card-copy { min-width:0; flex:1; }
.cost-card-label { display:block; overflow:hidden; text-overflow:ellipsis; font:500 12px/18px var(--study-body); letter-spacing:normal; white-space:nowrap; }
.cost-card-status { position:relative; flex:0 0 16px; height:16px; }
.cost-card-status svg { position:absolute; inset:0; width:16px; height:16px; transition:opacity .18s ease; }
.cost-spinner { fill:none; stroke:#fff; stroke-width:1.5; stroke-linecap:round; animation:cost-spin 1.2s linear infinite; animation-play-state:paused; }
.cost-complete { opacity:0; fill:#fff; }
.cost-complete path { fill:none; stroke:#17202a; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.cost-stack-card[data-status="complete"] .cost-spinner { opacity:0; }
.cost-stack-card[data-status="complete"] .cost-complete { opacity:1; }
.ai-outcomes[data-motion="running"] .outcome-cost.is-visible [data-depth="0"][data-status="working"] .cost-spinner { animation-play-state:running; }
@keyframes cost-spin { to { transform:rotate(360deg); } }
.cost-stack[data-phase="shifting"] [data-depth="0"] { animation:cost-depart .8s var(--cost-ease) both; }
.cost-stack[data-phase="shifting"] [data-depth="1"] { animation:cost-advance-front .8s var(--cost-ease) both; }
.cost-stack[data-phase="shifting"] [data-depth="2"] { animation:cost-advance-middle .8s var(--cost-ease) both; }
.cost-stack[data-phase="shifting"] [data-depth="3"] { animation:cost-advance-back .8s var(--cost-ease) both; }
.cost-stack[data-phase="shifting"] [data-depth="1"] .cost-card-content { animation:cost-content-in .8s var(--cost-ease) both; }
.cost-stack[data-phase="shifting"] .cost-stack-card,.cost-stack[data-phase="shifting"] .cost-card-content { animation-play-state:paused; }
.ai-outcomes[data-motion="running"] .outcome-cost.is-visible .cost-stack-card,
.ai-outcomes[data-motion="running"] .outcome-cost.is-visible .cost-card-content { animation-play-state:running; }
@keyframes cost-depart { to { transform:translateY(60px) scale(.9); opacity:0; } }
@keyframes cost-advance-front { to { transform:translateY(0) scale(1); } }
@keyframes cost-advance-middle { to { transform:translateY(11px) scale(.9); } }
@keyframes cost-advance-back { to { transform:translateY(21px) scale(.8); opacity:1; } }
@keyframes cost-content-in { from { opacity:0; } to { opacity:1; } }

/* Cool reflected light ties the illustrations to the blue photographic panel. */
.outcome-personal { background:#1a1410; }
.outcome-revenue { background:#1a1410; }
.outcome-personal::after,.outcome-revenue::after { content:""; position:absolute; inset:0; border:1px solid rgba(255,241,225,.10); border-radius:inherit; pointer-events:none; }
/* Photographic stage behind the personal and revenue examples: the image at the back, a light scrim over it, the example above both. */
.stage-photograph { position:absolute; inset:0; z-index:0; width:100%; height:100%; object-fit:cover; object-position:50% 50%; }
.outcome-personal::before,.outcome-revenue::before { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background:radial-gradient(ellipse 60% 60% at 50% 50%,rgba(20,10,4,.18),rgba(20,10,4,0) 100%),linear-gradient(180deg,rgba(20,10,4,.02),rgba(20,10,4,.16)); }
.outcome-revenue::before { background:radial-gradient(ellipse 60% 60% at 50% 50%,rgba(20,10,4,.18),rgba(20,10,4,0) 100%),linear-gradient(180deg,rgba(20,10,4,.02),rgba(20,10,4,.06) 66%,rgba(20,10,4,.55) 100%); }
.outcome-revenue .stage-photograph { object-position:50% 50%; }
.outcome-personal > :not(.stage-photograph),.outcome-revenue > :not(.stage-photograph) { z-index:2; }
.personal-halo { position:absolute; width:84%; max-width:365px; height:auto; left:50%; top:50%; transform:translate(-50%,-50%); }
.personal-halo circle { fill:#fff3e2; opacity:.35; }
.personal-example { position:absolute; left:50%; top:50%; width:204px; height:300px; transform:translate(-50%,-50%); padding:0; border:0; border-radius:12px; background:transparent; font-family:var(--study-body); text-align:left; cursor:pointer; perspective:1500px; -webkit-tap-highlight-color:transparent; }
.personal-example:focus-visible { outline:2px solid #f1e6d6; outline-offset:8px; }
.personal-flipper { position:absolute; inset:0; display:block; transform-style:preserve-3d; }
.personal-face { position:absolute; inset:0; display:flex; flex-direction:column; overflow:hidden; padding:16px; border-radius:12px; backface-visibility:hidden; -webkit-backface-visibility:hidden; box-shadow:0 20px 48px rgba(0,0,0,.3),0 0 0 1px rgba(255,240,222,.22),inset 0 1px 0 rgba(255,255,255,.08); }
.personal-front { background:radial-gradient(ellipse at 105% -10%,#4a3a2c,transparent 68%),#17130f; color:#f6f1ea; }
.personal-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.personal-top img,.personal-coordinator img,.personal-profile img { object-fit:cover; border-radius:50%; }
.personal-clinic { font-size:7px; letter-spacing:.18em; line-height:1.4; }
.personal-welcome { font:400 25px/.98 var(--study-heading); letter-spacing:-.02em; }
.personal-caption { display:block; font-size:9px; color:#c9bfb2; margin:7px 0 15px; }
.personal-appointment { padding:10px; border:1px solid #ffffff24; border-radius:5px; display:flex; flex-direction:column; gap:4px; }
.personal-appointment>span:first-child { font-size:6px; letter-spacing:.12em; color:#bfb3a5; }
.personal-appointment strong { font:400 13px/1.3 var(--study-heading); }
.personal-confirmed { font-size:8px; color:#d1c7ae; }
.personal-confirmed i,.personal-ready i { display:inline-block; width:4px; height:4px; border-radius:50%; background:#d1c7a6; margin-right:4px; vertical-align:middle; }
.personal-prep { display:flex; justify-content:space-between; padding:7px 0; border-bottom:1px solid #ffffff14; font-size:8px; color:#d6cdc2; }
.personal-tick { color:#d1c7a6; }
.personal-coordinator { display:flex; align-items:center; gap:7px; padding-top:10px; font-size:8px; color:#cfc5b9; }
.personal-back { transform:rotateY(-180deg); background:radial-gradient(ellipse at 0% 0%,#3d2f24,transparent 72%),#17130f; color:#f6f1ea; }
.personal-back .personal-clinic { color:#c3b8aa; margin-bottom:24px; }
.personal-back-title { font:400 23px/1 var(--study-heading); letter-spacing:-.02em; }
.personal-profile { display:flex; align-items:center; gap:8px; padding:18px 0 12px; font-size:11px; }
.personal-profile>span>span { display:block; font-size:8px; color:#c3b8aa; padding-top:2px; }
.personal-detail { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-top:1px solid rgba(249,236,220,.14); font-size:8px; }
.personal-detail>span { color:#c3b8aa; }
.personal-detail strong { font-weight:400; }
.personal-ready { font-size:8px; color:#d1c7ae; margin-top:12px; }

/* Revenue graph: one line climbing out of one-off visits into repeat revenue across the patient journey, drawn on a loop like the other examples. */
.revenue-graph { position:absolute; inset:0; width:100%; height:100%; z-index:2; font-family:var(--study-body); }
.rg-bands rect { fill:rgba(20,10,4,.22); stroke:rgba(255,255,255,.22); }
.rg-bands .rg-band-low { fill:rgba(20,10,4,.34); stroke:rgba(255,255,255,.14); }
.rg-label { font-size:13px; fill:rgba(255,255,255,.78); }
.rg-guides line { stroke:rgba(255,255,255,.38); stroke-width:1; stroke-dasharray:2 5; }
.rg-axis text { font-size:13px; fill:rgba(255,255,255,.9); }
.rg-line { fill:none; stroke:url(#revenue-line-gradient); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:452; stroke-dashoffset:452; animation:rg-draw 7s cubic-bezier(.45,0,.2,1) infinite; animation-play-state:paused; }
.rg-point { stroke:#fff; stroke-width:3; opacity:0; transform-box:fill-box; transform-origin:center; animation:rg-pop-1 7s ease infinite; animation-play-state:paused; }
.rg-p1 { fill:rgba(0,0,0,.35); } .rg-p2 { fill:#e9e36a; animation-name:rg-pop-2; } .rg-p3 { fill:#9bd86a; animation-name:rg-pop-3; } .rg-p4 { fill:#2bc06f; animation-name:rg-pop-4; }
.rg-glow { fill:#2bc06f; opacity:0; filter:blur(6px); animation:rg-glow 7s ease infinite; animation-play-state:paused; }
.rg-tip { opacity:0; transform-box:fill-box; transform-origin:78% 100%; animation:rg-tip 7s ease infinite; animation-play-state:paused; }
.rg-tip rect,.rg-tip path { fill:#fff; } .rg-tip text { font-size:13px; font-weight:500; fill:#1b1b1f; }
.ai-outcomes[data-motion="running"] .outcome-stage.is-visible .rg-line,.ai-outcomes[data-motion="running"] .outcome-stage.is-visible .rg-point,.ai-outcomes[data-motion="running"] .outcome-stage.is-visible .rg-glow,.ai-outcomes[data-motion="running"] .outcome-stage.is-visible .rg-tip { animation-play-state:running; }
@keyframes rg-draw { 0%,3% { stroke-dashoffset:452; opacity:1; } 40% { stroke-dashoffset:0; } 88% { stroke-dashoffset:0; opacity:1; } 94% { stroke-dashoffset:0; opacity:0; } 100% { stroke-dashoffset:452; opacity:0; } }
@keyframes rg-pop-1 { 0%,3% { opacity:0; transform:scale(.5); } 6% { opacity:1; transform:scale(1); } 88% { opacity:1; } 94%,100% { opacity:0; } }
@keyframes rg-pop-2 { 0%,14% { opacity:0; transform:scale(.5); } 17% { opacity:1; transform:scale(1); } 88% { opacity:1; } 94%,100% { opacity:0; } }
@keyframes rg-pop-3 { 0%,26% { opacity:0; transform:scale(.5); } 29% { opacity:1; transform:scale(1); } 88% { opacity:1; } 94%,100% { opacity:0; } }
@keyframes rg-pop-4 { 0%,39% { opacity:0; transform:scale(.5); } 42% { opacity:1; transform:scale(1); } 88% { opacity:1; } 94%,100% { opacity:0; } }
@keyframes rg-glow { 0%,39% { opacity:0; } 44% { opacity:.5; } 88% { opacity:.45; } 94%,100% { opacity:0; } }
@keyframes rg-tip { 0%,42% { opacity:0; transform:translateY(6px) scale(var(--rg-tip-scale,1)); } 46% { opacity:1; transform:translateY(0) scale(var(--rg-tip-scale,1)); } 88% { opacity:1; transform:translateY(0) scale(var(--rg-tip-scale,1)); } 94%,100% { opacity:0; transform:translateY(0) scale(var(--rg-tip-scale,1)); } }
@keyframes outcome-orbit { to {transform:rotate(360deg)} }
@keyframes outcome-counter-orbit { to {transform:rotate(-360deg)} }

@media(min-width:1800px) { .outcomes-heading { margin-bottom:64px; } .header-study .ai-outcomes { padding-top:120px; } }
@media(max-width:1100px) and (min-width:810px) { .outcome-stage { height:350px; padding:20px; } .personal-example { transform:translate(-50%,-50%) scale(.83); } .header-study .outcome h3 { font-size:16px; } .outcome>p { font-size:15px; } }
@media(max-width:809px) {
  .header-study .ai-outcomes { padding:76px 24px 64px; }
  .outcomes-heading { margin-bottom:36px; }
  .outcomes-eyebrow { font-size:10px; letter-spacing:.22em; margin-bottom:20px; }
  .header-study .outcomes-heading h2 { font-size:clamp(32px,5.8vw,44px); line-height:1.04; letter-spacing:-.025em; margin-bottom:20px; }
  .outcomes-intro { font-size:16px; line-height:1.5; }
  .outcomes-desktop-break { display:none; }
  .outcomes-grid { grid-template-columns:1fr; gap:36px; max-width:560px; margin:auto; }
  .outcome-stage { height:365px; padding:24px; }
  .rg-label,.rg-axis text { font-size:19px; }
  .rg-tip { --rg-tip-scale:1.35; }
  .header-study .outcome h3 { margin-top:16px; font-size:18px; }
  .outcome>p { font-size:16px; max-width:none; }
}
@media(prefers-reduced-motion:reduce) {
  .cost-stack-card,.cost-card-content,.cost-spinner { animation:none!important; }
  .rg-line,.rg-point,.rg-glow,.rg-tip { animation:none!important; opacity:1; stroke-dashoffset:0; transform:none; }
  .cost-card-status svg { transition:none; }
}
