/* Original Psyche companion and bloom, adapted to the evidence landing page. */
:root { --bloom: #2350f0; --royal: var(--blue); --t-s: 1rem; --t-l: clamp(1.3rem, 2.3vw, 1.8rem); --t-m: 1.25rem; --t-xs: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.psyche-fly { position: fixed; left: 0; top: 0; z-index: 28; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; opacity: 0; transition: opacity .8s ease; will-change: transform; }
.psyche-fly.is-here { opacity: 1; }
.psyche-fly.is-away { opacity: 0; pointer-events: none; }
.psyche-fly canvas { display: block; will-change: transform; }
.psyche-fly.on-dark canvas { filter: brightness(0) invert(1); }
.psyche-fly:focus-visible { outline-offset: 2px; }
.psyche-tag { position: absolute; left: 50%; top: calc(100% + 2px); transform: translateX(-50%); white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--royal); background: var(--paper); padding: .05rem .4rem; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.psyche-fly.show-tag .psyche-tag, .psyche-fly:hover .psyche-tag, .psyche-fly:focus-visible .psyche-tag { opacity: 1; }
.ask { padding: 95px var(--gutter) 105px; text-align: center; border-top: 1px solid var(--line); }
.ask .eyebrow { color: var(--blue); }
.ask h2 { margin: 24px auto 0; font-size: clamp(48px, 6vw, 88px); }
.ask .lede { max-width: 31rem; margin: 24px auto 0; font-size: 14px; color: var(--muted); }
.ask-form { position: relative; max-width: 760px; margin: 45px auto 0; display: flex; align-items: flex-end; gap: 24px; text-align: left; }
.ask-form textarea { flex: 1; min-width: 0; resize: none; overflow: hidden; min-height: 46px; padding: 6px 0 10px; font: 400 clamp(20px,2vw,27px)/1.35 var(--serif); color: var(--royal); background: transparent; border: 0; border-bottom: 1px solid var(--royal); border-radius: 0; }
.ask-form textarea::placeholder { color: var(--royal); opacity: .58; font-style: italic; }
.ask-form textarea:focus-visible { outline-offset: 5px; }
.ask-form .button { flex: none; }
.ask-form .button[aria-disabled="true"] { opacity: .5; cursor: progress; }
.ask-status { min-height: 1.5em; margin-top: 20px; font-family: var(--serif); font-style: italic; font-size: 18px; }
.ask-result { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px,5vw,75px); align-items: start; margin: 40px auto 0; max-width: 1200px; text-align: left; }
.ask-result[hidden] { display: none; }
.ask-flower-col { justify-self: center; width: 100%; max-width: 540px; }
.ask-flower { position: relative; width: 100%; aspect-ratio: 1; container-type: inline-size; }
.ask-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 12px; font-size: 11px; opacity: 0; transition: opacity .8s ease .3s; }
.ask-result.has-flower .ask-key { opacity: 1; }
.ask-key span[hidden] { display: none; }
.ask-key span { display: inline-flex; align-items: center; gap: 8px; }
.ask-key span::before { content: ""; width: 26px; height: 15px; border-radius: 50%; box-sizing: border-box; }
.key-moves::before { background: radial-gradient(circle,var(--bloom) 1.2px,transparent 1.6px) 0 0/4px 4px; border: 1.5px dotted var(--bloom); }
.key-stays::before { border: 1.5px dotted var(--bloom); }
.key-quiet::before { border: 1.5px dotted color-mix(in srgb,var(--bloom) 55%,transparent); }
.ask-flower canvas { display: block; max-width: 100%; height: auto!important; }
.petal { position: absolute; width: max-content; max-width: 5.6em; font-size: clamp(14px,3.6cqi,19px); line-height: 1.2; color: var(--royal); opacity: 0; transition: opacity .9s ease var(--d,0s); }
.petal.c { transform: translate(-50%,-100%); text-align: center; }
.petal.c.down { transform: translate(-50%,0); }
.petal.l { transform: translate(-100%,-50%); text-align: right; }
.petal.r { transform: translate(0,-50%); text-align: left; }
.petal.stays { font-style: italic; }
.ask-flower.is-open .petal { opacity: 1; }
.ask-flower.is-open .petal.quiet { opacity: .72; }
.ask-flower.is-open .petal.moves { animation: ink-label .6s ease var(--f,0s) forwards; }
@keyframes ink-label { to { font-weight: 500; } }
.ask-words { padding-top: 8px; }
.ask-summary { font: 400 clamp(24px,2.3vw,34px)/1.25 var(--serif); letter-spacing: -.025em; opacity: 0; }
.ask-summary.on { animation: arrive .9s ease var(--at,0s) forwards; }
@keyframes arrive { to { opacity: 1; } }
.ask-result h3 { margin-top: 28px; font: italic 24px/1.3 var(--serif); }
.ask-story { margin-top: 14px; line-height: 1.8; min-height: 4.5em; font-size: 14px; }
.ask-story[aria-busy] { min-height: 18em; }
.ask-result:not(.has-flower) .ask-words { visibility: hidden; }
.ask-writing { margin-top: 8px; font: italic 17px/1.4 var(--serif); opacity: .85; }
.ask-writing span::after { content: ""; display: inline-block; width: 1.6em; text-align: left; animation: dots 1.6s steps(4,end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: " ·"; } 50% { content: " · ·"; } 75% { content: " · · ·"; } }
.ask-story .w { display: inline; }
.ask-story.ink-reveal .w { opacity: 0; filter: blur(7px); animation: settle 1.2s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i)*16ms); }
@keyframes settle { 60% { filter: blur(1px); } to { opacity: 1; filter: blur(0); } }
.ask-note { margin-top: 16px; font: italic 14px/1.5 var(--serif); color: var(--muted); }
.ask-intro { margin-top: 24px; }
@media(max-width:900px) { .ask-result { grid-template-columns: 1fr; gap: 28px; } .ask-form { flex-direction: column; align-items: stretch; } .ask-form .button { align-self: flex-start; } .nav-psyche { display: none; } }
@media(max-width:760px) { .ask { padding-block: 65px; } .ask h2 { font-size: 50px; } .ask .lede { font-size: 13px; } .ask-form { margin-top: 30px; } .psyche-fly { z-index: 28; } }
@media(prefers-reduced-motion:reduce) { .petal { transition: none; } .ask-story.ink-reveal .w { animation: none; opacity: 1; filter: none; } .ask-summary.on { animation: none; opacity: 1; } .ask-flower.is-open .petal.moves { animation: none; font-weight: 500; } .ask-writing span::after { animation: none; content: " · · ·"; } }
.psyche-fly.is-docked{border-radius:50%;background:rgba(248,248,243,.96);box-shadow:0 2px 16px #151b2517}
.psyche-fly.is-docked canvas{filter:none}
.psyche-fly.is-docked .psyche-tag{top:auto;bottom:calc(100% + 5px);left:auto;right:0;transform:none}
/* Reserve space around the flower for its labels on narrow screens. */
@media(max-width:600px){.ask-flower{width:calc(100% - 64px);margin-inline:auto}}
@media(max-width:900px){.ask-form textarea{flex:none;width:100%}}
