/* Soft, app-like surfaces: generous curves, fine borders, restrained elevation. */
:root {
  --radius: 14px;
  --radius-card: 24px;
  --radius-panel: 28px;
  --soft-border: rgba(25, 48, 86, .09);
  --shadow-card: 0 3px 8px rgba(7, 27, 65, .025), 0 14px 34px rgba(7, 27, 65, .055);
  --shadow-raised: 0 5px 14px rgba(7, 27, 65, .04), 0 22px 48px rgba(7, 27, 65, .085);
}
.btn { border-radius: var(--radius); transition: background .2s, transform .2s, box-shadow .2s; }
.btn-primary { box-shadow: 0 3px 7px rgba(120, 0, 61, .1), 0 9px 22px rgba(217, 0, 112, .14); }
.btn-primary:hover { box-shadow: 0 5px 12px rgba(120, 0, 61, .12), 0 13px 28px rgba(217, 0, 112, .19); }
.btn-white { box-shadow: var(--shadow-card); }
.btn-outline { border-color: rgba(167, 178, 201, .58); }
.menu-toggle, .audience-options button { border-radius: 13px; }
.site-header { border-bottom-color: var(--soft-border); box-shadow: 0 3px 20px rgba(7, 27, 65, .035); }
.mega-menu {
  top: calc(100% + 10px);
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-panel);
  box-shadow: 0 8px 22px rgba(7, 27, 65, .07), 0 28px 64px rgba(7, 27, 65, .14);
  overflow: auto;
}
.mega-services { border-radius: var(--radius-panel) 0 0 var(--radius-panel); }
.mega-departments { border-radius: 0 var(--radius-panel) var(--radius-panel) 0; }
.mega-service { border-radius: 15px; }
.mega-number { border-radius: 11px; border-color: rgba(217, 0, 112, .09); }
.service-list { border: 0; display: grid; gap: 14px; }
.service {
  background: #fff;
  padding-inline: 25px;
  border: 1px solid var(--soft-border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.service[open] { box-shadow: var(--shadow-raised); }
.ai-platform-grid { border: 0; gap: 17px; }
.ai-platform {
  background: #fff;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.stack-tab { border-radius: 14px; background: rgba(255, 255, 255, .025); border-color: rgba(147, 168, 201, .28); }
.stack-tab[aria-selected=true] { box-shadow: 0 5px 18px rgba(217, 0, 112, .17); }
.stack-panel .deliverable {
  border: 1px solid rgba(220, 104, 163, .14);
  border-radius: 17px;
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 5px 20px rgba(0, 0, 0, .07);
}
.journey-controls { border: 1px solid var(--soft-border); padding: 7px; gap: 5px; border-radius: 20px; background: var(--paper); }
.journey-step { border: 0; background: transparent; border-radius: 14px; }
.journey-step[aria-selected=true] { background: white; color: var(--pink); box-shadow: 0 2px 5px rgba(7, 27, 65, .04), 0 5px 15px rgba(7, 27, 65, .07); }
.journey-panel { margin-top: 18px; border: 1px solid var(--soft-border); border-radius: var(--radius-panel); background: #f8f9fc; box-shadow: var(--shadow-card); }
.team-lead { border-radius: var(--radius-card); box-shadow: 0 6px 14px rgba(7, 27, 65, .06), 0 22px 42px rgba(7, 27, 65, .14); }
.team-role { border: 1px solid var(--soft-border); border-radius: 20px; box-shadow: var(--shadow-card); padding-bottom: 25px; }
.engagement, .case-card { border: 1px solid var(--soft-border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); background: white; }
.engagement.featured { border: 1px solid rgba(217, 0, 112, .25); padding-top: 32px; box-shadow: 0 4px 12px rgba(217, 0, 112, .025), var(--shadow-raised); }
.portco-story { border-color: var(--soft-border); border-radius: var(--radius-panel); overflow: hidden; box-shadow: var(--shadow-raised); }
.partner-directory { border: 0; gap: 17px; }
.partner-directory a { border: 1px solid var(--soft-border); border-radius: 20px; background: white; box-shadow: var(--shadow-card); transition: background .2s, box-shadow .2s; }
.partner-directory a:hover { box-shadow: var(--shadow-raised); }
.context-form input, .context-form select, .context-form textarea { border-radius: 12px; border-color: rgba(160, 180, 211, .35); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .08); }
.inquiry-context { border-radius: 14px; }
.side-card, .callout, .cta-band, .archive-note, .quote-box { border-radius: 20px; box-shadow: var(--shadow-card); }
.side-card, .callout { border: 1px solid var(--soft-border); }
@media (max-width: 960px) {
  .nav-links.open { left: 12px; right: 12px; top: 84px; border: 1px solid var(--soft-border); border-radius: 22px; max-height: calc(100dvh - 100px); box-shadow: var(--shadow-raised); }
  .mega-menu { border: 1px solid var(--soft-border); border-radius: 18px; box-shadow: none; }
  .mega-services { border-radius: 18px 0 0 18px; }
  .mega-departments { border-radius: 0 18px 18px 0; }
  .engagement.featured { padding-top: 24px; }
}
@media (max-width: 700px) {
  :root { --radius-card: 21px; --radius-panel: 23px; }
  .service { padding-inline: 17px; border-radius: 18px; }
  .service summary { grid-template-columns: 24px 1fr 20px; gap: 10px; }
  .service-content { padding-left: 34px; padding-right: 0; }
  .ai-platform-grid, .partner-directory { gap: 12px; }
  .ai-platform { padding: 24px 16px; }
  .journey-controls { padding: 5px; gap: 3px; border-radius: 17px; }
  .journey-step { padding-inline: 4px; border-radius: 12px; }
  .journey-step strong { font-size: .75rem; }
  .journey-panel { padding: 27px 22px; }
  .engagement.featured { padding-top: 28px; }
  .mega-services { border-radius: 18px 18px 0 0; padding-inline: 10px; }
  .mega-industries { border-radius: 0 0 0 18px; }
  .mega-departments { border-radius: 0 0 18px 0; }
}
@media (max-width: 380px) {
  .nav-links.open { padding-inline: 18px; }
  .mega-industries { border-radius: 0; }
  .mega-departments { border-radius: 0 0 18px 18px; }
  .journey-step { padding: 14px; }
}
/* Reference palette: deep raspberry through violet and indigo into ocean blue. */
:root {
  --raspberry: #a71158;
  --violet: #653477;
  --indigo: #343f87;
  --ocean: #12669f;
  --brand-gradient: linear-gradient(115deg, #a71158 0%, #653477 40%, #343f87 70%, #12669f 100%);
}
.hero {
  background:
    radial-gradient(ellipse at 1% 25%, rgba(167,17,88,.68), transparent 55%),
    radial-gradient(ellipse at 58% 46%, rgba(101,52,119,.5), transparent 59%),
    radial-gradient(ellipse at 100% 12%, rgba(18,102,159,.68), transparent 59%),
    linear-gradient(115deg, #241330 0%, #1b204d 55%, #082c52 100%);
}
.hero-copy>p.hero-support, .hero-note, .hero-bottom, .diagram-caption, .motion-button { color: #d0d8ed; }
.hero .btn-outline { background: rgba(12,21,53,.2); border-color: rgba(224,231,248,.62); }
.hero .btn-outline:hover { background: rgba(12,21,53,.38); }
.btn-primary {
  background: linear-gradient(115deg, #ac105c 0%, #78317c 100%);
  box-shadow: 0 3px 7px rgba(69,15,63,.12), 0 10px 23px rgba(133,30,100,.17);
}
.btn-primary:hover, .nav-links>a.btn-primary:hover {
  background: linear-gradient(115deg, #910d4d 0%, #60276c 100%);
  color: #fff;
}
.client-portal-menu { position: relative; }
.client-portal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--pink);
  font: inherit;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.client-portal-toggle:hover, .client-portal-toggle:focus-visible { color: #7b174c; outline: none; }
.client-portal-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  right: -10px;
  width: 340px;
  padding: 9px;
  border: 1px solid var(--soft-border);
  border-radius: 19px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 25px rgba(7,27,65,.09), 0 24px 55px rgba(7,27,65,.14);
}
.client-portal-option { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: center; padding: 12px; border-radius: 13px; color: var(--ink); }
.partner-marquee { overflow: hidden; margin-inline: -10px; padding-inline: 10px; }
.partner-marquee__track { display: flex; width: max-content; animation: partner-marquee-scroll 60s linear infinite; will-change: transform; }
.partner-marquee .partner-names { display: flex; flex: 0 0 auto; flex-wrap: nowrap; gap: 52px; justify-content: flex-start; min-width: max-content; padding-right: 52px; }
.partner-marquee .partner-names > * { display: block; flex: 0 0 auto; }
@keyframes partner-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .partner-marquee { overflow: visible; } .partner-marquee__track { width: auto; animation: none; } .partner-marquee .partner-names[aria-hidden="true"] { display: none; } .partner-marquee .partner-names { flex-wrap: wrap; min-width: 0; } }

/* Client impact */
.impact-intro { max-width: 760px; }
.case-study-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.case-study-card { grid-column: span 4; display: flex; flex-direction: column; min-height: 300px; padding: 28px; border: 1px solid var(--soft-border); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-card); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.case-study-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }
.case-study-card--feature { grid-column: span 8; background: linear-gradient(135deg, #091c43, #52316f); color: #fff; }
.case-study-card--feature .eyebrow, .case-study-card--feature p { color: rgba(255,255,255,.74); }
.case-study-card h3 { margin: 14px 0 12px; font-size: clamp(1.55rem, 2.3vw, 2.4rem); line-height: 1.05; }
.case-study-card p { margin: 0; color: #506079; }
.case-study-card .text-link { margin-top: auto; padding-top: 22px; border-bottom: 0; }
.case-study-card--feature .text-link { color: #fff; }
.case-metric { display: block; margin-bottom: 6px; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; color: #b51264; }
.case-study-card--feature .case-metric { color: #f8b0d5; }
.case-study-kicker { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.case-study-kicker span { padding: 6px 9px; border-radius: 999px; background: rgba(18, 39, 80, .06); color: #243552; font-size: .75rem; font-weight: 700; }
.case-study-card--feature .case-study-kicker span { background: rgba(255,255,255,.12); color: #fff; }
.case-hero { background: linear-gradient(120deg, #071a3e 0%, #183f74 55%, #7d347f 100%); }
.case-hero .breadcrumb { color: rgba(255,255,255,.75); }
.case-hero .eyebrow { color: #e7a8cf; }
.case-hero h1 { max-width: 900px; }
.case-hero p { max-width: 720px; color: rgba(255,255,255,.82); font-size: 1.13rem; }
.case-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.case-facts div { padding: 16px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: rgba(255,255,255,.07); }
.case-facts b { display: block; margin-bottom: 4px; color: #fff; font-size: .83rem; letter-spacing: .08em; text-transform: uppercase; }
.case-facts span { color: rgba(255,255,255,.77); font-size: .92rem; }
.case-approach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-approach article { padding: 24px; border: 1px solid var(--soft-border); border-radius: var(--radius); background: #fff; }
.case-approach .eyebrow { display: block; margin-bottom: 12px; }
.case-approach h3 { margin: 0 0 8px; }
.case-approach p { margin: 0; color: #52617b; }
@media (max-width: 760px) { .case-study-card, .case-study-card--feature { grid-column: 1 / -1; min-height: 0; } .case-facts, .case-approach { grid-template-columns: 1fr; } }
.client-option-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--brand-gradient); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .05em; }
.client-portal-popover b, .client-portal-popover small { display: block; }.client-portal-popover b { font-size: .86rem; }.client-portal-popover small { margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.35; }.client-portal-popover i { color: var(--pink); font-style: normal; }
@media (max-width: 960px) {
  .client-portal-menu { width: 100%; }
  .client-portal-toggle { width: 100%; padding: 13px 0; font-size: 1rem; }
  .client-portal-popover { position: static; width: 100%; margin: 4px 0 8px; box-shadow: none; }
}
.stack-section {
  background:
    radial-gradient(ellipse at 0% 60%, rgba(101,52,119,.28), transparent 58%),
    radial-gradient(ellipse at 100% 10%, rgba(18,102,159,.25), transparent 55%),
    #091832;
}
.stack-tab[aria-selected=true] {
  background: linear-gradient(115deg, #a71158, #653477);
  border-color: #b95793;
  box-shadow: 0 5px 18px rgba(139,31,100,.2);
}
.service-layer.active .slab { fill: #713570; stroke: #ef8bc1; }
.service-layer.active .dot { fill: #ffd1e8; }
.stack-panel .deliverable {
  background: linear-gradient(115deg, rgba(126,47,115,.2), rgba(32,85,141,.14));
  border-color: rgba(212,152,212,.2);
}
.team-lead, .portco-result {
  background: linear-gradient(125deg, #682455 0%, #39376f 45%, #164f81 100%);
}
.audience-section {
  background: linear-gradient(118deg, #302349 0%, #263363 48%, #10476e 100%);
}
.page-hero {
  background:
    radial-gradient(ellipse at 0% 10%, rgba(167,17,88,.5), transparent 58%),
    linear-gradient(115deg, #251737 0%, #282e65 55%, #104c79 100%);
}
.contact-section {
  background:
    radial-gradient(ellipse at 0% 85%, rgba(167,17,88,.34), transparent 60%),
    linear-gradient(115deg, #241936, #232951 55%, #103b61);
}
.ai-stack-section { background: linear-gradient(125deg, #fcf8fc, #f8f9ff 55%, #f5fbfe); }
.ai-platform { background: rgba(255,255,255,.94); }
.services, .proof-section { background: linear-gradient(120deg, #f9f5fa, #f5f7fc 60%, #f2f8fc); }
.mega-industries, .mega-departments { background: #f6f4fa; }
.mega-number { background: linear-gradient(135deg, #fae5f0, #eeebf9); color: #9b1d65; }
.journey-controls { background: linear-gradient(110deg, #f5ecf4, #edf2fa); }
.journey-step[aria-selected=true] { color: #992060; }
.journey-panel { background: linear-gradient(115deg, #fbf7fc, #f5f8fd); }
.engagement.featured { border-color: rgba(125,58,132,.3); }
/* Rich chromatic emphasis, balanced for the dark brand backgrounds. */
.hero h1 em, .page-hero .accent-gradient {
  color: #e650a4;
  background-image: linear-gradient(105deg, #dc3b90 0%, #b766c5 45%, #828ade 75%, #419cd6 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eyebrow:not(.light), .mega-heading, .mega-stack-link, .mega-all {
  color: #8e215f;
}
.eyebrow.light, .hero .eyebrow, .deliverable span {
  color: #d77ec4;
}
@media (forced-colors: active) {
  .hero h1 em, .page-hero .accent-gradient { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
}
