/* Page styles of /services/ai-agent-development. Base tokens, type and components are those of
   /services/enterprise-security and /services/aiops; page-specific graphics follow. */
:root {
  --brand: 11 90 157; --accent: 60 123 177; --navy: 37 50 67; --ink: 37 50 67; --muted: 69 71 78;
  --line: 217 226 236; --surface: 255 255 255; --page: 247 249 252;
  --soft: 234 244 251; --soft2: 243 248 252; --good: 26 128 84; --amber: 200 128 30;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: 64 140 208; --accent: 125 174 216; --navy: 22 31 43; --ink: 230 235 242; --muted: 170 178 190;
    --line: 38 58 82; --surface: 14 28 45; --page: 9 20 34;
    --soft: 18 42 68; --soft2: 13 32 52; --good: 80 190 138; --amber: 232 172 82;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: 64 140 208; --accent: 125 174 216; --navy: 22 31 43; --ink: 230 235 242; --muted: 170 178 190;
  --line: 38 58 82; --surface: 14 28 45; --page: 9 20 34;
  --soft: 18 42 68; --soft2: 13 32 52; --good: 80 190 138; --amber: 232 172 82;
  color-scheme: dark;
}
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); }
body { background: rgb(var(--surface)); color: rgb(var(--ink)); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid rgb(var(--brand)); outline-offset: 3px; border-radius: 4px; }

.h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; }
.h2 { font-size: clamp(2rem, 5.4vw, 48px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; }
.tone { color: rgb(var(--accent)); }
.tone-light { color: #8DBBE3; }
.lead { font-size: clamp(1.06rem, 1.3vw, 1.19rem); line-height: 1.65; color: rgb(var(--muted)); max-width: 62ch; }
/* section kickers: monospace capitals after a short rule (the home page's "Compliance & security" style);
   dark sections keep their own colour, and the rule follows it */
.kicker { display: flex; align-items: center; gap: .75rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--accent)); }
.kicker::before { content: ""; flex: none; width: 24px; height: 1px; background: currentColor; }
.text-center .kicker { justify-content: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-size: .9375rem; font-weight: 600; border-radius: 999px; padding: .85rem 1.3rem; transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); white-space: nowrap; }
.btn-primary { background: rgb(var(--brand)); color: #fff; }
.btn-primary:hover { background: rgb(var(--accent)); }
.btn-primary::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5 4h5v5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5 4h5v5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
:root[data-theme="dark"] .btn-primary:hover { background: rgb(var(--brand) / .82); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover { background: rgb(var(--brand) / .82); } }
.btn-ghost { border: 1px solid rgb(var(--line)); color: rgb(var(--ink)); background: rgb(var(--surface)); }
.btn-ghost:hover { border-color: rgb(var(--brand)); color: rgb(var(--brand)); }
@media (max-width: 767px) { .btn { font-size: .9375rem; } } /* 15px */
/* hero diagram */
.d-node { fill: rgb(var(--surface)); stroke: rgb(var(--line)); }
.d-text { fill: rgb(var(--ink)); font-family: inherit; }
.d-muted { fill: rgb(var(--muted)); }
.d-brand { stroke: rgb(var(--brand)); }
.clps { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.clps > * { overflow: hidden; min-height: 0; }
.open > .clps, .clps.open { grid-template-rows: 1fr; }
/* case studies */
.case-tab { flex: none; border-radius: 999px; padding: .65rem 1.25rem; font-size: .95rem; font-weight: 500; color: rgb(var(--muted)); background: rgb(var(--soft2)); border: 1px solid rgb(var(--line)); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.case-tab:hover { color: rgb(var(--brand)); border-color: rgb(var(--accent)); }
.case-tab[aria-selected="true"] { background: rgb(var(--brand)); border-color: rgb(var(--brand)); color: #fff; }
.case-panel[hidden] { display: none !important; }
.case-panel:not([hidden]) { animation: caseIn .5s var(--ease); }
@keyframes caseIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.case-tags li { padding: 0 1rem; border-left: 1px solid rgb(var(--line)); }
.case-tags li:first-child { padding-left: 0; border-left: 0; }
.case-label { padding-left: .75rem; border-left: 3px solid rgb(var(--brand)); font-weight: 600; line-height: 1.2; }
.phone { width: 250px; height: 500px; border-radius: 38px; border: 9px solid #253243; background: #fff; box-shadow: 0 30px 60px -25px rgb(37 50 67 / .45); overflow: hidden; }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 92px; height: 20px; background: #253243; border-radius: 0 0 14px 14px; z-index: 1; }
@media (max-width: 640px) { .case-tags li { padding: 0 .7rem; } }

.tscroll { scroll-snap-type: x mandatory; scrollbar-width: none; }
.tscroll::-webkit-scrollbar { display: none; }
.tscroll > * { scroll-snap-align: start; }

.faq-q[aria-expanded="true"] .chev { transform: rotate(45deg); }
.chev { transition: transform .35s var(--ease); }

.field { width: 100%; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); color: rgb(var(--ink)); border-radius: 12px; padding: .8rem .95rem; font-size: 1rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.field:focus { outline: none; border-color: rgb(var(--brand)); box-shadow: 0 0 0 3px rgb(var(--brand) / .18); }
.field[aria-invalid="true"] { border-color: #C2413A; }

.logos { filter: none; }
.brand-logo { display: block; height: 28px; width: auto; }
.brand-logo.on-dark { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .logos { filter: invert(1) brightness(1.3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logos, :root:not([data-theme="light"]) .brand-logo { filter: invert(1) brightness(1.3); } }

#mobileCta { bottom: 0; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); transform: translateY(120%); transition: transform .4s var(--ease); }
#mobileCta.show { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .g-bar, .chain-line { transform: none; stroke-dashoffset: 0; }
}
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }
.icon-tile { display: inline-flex; height: 48px; width: 48px; flex: none; align-items: center; justify-content: center; border-radius: 14px; background: rgb(var(--soft)); color: rgb(var(--brand)); transition: background-color .3s var(--ease), color .3s var(--ease); }
.reg-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid rgb(var(--line)); background: rgb(var(--soft2)); font-size: .88rem; font-weight: 600; color: rgb(var(--ink)); transition: border-color .25s var(--ease), color .25s var(--ease); }
.reg-chip svg { color: rgb(var(--brand)); }
.reg-chip:hover { border-color: rgb(var(--accent)); color: rgb(var(--brand)); }

/* segments */
.seg-tab { display: flex; flex: none; align-items: center; gap: .75rem; width: auto; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); border-radius: 14px; padding: .7rem .95rem; font-size: .95rem; font-weight: 500; color: rgb(var(--muted)); text-align: left; transition: all .25s var(--ease); white-space: nowrap; }
.seg-ic { display: inline-flex; height: 32px; width: 32px; flex: none; align-items: center; justify-content: center; border-radius: 10px; background: rgb(var(--soft)); color: rgb(var(--brand)); transition: all .25s var(--ease); }
.seg-tab:hover { color: rgb(var(--ink)); border-color: rgb(var(--accent)); }
.seg-tab[aria-selected="true"] { color: rgb(var(--ink)); border-color: rgb(var(--brand)); }
.seg-tab[aria-selected="true"] .seg-ic { background: rgb(var(--brand)); color: #fff; }
@media (min-width: 1024px) { .seg-tab { white-space: normal; width: 100%; } }
.seg-panel[hidden], .svc-panel[hidden], .rm-panel[hidden] { display: none !important; }
.seg-panel:not([hidden]), .svc-panel:not([hidden]), .rm-panel:not([hidden]) { animation: caseIn .45s var(--ease); }
.seg-item { display: flex; gap: .75rem; border: 1px solid rgb(var(--line)); background: rgb(var(--soft2)); border-radius: 14px; padding: .85rem 1rem; font-weight: 500; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.seg-item:hover { border-color: rgb(var(--accent)); background: rgb(var(--surface)); }

/* outcome bars */
.obar { position: relative; display: grid; width: 100%; grid-template-columns: minmax(120px, 190px) 1fr 44px; align-items: center; gap: .9rem; padding: .45rem .5rem; border-radius: 10px; text-align: left; transition: background-color .25s var(--ease); }
.obar-l { font-size: .88rem; font-weight: 500; color: rgb(var(--ink)); }
.obar-track { height: 12px; border-radius: 99px; background: rgb(var(--line) / .6); overflow: hidden; }
.obar-track i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--brand))); transition: width 1s var(--ease); transition-delay: var(--d); }
.in-view .obar-track i { width: var(--w); }
.obar-v { font-size: .9rem; font-weight: 700; color: rgb(var(--brand)); text-align: right; }
.obar-tip { position: absolute; right: .5rem; bottom: calc(100% - 2px); z-index: 5; padding: .35rem .6rem; border-radius: 8px; background: #253243; color: #fff; font-size: .78rem; font-weight: 500; white-space: nowrap; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.obar:hover, .obar:focus-visible, .obar.on { background: rgb(var(--soft2)); }
.obar:hover .obar-tip, .obar:focus-visible .obar-tip { opacity: 1; transform: none; }
.obars:has(.obar:hover) .obar:not(:hover) .obar-track i { opacity: .35; }
.obar-track i { transition: width 1s var(--ease), opacity .25s var(--ease); }
@media (max-width: 640px) { .obar { grid-template-columns: 110px 1fr 38px; gap: .6rem; } .obar-l { font-size: .8rem; } }

/* service tabs */
.svc-tab { display: flex; flex: none; align-items: center; gap: .7rem; border-radius: 12px; padding: .7rem .9rem; font-size: .95rem; font-weight: 500; color: rgb(var(--muted)); text-align: left; border: 1px solid transparent; transition: all .25s var(--ease); white-space: nowrap; }
.svc-ic { display: inline-flex; height: 32px; width: 32px; flex: none; align-items: center; justify-content: center; border-radius: 10px; background: rgb(var(--soft)); color: rgb(var(--brand)); transition: all .25s var(--ease); }
.svc-tab:hover { color: rgb(var(--ink)); background: rgb(var(--soft2)); }
.svc-tab[aria-selected="true"] { color: rgb(var(--ink)); background: rgb(var(--surface)); border-color: rgb(var(--line)); box-shadow: 0 10px 24px -18px rgb(37 50 67 / .5); }
.svc-tab[aria-selected="true"] .svc-ic { background: rgb(var(--brand)); color: #fff; }
@media (max-width: 1023px) { .svc-tab { border-color: rgb(var(--line)); } }
@media (min-width: 1024px) { .svc-tab { white-space: normal; } }
.txt-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: rgb(var(--brand)); border-bottom: 1.5px solid rgb(var(--brand) / .3); padding-bottom: 2px; transition: border-color .25s var(--ease), gap .25s var(--ease); }
.txt-link:hover { border-color: rgb(var(--brand)); gap: .7rem; }
.btn-arrow::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5 4h5v5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5 4h5v5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* solutions */
.sol-card, .why-item { border: 1px solid rgb(var(--line)); border-radius: 24px; background: rgb(var(--surface)); padding: 1.75rem; transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.sol-card:hover, .why-item:hover { border-color: rgb(var(--accent)); transform: translateY(-4px); box-shadow: 0 24px 48px -30px rgb(37 50 67 / .35); }

/* ===== /services/ai-agent-development ===== */
/* shared with /services/aiops: hero grid, CTA band, check badge, step cards */
.hero-grid { background-image: linear-gradient(rgb(var(--line) / .5) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--line) / .5) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%); }

/* mid CTA */
.cta-band { position: relative; display: flex; flex-direction: column; gap: 1.75rem; overflow: hidden; border-radius: 28px; padding: 2.5rem 1.75rem; background: linear-gradient(120deg, #0B5A9D, #253243 75%); color: #fff; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 999px; border: 48px solid rgb(255 255 255 / .05); }
@media (min-width: 900px) { .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 3.25rem 3.5rem; } }
.btn-white { background: #fff; color: #0B5A9D; }
.btn-white:hover { background: #EAF4FB; transform: translateY(-2px); }
.btn-white::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5 4h5v5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5 4h5v5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

.yes, .no { display: inline-flex; margin-right: .55rem; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 99px; vertical-align: -5px; }
.yes { background: rgb(var(--good)); color: #fff; }
.stage { display: flex; flex-direction: column; border: 1px solid rgb(var(--line)); border-radius: 20px; background: rgb(var(--surface)); padding: 1.5rem; outline: none; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.stage.on, .stage:focus-visible { border-color: rgb(var(--brand)); transform: translateY(-4px); box-shadow: 0 24px 48px -30px rgb(37 50 67 / .35); }
.stage-n { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--accent)); }
.stage-time { font-size: .8rem; font-weight: 600; padding: .2rem .6rem; border-radius: 99px; background: rgb(var(--soft)); color: rgb(var(--brand)); }

/* reused from /generative-ai-development-services: console frame, problem cards, comparison table */
.console { margin: 0; overflow: hidden; border: 1px solid rgb(var(--line)); border-radius: 24px; background: rgb(var(--surface)); box-shadow: 0 30px 70px -40px rgb(37 50 67 / .45); }
.console-bar { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-bottom: 1px solid rgb(var(--line)); background: rgb(var(--soft2)); }
.console-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; color: rgb(var(--good)); }
.live i { width: 8px; height: 8px; border-radius: 99px; background: rgb(var(--good)); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.gap-card { border: 1px solid rgb(var(--line)); border-radius: 20px; background: rgb(var(--surface)); padding: 1.4rem; outline: none; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.gap-card:hover, .gap-card:focus-visible, .gap-card.on { border-color: rgb(var(--accent)); transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgb(37 50 67 / .45); }
.gap-card:hover .icon-tile, .gap-card.on .icon-tile { background: rgb(var(--brand)); color: #fff; }
.gv-dots { display: inline-flex; gap: 4px; }
.gv-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgb(var(--line)); }
.gv-cap { padding: 0 1rem .7rem; font-size: .7rem; color: rgb(var(--muted)); }
.cmp-wrap { overflow-x: auto; border: 1px solid rgb(var(--line)); border-radius: 24px; background: rgb(var(--surface)); }
.cmp5 { min-width: 880px; border-collapse: collapse; }
.cmp5 th, .cmp5 td { padding: 1rem 1.1rem; vertical-align: top; border-top: 1px solid rgb(var(--line)); font-size: .93rem; }
.cmp5 thead th { border-top: 0; background: rgb(var(--soft2)); font-size: .84rem; font-weight: 600; color: rgb(var(--muted)); vertical-align: middle; }
.cmp5 tbody th { width: 22%; font-weight: 600; }
.cmp5 td { color: rgb(var(--muted)); }
.cmp5 .us { background: rgb(var(--brand) / .05); color: rgb(var(--ink)); font-weight: 600; }
.cmp5 thead .us { background: rgb(var(--soft)); }
.cmp5 tbody tr { transition: background-color .2s var(--ease); }
.cmp5 tbody tr:hover { background: rgb(var(--soft2)); }
.cmp5 tbody tr:hover .us { background: rgb(var(--brand) / .1); }
.cmp5 .yes { margin-right: .5rem; width: 20px; height: 20px; }
.cmp5 th:first-child { position: sticky; left: 0; z-index: 1; background: rgb(var(--surface)); }
.cmp5 thead th:first-child { background: rgb(var(--soft2)); }

/* capabilities */
.cap { border: 1px solid rgb(var(--line)); border-radius: 20px; background: rgb(var(--surface)); padding: 1.4rem; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.cap:hover { border-color: rgb(var(--accent)); transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgb(37 50 67 / .45); }
.cap:hover .icon-tile { background: rgb(var(--brand)); color: #fff; }

/* governance: dark band and cards of the /services/aiops governance section */
.gov { position: relative; overflow: clip; background: #253243; }
.gov::before { content: ""; position: absolute; width: 720px; height: 720px; right: -260px; top: -320px; background: radial-gradient(circle, rgb(60 123 177 / .2), transparent 65%); pointer-events: none; }

/* engagement models */
.model { position: relative; display: flex; flex-direction: column; border: 1px solid rgb(var(--line)); border-radius: 24px; background: rgb(var(--surface)); padding: 1.75rem; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.model:hover { border-color: rgb(var(--accent)); transform: translateY(-3px); box-shadow: 0 24px 48px -32px rgb(37 50 67 / .45); }
.model.featured { border-color: rgb(var(--brand)); box-shadow: 0 0 0 3px rgb(var(--brand) / .1); }
.model-meta { margin-top: .3rem; font-size: .88rem; font-weight: 600; color: rgb(var(--accent)); }
/* the description grows so every card's button sits on the same line */
.model > p:last-of-type { flex: 1; }
.model .btn { margin-top: 1.75rem; }
.gov-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid rgb(255 255 255 / .09); background: #2D3B4E; padding: 28px; transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
.gov-card::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px; background: #7DB6E6; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.gov-card:hover { background: #33435A; border-color: rgb(125 182 230 / .28); transform: translateY(-3px); }
.gov-card:hover::before { transform: scaleX(1); }
.gov-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgb(11 90 157 / .38); color: #7DB6E6; border: 1px solid rgb(125 182 230 / .22); }
.gov-card h3 { margin-top: 22px; color: #fff; font-size: 20px; font-weight: 600; line-height: 1.3; }
.gov-card p { margin-top: 10px; font-size: 16px; line-height: 1.65; color: #C9D3DE; }
@media (prefers-reduced-motion: reduce) { .gov-card, .gov-card::before { transition: none; } .gov-card:hover { transform: none; } }

/* process chart (from /services/aiops) */
.gantt { border: 1px solid rgb(var(--line)); border-radius: 22px; background: rgb(var(--surface)); padding: 1.25rem; }
@media (min-width: 768px) { .gantt { padding: 1.75rem 2rem; } }
.gt-scale { position: relative; height: 18px; margin-left: 0; font-size: .74rem; color: rgb(var(--muted)); }
@media (min-width: 768px) { .gt-scale { margin-left: 230px; } }
.gt-scale span { position: absolute; transform: translateX(-2px); white-space: nowrap; }
.gt-row { display: grid; gap: .4rem; padding: .45rem .5rem; border-radius: 12px; transition: background-color .25s var(--ease); }
@media (min-width: 768px) { .gt-row { grid-template-columns: 222px 1fr; align-items: center; gap: .5rem; margin-left: -.5rem; } }
.gt-row.on { background: rgb(var(--soft2)); }
.gt-l { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 600; }
.gt-l b { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 99px; background: rgb(var(--soft)); color: rgb(var(--brand)); font-size: .8rem; transition: all .25s var(--ease); }
.gt-row.on .gt-l b { background: rgb(var(--brand)); color: #fff; }
.gt-track { position: relative; height: 34px; border-radius: 8px; background-image: linear-gradient(to right, rgb(var(--line) / .8) 1px, transparent 1px); background-size: calc(100% / 6) 100%; }
.gt-bar { position: absolute; top: 3px; bottom: 3px; display: flex; align-items: center; padding: 0 .6rem; overflow: hidden; white-space: nowrap; border-radius: 8px; background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--brand))); color: #fff; font-size: .76rem; font-weight: 600; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease), box-shadow .25s var(--ease); transition-delay: var(--d); }
.in-view .gt-bar { transform: scaleX(1); }
.gt-bar.ongoing { background: repeating-linear-gradient(135deg, rgb(var(--good)), rgb(var(--good)) 8px, rgb(var(--good) / .8) 8px, rgb(var(--good) / .8) 16px); border-radius: 8px 2px 2px 8px; }
.gt-row.on .gt-bar { box-shadow: 0 8px 18px -8px rgb(11 90 157 / .6); }
.gt-gate { position: absolute; top: 50%; z-index: 1; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: rgb(var(--amber)); border: 2px solid rgb(var(--surface)); transform: rotate(45deg); border-radius: 3px; }
.gt-gate.static { position: static; display: inline-block; margin: 0 .25rem 0 0; width: 11px; height: 11px; }
.gt-time { display: none; margin-left: auto; font-style: normal; font-size: .78rem; font-weight: 600; color: rgb(var(--brand)); }
@media (max-width: 767px) {
  .gt-time { display: inline; }
  .gt-bar { font-size: 0; padding: 0; }
  .gt-track { height: 22px; }
}

/* agent types: tabs (from /services/enterprise-security) */
.layer-tab { width: auto; }
@media (min-width: 1024px) { .layer-tab { width: 100%; } }
.how { counter-reset: how; }
.how-step { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; border: 1px solid rgb(var(--line)); background: rgb(var(--soft2)); font-weight: 500; }
.how-n { display: inline-flex; flex: none; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 99px; background: rgb(var(--brand)); color: #fff; font-size: .8rem; font-weight: 700; }
.chip { padding: .35rem .7rem; border-radius: 8px; border: 1px solid rgb(var(--line)); background: rgb(var(--soft2)); font-size: .86rem; font-weight: 500; transition: border-color .2s var(--ease), color .2s var(--ease); }
.chip:hover { border-color: rgb(var(--brand)); color: rgb(var(--brand)); }
.chip.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; }

/* hero image (same as /generative-ai-development-services) */
.hero-img { display: block; width: 100%; max-width: 720px; height: auto; margin-inline: auto; }

/* hero: agent run */
.run { display: grid; gap: .45rem; }
.run-step { position: relative; display: flex; gap: .8rem; align-items: flex-start; padding: .65rem .75rem; border-radius: 12px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); font-size: .8rem; color: rgb(var(--muted)); outline: none; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .2s var(--ease); transition-delay: var(--d); }
.in-view .run-step { opacity: 1; transform: none; }
.run-step:hover, .run-step:focus-visible { border-color: rgb(var(--accent)); transition-delay: 0s; }
.run-step b { display: block; font-size: .9rem; color: rgb(var(--ink)); }
.run-step + .run-step::before { content: ""; position: absolute; left: 1.55rem; top: -.5rem; width: 2px; height: .5rem; background: rgb(var(--line)); }
.run-ic { display: inline-flex; flex: none; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 9px; background: rgb(var(--soft)); color: rgb(var(--brand)); }
.run-step.gate { border-color: rgb(var(--amber) / .5); background: rgb(var(--amber) / .06); }
.run-step.gate .run-ic { background: rgb(var(--amber)); color: #fff; }
.run-step.done { border-color: rgb(var(--good) / .45); background: rgb(var(--good) / .06); }
.run-step.done .run-ic { background: rgb(var(--good)); color: #fff; }
.run-kpi { padding: .6rem .7rem; border-radius: 12px; background: rgb(var(--soft2)); border: 1px solid rgb(var(--line)); font-size: .72rem; line-height: 1.3; color: rgb(var(--muted)); }
.run-kpi b { display: block; margin-bottom: .1rem; font-size: 1.1rem; color: rgb(var(--ink)); }

/* governance: standards row */
.std { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgb(125 182 230 / .3); background: rgb(255 255 255 / .05); font-size: .9rem; font-weight: 600; color: #fff; }
.std svg { color: #7DB6E6; }
/* Compliance-aligned architecture ribbon under the governance cards */
.std-ribbon { display: flex; flex-direction: column; gap: 20px; border-radius: 18px; border: 1px solid rgb(125 182 230 / .22); background: linear-gradient(90deg, rgb(11 90 157 / .28), #2D3B4E 70%); padding: 24px 28px; }
/* side by side only where all the chips fit on one line (IEEE never wraps alone); stacked below that */
@media (min-width: 1280px) { .std-ribbon { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; } .std-ribbon-h { min-width: 0; } .std-ribbon > ul { flex-wrap: nowrap; flex-shrink: 0; justify-content: flex-end; } }
.std-ribbon-h { display: flex; align-items: center; gap: 16px; }
.std-ribbon-h .gov-ic { flex-shrink: 0; }
.std-ribbon h3 { color: #fff; font-size: 20px; font-weight: 600; line-height: 1.3; }
.std-ribbon p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: #C9D3DE; }

/* voice agents: live call mockup (dark in both themes, as in the doc) */
.call { margin: 0; overflow: hidden; border-radius: 22px; border: 1px solid #2B3A55; background: #16213A; color: #E6ECF5; box-shadow: 0 30px 70px -40px rgb(22 33 58 / .8); font-size: .95rem; }
.call-bar { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.2rem; border-bottom: 1px solid #2B3A55; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; color: #9FB0C8; }
.call-live { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: #4ADE80; }
.call-live i { width: 8px; height: 8px; border-radius: 99px; background: #4ADE80; animation: blink 1.6s ease-in-out infinite; }
.call-wave { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 48px; padding: 0 1.2rem; margin-top: 1rem; }
.call-wave i { flex: 1; max-width: 6px; height: var(--h); border-radius: 99px; background: #7C8FE0; animation: wave 1.2s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes wave { to { transform: scaleY(.45); } }
.call-log { display: grid; gap: .7rem; padding: 1rem 1.2rem 1.3rem; }
.call-msg { max-width: 85%; padding: .7rem .9rem; border-radius: 12px; line-height: 1.45; }
.call-msg span { display: block; margin-bottom: .2rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #9FB0C8; }
.call-msg.caller { background: #243049; }
.call-msg.agent { justify-self: end; background: #283A66; }
.call-tool { justify-self: center; padding: .3rem .7rem; border-radius: 8px; border: 1px dashed #2F6B55; background: #13302A; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem; color: #6EE7B7; }

/* technology stack */
.stack-row { display: grid; gap: .8rem; align-items: center; padding: 1rem 1.2rem; border-radius: 16px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); transition: border-color .2s var(--ease); }
.stack-row:hover { border-color: rgb(var(--accent)); }
@media (min-width: 768px) { .stack-row { grid-template-columns: 240px 1fr; } }
.stack-h { display: flex; align-items: center; gap: .7rem; font-weight: 600; }

/* why: stats band */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding-top: 2.5rem; border-top: 1px solid rgb(var(--line)); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats b { display: block; font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: rgb(var(--ink)); font-variant-numeric: tabular-nums; }
.stats li > span { display: block; margin-top: .35rem; font-size: .92rem; color: rgb(var(--muted)); }

/* why: 3-column comparison */
.cmp3 { min-width: 620px; }
.cmp3 tbody th { width: 24%; }
.cmp2 { min-width: 0; }
.cmp2 tbody th { width: 30%; }
@media (max-width: 639px) { .cmp2 th, .cmp2 td { padding: .85rem .9rem; } }

@media (prefers-reduced-motion: reduce) { .cov-t i { transition: none !important; } }

@media (prefers-reduced-motion: reduce) { .run-step { opacity: 1; transform: none; transition: none !important; } .call-wave i, .call-live i { animation: none; } }

/* section icons from /assets/images/ai-custom/, as masks so they take their tile's colour (26px, like the healthcare pages);
   process and engagement tiles switch to white on brand when the card is hovered (or the step is active) */
.svc-mask { display: block; width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat; }
.ic-card:hover .icon-tile, .stage.on .icon-tile, .stage:focus-visible .icon-tile { background: rgb(var(--brand)); color: #fff; }

/* contact: pulses that run along the background curves into the hub (as on /ai-driven-healthcare-solutions) */
.ct-flow path { stroke-dasharray: 10 90; stroke-dashoffset: 100; opacity: .55; animation: ctFlow 3s linear infinite; }
.ct-flow path:nth-child(2) { animation-delay: -.75s; }
.ct-flow path:nth-child(3) { animation-delay: -1.5s; }
.ct-flow path:nth-child(4) { animation-delay: -2.25s; }
@keyframes ctFlow { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ct-flow { display: none; } }
