/* The assistant section ("What are you building?"): the living logo, a question box that types by itself,
   answers with cards, and a project ticket. Answers are a small fixed set for now; a real AI is planned (ask.js). */
.ask { --bg: #0B1315; --panel: #121D20; --line: #253438; --text: #ECF0F0; --muted: #A6B4B6; --faint: #8A9B9E; --blue: #B8432F; --cream: #EEEAE2; --ink: #142022; --ink2: #454E50; --cline: #D9D3C7;
  position: relative; z-index: 1; background: var(--bg); color: var(--text); font-family: var(--sans); }
.ask button { font: inherit; cursor: pointer; }
.ask { padding: clamp(70px, 11vh, 130px) var(--g) clamp(70px, 11vh, 120px); }
.ask__in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.ask.talking .ask__in { grid-template-columns: minmax(0, 1fr) 340px; }
.col { max-width: 720px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
.ask.talking .col { justify-content: flex-end; }

/* 1. the face: the logo, alive */
.face svg { overflow: visible; display: block; }
.face .eyes { transition: transform .18s ease-out; }
.face .caret { transform-box: fill-box; transform-origin: center; animation: ak-blink 4.6s infinite; }
.face.think .caret { animation: ak-think .5s ease-in-out infinite alternate; }
@keyframes ak-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.12); } }
@keyframes ak-think { from { transform: scaleX(.35); } to { transform: scaleX(1); } }

.hello { text-align: center; margin-bottom: 30px; }
.hello .face { width: 104px; margin: 0 auto; }
.hello h2 { margin: 22px 0 0; font-weight: 600; letter-spacing: -.045em; font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.04; }
.hello h2 span { color: var(--muted); }
.ask.talking .hello { display: none; }

/* conversation */
.msgs { display: none; flex-direction: column; gap: 22px; padding-bottom: 22px; }
.ask.talking .msgs { display: flex; }
.me { align-self: flex-end; max-width: 78%; background: #23232B; padding: 10px 16px; border-radius: 18px; }
.bot { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.bot .face { width: 32px; }
.bot p { margin: 4px 0 0; line-height: 1.6; color: var(--text); }
.follow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.follow button { background: none; border: 1px solid #3A4E53; color: var(--text); border-radius: 8px; padding: 8px 13px; font-size: 14.5px; font-weight: 500; }
.follow button:hover { border-color: var(--text); }

/* 3. answers with real things in them */
.rich { margin-top: 12px; background: var(--cream); color: var(--ink); border-radius: 14px; overflow: hidden; max-width: 440px; animation: ak-rise .4s ease-out; }
@keyframes ak-rise { from { opacity: 0; transform: translateY(10px); } }
.rich--pkg { padding: 18px 20px; }
.rich--pkg small { font: 500 12.5px var(--mono); color: var(--blue); }
.rich--pkg h4 { margin: 4px 0 0; font-weight: 600; font-size: 1.35rem; letter-spacing: -.03em; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rich--pkg h4 span { font-size: 1.05rem; } .rich--pkg h4 s { color: #6B675F; font-weight: 400; font-size: .9rem; margin-right: 6px; }
.rich--pkg ul { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--cline); list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: #2A3B3F; }
.rich--pkg li::before { content: "✓  "; color: #A33A28; font-weight: 600; }
.rich--site { display: block; text-decoration: none; }
.rich--site img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.rich--site div { padding: 12px 16px 14px; } .rich--site b { font-weight: 600; } .rich--site span { display: block; font-size: 14px; color: var(--ink2); }
.rich--me { display: flex; gap: 14px; align-items: center; padding: 14px 18px; }
.rich--me img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; }
.rich--me b { display: block; font-weight: 600; } .rich--me span { font-size: 14px; color: var(--ink2); }

/* 2. the question box that types by itself */
.box { position: relative; background: var(--panel); border: 1px solid #3A4E53; border-radius: 26px; padding: 8px 8px 8px 22px; display: flex; align-items: center; gap: 10px; transition: border-color .2s; }
.box:focus-within { border-color: var(--blue); }
.box input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 17px; color: var(--text); padding: 13px 0; min-width: 0; }
.ghost { position: absolute; left: 22px; top: 50%; translate: 0 -50%; color: var(--faint); font-size: 17px; pointer-events: none; white-space: nowrap; overflow: hidden; max-width: calc(100% - 90px); }
.ghost i { display: inline-block; width: 9px; height: 18px; background: var(--blue); vertical-align: -3px; margin-left: 2px; animation: ak-cur 1s steps(1) infinite; }
@keyframes ak-cur { 50% { opacity: 0; } }
.box button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.box button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fine { text-align: center; margin: 12px 0 0; font-size: 13px; color: var(--faint); }

/* 6. suggestion cards with small pictures */
.starts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.starts button { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: center; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 10px 10px; color: var(--text); transition: border-color .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.starts button:hover { border-color: #4E6166; transform: translateY(-3px); }
.starts .pic { width: 62px; height: 62px; border-radius: 9px; overflow: hidden; background: var(--cream); display: grid; place-items: center; color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -.02em; }
.starts .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.starts .pic svg { width: 34px; }
.starts b { display: block; font-weight: 500; } .starts span { color: var(--muted); font-size: 14px; }
.ask.talking .starts { display: none; }

/* 4. the project ticket */
.ticket { display: none; position: sticky; top: 20px; background: var(--cream); color: var(--ink); border-radius: 16px; animation: ak-rise .45s ease-out; }
.ask.talking .ticket { display: block; }
.ticket__top { padding: 18px 20px 16px; }
.ticket small { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.ak-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; margin-top: 10px; }
.ak-route div b { display: block; font: 600 1.5rem/1 var(--sans); letter-spacing: -.04em; min-height: 1em; }
.ak-route div span { font-size: 12.5px; color: var(--ink2); }
.ak-route div:last-child { text-align: right; }
.ak-route i { font-style: normal; color: var(--blue); font-size: 18px; padding-bottom: 14px; }
.tear { border-top: 2px dashed #C9C4BA; position: relative; }
.tear::before, .tear::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); }
.tear::before { left: -8px; } .tear::after { right: -8px; }
.ticket dl { margin: 0; padding: 6px 20px 4px; }
.ticket dl div { padding: 10px 0; border-bottom: 1px solid var(--cline); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ticket dt { font: 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #625E57; }
.ticket dd { margin: 0; text-align: right; font-weight: 500; color: #B9B4AA; }
.ticket dd.on, .ak-route b.on { animation: ak-stamp .35s cubic-bezier(.16, 1, .3, 1); color: var(--ink); }
.ak-route b { color: #B9B4AA; } .ak-route b.on { color: var(--ink); }
@keyframes ak-stamp { from { transform: scale(1.5); opacity: 0; } }
.ticket__foot { padding: 14px 20px 18px; display: flex; align-items: center; gap: 14px; }
.bars { width: 46px; height: 2px; background: var(--ink); flex: none; margin-bottom: 22px; box-shadow: 0 4px 0 var(--ink), 0 7px 0 var(--ink), 0 12px 0 var(--ink), 0 15px 0 var(--ink), 0 19px 0 var(--ink), 0 24px 0 var(--ink); }
.ticket .send { flex: 1; background: var(--ink); color: #fff; border: 0; border-radius: 8px; padding: 12px; font-weight: 500; opacity: .3; pointer-events: none; transition: opacity .3s, background .2s; }
.ticket .send.on { opacity: 1; pointer-events: auto; background: var(--blue); }
.ak-ready { position: absolute; right: 16px; top: 14px; border: 2px solid #18733A; color: #18733A; font: 600 12px var(--mono); letter-spacing: .1em; padding: 3px 8px; border-radius: 6px; rotate: 8deg; display: none; }
.ticket.done .ak-ready { display: block; animation: ak-stamp .4s cubic-bezier(.16, 1, .3, 1); }

@media (max-width: 880px) { .ask.talking .ask__in { grid-template-columns: 1fr; } .ticket { position: relative; top: 0; } .starts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .face .caret, .ghost i, .rich, .ticket, .ticket dd.on, .ak-route b.on, .ak-ready { animation: none !important; } }

/* Heading as a demo (19 Nov 2026, Darco: make clear it's the chatbot clients can have) */
.hello h2 { max-width: 16ch; margin-inline: auto; text-wrap: balance; }
.hello__sub { margin: 16px auto 0; max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.55; text-wrap: pretty; }

/* Demo mode + "what your chatbot would do" (19 Nov 2026) */
.ak-mode { display: flex; gap: 4px; margin: 0 auto 18px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); width: fit-content; max-width: 100%; }
.ak-mode button { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 500 14.5px var(--sans, "Bricolage Grotesque", system-ui, sans-serif); cursor: pointer; transition: background .2s, color .2s; }
.ak-mode button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.ak-mode button:hover:not([aria-pressed="true"]) { color: var(--text); }
.ak-mode button:focus-visible { outline: 2px solid #E0705C; outline-offset: 2px; }
.ak-demo-note { margin: -6px auto 16px; max-width: 52ch; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ak-demo-note b { color: var(--text); font-weight: 600; }
.ak-demo-note[hidden], .starts[hidden], .ak-langs[hidden] { display: none; }
.starts .pic--t { font: 600 14px/1.05 var(--sans, "Bricolage Grotesque", sans-serif); text-align: center; color: #A33A28; }
.ak-langs { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 14.5px; }
.ak-does { margin: 22px auto 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: start; }
.ak-does__t { margin: 0; grid-column: 1 / -1; font-weight: 600; color: var(--text); }
.ak-does ul { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.ak-does li::before { content: "✓  "; color: #E0705C; font-weight: 600; }
.ak-does a { grid-column: 1 / -1; justify-self: start; margin-top: 6px; color: var(--text); font-weight: 500; font-size: 14.5px; text-underline-offset: 3px; }
.ak-does a:hover { color: #E0705C; }
.ask.is-demo .ticket { display: none; }   /* the project ticket belongs to "Ask us" */
.ask.is-demo.talking .ask__in { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) {
  .ak-mode { width: 100%; } .ak-mode button { flex: 1 1 0; padding: 8px 10px; font-size: 13.5px; }
  .ak-does ul { grid-template-columns: 1fr; }
}
.ak-does a { display: inline-block; padding-block: 4px; }   /* tap target of at least 24 px */
