/* Solutions bento: six product cards in three rows (wide + narrow) */
.bento-sec { padding-top: clamp(96px, 12vw, 176px); }
.bento { display: flex; flex-direction: column; gap: 8px; }
.bento__row { display: flex; gap: 8px; }
.bcard { position: relative; border-radius: 8px; overflow: hidden; isolation: isolate; min-width: 0; display: flex; flex-direction: column; height: 645px; container-type: inline-size; }
.bcard--wide { flex: 2.45 1 0; }
.bcard--narrow { flex: 1 1 0; }
.bento__row:nth-child(2) .bcard { height: 760px; }
.bento__row:nth-child(3) .bcard { height: 580px; }
.bcard__copy { position: relative; z-index: 3; display: grid; gap: 3px; padding: 26px 24px 0; }
.bcard__title { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: #fff; }
.bcard__sub { font-size: 15px; line-height: 1.35; color: rgba(255, 255, 255, 0.62); max-width: 36ch; }
.bcard__sample { position: absolute; top: 30px; right: 24px; z-index: 3; color: #fff; }

/* MJ card: the fin ring on a sunrise gradient */
.bcard--mj { background: #000; --mj-y: 35%; --mj-size: 147%; }
.mj__stage { position: absolute; inset: 0; }
.mj__sunrise { position: absolute; inset: 0; background-color: #000;
  background-image:
    radial-gradient(ellipse 153% 92% at 51% 154%, rgba(167, 84, 35, 0.4) 0%, rgba(167, 84, 35, 0.14) 42%, transparent 68%),
    radial-gradient(ellipse 125% 91% at 51% 129%, rgba(237, 216, 204, 0.4) 0%, rgba(237, 216, 204, 0.12) 46%, transparent 72%),
    radial-gradient(ellipse 171% 66% at 51% 108%, #9a9db6 0%, rgba(154, 157, 182, 0.32) 42%, transparent 70%),
    radial-gradient(ellipse 110% 114% at 51% 72%, rgba(40, 112, 199, 0.39) 0%, rgba(3, 46, 127, 0.22) 55%, transparent 78%),
    radial-gradient(ellipse 110% 108% at 51% 92%, #0a3f84 0%, rgba(10, 63, 132, 0.38) 50%, transparent 75%),
    radial-gradient(ellipse 155% 130% at 52% 83%, #164c95 0%, rgba(22, 76, 149, 0.32) 42%, transparent 72%); }
.mj__snippet { position: absolute; left: 50%; top: var(--mj-y); width: var(--mj-size); aspect-ratio: 1; transform: translate3d(-50%, 0, 0); }
.mj__canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; }
.bcard--mj.is-live .mj__canvas { opacity: 1; }
@container (min-width: 640px) { .mj__snippet { --mj-y: 2%; --mj-size: 127%; } }
@container (min-width: 1056px) { .mj__snippet { --mj-y: -14%; --mj-size: 100%; } }

/* C-BOT card: solutions move through the four stages */
.bcard--cbot { background: var(--card-light); }
.bcard--cbot .bcard__sub { color: rgba(14, 11, 11, 0.6); }
.bcard--cbot .bcard__title { color: #121212; }
.cbot { position: absolute; left: 0; right: 0; top: 150px; bottom: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 72%, transparent 100%); }
.cbot__list { position: absolute; left: 13%; right: 13%; top: 0; display: flex; flex-direction: column; gap: 8px; transition: transform 1.1s var(--ease); }
.cbot__row { height: 34px; display: flex; align-items: center; padding: 0 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.28); font-family: var(--serif); font-size: 16px; color: rgba(18, 18, 18, 0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbot__focus { position: absolute; left: 13%; right: 13%; top: 126px; height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 8px 0 14px; border-radius: 5px; background: #f3f5f9; box-shadow: 0 10px 30px rgba(18, 27, 89, 0.18), 0 1px 0 rgba(255, 255, 255, 0.7) inset; font-family: var(--serif); font-size: 17px; color: #121212; z-index: 2; }
.cbot__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.3s; }
.cbot__steps { display: inline-flex; gap: 4px; flex: none; }
.cbot__steps i { font-style: normal; font-family: var(--sans); font-size: 11px; font-weight: 600; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e2e6ef; color: #7a8294; transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease); }
.cbot__steps i.is-done { background: #c1d0ff; color: #2534b3; }
.cbot__steps i.is-on { background: var(--blue); color: #fff; transform: scale(1.12); }
.cbot__pill { position: absolute; z-index: 3; left: calc(13% - 26px); top: 168px; height: 30px; padding: 0 12px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 14px; display: inline-flex; align-items: center; box-shadow: 0 8px 20px rgba(70, 91, 255, 0.45); transition: transform 0.5s var(--ease-out); }
.cbot__pill.is-bump { animation: pillBump 0.5s var(--ease-out); }
@keyframes pillBump { 0% { transform: translateY(6px) scale(0.92); opacity: 0.4; } 100% { transform: none; opacity: 1; } }

/* Curation card: lanes of capability pills drifting sideways */
.bcard--curate { background: var(--card-dark); }
.curate { position: absolute; left: -10%; right: -10%; bottom: 28px; display: flex; flex-direction: column; gap: 10px; transform: rotate(-4deg); transform-origin: 50% 100%; }
.curate__lane { display: flex; width: max-content; gap: 10px; animation: lane var(--dur, 48s) linear infinite; animation-direction: normal; }
.curate__lane[style*="--dir:-1"] { animation-direction: reverse; }
@keyframes lane { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pill { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 15.5px; font-weight: 500; white-space: nowrap; }
.pill__ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ic, #3D3D3D); }
.pill__ic svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Analytics card: a live analysis table */
.bcard--analytics { background: var(--card-slate); }
.grid-tbl { position: absolute; left: 24px; right: -40px; top: 124px; bottom: -2px; background: #fff; border-radius: 6px 0 0 0; color: #1a1a1a; font-size: 14px; overflow: hidden; }
.grid-tbl svg { width: 14px; height: 14px; fill: none; stroke: #666; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.grid-tbl__head, .grid-row { display: grid; grid-template-columns: 40px minmax(170px, 1.15fr) minmax(210px, 1.3fr) minmax(130px, 0.9fr) minmax(120px, 0.8fr) minmax(130px, 0.9fr); }
.grid-tbl__head { height: 40px; border-bottom: 1px solid #ececec; font-size: 13px; color: #3d3d3d; }
.grid-tbl__head span { display: flex; align-items: center; gap: 7px; padding: 0 12px; border-left: 1px solid #ececec; white-space: nowrap; overflow: hidden; }
.grid-tbl__head .c0 { border-left: 0; }
.grid-tbl__body { position: relative; transition: transform 1.2s var(--ease); }
.grid-row { min-height: 112px; border-bottom: 1px solid #ececec; }
.grid-row > div { padding: 10px 10px; border-left: 1px solid #ececec; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.grid-row > .c0 { border-left: 0; align-items: center; justify-content: center; color: #6b6b6b; font-size: 13px; }
.inst { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 4px; border: 1px solid #e3e3e3; border-radius: 999px; width: fit-content; max-width: 100%; font-weight: 500; white-space: nowrap; }
.inst i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; color: #fff; font-weight: 700; flex: none; }
.inst small { color: #9a9a9a; font-size: 12px; font-weight: 500; }
.doc { display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 8px; border: 1px solid #e8e8e8; border-radius: 6px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #2b2b2b; }
.doc b { width: 12px; height: 14px; border-radius: 2px; background: #e5484d; flex: none; position: relative; }
.doc b.x { background: #1d7a46; }
.tag { width: fit-content; padding: 2px 6px; border-radius: 3px; font-size: 13px; font-weight: 500; }
.cell-wait { height: 12px; border-radius: 3px; background: linear-gradient(90deg, #eef0f4 0%, #dfe4ee 40%, #eef0f4 80%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.cell-wait + .cell-wait { width: 70%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.spark { width: 100%; height: 34px; }
.spark path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; }
.check i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 10px; }
.fadein { animation: fadein 0.5s var(--ease-out) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* NLP card: a document read and turned into fields */
.bcard--nlp { background: #DEDBD4; }
.bcard--nlp .bcard__title, .bcard--nlp .bcard__sample { color: #141414; }
.bcard--nlp .bcard__sub { color: rgba(20, 20, 20, 0.6); }
.nlp { position: absolute; left: 24px; right: 24px; top: 140px; bottom: 0; display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.nlp__doc { background: #fbfaf7; border-radius: 6px 6px 0 0; padding: 22px 24px; box-shadow: 0 20px 50px rgba(40, 30, 10, 0.12); overflow: hidden; position: relative; }
.nlp__kicker { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8478; margin-bottom: 12px; }
.nlp__text { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: #2a2722; }
.nlp__text mark { background: transparent; color: inherit; border-radius: 3px; padding: 0 2px; margin: 0 -2px; transition: background-color 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.nlp__text mark.is-on { background: var(--hl); box-shadow: 0 0 0 1px var(--hl-line) inset; }
.nlp__sweep { position: absolute; left: 0; right: 0; height: 46px; background: linear-gradient(to bottom, rgba(70, 91, 255, 0) 0%, rgba(70, 91, 255, 0.1) 70%, rgba(70, 91, 255, 0.35) 100%); border-bottom: 1px solid rgba(70, 91, 255, 0.6); pointer-events: none; opacity: 0; }
.nlp__fields { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.nlp__fh { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #6f6a60; margin-bottom: 2px; }
.field { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(20, 20, 20, 0.06); font-size: 13.5px; color: #1d1b17; opacity: 0; transform: translateX(-14px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
.field.is-on { opacity: 1; transform: none; }
.field b { font-weight: 500; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 6px; border-radius: 3px; background: var(--hl); color: #1b1b1b; }
.field span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--serif); font-size: 16px; }

/* Cyber card: radar */
.bcard--cyber { background: radial-gradient(ellipse 120% 80% at 50% 110%, #12204a 0%, #0b1022 45%, #050608 100%); }
.cyber { position: absolute; left: 0; right: 0; top: 120px; bottom: 0; }
.cyber__cv { position: absolute; inset: 0 0 64px 0; width: 100%; height: calc(100% - 64px); }
.cyber__log { position: absolute; left: 20px; right: 20px; bottom: 18px; height: 40px; overflow: hidden; font-size: 12px; color: rgba(255, 255, 255, 0.72); display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; font-variant-numeric: tabular-nums; }
.cyber__log p { display: flex; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fadein 0.4s var(--ease-out) both; }
.cyber__log p b { font-weight: 600; color: #ff7a6b; }
.cyber__log p b.ok { color: #6ee7a8; }

@media (max-width: 919px) {
  .bento__row { flex-direction: column; }
  .bcard, .bento__row:nth-child(n) .bcard { height: 520px; flex: none; width: 100%; }
  .bcard--mj { height: 440px !important; }
  .bcard--analytics { height: 560px !important; }
  .nlp { grid-template-columns: 1fr; top: 150px; }
  .nlp__fields { display: none; }
}
@media (max-width: 480px) {
  .bcard__copy { padding: 22px 20px 0; }
  .bcard__sample { top: 26px; right: 20px; }
  .grid-tbl { left: 16px; top: 140px; }
  .nlp { left: 16px; right: 16px; }
  .nlp__text { font-size: 16px; }
  .cbot__list, .cbot__focus { left: 9%; right: 9%; }
  .cbot__pill { left: calc(9% - 10px); }
}
@media (prefers-reduced-motion: reduce) {
  .curate__lane { animation: none; }
  .cell-wait { animation: none; }
}
