/* Sovereign Tech Solutions — visual refinement pack */
:root{--st-navy:#06162e;--st-blue:#087df5;--st-cyan:#16c5ff;--st-gold:#d59a27;--st-ease:cubic-bezier(.22,1,.36,1)}
/* Consistent branded browser/header identity */
.brand{gap:12px;min-width:max-content}.brand img{width:62px;height:62px;object-fit:contain;transition:transform .55s var(--st-ease),filter .55s var(--st-ease)}
.brand:hover img{transform:rotate(-5deg) scale(1.06);filter:drop-shadow(0 5px 12px #087df533)}
.nav-wrap{min-height:88px;height:88px;gap:22px}.site-header{transition:all .45s var(--st-ease)}
.site-header.motion-scrolled .brand img{width:54px;height:54px}
.site-header nav{gap:2px}.site-header nav a,.site-header .nav-drop-toggle{white-space:nowrap}
/* Keep hero artwork intact so the company logo embedded in each image is never cropped */
.portfolio-hero{height:auto;min-height:0;aspect-ratio:16/9;max-height:900px;align-items:center}
.portfolio-hero-bg{object-fit:contain;object-position:center center;animation:stHeroDrift 18s ease-in-out infinite alternate;background:#06162e}
.portfolio-hero::before{background:linear-gradient(90deg,rgba(3,18,39,.24),rgba(3,18,39,.04) 56%,rgba(3,18,39,.02)),linear-gradient(0deg,rgba(3,18,39,.18),transparent 48%)}
.portfolio-hero-content{padding-top:clamp(34px,6vw,82px);padding-bottom:clamp(34px,6vw,82px)}
.service-hero{height:auto;min-height:0;aspect-ratio:16/9;max-height:900px;align-items:center;justify-content:center}
.service-hero-bg{object-fit:contain;object-position:center center;background:#06162e}
.service-hero-overlay{background:linear-gradient(90deg,rgba(2,13,29,.04),rgba(2,13,29,.02)),linear-gradient(0deg,rgba(2,13,29,.18),transparent 55%)}
.service-hero-content{align-self:flex-end;padding-bottom:clamp(22px,4vw,52px)}
@keyframes stHeroDrift{from{transform:scale(1)}to{transform:scale(1.025)}}
/* Floating social rail: soft entrance, stagger and magnetic hover */
.sovereign-floating-social{gap:12px;padding:9px;border:1px solid rgba(255,255,255,.42);border-radius:30px;background:rgba(6,22,46,.10);backdrop-filter:blur(12px);box-shadow:0 14px 38px rgba(6,22,46,.12);animation:stRailIn .85s var(--st-ease) both}
.social-float{width:50px;height:50px;border:2px solid rgba(255,255,255,.75);transition:transform .4s var(--st-ease),box-shadow .4s var(--st-ease),border-radius .4s var(--st-ease)}
.social-float:nth-child(2){animation-delay:.12s}.social-float:hover{transform:translateX(-7px) scale(1.1);border-radius:17px;box-shadow:0 16px 35px rgba(8,35,76,.32)}
@keyframes stRailIn{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:translateX(0)}}
/* More considered service cards and visible icon tiles */
.service-grid{align-items:stretch}.service-card{position:relative;border:1px solid rgba(8,45,86,.09);border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 12px 32px rgba(6,22,46,.065)}
.service-card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;border:1px solid transparent;transition:border-color .45s var(--st-ease)}
.service-card:hover::after{border-color:rgba(8,125,245,.35)}
.icon-wrap{width:54px;height:54px;min-width:54px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(145deg,#eaf5ff,#d9edff);color:#087df5;box-shadow:inset 0 1px 0 #fff,0 8px 18px rgba(8,125,245,.10)}
.icon-wrap i{font-size:23px;line-height:1}.service-card:hover .icon-wrap{background:linear-gradient(145deg,#087df5,#16c5ff);color:#fff;box-shadow:0 10px 24px rgba(8,125,245,.25)}
/* Process: connected snake route, not a stack of plain cards */
.detail-process{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto;gap:34px 8%;padding:24px 3%;isolation:isolate}
.detail-process::before{content:"";position:absolute;z-index:-1;inset:12% 12%;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 360' preserveAspectRatio='none'%3E%3Cpath d='M120 90 H680 V270 H120' fill='none' stroke='%23087df5' stroke-width='3' stroke-linecap='round' stroke-dasharray='8 10'/%3E%3C/svg%3E") center/100% 100% no-repeat;opacity:.48;animation:stRouteFlow 18s linear infinite}
@keyframes stRouteFlow{to{background-position:100% 50%}}
.detail-process-item{position:relative;display:flex;align-items:flex-start;gap:18px;min-height:150px;padding:25px 26px;border:1px solid #dce9f6;border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 14px 34px rgba(6,22,46,.07);transition:transform .5s var(--st-ease),box-shadow .5s var(--st-ease),border-color .4s ease}
.detail-process-item:nth-child(1){grid-column:1;grid-row:1}.detail-process-item:nth-child(2){grid-column:2;grid-row:1}.detail-process-item:nth-child(3){grid-column:2;grid-row:2}.detail-process-item:nth-child(4){grid-column:1;grid-row:2}
.detail-process-item>span{width:48px;height:48px;min-width:48px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(140deg,#06162e,#087df5);color:#fff;font-weight:800;box-shadow:0 8px 20px #087df533}
.detail-process-item h3{margin:2px 0 7px;color:#06162e}.detail-process-item p{margin:0;color:#65758b;line-height:1.65}
.detail-process-item:hover{transform:translateY(-7px);border-color:#8bc8ff;box-shadow:0 22px 48px rgba(6,22,46,.13)}
.detail-process-item:not(:last-child)::after{content:"➜";position:absolute;z-index:2;right:-30px;top:50%;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#087df5;color:white;font-size:17px;box-shadow:0 5px 15px #087df544;animation:stArrowPulse 1.8s ease-in-out infinite}
.detail-process-item:nth-child(2)::after{content:"↓";right:50%;top:auto;bottom:-34px}.detail-process-item:nth-child(3)::after{content:"←";right:auto;left:-30px}
@keyframes stArrowPulse{0%,100%{transform:translate(0,0);box-shadow:0 5px 15px #087df544}50%{transform:translateX(4px);box-shadow:0 8px 22px #087df577}}
.process-step-link{display:inline-flex;align-items:center;gap:8px;margin-top:14px;color:#087df5;font-size:13px;font-weight:800;text-decoration:none}.process-step-link i{transition:transform .3s ease}.process-step-link:hover i{transform:translateX(5px)}
/* Technologies as a moving conveyor/rail */
.tech-marquee-window{width:100%;overflow:hidden;position:relative;padding:16px 2px 26px;mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
.tech-marquee-window::before,.tech-marquee-window::after{content:"";position:absolute;z-index:3;top:0;bottom:0;width:42px;pointer-events:none}.tech-marquee-window::before{left:0;background:linear-gradient(90deg,#f6f9fd,transparent)}.tech-marquee-window::after{right:0;background:linear-gradient(270deg,#f6f9fd,transparent)}
#technologyGrid.technology-grid{display:flex;flex-wrap:nowrap;gap:18px;width:max-content;min-width:100%;overflow:visible;will-change:transform;animation:none}
#technologyGrid .technology-card{flex:0 0 270px;min-height:130px;cursor:pointer;transform:translateZ(0);transition:transform .45s var(--st-ease),opacity .4s ease,box-shadow .4s ease,border-color .4s ease}
#technologyGrid .technology-card.is-focused{z-index:5;transform:translateY(-9px) scale(1.055);border-color:#087df5;box-shadow:0 20px 42px rgba(8,125,245,.18)}
#technologyGrid .technology-card.is-dimmed{opacity:.48;transform:scale(.97)}
#technologyGrid .technology-card.hidden{display:none}
@media(max-width:900px){.nav-wrap{height:auto;min-height:78px}.brand img{width:54px;height:54px}.detail-process{gap:24px 6%}.detail-process::before{inset:14% 10%}}
@media(max-width:700px){.portfolio-hero,.service-hero{aspect-ratio:4/3;max-height:none;min-height:0}.portfolio-hero-content{padding:24px 12px}.portfolio-hero h1{font-size:clamp(2rem,8vw,3.4rem)}.service-hero-content{padding:0 12px 18px}.detail-process{grid-template-columns:1fr;grid-template-rows:auto;padding:10px 0;gap:18px}.detail-process::before{inset:25px auto 25px 24px;width:2px;background:repeating-linear-gradient(to bottom,#087df5 0 7px,transparent 7px 14px);animation:none}.detail-process-item:nth-child(n){grid-column:1;grid-row:auto;margin-left:20px;min-height:0;padding:20px}.detail-process-item:not(:last-child)::after,.detail-process-item:nth-child(2)::after,.detail-process-item:nth-child(3)::after{content:"↓";right:auto;left:-34px;top:auto;bottom:-25px;width:27px;height:27px}.brand span{font-size:12px}.sovereign-floating-social{right:10px;bottom:14px;padding:6px;gap:8px}.social-float{width:43px;height:43px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
