/* ==========================================================================
   JBT — AI section: "Try it: ask the AI" + the network behind it
   ========================================================================== */
.aix {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h, 76px) + clamp(48px, 9vh, 96px)) clamp(16px, 5vw, 72px) clamp(64px, 11vh, 120px);
  background: radial-gradient(90% 70% at 75% 40%, #ffffff 0%, #f7f5ef 55%, #ece8de 100%);
  color: #111;
  font-family: "Instrument Sans", system-ui, sans-serif;
}
.aix__net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.aix__inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; }

.aix__head { max-width: 760px; }
.aix__eyebrow { display: flex; align-items: center; gap: 12px; font: 500 12px/1 "Instrument Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.aix__eyebrow span { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; letter-spacing: 0; font-size: 11px; }
.aix__title { margin-top: 22px; font: 400 clamp(40px, 5vw, 80px)/.98 "Instrument Serif", Georgia, serif; letter-spacing: -.025em; text-wrap: balance; }
.aix__title em { font-style: italic; }
.aix__lede { margin-top: 20px; font-size: clamp(17px, 1.35vw, 20px); color: #2e2e2c; max-width: 48ch; }

.aix__play { margin-top: clamp(32px, 5vh, 52px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(96px, 10vw, 150px); align-items: start; }
/* The network's clusters sit in that gap, beside each capability */

/* The answer window */
.aix__window {
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(17, 17, 17, .08); border-radius: 22px;
  padding: 16px 20px 18px; box-shadow: 0 50px 100px -55px rgba(17, 17, 17, .45), 0 2px 0 rgba(255, 255, 255, .8) inset;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.aix__bar { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6b6a66; }
.aix__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2ded5; }
.aix__bar span { margin-left: 8px; font-weight: 500; color: #111; }
.aix__bar em { margin-left: auto; font-style: normal; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: #f1eee7; color: #6b6a66; }
.aix__ask { margin-top: 14px; display: flex; gap: 8px; }
.aix__ask input {
  flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(17, 17, 17, .14); background: #fbfaf6;
  font: 400 15px/1 "Instrument Sans", sans-serif; color: #111;
}
.aix__ask input:focus { outline: 2px solid #111; outline-offset: 2px; }
.aix__ask button { height: 48px; padding: 0 20px; border-radius: 999px; border: 0; background: #111; color: #fbfaf6; font: 500 14px/1 "Instrument Sans", sans-serif; cursor: pointer; }
.aix__chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.aix__chips button {
  font: 500 13px/1 "Instrument Sans", sans-serif; padding: 10px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(17, 17, 17, .14); background: #fff; color: #111; transition: background .25s, border-color .25s, transform .25s;
}
.aix__chips button:hover { transform: translateY(-1px); border-color: #111; }
.aix__chips button[aria-pressed="true"] { background: #111; color: #fbfaf6; border-color: #111; }
.aix__chips button:focus-visible, .aix__cap:focus-visible, .aix__ask button:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

.aix__answer { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(17, 17, 17, .08); min-height: 270px; font-size: 16px; line-height: 1.6; color: #1d1d1b; }
.aix__placeholder { color: #8a877f; }
.aix__q { font-weight: 500; }
.aix__q::before { content: "You  "; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a877f; }
.aix__thinking { display: inline-flex; gap: 4px; margin: 10px 0 2px; }
.aix__thinking i { width: 6px; height: 6px; border-radius: 50%; background: #b9b5ab; animation: aix-dot 1s infinite ease-in-out; }
.aix__thinking i:nth-child(2) { animation-delay: .15s; } .aix__thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes aix-dot { 50% { transform: translateY(-4px); background: #111; } }
.aix__a { margin-top: 10px; }
.aix__a::before { content: "AI  "; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a877f; }

/* The business the answer recommends */
.aix__pick {
  margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: #fbfaf6; border: 1px solid rgba(17, 17, 17, .1);
  animation: aix-in .5s cubic-bezier(.22, 1, .36, 1) both;
}
.aix__pick.is-lit { border-color: var(--c, #009b48); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, #009b48) 16%, transparent), 0 18px 40px -24px color-mix(in srgb, var(--c, #009b48) 70%, transparent); transition: box-shadow .6s, border-color .6s; }
.aix__pick b { display: block; font: 400 26px/1.1 "Instrument Serif", Georgia, serif; }
.aix__pick ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.aix__pick li { display: flex; gap: 8px; animation: aix-in .45s cubic-bezier(.22, 1, .36, 1) both; }
.aix__pick li::before { content: "✓"; color: var(--c, #009b48); font-weight: 600; }
.aix__sources { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #6b6a66; }
.aix__sources span { padding: 4px 9px; border-radius: 999px; background: #f1eee7; animation: aix-in .4s both; }
.aix__sources span::before { content: "↗ "; }
.aix__tip { margin-top: 12px; font-size: 14px; color: #3a3a38; animation: aix-in .5s both; }
.aix__tip a { color: #111; font-weight: 500; }
@keyframes aix-in { from { opacity: 0; transform: translateY(6px); } }
.aix__note { margin-top: 12px; font-size: 12px; color: #8a877f; }

/* Capabilities — each one lights its cluster in the network */
.aix__capsTitle { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #6b6a66; }
.aix__caps ul { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(17, 17, 17, .12); }
.aix__caps li { border-bottom: 1px solid rgba(17, 17, 17, .12); }
.aix__cap {
  appearance: none; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; color: inherit;
  display: grid; gap: 4px; padding: 16px 0 16px 22px; position: relative;
}
.aix__cap::before { content: ""; position: absolute; left: 0; top: 23px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); opacity: .35; transition: opacity .3s, transform .3s, box-shadow .3s; }
.aix__cap b { font: 400 clamp(22px, 1.9vw, 28px)/1.1 "Instrument Serif", Georgia, serif; }
.aix__cap span { font-size: 14px; color: #55534e; }
.aix__cap:hover::before, .aix__cap.is-active::before { opacity: 1; transform: scale(1.25); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent); }
.aix__cap.is-active b { color: var(--c); }

.aix__close { margin-top: clamp(40px, 7vh, 72px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px 28px; }
.aix__close em { font: 400 italic clamp(22px, 2.2vw, 32px)/1.25 "Instrument Serif", Georgia, serif; max-width: 30ch; }
.aix__cta { padding: 14px 22px; border-radius: 999px; background: #111; color: #fbfaf6; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }

@media (max-width: 899px) {
  .aix { padding-top: calc(var(--header-h, 64px) + 40px); }
  .aix__play { grid-template-columns: 1fr; }
  .aix__window { padding: 14px 14px 16px; border-radius: 18px; }
  .aix__answer { min-height: 300px; font-size: 15px; }
  .aix__caps { position: relative; padding-top: 8px; }
  .aix__cap { padding-right: 64px; } /* reserved strip for this capability's cluster */
  .aix__cta { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .aix__pick, .aix__pick li, .aix__sources span, .aix__tip { animation: none; }
  .aix__thinking i { animation: none; }
}
