/* ============================================================
   Ask Athena — the console and the figure standing beside it
   ============================================================ */
.askgrid{display:grid;grid-template-columns:minmax(280px,410px) 1fr;gap:40px;align-items:center}
@media(max-width:1000px){.askgrid{grid-template-columns:1fr;gap:18px}}

/* ---------- Athena, standing on the page ----------
   No frame, no card, no border. The film's own near-white ground is
   lifted to the page's brightness and then feathered away at the edges,
   so what is left is her — present in the layout rather than played
   inside a rectangle. */
.agent{display:flex;flex-direction:column;align-items:center;gap:14px}
/* 4:5, the aspect the footage is actually cropped to, so nothing letterboxes */
.agent-stage{position:relative;width:min(100%,420px);aspect-ratio:4/5;
  display:flex;align-items:flex-end;justify-content:center}
@supports not (aspect-ratio:4/5){ .agent-stage{height:clamp(400px,52vh,525px)} }
.agent-stage video,.agent-stage img{
  width:100%;height:100%;object-fit:contain;object-position:50% 100%;
  pointer-events:none;                    /* no hover controls, ever */
  /* lift the film's own near-white ground up to the page's brightness, then
     dissolve what is left of it — no frame, no visible plate */
  filter:brightness(1.09) contrast(.97) saturate(1.04);
  -webkit-mask-image:radial-gradient(ellipse 58% 70% at 50% 46%,#000 40%,rgba(0,0,0,.55) 74%,transparent 93%);
  mask-image:radial-gradient(ellipse 58% 70% at 50% 46%,#000 40%,rgba(0,0,0,.55) 74%,transparent 93%);
}
/* she needs something to stand on, or she reads as floating */
.agent-ground{position:absolute;bottom:7%;left:50%;transform:translateX(-50%);
  width:44%;height:22px;border-radius:50%;pointer-events:none;
  background:radial-gradient(ellipse at center,rgba(38,64,90,.13),transparent 70%);
  filter:blur(7px)}
/* a slow pastel breath in the air around her, well behind the figure */
.agent-stage::before{content:'';position:absolute;inset:-8% -14%;z-index:-1;opacity:.5;
  background:
    radial-gradient(circle at 32% 32%,rgba(10,166,212,.18),transparent 44%),
    radial-gradient(circle at 70% 60%,rgba(224,70,143,.14),transparent 46%),
    radial-gradient(circle at 50% 84%,rgba(122,92,240,.14),transparent 48%);
  filter:blur(34px);animation:auraDrift 22s ease-in-out infinite alternate}
@keyframes auraDrift{from{transform:translate3d(-3%,2%,0) scale(1)}to{transform:translate3d(4%,-3%,0) scale(1.07)}}

.agent-status{display:inline-flex;align-items:center;gap:9px;margin:0;
  font-family:'JetBrains Mono',monospace;font-size:10.5px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--ink-faint)}
.live{flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:var(--gr);
  animation:livePulse 2.6s ease-out infinite}
@keyframes livePulse{
  0%{box-shadow:0 0 0 0 rgba(15,179,127,.42)}
  70%{box-shadow:0 0 0 11px rgba(15,179,127,0)}
  100%{box-shadow:0 0 0 0 rgba(15,179,127,0)}
}

/* Stacked on a phone she stands beside her own status line, so the visitor
   is not scrolling past a full-height figure to reach the input. */
@media(max-width:1000px){
  .agent{flex-direction:row;align-items:center;justify-content:flex-start;gap:14px}
  .agent-stage{width:min(44%,210px)}
  .agent-status{font-size:10px;letter-spacing:.16em}
}

/* ---------- the console ---------- */
.console{display:flex;flex-direction:column;border-radius:26px;overflow:hidden;
  background:rgba(255,255,255,.94);border:1px solid var(--line2);box-shadow:var(--shadow);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);min-height:560px}
.chead{display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:16px 20px;border-bottom:1px solid var(--line2);background:rgba(255,255,255,.7)}
.chead .who{display:flex;align-items:center;gap:10px;font-family:'Sora';font-weight:600;font-size:14.5px}
.chead .dot{width:7px;height:7px;border-radius:50%;background:var(--gr);box-shadow:0 0 0 4px rgba(15,179,127,.14)}
.chead .cnt{font-family:'JetBrains Mono';font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-faint)}
.chead .cnt b{color:var(--cy);font-weight:500}

#chatlog{flex:1;overflow-y:auto;padding:22px 20px;display:flex;flex-direction:column;gap:14px;
  scroll-behavior:smooth;max-height:420px}
.msg{display:flex;gap:10px;align-items:flex-end}
.msg.u{justify-content:flex-end}
.msg .avt{flex:0 0 26px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  color:#fff;background:linear-gradient(135deg,#0aa6d4,#7a5cf0);margin-bottom:2px}
.bub{max-width:82%;padding:12px 15px;border-radius:16px;font-size:14.2px;line-height:1.62}
.msg.a .bub{background:var(--mist);border:1px solid var(--line2);border-bottom-left-radius:5px}
.msg.u .bub{background:linear-gradient(115deg,#0aa6d4,#12b6c9 60%,#3fb98f);color:#fff;
  border-bottom-right-radius:5px;box-shadow:0 8px 20px -12px rgba(10,166,212,.9)}
.msg.think .bub{display:flex;gap:5px;align-items:center;padding:15px}
.msg.think i{width:5px;height:5px;border-radius:50%;background:var(--ink-faint);
  animation:blink 1.25s ease-in-out infinite}
.msg.think i:nth-child(2){animation-delay:.18s}
.msg.think i:nth-child(3){animation-delay:.36s}
@keyframes blink{0%,60%,100%{opacity:.28;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}

.chips{display:flex;gap:8px;flex-wrap:wrap;padding:0 20px 14px}
.chips button{font-family:'Inter',sans-serif;font-size:12.5px;color:var(--ink-dim);cursor:pointer;
  background:rgba(255,255,255,.9);border:1px solid var(--line);border-radius:100px;padding:7px 13px;
  transition:border-color .2s,color .2s,transform .15s}
.chips button:hover:not(:disabled){border-color:rgba(10,166,212,.45);color:var(--cy);transform:translateY(-1px)}
.chips button:disabled{opacity:.4;cursor:not-allowed}

#chatform{display:flex;gap:10px;padding:14px 20px;border-top:1px solid var(--line2);background:rgba(255,255,255,.8)}
#chatinput{flex:1;font-family:'Inter',sans-serif;font-size:14.2px;color:var(--ink);
  background:var(--mist);border:1px solid var(--line2);border-radius:100px;padding:12px 17px;outline:none;
  transition:border-color .2s,background .2s}
#chatinput:focus{border-color:rgba(10,166,212,.5);background:#fff}
#chatinput:disabled{opacity:.55}
#chatsend{border-radius:100px;padding:11px 20px}
#chatnote{padding:0 20px 18px;margin:0;font-size:11.5px;line-height:1.6;color:var(--ink-faint)}
#chatnote.spent{color:var(--mg)}

@media(prefers-reduced-motion:reduce){
  .agent-stage::before{animation:none}
  .live{animation:none}
  .msg.think i{animation:none}
  #chatlog{scroll-behavior:auto}
}
