/* Refinement layer (v27). Loaded after site.css and redesign.css.
   Keeps the existing brand (navy, amber, Sora/Inter) and adds: per-page identity,
   hero diagrams, commercial-vs-R&D distinction, tighter sections and responsive fixes. */

:root{--navy:#1E1B4B;--amber:#EDA63A;--ink:#24324A;--mute:#5B6678;--line:#E5E7EB}

/* ---------- Per-page identity (hero tint + accent) ---------- */
body{--pg:#EDA63A;--hbg:#1E1B4B}
body.pg-ai-intelligent-automation{--pg:#A78BFA;--hbg:#221B52}
body.pg-cybersecurity{--pg:#FB7185;--hbg:#26183C}
body.pg-cloud-technologies{--pg:#38BDF8;--hbg:#0F2A4C}
body.pg-autonomous-systems-robotics{--pg:#F59E6B;--hbg:#2B1F3F}
body.pg-quantum-computing{--pg:#67E8F9;--hbg:#151D52}
body.pg-solutions{--pg:#5EEAD4;--hbg:#12284A}
body.pg-industries{--pg:#FDBA74;--hbg:#1E1B4B}
body.pg-research{--pg:#C4B5FD;--hbg:#1E1B4B}
body.pg-about{--pg:#EDA63A;--hbg:#1E1B4B}

html body main .hx{background:var(--hbg)}
html body main .hx::before{
  background:
    radial-gradient(560px 380px at 86% 12%,color-mix(in srgb,var(--pg) 34%,transparent),transparent 70%),
    radial-gradient(480px 340px at 0 112%,rgba(124,106,230,.22),transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px) 0 0/44px 44px,
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px) 0 0/44px 44px;
  opacity:1;width:auto;height:auto;border-radius:0;inset:0}
html body main .hx-tag::before{background:var(--pg)}
html body main .hx-tag{color:#fff!important;border-color:color-mix(in srgb,var(--pg) 55%,transparent);background:color-mix(in srgb,var(--pg) 14%,transparent)}
html body main .hx[data-track="rd"] .hx-tag{border-style:dashed}
html body main .hx h1 .hx-b{color:var(--pg)!important}
html body main .hx .hx-btn:not(.alt){background:var(--amber);border-color:var(--amber);color:#1E1B4B!important}
html body main .hx{padding-bottom:clamp(40px,5vw,68px)}

/* Accent rule on section heads (one position, one style) */
html body main .head{text-align:left;margin:0 0 32px!important;max-width:720px}
html body main .head .lead{margin-left:0;margin-right:0}
html body main .head h2::after{margin:14px 0 0;background:color-mix(in srgb,var(--pg) 70%,#9A610B)}
body[class*="pg-"] main .head{border-left:0;padding-left:0}
html body main .head .kicker{color:#7A4A06}
html body main section.sec{padding:clamp(40px,5vw,68px) 0!important}
html body main section.sec.cta-band .head{margin-left:0}

/* ---------- Hero layout + illustration ---------- */
@media(min-width:900px){
  html body main .hx-grid{grid-template-columns:minmax(0,1fr) minmax(0,.92fr)!important;gap:clamp(32px,5vw,72px)}
}
.hx-ill{width:100%;max-width:540px;justify-self:end}
.ill{display:block;width:100%;height:auto;overflow:visible;font-family:Inter,system-ui,sans-serif}
.ill-box{fill:rgba(255,255,255,.07);stroke:rgba(255,255,255,.28);stroke-width:1.2}
.ill-box.hi{fill:color-mix(in srgb,var(--pg) 22%,transparent);stroke:var(--pg)}
.ill-box.soft{fill:rgba(255,255,255,.04);stroke:rgba(255,255,255,.18)}
.ill-box.dash{stroke-dasharray:5 4;fill:rgba(255,255,255,.03);stroke:color-mix(in srgb,var(--pg) 70%,#fff)}
.ill-box.dash.grey{stroke:rgba(255,255,255,.4)}
.ill-t{fill:#fff;font-weight:600;font-size:14px}
.ill-s{fill:rgba(255,255,255,.72);font-weight:500;font-size:12px}
.ill-c{fill:color-mix(in srgb,var(--pg) 80%,#fff);font-weight:700;font-size:11px;letter-spacing:.12em}
.ill-ln{stroke:rgba(255,255,255,.55);stroke-width:1.6;fill:none}
.ill-ah{fill:none;stroke:rgba(255,255,255,.75);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ill-dot{fill:var(--hbg);stroke:var(--pg);stroke-width:1.6}
.hx-facts{display:grid;gap:12px}
.hx-facts>div{display:grid;grid-template-columns:44px 1fr;column-gap:14px;align-items:center;padding:16px 18px;border:1px solid rgba(255,255,255,.18);border-radius:14px;background:rgba(255,255,255,.07)}
.hx-facts .ic{grid-row:span 2;width:44px;height:44px;padding:10px;border-radius:12px;background:rgba(237,166,58,.18);color:#FBD58A}
.hx-facts b{color:#fff;font:700 1.05rem var(--hd)}
.hx-facts span{color:rgba(255,255,255,.75);font-size:.92rem}

/* ---------- Scope (what we provide / do not do) ---------- */
.scope-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.scope-2>div{padding:22px 24px;border:1px solid var(--line);border-radius:14px;background:#fff;border-top:3px solid #2F9E6B}
.scope-2 .scope-n{border-top-color:#C2410C}
.scope-l{display:block;font:700 .74rem var(--bd);letter-spacing:.12em;text-transform:uppercase;color:var(--mute);margin-bottom:8px}
.scope-2 p{margin:0;color:var(--ink);line-height:1.6;max-width:none}
.cmp-s h3{font-size:1.05rem}

/* ---------- Blueprint (illustrative reference design) ---------- */
.bp-flag{display:inline-block;margin:14px 0 0;padding:8px 14px;border-radius:8px;background:#FFF7E6;border:1px solid #F3D9A4;color:#6B4A0E;font-size:.92rem;max-width:none}
.bp-grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:clamp(20px,3vw,36px)}
.bp-block .tk{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.bp-block .tk-i{display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border:1px solid var(--line);border-radius:99px;background:#fff;box-shadow:none}
.bp-block .tk-m{width:26px;height:26px;font-size:.62rem}
.bp-block .tk-t{font-size:.86rem}

.jr-cta{display:flex;flex-wrap:wrap;gap:20px;align-items:center;margin-top:36px}
.dk-p{margin:14px 0 0;color:rgba(255,255,255,.85);max-width:46ch}
html body main .tchip.is-rd{background:#EEF0FF;color:#3F3FA8;border:1px dashed #A5A8E8}

/* ---------- Home: workflow ---------- */
.jr-step h3{font-size:1rem}
.jr-get{font-size:.9rem}

/* ---------- About ---------- */
.vision-line{margin:22px 0 0;padding:14px 18px;border-left:4px solid var(--amber);background:#fff;border-radius:0 10px 10px 0;color:var(--ink);max-width:70ch}
.princ{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.princ li{padding:22px;border:1px solid var(--line);border-top:3px solid var(--amber);border-radius:12px;background:#fff}
.princ b{display:block;font:700 1.05rem var(--hd);color:var(--navy);margin-bottom:6px}
.princ span{color:var(--mute);line-height:1.55}
.about-redesign .two-up .tu.rsch{border-style:dashed!important}
.about-redesign .story-intro{max-width:none}

/* ---------- Solutions: ways to engage ---------- */
#engagement-models .of-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;list-style:none;margin:0;padding:0}
#engagement-models .of-card{display:flex;flex-direction:column;height:100%}

/* ---------- Industries ---------- */
body.pg-industries main .sec :is(li,article)[class*="card"]{border-top:3px solid #EDA63A}

/* ---------- Responsive ---------- */
@media(max-width:1100px){
  #engagement-models .of-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:899px){
  .hx-ill{max-width:520px;justify-self:start;margin-top:8px}
  .princ{grid-template-columns:1fr}
  .bp-grid2{grid-template-columns:1fr}
}
@media(max-width:700px){
  .scope-2{grid-template-columns:1fr}
  #engagement-models .of-grid{grid-template-columns:1fr 1fr}
  .hx-ill{margin-top:4px}
}
@media(max-width:480px){#engagement-models .of-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* home heading alignment */
html body main .tech-head,html body main .technology-showcase .head{max-width:720px;margin:0 0 28px!important;text-align:left!important;padding:0!important}
html body main .technology-more{margin-top:28px;text-align:left}
html body main .tech-band .band-h{counter-increment:none}
html body main .tech-band .band-h::before{content:none!important;display:none!important}
html body[class*="pg-"] main .head{border-left:0!important;padding-left:0!important}

/* ==========================================================================
   Unified hero (v28): every page except Home uses the same deep-navy hero
   with amber accents and Sora headings (matches the Solutions reference).
   Content is untouched; this block only restyles.
   ========================================================================== */
body[class*="pg-"]:not(.pg-index){--pg:#EDA63A;--hbg:#1E1B4B}

/* background: navy + amber glow top-right, violet glow bottom-left, faint grid */
html body:not(.pg-index) main .hx,
html body:not(.pg-index) main .phero.plain{background:#1E1B4B!important;background-image:none!important;position:relative;isolation:isolate;overflow:hidden;color:#fff}
html body:not(.pg-index) main .hx::before,
html body:not(.pg-index) main .phero.plain::before{
  content:""!important;display:block!important;position:absolute;inset:0!important;width:auto!important;height:auto!important;z-index:-1;border-radius:0;opacity:1!important;
  -webkit-mask-image:none!important;mask-image:none!important;
  background:
    radial-gradient(620px 380px at 88% 8%,rgba(237,166,58,.28),transparent 70%),
    radial-gradient(520px 360px at 0 110%,rgba(124,106,230,.25),transparent 70%),
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px) 0 0/44px 44px,
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px) 0 0/44px 44px!important}
html body:not(.pg-index) main .phero.plain::after{display:none!important}

/* tag pill */
html body:not(.pg-index) main .hx-tag,html body:not(.pg-index) main .phero .status{
  display:inline-flex;align-items:center;gap:8px;font:600 .78rem var(--bd);letter-spacing:.14em;text-transform:uppercase;
  color:#FBD58A!important;padding:7px 16px;border:1px solid rgba(251,213,138,.4)!important;border-radius:99px;background:rgba(251,213,138,.08)!important}
html body:not(.pg-index) main .hx-tag::before{background:#EDA63A!important}

/* headline: Sora, white first line, amber second line */
html body:not(.pg-index) main .hx h1,
html body:not(.pg-index) main .phero.plain h1{font:700 clamp(2.1rem,4.2vw,3.4rem)/1.12 var(--hd)!important;letter-spacing:-.03em;color:#fff!important;max-width:20ch;text-wrap:balance}
html body:not(.pg-index) main .hx h1 .hx-a,
html body:not(.pg-index) main .phero.plain h1 .hero-brand-first{color:#fff!important;-webkit-text-fill-color:currentColor!important}
html body:not(.pg-index) main .hx h1 .hx-b,
html body:not(.pg-index) main .phero.plain h1 .hero-brand-second{color:#F5A524!important;-webkit-text-fill-color:currentColor!important}
html body:not(.pg-index) main .hx .hx-lead,
html body:not(.pg-index) main .phero.plain .lead{font:400 1.1rem/1.65 var(--bd);color:rgba(255,255,255,.88)!important;max-width:56ch}

/* buttons */
html body:not(.pg-index) main .hx .hx-btn:not(.alt),
html body:not(.pg-index) main .phero.plain .btn:not(.ghost){background:#EDA63A!important;border-color:#EDA63A!important;color:#1E1B4B!important}
html body:not(.pg-index) main .hx .hx-btn.alt,
html body:not(.pg-index) main .phero.plain .btn.ghost{background:transparent!important;border:2px solid rgba(255,255,255,.4)!important;color:#fff!important}
html body:not(.pg-index) main .phero.plain .links a{color:#FBD58A!important}

/* right-hand card: glass panel */
html body:not(.pg-index) main .hx .hx-ill{border:1px solid rgba(255,255,255,.16);border-radius:24px;background:rgba(255,255,255,.07);backdrop-filter:blur(6px);padding:24px}
html body:not(.pg-index) main .hx .hx-ill.hx-facts{padding:20px}
html body:not(.pg-index) main .hx .ill-box.hi{fill:rgba(237,166,58,.16);stroke:#EDA63A}
html body:not(.pg-index) main .hx .ill-box.dash{stroke:rgba(251,213,138,.7)}
html body:not(.pg-index) main .hx .ill-c{fill:#FBD58A}
html body:not(.pg-index) main .hx .ill-dot{fill:#1E1B4B;stroke:#EDA63A}

/* Contact: title block becomes the same navy hero band (full-bleed) */
html body.pg-contact main .contact-ref{padding-top:0!important}
html body.pg-contact main .contact-title{position:relative;isolation:isolate;margin:0 0 36px;padding:clamp(40px,5vw,72px) 0 clamp(44px,5vw,76px);background:#1E1B4B;box-shadow:0 0 0 100vmax #1E1B4B;clip-path:inset(0 -100vmax)}
html body.pg-contact main .contact-title::before{content:"";position:absolute;inset:0 -100vmax;z-index:-1;background:radial-gradient(620px 380px at 78% 8%,rgba(237,166,58,.28),transparent 70%),radial-gradient(520px 360px at 12% 110%,rgba(124,106,230,.25),transparent 70%),linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px) 0 0/44px 44px,linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px) 0 0/44px 44px}
html body.pg-contact main .contact-title h1{font:700 clamp(2.1rem,4.2vw,3.4rem)/1.12 var(--hd)!important;letter-spacing:-.03em;color:#fff}
html body.pg-contact main .contact-title .contact-blue{color:#fff}
html body.pg-contact main .contact-title .contact-green{color:#F5A524}
html body.pg-contact main .contact-title .lead{font:400 1.1rem/1.65 var(--bd);color:rgba(255,255,255,.88)}

@media(max-width:700px){
  html body:not(.pg-index) main .hx h1,html body:not(.pg-index) main .phero.plain h1,html body.pg-contact main .contact-title h1{font-size:clamp(1.85rem,7.2vw,2.4rem)!important;max-width:none}
  html body:not(.pg-index) main .hx .hx-ill{padding:16px;border-radius:18px}
}
html body.pg-contact main section.contact-ref{padding-top:0!important}
html body.pg-contact main .contact-title .lead{color:rgba(255,255,255,.88)!important;max-width:56ch}
html body.pg-contact main>section.sec.ref-offwhite.contact-ref{padding-top:0!important}

/* hero buttons: white text */
html body:not(.pg-index) main .hx .hx-btn,
html body:not(.pg-index) main .hx .hx-btn:not(.alt),
html body:not(.pg-index) main .hx .hx-btn.alt,
html body:not(.pg-index) main .phero.plain .btn,
html body:not(.pg-index) main .phero.plain .btn:not(.ghost),
html body:not(.pg-index) main .phero.plain .btn.ghost{color:#fff!important}

/* ---------- Home: compact technology section ---------- */
.technology-showcase{padding:clamp(36px,4.5vw,56px) 0!important}
html body main .technology-showcase .tech-head{margin-bottom:20px!important}
.tx-wrap{display:grid;grid-template-columns:2fr 1fr;gap:18px 28px;align-items:start}
.band-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;margin:0 0 10px;font:700 1rem var(--hd);color:var(--navy)}
.band-h span{font:500 .85rem var(--bd);color:var(--mute)}
.tx-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tx-grid.one{grid-template-columns:1fr}
.tx{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid var(--line);border-left:3px solid #EDA63A;border-radius:10px;background:#fff;color:inherit;text-decoration:none;transition:border-color .15s,background .15s}
.tx[data-track="rd"]{border-left-color:#7C7FE0;border-style:dashed dashed dashed solid;background:#FAFAFF}
.tx:hover{border-color:var(--navy);background:#fff}
.tx-ic{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#FEEFCF;color:#9A610B}
.tx[data-track="rd"] .tx-ic{background:#EEF0FF;color:#3F3FA8}
.tx-ic svg{width:20px;height:20px}
.tx-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tx-b b{font:700 .95rem/1.25 var(--hd);color:var(--navy)}
.tx-d{display:block;font-style:normal;font-size:.84rem;line-height:1.45;color:#3B4A63;margin:2px 0 4px}
.tx-b ul{margin:4px 0 0;padding:0;list-style:none;display:grid;gap:2px}
.tx-b li{position:relative;padding-left:14px;font-size:.82rem;line-height:1.4;color:var(--mute)}
.tx-b li::before{content:"";position:absolute;left:2px;top:.55em;width:5px;height:5px;border-radius:50%;background:#EDA63A}
.tx[data-track="rd"] .tx-b li::before{background:#7C7FE0}
.tx-ar{flex:none;align-self:center;width:18px;height:18px;color:#9A610B;transition:transform .15s}
.tx:hover .tx-ar{transform:translateX(3px)}
html body main .technology-more{margin-top:20px;justify-content:flex-start}
@media(max-width:1000px){.tx-wrap{grid-template-columns:1fr}}
@media(max-width:600px){.tx-grid{grid-template-columns:1fr}.tx-b li{font-size:.8rem}}
