/* Page styles of /enterprise-ai-services (from the approved design HTML). */
: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 */

/* header */
#siteHeader { top: 0; padding-top: env(safe-area-inset-top, 0px); transition: box-shadow .35s var(--ease), background-color .35s var(--ease); }
#siteHeader .bar { transition: height .35s var(--ease); height: 76px; }
#siteHeader.scrolled { background: rgb(var(--surface) / .96); box-shadow: 0 1px 0 rgb(var(--line)); backdrop-filter: saturate(1.4) blur(8px); }
#siteHeader.scrolled .bar { height: 62px; }
.navlink { position: relative; font-size: .95rem; font-weight: 500; color: rgb(var(--muted)); transition: color .25s var(--ease); }
.navlink:hover, .navlink.active { color: rgb(var(--brand)); }

/* dropdowns */
.dd-menu { position: absolute; top: calc(100% + 14px); left: -16px; z-index: 60; padding: .6rem; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 16px; box-shadow: 0 24px 48px -20px rgb(37 50 67 / .28); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; white-space: normal; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-link { display: block; padding: .6rem .8rem; border-radius: 10px; font-size: .94rem; font-weight: 500; color: rgb(var(--ink)); transition: background-color .2s var(--ease), color .2s var(--ease); }
.dd-link:hover, .dd-link:focus-visible { background: rgb(var(--soft2)); color: rgb(var(--brand)); }
.dd-chev { transition: transform .25s var(--ease); }
.dd.open .dd-chev, .m-dd[aria-expanded="true"] .dd-chev { transform: rotate(180deg); }
.dd.open > .dd-btn { color: rgb(var(--brand)); }
/* hero diagram */
.flow { stroke-dasharray: 3 9; animation: dash 2.8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -48; } }
.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)); }

/* problem funnel */
.funnel-mark circle, .funnel-mark line { transition: all .35s var(--ease); }
.funnel-mark.on circle { r: 8; }
.funnel-mark.on line { stroke-width: 3; }
.funnel-mark.on text { fill: rgb(var(--brand)); }
.pilot-dots circle { transition: fill .35s var(--ease), r .35s var(--ease); }
.pilot-dots.on circle { fill: rgb(var(--brand)); }
.problem { border-top: 2px solid rgb(var(--line)); transition: border-color .35s var(--ease), transform .35s var(--ease); cursor: default; }
.problem:hover, .problem:focus-visible, .problem.on { border-color: rgb(var(--brand)); transform: translateY(-4px); }

/* wheel */
.seg { transition: opacity .35s var(--ease), stroke-width .35s var(--ease); }
.wheel.dim .seg { opacity: .28; }
.wheel.dim .seg.on { opacity: 1; stroke-width: 88; }
.pillar-row { transition: background-color .3s var(--ease); }
.pillar-row:hover, .pillar-row.on { background: rgb(var(--soft2)); }

/* connection flow */
.chain-line { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.4s var(--ease); }
.in-view .chain-line { stroke-dashoffset: 0; }

/* strategy list */
.step-btn[aria-expanded="true"] { background: rgb(var(--surface)); border-color: rgb(var(--brand)); }
.step-btn[aria-expanded="true"] .step-no { background: rgb(var(--brand)); color: #fff; border-color: 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; }

.meter { height: 8px; border-radius: 99px; background: rgb(var(--line) / .7); overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; border-radius: 99px; background: rgb(var(--brand)); transition: width 1.1s var(--ease); }

/* agent workflow */
.wf-node { transition: border-color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease); }
.wf-node.lit { border-color: rgb(var(--brand)); background: rgb(var(--soft)); box-shadow: 0 0 0 4px rgb(var(--brand) / .12); }
.wf-node.human.lit { border-color: rgb(var(--amber)); background: rgb(var(--amber) / .1); box-shadow: 0 0 0 4px rgb(var(--amber) / .15); }
.wf-node.done { border-color: rgb(var(--good)); background: rgb(var(--good) / .1); box-shadow: 0 0 0 4px rgb(var(--good) / .15); }
.wf-arrow { color: rgb(var(--line)); transition: color .4s var(--ease); }
.wf-arrow.lit { color: rgb(var(--brand)); }

.tab-btn { transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease); }
.tab-btn[aria-selected="true"] { color: rgb(var(--brand)); background: rgb(var(--surface)); border-color: rgb(var(--brand)); }

.tag { display: inline-flex; align-items: center; font-size: .82rem; font-weight: 500; padding: .3rem .6rem; border-radius: 6px; background: rgb(var(--soft2)); border: 1px solid rgb(var(--line)); color: rgb(var(--ink)); }

/* gantt */
.gantt { --weeks: 10; border: 1px solid rgb(var(--line)); border-radius: 14px; background: rgb(var(--surface)); overflow: hidden; }
.g-row { display: grid; grid-template-columns: minmax(200px, 250px) 1fr; border-top: 1px solid rgb(var(--line)); }
.g-row:first-child { border-top: 0; }
.g-head { background: rgb(var(--soft2)); font-size: .8rem; font-weight: 600; color: rgb(var(--muted)); }
.g-weeks { display: grid; grid-template-columns: repeat(var(--weeks), 1fr); position: relative; }
.g-weeks.lines { background-image: linear-gradient(to right, rgb(var(--line) / .7) 1px, transparent 1px); background-size: calc(100% / var(--weeks)) 100%; }
.g-bar { overflow: hidden; white-space: nowrap; height: 30px; border-radius: 7px; display: flex; align-items: center; padding: 0 .7rem; font-size: .8rem; font-weight: 600; color: #fff; transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.in-view .g-bar { transform: scaleX(1); }
@media (max-width: 767px) {
  .g-row { grid-template-columns: 1fr; }
  .g-head { display: none; }
  .g-weeks.lines { background-image: none; }
  .g-bar { font-size: .7rem; padding: 0 .4rem; height: 24px; }
}

/* quadrant */
.bubble { transition: transform .35s var(--ease), opacity .35s var(--ease); transform-box: fill-box; transform-origin: center; }
.quad.dim .bubble { opacity: .3; }
.quad.dim .bubble.on { opacity: 1; transform: scale(1.12); }
.path-row { transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.path-row:hover, .path-row.on { background: rgb(var(--soft2)); border-color: rgb(var(--brand)); }

/* case studies (same as /ai-driven-healthcare-solutions) */
.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; }
.case-visual { display: flex; align-items: center; justify-content: center; background: #F3F8FC; }
.case-visual img { display: block; width: 100%; height: 100%; max-height: 640px; object-fit: contain; }
@media (min-width: 1024px) { .case-visual { border-left: 1px solid rgb(var(--line)); } }
.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; } }

/* AI Strategy: one illustration per accordion step, crossfading (hidden below lg) */
.strat-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.strat-img + .strat-img { position: absolute; inset: 0; }
.strat-img.on { opacity: 1; }

/* AI Modernization: transformation map and challenges panel ("AI Modernization – AppsChopper.html") */
.mz-ghost { color: rgb(var(--brand)); font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.mz-map { --legacy: 138 143 152; background: rgb(var(--surface)); border: 1px solid rgb(var(--brand) / .14); border-radius: 20px; padding: 12px; }
.mz-head { display: none; grid-template-columns: 1fr 56px 1fr 56px 1fr; padding: 16px 12px 12px; }
.mz-head span { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.mz-h-legacy { color: rgb(var(--legacy)); }
.mz-h-layer { color: rgb(var(--accent)); }
.mz-h-native { color: rgb(var(--brand)); }
.mz-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mz-h-legacy .mz-dot { border: 1.5px dashed rgb(var(--legacy)); }
.mz-h-layer .mz-dot { background: rgb(var(--soft)); border: 1.5px solid rgb(var(--accent)); }
.mz-h-native .mz-dot { background: rgb(var(--brand)); }
.mz-path { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px; border-radius: 14px; transition: background-color .2s ease; }
.mz-path + .mz-path { border-top: 1px solid rgb(var(--brand) / .14); }
.mz-path:hover { background: rgb(var(--soft) / .55); }
.mz-cell { border-radius: 12px; padding: 14px 16px; font-size: 16px; font-weight: 500; line-height: 1.3; display: flex; flex-direction: column; gap: 2px; }
.mz-cell small { font-size: 13px; font-weight: 400; opacity: .8; }
.mz-cell::before { content: attr(data-stage); font-size: 12px; font-weight: 600; opacity: .75; margin-bottom: 2px; }
.mz-legacy { color: rgb(var(--legacy)); border: 1.5px dashed rgb(var(--legacy) / .55); }
.mz-layer { color: rgb(var(--brand)); background: rgb(var(--soft)); border: 1.5px solid rgb(var(--accent) / .45); }
.mz-native { color: #fff; background: rgb(var(--brand)); border: 1.5px solid rgb(var(--brand)); }
.mz-flow { display: grid; place-items: center; height: 28px; color: rgb(var(--accent)); }
.mz-flow svg { width: 44px; height: 14px; transform: rotate(90deg); overflow: visible; }
.mz-track { stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 3 5; animation: mz-flow 1.2s linear infinite; }
@keyframes mz-flow { to { stroke-dashoffset: -16; } }
@media (min-width: 900px) {
  .mz-map { padding: 8px 16px 16px; }
  .mz-head { display: grid; }
  .mz-path { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: center; gap: 0; }
  .mz-cell::before { display: none; }
  .mz-flow { height: auto; }
  .mz-flow svg { transform: none; }
}
.mz-challenges { background: #253243; border-radius: 20px; color: #C9D3DE; display: grid; gap: 28px; padding: 32px 24px; }
.mz-challenges h3 { color: #fff; font-size: 24px; font-weight: 600; line-height: 1.25; }
.mz-note { font-size: 15px; line-height: 1.6; color: #9FB0C2; margin-top: 10px; max-width: 34ch; }
.mz-ch-list { display: grid; grid-template-columns: 1fr; }
.mz-ch-item { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 4px; }
.mz-ch-item strong { color: #fff; font-weight: 600; font-size: 16px; }
.mz-ch-item span { font-size: 15px; line-height: 1.55; }
.mz-ch-item strong::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #7DB6E6; margin-right: 10px; vertical-align: middle; transform: translateY(-2px); }
@media (min-width: 700px) { .mz-ch-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 1024px) {
  .mz-challenges { grid-template-columns: 300px 1fr; gap: 48px; padding: 40px; }
  .mz-ch-item { padding: 20px 0; }
}

/* security diagram: the dashed ring turns slowly, like the shield rings on /ai-driven-healthcare-solutions */
@keyframes spin { to { transform: rotate(360deg); } }
.sec-ring { transform-origin: 210px 200px; animation: spin 40s linear infinite; }

.std-logo { display: inline-flex; flex: none; width: 84px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; background: #fff; padding: 5px 7px; }
.std-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.quote { display: flex; flex-direction: column; border-radius: 20px; border: 1px solid rgb(var(--line)); background: rgb(var(--page)); padding: 2rem; }
.avatar { display: inline-flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 99px; background: rgb(var(--brand)); color: #fff; font-size: .9rem; font-weight: 700; }

.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; }
}

/* Case study phones (CasePanels): the centre screen rises in, then the side screens slide out from behind it.
   Final layout matches the old combined image (1200x1185: centre phone 42.5% wide, sides at 85% scale). */
.case-phones { position: relative; width: 100%; max-width: 648px; aspect-ratio: 1200 / 1185; margin-inline: auto; }
.case-compact .case-phones { max-width: 476px; }
.case-visual .case-phones .ph { position: absolute; top: 50%; left: 50%; width: 42.5%; height: auto; max-height: none; object-fit: fill; filter: drop-shadow(0 18px 22px rgb(37 50 67 / .16)); transform: translate(-50%, -50%); }
.case-visual .case-phones .ph-c { z-index: 2; animation: phIn .6s var(--ease) both; }
.case-visual .case-phones .ph-l { transform: translate(-106.5%, -50%) scale(.85); animation: phOut .8s var(--ease) .5s both; }
.case-visual .case-phones .ph-r { transform: translate(6.5%, -50%) scale(.85); animation: phOut .8s var(--ease) .5s both; }
.case-stack:not(.in) .case-phones .ph { animation-play-state: paused; }
@keyframes phIn { from { opacity: 0; transform: translate(-50%, -44%) scale(.94); } }
@keyframes phOut { from { opacity: 0; transform: translate(-50%, -50%) scale(.8); } }
@media (prefers-reduced-motion: reduce) { .case-visual .case-phones .ph { animation: none; } }
/* black/navy testimonial logos would vanish on the dark page: render them white in dark mode */
:root[data-theme="dark"] .q-logo-dark { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .q-logo-dark { filter: brightness(0) invert(1); } }

/* 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; } }
