/* Polish layer (v29). Loaded last. Consistent buttons, cards, spacing, footer, navigation and motion.
   Brand stays: navy #1E1B4B, bronze/amber accent, Sora + Inter. */

:root{
  --pl-navy:#1E1B4B;
  --pl-btn:#EDA63A;          /* amber, white text: matches the approved home-page buttons */
  --pl-btn-h:#C58A2A;
  --pl-btn-line:#EDA63A;
  --pl-btn-line-h:#C58A2A;
  --pl-btn-ink:#FFFFFF;
  --pl-btn-ink-h:#FFFFFF;
  --pl-accent:#A16207;
  --pl-line:#E3E6EE;
  --pl-ink:#1F2A44;
  --pl-mute:#5B6678;
  --pl-r:14px;
  --pl-sh:0 1px 2px rgba(30,27,75,.04),0 8px 24px -16px rgba(30,27,75,.18);
  --pl-sh-h:0 2px 4px rgba(30,27,75,.05),0 18px 36px -18px rgba(30,27,75,.28);
  --pl-sec:clamp(44px,5.2vw,76px);
  --hh:72px;
}

/* ---------- 8. Smooth scrolling ---------- */
html{scroll-behavior:smooth;scroll-padding-top:92px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.rv-on .rv{opacity:0;transform:translateY(26px);transition:opacity .8s cubic-bezier(.22,.7,.2,1),transform .8s cubic-bezier(.22,.7,.2,1)}
.rv-on .rv.in{opacity:1;transform:none}
.rv-on .rv.in .cards>*,.rv-on .rv.in .tx-grid>*,.rv-on .rv.in .jr-step,.rv-on .rv.in .princ>*{animation:pl-rise .7s cubic-bezier(.22,.7,.2,1) both}
.rv-on .rv.in :is(.cards,.tx-grid,.jr-track,.princ)>:nth-child(2){animation-delay:.07s}
.rv-on .rv.in :is(.cards,.tx-grid,.jr-track,.princ)>:nth-child(3){animation-delay:.14s}
.rv-on .rv.in :is(.cards,.tx-grid,.jr-track,.princ)>:nth-child(4){animation-delay:.21s}
.rv-on .rv.in :is(.cards,.tx-grid,.jr-track,.princ)>:nth-child(5){animation-delay:.28s}
@keyframes pl-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.rv-on .rv,.rv-on .rv.in :is(.cards,.tx-grid,.jr-track,.princ)>*{animation:none!important;transition:none!important;opacity:1!important;transform:none!important}}
.scroll-progress{position:absolute;left:0;bottom:-1px;height:2px;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#A16207,#EDA63A);pointer-events:none;will-change:transform}

/* ---------- 2. Buttons: muted, professional ---------- */
html body :is(.btn,.hd-cta,.hx-btn,.fx-chat,.fx-cf button,.tech-card .tech-link):not(.ghost):not(.line):not(.alt),
html body main section.sec.cta-main .btn.light,
html body main .btn-lg:not(.ghost):not(.line),
html body main .bp .actions .btn:not(.ghost),
html body main .hx .hx-btn:not(.alt),
html body main .phero.plain .btn:not(.ghost),
html body header #nl>li>a.btn,
html body main .tech-data-hero .btn,
html body .contact-ref .form .btn,
html body .solutions-redesign .sol-service .btn{
  background:var(--pl-btn)!important;border:1px solid var(--pl-btn-line)!important;color:var(--pl-btn-ink)!important;
  border-radius:8px!important;box-shadow:none!important;font-weight:600!important;letter-spacing:.005em;
  transition:background .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease!important}
html body :is(.btn,.hd-cta,.hx-btn,.fx-chat,.fx-cf button,.tech-card .tech-link):not(.ghost):not(.line):not(.alt):hover,
html body main section.sec.cta-main .btn.light:hover,
html body main .btn-lg:not(.ghost):not(.line):hover,
html body main .bp .actions .btn:not(.ghost):hover,
html body main .hx .hx-btn:not(.alt):hover,
html body main .phero.plain .btn:not(.ghost):hover,
html body header #nl>li>a.btn:hover,
html body main .tech-data-hero .btn:hover,
html body .contact-ref .form .btn:hover,
html body .solutions-redesign .sol-service .btn:hover{
  background:var(--pl-btn-h)!important;border-color:var(--pl-btn-line-h)!important;color:var(--pl-btn-ink-h)!important;
  transform:translateY(-1px);box-shadow:0 8px 18px -12px rgba(133,77,14,.55)!important}
html body .fx-chat{border-radius:99px!important}
html body :is(.btn,.hx-btn):focus-visible,html body header #nl a:focus-visible{outline:3px solid rgba(161,98,7,.35);outline-offset:2px}
html body main .btn.ghost,html body main .hero-actions .btn.ghost{background:#fff!important;color:var(--pl-navy)!important;border:1px solid #CBD2DF!important;box-shadow:none!important}
html body main .btn.ghost:hover,html body main .hero-actions .btn.ghost:hover{background:#F4F5FA!important;border-color:var(--pl-navy)!important;transform:translateY(-1px)}
html body main .hx .hx-btn.alt,html body main .phero.plain .btn.ghost{background:transparent!important;border:1px solid rgba(255,255,255,.45)!important;color:#fff!important}
html body main .hx .hx-btn.alt:hover,html body main .phero.plain .btn.ghost:hover{background:rgba(255,255,255,.1)!important;border-color:#fff!important}
html body header #nl>li>a.btn{padding:10px 20px;margin-left:10px;font-size:14px!important}

/* ---------- 7. Navigation: hover dropdown + interaction ---------- */
header{backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px)}
header .nav{height:var(--hh)}
/* A filtered header becomes the containing block for the fixed mobile menu.
   Keep the menu fixed to the viewport so its full height remains visible. */
@media(max-width:1020px){
  header{backdrop-filter:none;-webkit-backdrop-filter:none}
  #nl{padding-bottom:calc(32px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain}
}
#nl>li>a:not(.btn),#nl>li>button{position:relative}
@media(min-width:961px){
  #nl>li>a:not(.btn)::before,#nl>li>button::before{content:"";position:absolute;left:14px;right:14px;bottom:4px;height:2px;border-radius:2px;background:var(--pl-btn);transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
  #nl>li:hover>a:not(.btn)::before,#nl>li:hover>button::before,#nl>li.sub-open>button::before,#nl>li>a[aria-current=page]::before{transform:scaleX(1)}
  #nl>li>button::after{transition:transform .25s ease}
  #nl>li:hover>button::after,#nl>li:focus-within>button::after{transform:rotate(225deg) translate(-1px,-1px)}
  #nl>li:hover>a:not(.btn),#nl>li:hover>button{color:var(--pl-accent)!important;background:transparent!important}
  /* dropdown: visible on hover or keyboard focus, with a hover bridge and a short close delay */
  .dd{display:grid!important;visibility:hidden;opacity:0;transform:translateY(8px);pointer-events:none;
      transition:opacity .2s ease,transform .2s ease,visibility 0s linear .2s;
      left:50%;margin-left:-280px;top:100%;width:560px;padding:10px;border-radius:14px;border:1px solid var(--pl-line);box-shadow:0 28px 60px -26px rgba(30,27,75,.45)}
  .dd::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}
  #nl>li:hover>.dd,#nl>li:focus-within>.dd,#nl>li.sub-open>.dd{visibility:visible;opacity:1;transform:none;pointer-events:auto;transition-delay:0s,0s,0s}
  .dd a{position:relative;transition:background .15s ease,transform .15s ease}
  .dd a:hover,.dd a:focus-visible{background:#F4F5FA;transform:translateX(3px)}
  .dd a b{color:var(--pl-navy)}
  .dd a:hover b{color:var(--pl-accent)}
}
@media(max-width:960px){.dd{opacity:1;visibility:visible;transform:none}}

/* ---------- 3. Cards ---------- */
html body main :is(.card,.tech-card,.prob,.panel,.sol-service,.scard,.of-card,.pb-card,.princ li,.tu,.cap,.rd,.pc,.tx){
  background:#fff!important;border:1px solid var(--pl-line)!important;border-radius:var(--pl-r)!important;
  box-shadow:var(--pl-sh)!important;position:relative;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease!important}
html body main :is(.card,.tech-card,.prob,.sol-service,.scard,.of-card,.pb-card,.princ li,.tu,.cap,.rd,.pc,.tx):hover{
  transform:translateY(-3px)!important;box-shadow:var(--pl-sh-h)!important;border-color:#D8B472!important}
/* a quiet accent line that grows on hover, replacing mixed per-page top borders */
html body main :is(.card,.sol-service,.princ li,.of-card,.pb-card,.cap){border-top:1px solid var(--pl-line)!important;overflow:hidden}
html body main :is(.card,.sol-service,.princ li,.of-card,.pb-card,.cap)::after{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#A16207,#EDA63A);transform:scaleX(0);transform-origin:left;transition:transform .35s ease;display:block!important}
html body main :is(.card,.sol-service,.princ li,.of-card,.pb-card,.cap):hover::after{transform:scaleX(1)}
html body main .card .badge,html body main .sol-service .badge,html body main .cap .badge,html body main .rd .badge{
  background:#FBF1DC!important;color:#8A5A12!important;border-radius:12px!important;box-shadow:none!important}
html body main .card h3,html body main .sol-service h3,html body main .cap h3,html body main .rd h3,html body main .tech-card h3{color:var(--pl-navy)!important}
html body main .card p,html body main .sol-service p,html body main .cap p,html body main .rd p{color:var(--pl-mute)!important}
html body main .card .tags{border-top:1px solid #EEF0F5!important}
html body main .tx{border-left:1px solid var(--pl-line)!important;border-style:solid!important;background:#fff!important}
html body main .tx[data-track="rd"]{background:#FAFAFE!important;border-style:solid!important}
html body main .tx-ic{background:#FBF1DC!important;color:#8A5A12!important}
html body main .tx[data-track="rd"] .tx-ic{background:#ECEEFB!important;color:#3F3FA8!important}
html body main .tx-ar{color:#8A5A12!important}
html body main .tx{padding:16px 18px!important;border-radius:12px!important}

/* ---------- 4. Five steps: equal boxes ---------- */
html body .jr-track{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:16px!important;align-items:stretch;list-style:none;margin:0;padding:0}
html body .jr-track::before{display:none!important}
html body .jr-step{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;text-align:left!important;gap:12px!important;
  height:100%;min-height:236px;padding:22px 20px 20px!important;margin:0;
  background:#fff;border:1px solid var(--pl-line)!important;border-radius:var(--pl-r)!important;box-shadow:var(--pl-sh)}
html body .jr-dot{width:40px!important;height:40px!important;margin:0!important;border-radius:12px!important;background:#FBF1DC!important;color:#8A5A12!important;box-shadow:none!important;flex:none;font-weight:700}
html body .jr-step h3{margin:0!important;min-height:2.8em;font-size:1rem!important;line-height:1.4!important;color:var(--pl-navy)!important}
html body .jr-step .jr-get{margin:auto 0 0!important;width:100%;padding:12px 14px!important;border-radius:10px!important;background:#F7F8FB!important;border:1px solid #ECEEF4!important;font-size:.88rem!important;line-height:1.5;color:var(--pl-ink)!important}
html body .jr-step .jr-get b{display:block;margin-bottom:3px;font-size:.7rem;letter-spacing:.09em;text-transform:uppercase;color:#8A5A12!important}
@media(max-width:1100px){
  html body .jr-track{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  html body .jr-step{grid-column:span 2;min-height:0}
  html body .jr-step:nth-child(n+4){grid-column:span 3}
}
@media(max-width:640px){
  html body .jr-track{grid-template-columns:1fr!important}
  html body .jr-step,html body .jr-step:nth-child(n+4){grid-column:auto;min-height:0}
  html body .jr-step h3{min-height:0}
}

/* ---------- 5. Footer: compact, no logo plate ---------- */
html body footer{padding:30px 0 0!important;background:#17143C!important;border-top:3px solid #A16207!important}
html body footer .fg{grid-template-columns:1.5fr 1fr 1fr 1.2fr!important;gap:28px 36px!important}
html body footer .logo{background:transparent!important;border:0!important;padding:0!important;border-radius:0!important;gap:10px}
html body footer .logo img{height:36px!important;width:auto!important;filter:drop-shadow(0 0 0 transparent)}
html body footer .logo .lt b{color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:22px!important}
html body footer .logo .lt small{color:#E3B15C!important;-webkit-text-fill-color:#E3B15C!important;font-size:8px!important}
html body footer .about{margin:10px 0 8px!important;max-width:34ch;font-size:13.5px!important;line-height:1.55!important;color:#C9CDE0!important}
html body footer address{font-size:13px!important;line-height:1.5!important;color:#C9CDE0!important;max-width:34ch}
html body footer :is(h2.fh,h4){font-size:13px!important;letter-spacing:.08em;text-transform:uppercase;margin:0 0 10px!important;color:#fff!important}
html body footer li{margin:0 0 2px!important}
html body footer :is(p,a,li){font-size:13.5px!important;line-height:1.5!important}
html body footer a{color:#C9CDE0!important;transition:color .15s ease}
html body footer a:hover{color:#F3C77A!important;text-decoration:none}
html body footer .fg li a,html body footer address a{display:inline-block;padding:3px 0!important;min-height:0!important;line-height:1.5!important}
html body footer .fb{margin-top:20px!important;padding:12px 0!important;border-color:rgba(255,255,255,.14)!important;font-size:12.5px!important;color:#AEB4CC!important}
html body footer .fb nav a{padding:2px 6px!important;min-height:0!important;font-size:12.5px!important}
html body footer .fb span{font-size:12.5px!important;color:#AEB4CC!important}
@media(max-width:900px){html body footer .fg{grid-template-columns:1fr 1fr!important}}
@media(max-width:560px){html body footer .fg{grid-template-columns:1fr!important;gap:22px!important}}

/* ---------- 6. LinkedIn: logo only ---------- */
html body .soc-li{display:inline-flex!important;align-items:center;justify-content:center;width:38px;height:38px;padding:0!important;margin-top:12px!important;border-radius:10px!important;
  background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.2)!important;color:#fff!important;transition:background .2s ease,border-color .2s ease,transform .2s ease}
html body .soc-li svg{width:18px;height:18px}
html body .soc-li:hover,html body .soc-li:focus-visible{background:#0A66C2!important;border-color:#0A66C2!important;color:#fff!important;transform:translateY(-2px)}
html body .soc-li span{display:none!important}

/* ---------- 9. Our Story ---------- */
.story-body{max-width:72ch;margin:14px 0 4px}
.story-body p{margin:0 0 14px;color:var(--pl-mute);line-height:1.7;font-size:1rem;max-width:none}
html body main .about-story .story-intro{max-width:860px}

/* ---------- 10. Overall spacing, alignment, consistency ---------- */
html body main section.sec{padding:var(--pl-sec) 0!important}
html body main .head{margin:0 0 clamp(24px,3vw,34px)!important;max-width:760px}
html body main .head h2{margin:8px 0 10px!important;font-size:clamp(1.55rem,2.6vw,2.1rem);line-height:1.2;letter-spacing:-.02em;color:var(--pl-navy)}
html body main .head .kicker{font-size:.78rem!important;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:#8A5A12!important}
html body main .head .lead{margin:0;color:var(--pl-mute);line-height:1.65;max-width:62ch}
html body main section.sec:nth-of-type(even):not(.cta-main):not(.dark){background:#F7F8FB}
html body main section.sec:nth-of-type(odd):not(.cta-main):not(.dark):not(.hx){background:#fff}
html body main .jr-cta,html body main .technology-more{margin-top:28px}
html body main .tx-wrap{gap:20px 28px}
html body main .tx-grid{gap:12px}
html body main .band-h{margin-bottom:12px}
html body main :is(.hero-grid,.hx-grid){align-items:center}
html body main .hero{padding-block:clamp(36px,4.5vw,64px)}
html body main .vision-line{border-radius:0 12px 12px 0;box-shadow:var(--pl-sh)}
html body main .princ{gap:16px}
html body main .pledge{border-radius:var(--pl-r)!important}

/* ---------- Home technologies: balanced grid (3 commercial + 2 R&D) ---------- */
html body main .tx-wrap{grid-template-columns:1fr!important;gap:26px!important}
html body main .tx-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important}
html body main .tx-grid>.tx{grid-column:span 2}
html body main .tx-grid.one>.tx{grid-column:span 3}
html body main .tx{height:100%;align-items:flex-start}
@media(max-width:1000px){html body main .tx-grid>.tx{grid-column:span 3}html body main .tx-grid>.tx:last-child:nth-child(odd){grid-column:1/-1}}
@media(max-width:640px){html body main .tx-grid>.tx,html body main .tx-grid.one>.tx{grid-column:1/-1}}

/* five steps: align every row across boxes */
@supports (grid-template-rows:subgrid){
  @media(min-width:641px){
    html body .jr-track{row-gap:0!important}
    html body .jr-step{display:grid!important;grid-row:span 3;grid-template-rows:subgrid;row-gap:12px!important;align-content:start}
    html body .jr-track{margin-bottom:0}
    html body .jr-step h3{min-height:0!important}
    html body .jr-step .jr-get{margin:0!important;align-self:stretch}
    html body .jr-step{min-height:0}
  }
}
@media(min-width:641px) and (max-width:1100px){html body .jr-track{row-gap:16px!important}}
/* footer logo: no plate; thin light edge keeps the dark mark legible on navy */
html body footer .logo img{filter:drop-shadow(0 0 .6px #fff) drop-shadow(0 0 .6px #fff) drop-shadow(0 0 3px rgba(255,255,255,.35))!important}

/* Solutions: three services in one row */
@media(min-width:1000px){html body main .sol-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:stretch}}
html body main .sol-grid>.sol-service{height:100%}
html body main .princ{align-items:stretch}
html body main .princ>li{height:100%}

/* Solutions: scope cards (3 + 2 balanced), engagement cards, remove maturity-bar underline on pills */
@media(min-width:1000px){
  html body main .scards{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:16px!important}
  html body main .scards>.scard{grid-column:span 2}
  html body main .scards>.scard:nth-child(n+4){grid-column:span 3}
}
html body main .pill[data-lv]{padding-bottom:inherit}
html body main .pill[data-lv]::after{display:none!important}
html body main .scard .link{text-decoration:none!important;border:0!important;background:none!important}
html body main .scard header{padding:0 0 12px!important}
html body main .of-go{background:var(--pl-btn)!important;color:var(--pl-btn-ink)!important;border-color:var(--pl-btn-line)!important;border-radius:8px!important;box-shadow:none!important;font-weight:600}
html body main .of-card:hover .of-go{background:var(--pl-btn-h)!important;border-color:var(--pl-btn-line-h)!important}
html body main .of-ic{background:#FBF1DC!important;color:#8A5A12!important}

/* Industries: balance the last row (8 sector cards = 3 + 3 + 2) */
@media(min-width:1000px){
  html body main .cards.n3:has(>.card:nth-child(8):last-child){grid-template-columns:repeat(6,minmax(0,1fr))!important}
  html body main .cards.n3:has(>.card:nth-child(8):last-child)>.card{grid-column:span 2!important}
  html body main .cards.n3:has(>.card:nth-child(8):last-child)>.card:nth-child(n+7){grid-column:span 3!important}
}

/* Drones added: three R&D cards on home, six scope cards on Solutions */
html body main .tx-grid.one>.tx{grid-column:span 2}
@media(max-width:1000px){html body main .tx-grid.one>.tx{grid-column:span 3}html body main .tx-grid.one>.tx:last-child:nth-child(odd){grid-column:1/-1}}
@media(max-width:640px){html body main .tx-grid.one>.tx{grid-column:1/-1}}
@media(min-width:1000px){html body main .scards:has(>.scard:nth-child(6))>.scard,html body main .scards:has(>.scard:nth-child(6))>.scard:nth-child(n+4){grid-column:span 2}}

/* Research/capability grids: separate cards with even gaps */
html body main .cap-grid{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;gap:16px!important}
@media(min-width:900px){
  html body main .cap-grid[data-n="4"]>.cap,html body main .cap-grid[data-n="5"]>.cap:nth-child(n+4){grid-column:span 6!important}
  html body main .cap-grid[data-n="5"]>.cap:nth-child(-n+3),html body main .cap-grid[data-n="6"]>.cap,html body main .cap-grid[data-n="3"]>.cap{grid-column:span 4!important}
  html body main .cap-grid[data-n="7"]>.cap:nth-child(-n+4){grid-column:span 3!important}
}
html body main .cap-grid>.cap{padding:24px 22px 26px!important;height:100%}


/* ---------- Cream buttons on inner-page hero panels (beats refine.css) ---------- */
html body:not(.pg-index) main .hx .hx-btn:not(.alt),
html body:not(.pg-index) main .phero.plain .btn:not(.ghost){
  background:var(--pl-btn)!important;border:1px solid var(--pl-btn-line)!important;color:var(--pl-btn-ink)!important}
html body:not(.pg-index) main .hx .hx-btn:not(.alt):hover,
html body:not(.pg-index) main .phero.plain .btn:not(.ghost):hover{
  background:var(--pl-btn-h)!important;border-color:var(--pl-btn-line-h)!important;color:var(--pl-btn-ink-h)!important}

/* Home: Delivery workflow and Research sections are both white; a hairline keeps them distinct */
html body.pg-index main #engage + section.sec{border-top:1px solid #E5E7EB}

/* Home hero: soft 3D-cube background (hero-bg.webp). Left fades to white behind the headline. */
html body.pg-index main .hero{
  background-color:#F5F5F5;
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.55) 0%,rgba(255,255,255,0) 60%),
    url(hero-bg.webp);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat}

/* Home hero: remove dotted background pattern */
html body.pg-index main .hero::before{display:none!important;background:none!important;content:none!important}

/* Hover highlight for text boxes that had none (matches existing card hover: amber border, soft lift) */
html body main :is(.ab-col,.bp-stage,.cmp-s,.scope-y,.scope-n,.jr-step,.sol-scope>div,.princ>div,.hx-facts>div,.notice,.ab-vm>div){
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background-color .18s ease}
html body main :is(.ab-col,.bp-stage,.cmp-s,.scope-y,.scope-n,.sol-scope>div,.princ>div,.hx-facts>div,.notice,.sol-scope .y,.sol-scope .n):hover{
  border-color:#EDA63A!important;box-shadow:0 8px 22px rgba(30,27,75,.08)!important;transform:translateY(-2px)}
html body main .jr-step:hover .jr-get{border-color:#EDA63A!important;background:#FFF8E9!important}
html body main .jr-step:hover{transform:translateY(-2px)}
html body main .ab-vm>div:hover{background:#FFFBF2}
html body main .ab-vm:hover{border-color:#EDA63A!important}
@media(prefers-reduced-motion:reduce){html body main :is(.ab-col,.bp-stage,.cmp-s,.scope-y,.scope-n,.jr-step,.notice):hover{transform:none}}
