/* /ai-solutions/ — landing page (hero with form, services row, stats, 100-minute timeline, industries, layers, impact, awards,
   offerings, integrations, partners, robustness, why us, results, clients, CTA). WebCastle style: Gilroy, #000/#404040/#797979,
   accent #06b22d, #f8f9fa, square corners. */
.ai-wrap { width: min(1250px, 100% - 48px); margin-inline: auto; position: relative; }
.ai-eyebrow { margin: 0; font-size: 14px; line-height: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: #797979; }
.ai-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 0 56px; }
.ai-head--split { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 60px; }
html body.system-page main section[class^="ai-"] h2 { margin: 0; }
html body.system-page main .ai-head p { margin: 0; max-width: 460px; font-size: 18px; line-height: 26px; font-weight: 500; color: #404040; }
html body.system-page main .ai-head--split p { text-align: left; }

/* ---- hero ---- */
html body.system-page main .ai-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--header-h, 78px)); padding: calc(var(--header-h, 78px) + 64px) 0 0 !important; background: #000; color: #fff; }
.ai-hero-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.ai-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.1) 100%); pointer-events: none; }
.ai-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; justify-content: center; padding-bottom: 60px; }
.ai-hero-copy { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; }
html body.system-page main .ai-hero h1 { margin: 0; color: #fff; font-size: 72px !important; line-height: 78px !important; letter-spacing: -2px !important; font-weight: 400 !important; }
html body.system-page main .ai-hero h1 span { color: #fff; }
.ai-hero-copy { position: relative; z-index: 1; text-shadow: 0 2px 24px rgba(0,0,0,.65); }
html body.system-page main .ai-hero-copy > p { margin: 0; max-width: 520px; font-size: 20px; line-height: 28px; font-weight: 500; color: #c8c8c8; }
html body.system-page main .ai-hero-copy > .ai-hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; line-height: 17px; font-weight: 600; text-transform: uppercase; color: #fff; }
.ai-hero-tags i { width: 6px; height: 6px; background: #06b22d; }
.ai-hero-form { padding: 32px; background: #fff; color: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.ai-hero-form-cta { display: none; }
.ai-form-title { margin: 0 0 20px; font-size: 24px; line-height: 28px; font-weight: 500; color: #000; }
.ai-hero-form .ct-form { gap: 18px; }
.ai-hero-form .ct-field textarea { height: 96px !important; min-height: 96px !important; }
.ai-roof { margin-top: 64px; padding-bottom: 72px; }
.ai-roof .ai-eyebrow { color: #c8c8c8; margin-bottom: 16px; }
.ai-roof ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ai-roof a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100%; min-height: 128px; padding: 16px 10px; text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 15px; line-height: 20px; font-weight: 600; color: #fff; transition: background var(--dur-fast, 200ms) var(--ease, ease), border-color var(--dur-fast, 200ms) var(--ease, ease); }
.ai-roof a:hover { background: rgba(6,178,45,.22); border-color: #06b22d; }
.ai-roof a span { color: #06b22d; }
.ai-marquee { overflow: hidden; background: #0b0d0c; border-top: 1px solid rgba(255,255,255,.14); }
.ai-marquee-track { display: flex; width: max-content; animation: ai-scroll 50s linear infinite; }
.ai-marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ai-marquee li { width: 190px; height: 140px; }
.ai-marquee img { display: block; width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); opacity: .6; }
@keyframes ai-scroll { to { transform: translateX(-50%); } }

/* ---- 100-minute proposition (black) ---- */
html body.system-page main .ai-prop { position: relative; isolation: isolate; overflow: hidden; background: #000; color: #fff; }
.ai-prop::before { content: ""; position: absolute; z-index: -1; left: -120px; bottom: -220px; width: 420px; height: 420px; border-radius: 50%; background: #06b22d; opacity: .5; filter: blur(190px); }
html body.system-page main .ai-prop h2 { color: #fff; margin-bottom: 64px; padding-bottom: 40px; }
.ai-timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.3); }
.ai-timeline li { position: relative; padding: 32px 24px 0 0; }
.ai-timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: #06b22d; }
.ai-timeline time { display: block; margin-bottom: 40px; font-size: 14px; line-height: 17px; font-weight: 600; color: #06b22d; font-variant-numeric: tabular-nums; }
html body.system-page main .ai-timeline h3 { margin: 0 0 10px; color: #fff; font-size: 22px !important; line-height: 26px !important; }
html body.system-page main .ai-timeline p { margin: 0; font-size: 15px; line-height: 22px; font-weight: 500; color: #c8c8c8; }

/* ---- industries ---- */
.ai-ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ai-ind-grid a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #141615; }
.ai-ind-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow, 600ms) var(--ease, ease); }
.ai-ind-grid a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.78)); }
.ai-ind-grid span { position: absolute; z-index: 1; left: 24px; bottom: 22px; font-size: 22px; line-height: 26px; font-weight: 500; color: #fff; }
.ai-ind-grid a:hover img { transform: scale(1.05); }

/* ---- layers ---- */
html body.system-page main .ai-layers { background: #f8f9fa; }
.ai-layer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ai-layer-grid article { display: flex; flex-direction: column; gap: 16px; padding: 40px; background: #fff; border: 1px solid #e5e5e5; }
html body.system-page main .ai-layer-grid h3 { margin: 0; font-size: 32px !important; line-height: 38px !important; font-weight: 500 !important; }
html body.system-page main .ai-layer-grid p:not(.ai-eyebrow) { margin: 0; font-size: 18px; line-height: 26px; font-weight: 500; color: #404040; }
.ai-layer-grid ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.ai-layer-grid li { padding: 8px 16px; border: 1px solid #e5e5e5; border-radius: 30px; font-size: 14px; line-height: 20px; font-weight: 500; color: #404040; }

/* ---- impact (black cards) ---- */
.ai-impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 56px 0 0; padding: 0; list-style: none; }
.ai-impact-grid li { display: flex; flex-direction: column; gap: 12px; padding: 40px 32px; background: #000; color: #fff; }
.ai-impact-grid b { font-size: 88px; line-height: 92px; letter-spacing: -2px; font-weight: 400; color: #fff; }
html body.system-page main .ai-impact-grid h3 { margin: 0; color: #fff; }
html body.system-page main .ai-impact-grid p { margin: 0; font-size: 16px; line-height: 22px; font-weight: 500; color: #c8c8c8; }

/* ---- awards ---- */
html body.system-page main .ai-awards { background: #f8f9fa; }
.ai-award-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; }
.ai-award-grid li { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: #fff; }
.ai-award-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #e5e5e5; }
html body.system-page main .ai-award-grid p { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: #000; }

/* ---- offerings ---- */
.ai-offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ai-offer-grid > li { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; background: #f8f9fa; }
html body.system-page main .ai-offer-grid h3 { margin: 0; font-size: 22px !important; line-height: 26px !important; }
html body.system-page main .ai-offer-grid > li > p { margin: 0 0 8px; font-size: 15px; line-height: 22px; font-weight: 500; color: #404040; }
.ai-offer-grid ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ai-offer-grid ul li { padding: 9px 0 9px 16px; position: relative; border-top: 1px solid #e5e5e5; font-size: 14px; line-height: 20px; font-weight: 500; color: #404040; }
.ai-offer-grid ul li::before { content: ""; position: absolute; left: 0; top: 16px; width: 5px; height: 5px; background: #06b22d; }

/* ---- integrations + partners ---- */
.ai-tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid #e5e5e5; border-left: 1px solid #e5e5e5; }
.ai-tech-grid li { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 12px 24px; border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; font-size: 14px; line-height: 17px; font-weight: 600; text-transform: uppercase; color: #404040; }
.ai-tech-grid img { width: 40px; height: 40px; object-fit: contain; }
.ai-partners { position: relative; isolation: isolate; overflow: hidden; margin-top: 72px; padding: 56px 40px; background: #000; text-align: center; }
.ai-partners::before { content: ""; position: absolute; z-index: -1; left: -100px; bottom: -180px; width: 380px; height: 380px; border-radius: 50%; background: #06b22d; filter: blur(150px); }
.ai-partners::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -180px; width: 340px; height: 340px; border-radius: 50%; background: #06b22d; opacity: .6; filter: blur(150px); }
html body.system-page main .ai-partners h3 { margin: 0 0 40px; color: #fff; font-size: 40px !important; line-height: 46px !important; font-weight: 400 !important; }
.ai-partners ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ai-partners li { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); font-size: 16px; line-height: 22px; font-weight: 600; color: #fff; }
.ai-partners li span { display: grid; place-items: center; width: 72px; height: 72px; background: #fff; }
.ai-partners li img { max-width: 48px; max-height: 40px; object-fit: contain; }

/* ---- robust ---- */
html body.system-page main .ai-robust { background: #f8f9fa; }
.ai-robust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 56px; }
.ai-robust-grid figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #e5e5e5; }
.ai-robust-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ai-robust-grid ol, .ai-why-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid #e5e5e5; }
.ai-robust-grid li, .ai-why-list li { padding: 28px 0; border-bottom: 1px solid #e5e5e5; }
html body.system-page main .ai-robust-grid h3 { margin: 0 0 8px; font-size: 24px !important; line-height: 28px !important; }
html body.system-page main .ai-robust-grid p { margin: 0; font-size: 16px; line-height: 22px; font-weight: 500; color: #404040; }

/* ---- why ---- */
.ai-why-list { margin-top: 48px; }
.ai-why-list li { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: baseline; }
html body.system-page main .ai-why-list h3 { margin: 0; font-size: 24px !important; line-height: 30px !important; }
html body.system-page main .ai-why-list p { margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: #404040; }

/* ---- results ---- */
html body.system-page main .ai-results { background: #f8f9fa; }
.ai-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ai-result-grid > li { display: flex; flex-direction: column; gap: 12px; padding: 32px; background: #fff; border: 1px solid #e5e5e5; }
html body.system-page main .ai-result-grid h3 { margin: 12px 0 0; font-size: 32px !important; line-height: 38px !important; font-weight: 500 !important; }
html body.system-page main .ai-result-grid > li > p:not(.ai-eyebrow) { margin: 0; font-size: 16px; line-height: 22px; font-weight: 500; color: #404040; }
.ai-result-grid dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #e5e5e5; }
.ai-result-grid dt { margin: 0; font-size: 28px; line-height: 32px; font-weight: 500; color: #000; }
.ai-result-grid dd { margin: 4px 0 0; font-size: 13px; line-height: 17px; font-weight: 500; color: #797979; }

/* ---- clients ---- */
.ai-client-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid #e5e5e5; border-left: 1px solid #e5e5e5; }
.ai-client-grid li { aspect-ratio: 275 / 200; border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; }
.ai-client-grid img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---- CTA ---- */
html body.system-page main .ai-cta { position: relative; isolation: isolate; overflow: hidden; background: #000; }
.ai-cta::before, .ai-cta::after { content: ""; position: absolute; z-index: -1; width: 440px; height: 440px; border-radius: 50%; background: #06b22d; filter: blur(190px); pointer-events: none; }
.ai-cta::before { left: -120px; bottom: -220px; }
.ai-cta::after { right: -140px; top: -240px; opacity: .6; }
.ai-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
html body.system-page main .ai-cta h2 { color: #fff; }
.ai-cta-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
html body.system-page main .ai-cta p { margin: 0; max-width: 460px; font-size: 20px; line-height: 28px; font-weight: 500; color: #c8c8c8; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1100px) {
  .ai-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ai-roof ul { grid-template-columns: repeat(3, 1fr); }
  .ai-timeline { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .ai-offer-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-award-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-tech-grid { grid-template-columns: repeat(4, 1fr); }
  .ai-result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  html body.system-page main .ai-hero { padding-top: calc(var(--header-h, 78px) + 40px) !important; }
  html body.system-page main .ai-hero h1 { font-size: 48px !important; line-height: 54px !important; letter-spacing: -1px !important; }
  .ai-head--split, .ai-layer-grid, .ai-robust-grid, .ai-cta-grid { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; gap: 24px; }
  .ai-head { margin-bottom: 40px; }
  .ai-ind-grid, .ai-impact-grid { grid-template-columns: 1fr 1fr; }
    .ai-why-list li { grid-template-columns: 1fr; gap: 8px; }
  .ai-client-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-partners ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  html body.system-page main .ai-hero h1 { font-size: 38px !important; line-height: 44px !important; }
  html body.system-page main .ai-hero-copy > p, html body.system-page main .ai-cta p { font-size: 18px; line-height: 26px; }
  /* On phones the inline enquiry form crowds the hero; show a CTA instead, which opens the
     same form in the sitewide "Book a Demo" popup (js/site.js bookDemo, triggered by [data-popup]). */
  .ai-hero-form { display: none; }
  .ai-hero-form-cta { display: inline-flex; width: 100%; }
  /* Without the tall form the hero no longer reaches a full screen; without the inline form
     the hero fell well short of a full screen, so fill it and center the remaining content. */
  html body.system-page main .ai-hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .ai-hero-grid { padding-bottom: 0; }
  .ai-roof ul { grid-template-columns: 1fr 1fr; }
  .ai-timeline { grid-template-columns: 1fr 1fr; }
  .ai-ind-grid, .ai-impact-grid, .ai-offer-grid { grid-template-columns: 1fr; }
  .ai-award-grid, .ai-tech-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-impact-grid b { font-size: 64px; line-height: 68px; }
  .ai-client-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-layer-grid article { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) { .ai-marquee-track { animation: none; } }

/* 100-Minute Proposition: heading + stat on the left, a vertical timeline on the right */
.ai-prop .ai-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 80px; align-items: start; }
.ai-prop-head { position: sticky; top: 140px; }
html body.system-page main .ai-prop h2 { margin: 0 0 20px; padding-bottom: 0; }
html body.system-page main .ai-prop .ai-prop-head > p { margin: 0 0 48px; max-width: 420px; font-size: 20px; line-height: 28px; font-weight: 500; color: #c8c8c8; }
.ai-prop-stat { display: flex; align-items: center; gap: 20px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.25); }
.ai-prop-stat strong { font-size: 96px; line-height: 88px; font-weight: 400; letter-spacing: -4px; color: #06b22d; }
.ai-prop-stat span { max-width: 150px; font-size: 16px; line-height: 22px; font-weight: 500; color: #fff; }
.ai-timeline { display: flex; flex-direction: column; border-top: 0; }
.ai-timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 32px; padding: 0 0 44px 0; }
.ai-timeline li:last-child { padding-bottom: 0; }
.ai-timeline li::before { top: 8px; left: 87px; width: 11px; height: 11px; border-radius: 0; z-index: 1; }
.ai-timeline li::after { content: ""; position: absolute; top: 19px; bottom: -8px; left: 92px; width: 1px; background: rgba(6,178,45,.55); }
.ai-timeline li:last-child::after { display: none; }
.ai-timeline time { grid-row: 1 / span 2; margin: 0; padding-top: 2px; font-size: 18px; line-height: 24px; text-align: left; }
.ai-timeline li > h3, .ai-timeline li > p { grid-column: 2; margin-left: 24px; }
html body.system-page main .ai-timeline h3 { font-size: 26px !important; line-height: 32px !important; margin-bottom: 8px; }
html body.system-page main .ai-timeline p { font-size: 17px; line-height: 26px; max-width: 460px; }
.ai-timeline li:last-child time, .ai-timeline li:last-child h3 { color: #06b22d; }
@media (max-width: 1000px) { .ai-prop .ai-wrap { grid-template-columns: 1fr; gap: 48px; } .ai-prop-head { position: static; } .ai-timeline { grid-template-columns: none; row-gap: 0; } }
@media (max-width: 600px) { .ai-timeline li { grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px; } .ai-timeline li::before { left: 55px; } .ai-timeline li::after { left: 60px; } .ai-timeline li > h3, .ai-timeline li > p { margin-left: 16px; } .ai-prop-stat strong { font-size: 72px; line-height: 68px; } html body.system-page main .ai-timeline h3 { font-size: 22px !important; line-height: 28px !important; } .ai-timeline time { font-size: 16px; } }
html body.system-page main .ai-prop { overflow: clip; }
html body.system-page main .ai-prop h2 { padding-bottom: 20px; }
html body.system-page main .ai-timeline li:last-child h3 { color: #06b22d; }

/* Awards & Recognitions — same design as /our-story/ */
html body.system-page main .os-awards { background: #f8f9fa; }
.os-awards-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
html body.system-page main .os-awards-head h2 { margin: 0 0 16px; }
html body.system-page main .os-awards-head p { margin: 0; font-size: 18px; line-height: 26px; font-weight: 500; color: #404040; }
.os-award-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.os-award-grid li { padding: 20px; background: #fff; border: 1px solid transparent; transition: border-color var(--dur-fast, 200ms) var(--ease, ease); }
.os-award-grid figure { margin: 0 0 20px; aspect-ratio: 3 / 2; overflow: hidden; background: #e5e5e5; }
.os-award-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
html body.system-page main .os-awards h3 { margin: 0 0 8px; font-size: 20px !important; line-height: 26px !important; font-weight: 500 !important; }
html body.system-page main .os-award-grid p { margin: 0; font-size: 14px; line-height: 17px; font-weight: 600; text-transform: uppercase; color: #797979; }
@media (max-width: 900px) { .os-award-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 560px) { .os-award-grid { grid-template-columns: 1fr; } }

/* Layer cards: line illustration on top (replaces the "Layer 0x" eyebrow) */
.ai-layer-art { margin: 0 0 12px; height: 200px; display: grid; place-items: center; background: #f5f5f5; overflow: hidden; }
.ai-layer-art svg { width: min(100%, 360px); height: 100%; padding: 12px 20px; }
@media (max-width: 700px) { .ai-layer-art { height: 160px; } }

/* Fast Doesn't Mean Fragile: bento grid (one tall card + four smaller ones) */
.ai-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 24px; margin: 56px 0 0; padding: 0; list-style: none; }
.ai-bento li { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border: 1px solid #e5e5e5; transition: border-color var(--dur-fast, 200ms) var(--ease, ease); }
.ai-bento li:hover { border-color: #06b22d; }
.ai-bento li.bento-tall { grid-row: span 2; }
.ai-bento figure { margin: 0 0 14px; flex: 1 1 auto; display: grid; place-items: center; min-height: 150px; background: #f5f5f5; overflow: hidden; }
.ai-bento .bento-tall figure { min-height: 300px; }
.ai-bento svg { display: block; width: 100%; height: 100%; max-height: 220px; padding: 14px 18px; }
.ai-bento .bento-tall svg { max-height: 300px; }
html body.system-page main .ai-bento h3 { margin: 0; font-size: 24px !important; line-height: 30px !important; font-weight: 500 !important; }
html body.system-page main .ai-bento p { margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: #404040; }
@media (max-width: 1000px) { .ai-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ai-bento li.bento-tall { grid-row: auto; grid-column: 1 / -1; } .ai-bento .bento-tall figure { min-height: 220px; } }
@media (max-width: 640px) { .ai-bento { grid-template-columns: 1fr; gap: 16px; } .ai-bento li { padding: 20px; } }

/* Why Companies Build With Us: dark section, five reasons as a static card grid (no tabs, each reason stated once) */
html body.system-page main .ai-why { position: relative; isolation: isolate; overflow: clip; background: #000; color: #fff; }
.ai-why::before, .ai-why::after { content: ""; position: absolute; z-index: -1; width: 440px; height: 440px; border-radius: 50%; background: #06b22d; filter: blur(190px); pointer-events: none; }
.ai-why::before { left: -140px; bottom: -240px; opacity: .55; }
.ai-why::after { right: -140px; top: -240px; opacity: .45; }
html body.system-page main .ai-why h2 { margin: 0 0 64px; color: #fff; }
.ai-why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ai-why-grid li { display: flex; flex-direction: column; gap: 16px; padding: 36px 32px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); transition: border-color var(--dur-fast, 200ms) var(--ease, ease), background var(--dur-fast, 200ms) var(--ease, ease); }
.ai-why-grid li:hover { border-color: #06b22d; background: rgba(6,178,45,.12); }
.ai-why-icon { display: block; color: #06b22d; }
html body.system-page main .ai-why-grid h3 { margin: 0; color: #fff; font-size: 22px !important; line-height: 28px !important; font-weight: 500 !important; }
html body.system-page main .ai-why-grid p { margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: #c8c8c8; }
@media (max-width: 1000px) { .ai-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { html body.system-page main .ai-why h2 { margin-bottom: 40px; } .ai-why-grid { grid-template-columns: 1fr; gap: 16px; } .ai-why-grid li { padding: 28px 24px; } }

/* Technology partners: a light ruled strip (copy on the left, logos in one row on the right) instead of the dark panel */
html body.system-page main .ai-partners { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 56px; align-items: center; margin-top: 72px; padding: 48px 0; background: transparent; text-align: left; border: 0; overflow: visible; }
.ai-partners::before, .ai-partners::after { content: none; }
html body.system-page main .ai-partners h3 { margin: 0 0 12px; color: #000; font-size: 32px !important; line-height: 38px !important; font-weight: 400 !important; letter-spacing: -.5px; }
html body.system-page main .ai-partners-copy p { margin: 0; max-width: 300px; font-size: 16px; line-height: 24px; font-weight: 500; color: #6b6b6b; }
.ai-partners ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.ai-partners li { gap: 14px; padding: 8px 12px; background: none; border: 0; border-left: 1px solid #e5e5e5; color: #404040; font-size: 15px; line-height: 20px; font-weight: 600; transition: color var(--dur-fast, 200ms) var(--ease, ease); }
.ai-partners li:first-child { border-left: 0; }
.ai-partners li span { width: 88px; height: 56px; background: none; }
.ai-partners li img { max-width: 80px; max-height: 44px; filter: grayscale(1); opacity: .75; transition: filter var(--dur-base, 300ms) var(--ease, ease), opacity var(--dur-base, 300ms) var(--ease, ease); }
.ai-partners li:hover { color: #000; }
.ai-partners li:hover img { filter: none; opacity: 1; }
@media (max-width: 1000px) { html body.system-page main .ai-partners { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) { html body.system-page main .ai-partners { padding: 36px 0; } .ai-partners ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } .ai-partners li:nth-child(odd) { border-left: 0; } }
html body.system-page main .ai-why h2 { padding-bottom: 56px; }
@media (max-width: 640px) { html body.system-page main .ai-why h2 { padding-bottom: 32px; } }

/* Real Results: image on the left, result cards stacked on the right */
.ai-result-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: stretch; }
.ai-result-photo { position: sticky; top: 120px; align-self: start; margin: 0; height: min(100%, 640px); min-height: 460px; overflow: hidden; background: #e5e5e5; }
.ai-result-photo img { display: block; width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.ai-result-split .ai-result-grid { grid-template-columns: 1fr; gap: 20px; }
.ai-result-split .ai-result-grid > li { padding: 28px 32px; }
html body.system-page main .ai-result-split .ai-result-grid h3 { font-size: 28px !important; line-height: 34px !important; margin-top: 4px; }
@media (max-width: 1000px) { .ai-result-split { grid-template-columns: 1fr; } .ai-result-photo { position: static; height: 280px; min-height: 0; } .ai-result-photo img { min-height: 0; } }
.ai-partners li { justify-content: center; }
.ai-partners li span { width: 100%; height: 64px; }
.ai-partners li img { max-width: 110px; max-height: 52px; }

/* Phones: the single-column card stacks (industries, impact stats, offerings, awards, bento,
   why-us, results) become swipeable horizontal scrollers instead, matching the homepage pattern. */
@media (max-width: 640px) {
  .ai-ind-grid, .ai-impact-grid, .ai-offer-grid, .os-award-grid, .ai-bento, .ai-why-grid, .ai-result-split .ai-result-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
    /* Bleed past the page's 24px right gutter so the peeking next card isn't clipped there. */
    width: calc(100% + 24px);
    margin-right: -24px;
    padding-right: 16px;
  }
  .ai-ind-grid::-webkit-scrollbar, .ai-impact-grid::-webkit-scrollbar, .ai-offer-grid::-webkit-scrollbar,
  .os-award-grid::-webkit-scrollbar, .ai-bento::-webkit-scrollbar, .ai-why-grid::-webkit-scrollbar,
  .ai-result-split .ai-result-grid::-webkit-scrollbar { display: none; }
  .ai-ind-grid > li, .ai-impact-grid > li, .ai-offer-grid > li, .os-award-grid > li,
  .ai-bento > li, .ai-why-grid > li, .ai-result-split .ai-result-grid > li {
    flex: none;
    width: 82%;
    scroll-snap-align: start;
  }
  .ai-bento > li.bento-tall { grid-row: auto; grid-column: auto; }
}
