/* Why believe an answer from their own AI agent: a short conversation, and beside it the answer it is about.
   They try twice to change the answer (a number they would like, then a report they made); it stays what their
   records show. chat.js plays it while it is on screen. Without the script, or with reduced motion, it stands
   at its end: the conversation written out and the answer verified. */
.title.center:has(+ .lede) { margin-bottom: 18px; }
.lede { max-width: 34em; margin: 0 auto 52px; font-size: 18px; line-height: 28px; color: var(--ink-3); text-align: center; text-wrap: balance; }
.onward { margin-top: 36px; text-align: center; }
.onward .pill { padding: 0 12px 0 15px; }

.talk { --gap: 44px; --w-metal: linear-gradient(180deg, #3a3a40, #1d1d21); --w-out: cubic-bezier(.2, .8, .2, 1); --w-inout: cubic-bezier(.5, 0, .2, 1); min-height: 0; padding: 44px 40px; grid-template-columns: minmax(0, 1fr); }
.talk.reset *, .talk.reset *::before, .talk.reset *::after { transition: none !important; animation: none !important; }
.talk-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 440px); gap: var(--gap); justify-content: center; align-items: center; width: 100%; }

/* Their chat. Each line opens its own height, so the ones above it rise smoothly. */
.talk .thread { display: flex; flex-direction: column; height: 404px; }
.talk .thread .top { min-height: 46px; font-size: 13px; }
.talk .with { display: inline-flex; align-items: center; gap: 6px; }
.talk .with svg { flex: none; width: 14px; height: 14px; fill: currentColor; }
.talk .msgs { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; padding: 0 16px 6px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 4px, #000 56px); mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 4px, #000 56px); }
.talk .mw { display: grid; grid-template-rows: 0fr; flex: none; transition: grid-template-rows .5s var(--out); }
.talk .mw > div { min-height: 0; overflow: hidden; }
.talk .mw.on { grid-template-rows: 1fr; }
.talk .m { margin: 0; padding: 6px 2px; font-size: 14px; line-height: 20px; opacity: 0; transform: translateY(8px); transition: opacity .4s ease .08s, transform .5s var(--out) .08s; }
.talk .mw.on .m { opacity: 1; transform: none; }
.talk .m.ai { max-width: 90%; color: var(--ink-2); }
.talk .m.me { display: flex; justify-content: flex-end; }
.talk .m.me span { display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px; border-radius: 16px 16px 4px 16px; border: 1px solid rgba(242, 242, 238, .2); background: var(--metal); box-shadow: var(--metal-lip); color: var(--ink); }
.talk .m.att span { padding-left: 8px; }
.talk .compose { flex: none; display: flex; align-items: center; height: 40px; margin: 6px 12px 12px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(242, 242, 238, .12); background: #0d0d0f; font-size: 13px; color: var(--ink-4); }
@keyframes talk-type { from { clip-path: inset(0 100% 0 0); } }

/* What they say or make themselves is hollow and dashed: their word, not something found in a record. */
.talk .wish { position: absolute; left: 327px; top: -54px; display: grid; place-items: center; width: 62px; height: 38px; border-radius: 13px; border: 1.5px dashed rgba(242, 242, 238, .72); background: #0e0e10; font: 600 18px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--ink-2); opacity: 0; transform: translateX(-330px); transition: transform .9s var(--w-inout), opacity .3s; }
.talk .thumb { position: relative; display: block; flex: none; width: 32px; height: 40px; border-radius: 6px; border: 1.5px dashed rgba(242, 242, 238, .6); background: #0e0e10; font-style: normal; overflow: hidden; }
.talk .thumb b { position: absolute; left: 5px; top: 6px; font: 600 9px/1 var(--font); color: var(--ink-2); }
.talk .thumb u, .talk .sheet u { position: absolute; display: block; text-decoration: none; background: linear-gradient(0deg, rgba(242, 242, 238, .34), rgba(242, 242, 238, .34)) 0 100% / 14% 28% no-repeat, linear-gradient(0deg, rgba(242, 242, 238, .34), rgba(242, 242, 238, .34)) 28.6% 100% / 14% 44% no-repeat, linear-gradient(0deg, rgba(242, 242, 238, .34), rgba(242, 242, 238, .34)) 57.2% 100% / 14% 66% no-repeat, linear-gradient(0deg, rgba(242, 242, 238, .34), rgba(242, 242, 238, .34)) 86% 100% / 14% 100% no-repeat; }
.talk .thumb u { left: 5px; bottom: 5px; width: 20px; height: 14px; }

/* Beside the chat: drawn at 440 by 404 and scaled to its column (chat.js). */
.talk .seen-fit { position: relative; width: 100%; height: 404px; }
.talk .seen-in { position: absolute; left: 0; top: 0; width: 440px; height: 404px; transform-origin: 0 0; }

/* The report they bring. It lands above the answer, is read, and is set aside. */
.talk .doc { position: absolute; left: 136px; top: 34px; width: 168px; height: 216px; opacity: 0; transform: translate(-190px, 60px) rotate(-16deg) scale(.4); transform-origin: 0 0; transition: transform .9s var(--w-out), opacity .4s; }
.talk .sheet { position: absolute; inset: 0; border-radius: 10px; border: 1.5px dashed rgba(242, 242, 238, .72); background: #0e0e10; box-shadow: 0 30px 50px -22px #000; overflow: hidden; transform: rotate(-4deg); }
.talk .sheet span { position: absolute; left: 16px; top: 15px; font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; }
.talk .sheet b { position: absolute; left: 16px; top: 40px; font: 600 34px/1 var(--font); letter-spacing: -.02em; color: var(--ink); }
.talk .sheet em { position: absolute; left: 16px; top: 78px; font-style: normal; font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; }
.talk .sheet u { left: 16px; top: 108px; width: 74px; height: 46px; }
.talk .sheet i { position: absolute; left: 16px; height: 5px; border-radius: 3px; background: rgba(242, 242, 238, .14); }
.talk .sheet i:nth-of-type(1) { top: 170px; width: 118px; }
.talk .sheet i:nth-of-type(2) { top: 182px; width: 92px; }
.talk .sheet i:nth-of-type(3) { top: 194px; width: 106px; }
.talk .sheet s { position: absolute; left: 0; right: 0; top: -90px; height: 90px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .08) 70%, rgba(255, 255, 255, .34) 98%, rgba(255, 255, 255, 0)); opacity: 0; }
@keyframes talk-scan { 0% { transform: translateY(0); opacity: 0; } 12%, 88% { opacity: 1; } 100% { transform: translateY(310px); opacity: 0; } }

/* The answer: dashed until it is settled, green once it is verified. */
.talk .ansbox { position: absolute; left: 20px; top: 173px; width: 400px; height: 58px; transition: transform .8s var(--w-inout); }
.talk .ans { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding: 0 22px 0 16px; border-radius: 999px; border: 1px dashed rgba(242, 242, 238, .5); background: linear-gradient(180deg, #1c1c20, #111113); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .1), 0 18px 34px -18px #000; font-size: 15px; white-space: nowrap; transition: border-color .5s, background .5s, box-shadow .5s; }
.talk .ans svg { flex: none; width: 21px; height: 24px; overflow: visible; }
.talk .ans .hex { fill: none; stroke: rgba(242, 242, 238, .42); stroke-width: 6; transition: opacity .3s; }
.talk .ans .ring { fill: var(--ok); opacity: 0; transition: opacity .25s; }
.talk .ans .pen { fill: none; stroke: var(--ok); stroke-width: 10; stroke-linejoin: miter; stroke-miterlimit: 8; stroke-dasharray: 1; stroke-dashoffset: 1; }
.talk .ans .said { flex: 1; color: var(--ink-2); }
.talk .ans .end { display: inline-grid; justify-items: end; align-items: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.talk .ans .end > * { grid-area: 1 / 1; }
.talk .ans .qm { color: var(--ink-3); transition: opacity .25s; }
.talk .ans .val { font-size: 17px; color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .35s, transform .5s var(--w-out); }
.talk.got .ans .qm { opacity: 0; }
.talk.got .ans .val { opacity: 1; transform: none; }
.talk.sent .ans { border-style: solid; border-color: rgba(75, 227, 160, .46); background: linear-gradient(180deg, #14291f, #0c1410); box-shadow: inset 0 1.5px 0 rgba(168, 245, 207, .22), 0 18px 34px -18px #000; }
.talk.sent .ans .hex { opacity: 0; }
.talk.sent .ans .ring { opacity: 1; }
.talk.sent .ans .pen { stroke-dashoffset: 0; animation: talk-write .42s cubic-bezier(.55, 0, .3, 1) .1s backwards; }
@keyframes talk-write { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* First they say a number. It comes over from the chat, comes down on the answer, and is pushed off. */
.talk.w1 .wish { opacity: 1; transform: none; }
.talk.w2 .wish { transform: translateY(14px); transition: transform .4s var(--w-inout), opacity .3s; }
.talk.w3 .wish { opacity: 0; transform: translateY(-16px); transition: opacity .45s, transform .45s; }
.talk.w3 .ans { animation: talk-push-off .5s ease-out; }
@keyframes talk-push-off { 30% { transform: translateY(-6px); } }
@keyframes talk-stands { 40% { transform: scale(1.22); } }

/* Then they bring the report. The answer makes room, the report is read, and the answer stands. */
.talk.s1 .ansbox { transform: translateY(132px); }
.talk.s1 .doc { opacity: 1; transform: none; }
.talk.again .sheet s { animation: talk-scan 1.4s cubic-bezier(.45, 0, .3, 1) both; }
.talk.s3 .doc { opacity: .26; transform: translate(124px, 26px) rotate(8deg) scale(.82); transition: transform .8s var(--w-inout), opacity .6s; }
.talk.s3 .ans .val { animation: talk-stands .6s var(--w-out) .3s; }
.talk.sent .doc { opacity: 0; transition: opacity .5s; }
.talk.sent .ansbox { transform: none; transition-delay: .15s; }

@media (max-width: 899px) {
  .title.center:has(+ .lede) { margin-bottom: 14px; }
  .lede { margin: 0 0 36px; text-align: left; }
  .onward { text-align: left; }
  .talk { --gap: 18px; padding: 22px 18px; }
  .talk-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 679px) {
  .talk-in { grid-template-columns: minmax(0, 1fr); }
  .talk .thread { height: 330px; }
}
@media (prefers-reduced-motion: reduce) { .talk *, .talk *::before, .talk *::after { transition: none !important; animation: none !important; } }
