/* Services overview: visual catalogue, timeline and icon tiles. Loaded only on the services route. */

/* Hero */
.svc-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--surface-alt);
  background-image: linear-gradient(90deg, rgba(91, 157, 184, .055) 1px, transparent 1px), linear-gradient(0deg, rgba(91, 157, 184, .045) 1px, transparent 1px), radial-gradient(circle at 76% 40%, rgba(50, 112, 139, .26), transparent 42%);
  background-size: 96px 96px, 96px 96px, auto;
}
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(36px, 5vw, 80px); padding-block: clamp(64px, 7vw, 110px); }
.svc-hero-copy { border-top: 2px solid var(--blue); padding-top: 24px; }
.svc-hero-copy .eyebrow { color: var(--blue); }
.svc-hero-copy h1 { max-width: 660px; margin: 20px 0 22px; color: var(--ink); font-size: clamp(2.7rem, 4.6vw, 4.6rem); line-height: 1.05; letter-spacing: -.06em; }
.svc-hero-copy h1 span { display: block; color: var(--blue); }
.svc-hero-copy .page-lead { max-width: 600px; margin: 0; color: var(--hero-copy); }
.svc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.svc-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink); font-size: .78rem; font-weight: 700; transition: border-color .2s, background .2s, transform .2s; }
.svc-jump a span { color: var(--blue); font-size: .68rem; font-weight: 800; }
.svc-jump a:hover { border-color: var(--blue); background: var(--card); transform: translateY(-2px); }
.svc-hero-visual { position: relative; margin: 0; overflow: hidden; border: 1px solid #3a5968; border-radius: 17px; background: #101f29; box-shadow: 0 32px 90px rgba(4, 14, 22, .27); }
.svc-hero-visual img { width: 100%; height: clamp(340px, 34vw, 480px); object-fit: cover; object-position: center 40%; }
.svc-hero-visual figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(8, 18, 25, .88)); color: #c3d8e1; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* Intro */
.svc-intro { background: var(--surface); }
.svc-intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(36px, 6vw, 90px); }
.svc-intro h2 { margin: 16px 0 18px; }
.svc-intro-points { display: grid; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.svc-intro-points li { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 700; font-size: .92rem; }
.svc-intro-points .k-icon { flex: 0 0 22px; color: var(--blue); }
.svc-intro-visual { margin: 0; }
.svc-intro-visual img { width: 100%; height: clamp(260px, 28vw, 400px); border: 1px solid var(--line); border-radius: 14px; object-fit: cover; }
.svc-intro-visual figcaption { margin-top: 10px; color: var(--muted); font-size: .7rem; letter-spacing: .06em; }

/* Icons */
.k-icon { display: block; width: 22px; height: 22px; }

/* Catalogue */
.svc-catalog { background: var(--surface-alt); }
.svc-catalog .section-heading { margin-bottom: 38px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.svc-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); transition: transform .25s ease, border-color .25s, box-shadow .25s; scroll-margin-top: 100px; }
.svc-card:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 24px 50px rgba(4, 14, 22, .22); }
.svc-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.svc-visual { position: relative; aspect-ratio: 320 / 190; border-bottom: 1px solid #2c4654; background: radial-gradient(circle at 70% 40%, rgba(48, 112, 139, .3), transparent 55%), linear-gradient(145deg, #1c303c, #101f29 80%); }
.svc-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(126, 180, 202, .06) 1px, transparent 1px), linear-gradient(0deg, rgba(126, 180, 202, .06) 1px, transparent 1px); background-size: 24px 24px; }
.svc-art { position: relative; display: block; width: 100%; height: 100%; }
.svc-visual-index { position: absolute; top: 14px; left: 16px; color: #a7cedd; font-size: .68rem; font-weight: 800; letter-spacing: .15em; }
.svc-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px 24px 22px; }
.svc-card h3 { margin: 0 0 10px; font-size: 1.28rem; line-height: 1.2; transition: color .2s; }
.svc-card:hover h3 { color: var(--blue); }
.svc-card-body > p { margin: 0 0 18px; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.svc-tags li { padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .7rem; font-weight: 650; }
.svc-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--blue); font-size: .8rem; font-weight: 800; }
.svc-card-link span { transition: transform .25s; }
.svc-card:hover .svc-card-link span { transform: translate(3px, -3px); }

/* Illustration palette (fixed dark panel in both themes, like the home hero) */
.svc-art .v-panel { fill: #142936; stroke: #54788a; }
.svc-art .v-deep { fill: #0f212c; }
.svc-art .v-block { fill: #1c4356; }
.svc-art .v-card { fill: #203d4e; stroke: #4c7385; }
.svc-art .v-hub { fill: #286580; stroke: #9ccdde; }
.svc-art .v-box { fill: #142936; stroke: #6d98aa; }
.svc-art .v-bar { fill: #9fc9d9; }
.svc-art .v-soft { fill: #6b95a8; }
.svc-art .v-dim { fill: #3d5a6a; }
.svc-art .v-track { fill: #26404e; }
.svc-art .v-accent { fill: #6fc0dd; }
.svc-art .v-ok { fill: #8fd3c0; }
.svc-art .v-glow { fill: #d5f5ff; }
.svc-art .v-shadow { fill: rgba(0, 0, 0, .35); }
.svc-art .v-line { fill: none; stroke: #5d8699; stroke-width: 1.2; }
.svc-art .v-chart { fill: none; stroke: #8fdcf5; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-art .v-check { fill: none; stroke: #8fd3c0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Illustration motion */
.svc-art * { transform-box: fill-box; transform-origin: left center; }
.svc-art .a-grow { animation: svc-grow 4s ease-in-out infinite; }
.svc-art .a-pulse, .svc-art .a-node { transform-origin: center; animation: svc-pulse 2.6s ease-in-out infinite; }
.svc-art .a-rise { animation: svc-rise 4s ease-in-out infinite; }
.svc-art .a-cursor { animation: svc-cursor 6s ease-in-out infinite; }
.svc-art .a-blink { animation: svc-blink 1s steps(1) infinite; }
.svc-art .a-pop { transform-origin: center; animation: svc-pop 4s ease-in-out infinite; }
.svc-art .a-progress { animation: svc-progress 4s ease-in-out infinite; }
.svc-art .a-msg { animation: svc-msg 6s ease-in-out infinite; }
.svc-art .a-typing { animation: svc-blink-soft 1.2s ease-in-out infinite; }
.svc-art .a-packet { animation: svc-packet 3s ease-in-out infinite; }
.svc-art .a-led { animation: svc-blink-soft 1.8s ease-in-out infinite; }
.svc-art .a-load { animation: svc-load 3.2s ease-in-out infinite; }
.svc-art .a-draw { stroke-dasharray: 90; animation: svc-draw 4s ease-in-out infinite; }
.svc-art .a-check { stroke-dasharray: 16; animation: svc-check 5s ease-in-out infinite; }
.svc-art .a-float { animation: svc-float 4s ease-in-out infinite; }
.svc-art .d1 { animation-delay: .4s; }.svc-art .d2 { animation-delay: .8s; }.svc-art .d3 { animation-delay: 1.2s; }.svc-art .d4 { animation-delay: 1.6s; }
.svc-visual-ai .a-msg.d1 { animation-delay: .9s; }.svc-visual-ai .a-msg.d2 { animation-delay: 1.8s; }.svc-visual-ai .a-msg.d3 { animation-delay: 2.7s; }
.svc-visual-procurement .a-check.d1 { animation-delay: .6s; }.svc-visual-procurement .a-check.d2 { animation-delay: 1.2s; }.svc-visual-procurement .a-check.d3 { animation-delay: 1.8s; }
.svc-visual-platforms .a-packet.d1 { animation-delay: .75s; }.svc-visual-platforms .a-packet.d2 { animation-delay: 1.5s; }.svc-visual-platforms .a-packet.d3 { animation-delay: 2.25s; }
.svc-visual-ai .a-packet.d1 { animation-delay: 1s; }.svc-visual-ai .a-packet.d2 { animation-delay: 2s; }
.pk-l { --dx: -18px; --dy: 50px; }.pk-c { --dx: 0px; --dy: 66px; }.pk-r { --dx: 18px; --dy: 50px; }
.pk-tl { --dx: -82px; --dy: -43px; }.pk-tr { --dx: 82px; --dy: -43px; }.pk-br { --dx: 82px; --dy: 45px; }.pk-bl { --dx: -82px; --dy: 45px; }
@keyframes svc-grow { 0%, 100% { transform: scaleX(.55); opacity: .6; } 45%, 70% { transform: scaleX(1); opacity: 1; } }
@keyframes svc-pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes svc-rise { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes svc-cursor { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-120px, -30px); } 55% { transform: translate(-40px, 30px); } 80% { transform: translate(-8px, -14px); } }
@keyframes svc-blink { 50% { opacity: 0; } }
@keyframes svc-blink-soft { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes svc-pop { 0%, 15% { transform: scale(0); } 25%, 90% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes svc-progress { 0% { transform: scaleX(0); } 70%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); opacity: 0; } }
@keyframes svc-msg { 0%, 5% { opacity: 0; transform: translateY(6px); } 14%, 88% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes svc-packet { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@keyframes svc-load { 0%, 100% { transform: scaleX(.3); } 50% { transform: scaleX(1); } }
@keyframes svc-draw { 0% { stroke-dashoffset: 90; } 60%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -90; } }
@keyframes svc-check { 0%, 10% { stroke-dashoffset: 16; } 25%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 16; } }
@keyframes svc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Research illustrations (shared by R&D and company pages) */
.svc-art .v-wave, .svc-art .v-wave-soft, .svc-art .v-wave-dim { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 10 6; }
.svc-art .v-wave { stroke: #8fdcf5; }
.svc-art .v-wave-soft { stroke: #6fa9c0; }
.svc-art .v-wave-dim { stroke: #4b7c90; }
.svc-art .v-arc { fill: none; stroke: #8fdcf5; stroke-width: 1.6; stroke-linecap: round; }
.svc-art .a-flow { animation: rdx-flow 1.6s linear infinite; }
.svc-art .a-arc { animation: svc-blink-soft 1.8s ease-in-out infinite; }
.svc-art .a-cell { animation: svc-blink-soft 2.4s ease-in-out infinite; }
.svc-art .a-flow.d2 { animation-duration: 2.2s; }.svc-art .a-flow.d4 { animation-duration: 1.2s; }
.pk-in-l { --dx: 78px; --dy: 0px; }.pk-out-r { --dx: 78px; --dy: 0px; }.pk-in-t { --dx: 0px; --dy: 23px; }.pk-hop { --dx: 42px; --dy: 0px; }
@keyframes rdx-flow { to { stroke-dashoffset: -32; } }

/* Company and projects illustrations */
.svc-art .v-faint { fill: none; stroke: #2a4452; stroke-width: 1; stroke-dasharray: 3 5; }
.svc-art .a-slide { animation: svc-slide 7s cubic-bezier(.65, 0, .35, 1) infinite; }
.svc-art .a-scan { animation: svc-scan 5s ease-in-out infinite; }
.svc-art .a-fit { stroke-dasharray: 230; animation: svc-fit 7s ease-in-out infinite; }
.svc-art .a-bar { transform-origin: center bottom; animation: svc-bar 2.6s ease-in-out infinite; }
.svc-art .a-lift-0, .svc-art .a-lift-1, .svc-art .a-lift-2 { animation: svc-lift 5s ease-in-out infinite; }
.svc-art .a-lift-1 { --lift: -8px; }.svc-art .a-lift-2 { --lift: -18px; }.svc-art .a-lift-0 { --lift: 0px; }
.svc-art .a-pop.p1 { animation-delay: .2s; }.svc-art .a-pop.p2 { animation-delay: .45s; }.svc-art .a-pop.p3 { animation-delay: .7s; }.svc-art .a-pop.p4 { animation-delay: .95s; }
.svc-art .a-pop.p5 { animation-delay: 1.2s; }.svc-art .a-pop.p6 { animation-delay: 1.45s; }.svc-art .a-pop.p7 { animation-delay: 1.7s; }.svc-art .a-pop.p8 { animation-delay: 1.95s; }
.svc-art .a-pop.p9 { animation-delay: 2.2s; }.svc-art .a-pop.p10 { animation-delay: 2.45s; }.svc-art .a-pop.p11 { animation-delay: 2.7s; }.svc-art .a-pop.p12 { animation-delay: 2.95s; }
.svc-visual-co_lab .a-pop { animation-duration: 7s; }
@keyframes svc-slide { 0%, 14% { transform: translate(0, 0); opacity: 1; } 34%, 52% { transform: translate(86px, -32px); } 72%, 90% { transform: translate(172px, 0); opacity: 1; } 95% { transform: translate(172px, 0); opacity: 0; } 96% { transform: translate(0, 0); opacity: 0; } 100% { opacity: 1; } }
@keyframes svc-scan { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(218px); } }
@keyframes svc-fit { 0%, 40% { stroke-dashoffset: 230; } 62%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 230; } }
@keyframes svc-bar { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@keyframes svc-lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--lift)); } }

/* Process timeline */
.svc-process { background: var(--surface); }
.svc-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin: 44px 0 0; padding: 0; list-style: none; }
.svc-steps::before, .svc-steps::after { content: ""; position: absolute; top: 28px; left: 28px; right: calc((100% - 78px) / 4 - 28px); height: 2px; background: var(--line); }
.svc-steps::after { background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--blue) 40%, transparent)); transform-origin: left center; transition: transform 1.6s cubic-bezier(.22, 1, .36, 1) .2s; }
.motion-observer .svc-steps:not(.is-in-view)::after { transform: scaleX(0); }
.svc-steps li { position: relative; z-index: 1; }
.svc-step-icon { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--blue); border-radius: 50%; background: var(--surface); color: var(--blue); box-shadow: 0 0 0 7px var(--surface); }
.svc-step-icon .k-icon { width: 24px; height: 24px; }
.svc-steps b { display: block; margin-top: 24px; color: var(--blue); font-size: .72rem; letter-spacing: .14em; }
.svc-steps h3 { margin: 8px 0 10px; font-size: 1.25rem; }
.svc-steps p { max-width: 270px; margin: 0; color: var(--muted); font-size: .9rem; }

/* Additional areas */
.svc-more { background: var(--surface-alt); }
.svc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.svc-tiles a { display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; align-items: start; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .2s, transform .2s; }
.svc-tiles a:hover { border-color: var(--blue); transform: translateY(-3px); }
.svc-tile-icon, .svc-mode-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.svc-tiles h3 { margin: 4px 0 8px; font-size: 1.15rem; }
.svc-tiles p { margin: 0; color: var(--muted); font-size: .88rem; }
.svc-tile-arrow { color: var(--blue); font-size: 1.2rem; transition: transform .2s; }
.svc-tiles a:hover .svc-tile-arrow { transform: translate(3px, -3px); }

/* Collaboration modes */
.svc-collab { background: var(--surface); }
.svc-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.svc-modes article { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-top: 2px solid var(--blue); border-radius: 12px; background: var(--card); }
.svc-mode-label { margin-top: 24px; color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.svc-modes h3 { margin: 10px 0; font-size: 1.28rem; }
.svc-modes p { margin: 0 0 24px; color: var(--muted); font-size: .9rem; }
.svc-mode-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: auto; }
.svc-mode-bar i { height: 6px; border-radius: 3px; background: var(--blue); }
.svc-mode-bar.is-focused i { background: var(--line); }.svc-mode-bar.is-focused i:nth-child(3) { background: var(--blue); }
.svc-mode-bar.is-ongoing i { background: color-mix(in srgb, var(--blue) 35%, transparent); }.svc-mode-bar.is-ongoing i:last-child { background: var(--blue); }

/* Quality */
.svc-standards { background: var(--surface-alt); }
.svc-standards-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(36px, 6vw, 90px); }
.svc-standards h2 { margin: 16px 0 18px; }
.svc-quality { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.svc-quality > div { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.svc-quality dt { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-weight: 800; }
.svc-quality dt .k-icon { color: var(--blue); }
.svc-quality dd { margin: 0; color: var(--muted); font-size: .88rem; }

/* Closing call to action */
.svc-cta { padding: 0 0 clamp(60px, 7vw, 100px); background: var(--surface); }
.svc-cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(30px, 4vw, 54px); border: 1px solid #3a5968; border-radius: 17px; background-color: #132632; background-image: linear-gradient(90deg, rgba(126, 180, 202, .06) 1px, transparent 1px), linear-gradient(0deg, rgba(126, 180, 202, .06) 1px, transparent 1px), radial-gradient(circle at 85% 30%, rgba(60, 130, 160, .35), transparent 50%); background-size: 32px 32px, 32px 32px, auto; color: #f1f5f7; }
.svc-cta-panel .eyebrow { color: #9bc9dc; }
.svc-cta-panel h2 { max-width: 720px; margin: 12px 0 0; color: #f1f5f7; }
.svc-cta-panel .button-blue { flex-shrink: 0; background: #1e6784; border-color: #1e6784; color: #fff; }
.svc-cta-panel .button-blue:hover { background: #185a74; border-color: #185a74; }

@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .svc-hero-grid, .svc-intro-grid, .svc-standards-grid { grid-template-columns: 1fr; }
  .svc-hero-visual { max-width: 720px; }
  .svc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .svc-steps::before, .svc-steps::after { display: none; }
  .svc-modes { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .svc-hero-grid { padding-block: 44px 52px; }
  .svc-hero-copy h1 { font-size: clamp(2.3rem, 10vw, 3.1rem); }
  .svc-hero-visual img { height: 260px; }
  .svc-jump a { font-size: .74rem; }
  .svc-grid, .svc-tiles, .svc-quality { grid-template-columns: 1fr; }
  .svc-steps { grid-template-columns: 1fr; row-gap: 30px; }
  .svc-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; }
  .svc-steps li > :not(.svc-step-icon) { grid-column: 2; }
  .svc-step-icon { grid-row: 1 / span 3; }
  .svc-steps b { margin-top: 4px; }
  .svc-tiles a { grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; padding: 20px; }
  .svc-tile-icon { width: 44px; height: 44px; }
  .svc-cta-panel { flex-direction: column; align-items: stretch; }
  .svc-cta-panel .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-card, .svc-jump a, .svc-tiles a { transition: none; }
  .svc-card:hover, .svc-jump a:hover, .svc-tiles a:hover { transform: none; }
  .svc-steps::after { transition: none; transform: none !important; }
  /* Opacity-only glow keeps the illustrations alive without movement. */
  .svc-art .a-led { animation: svc-blink-soft 1.8s ease-in-out infinite !important; }
  .svc-art .a-blink { animation: svc-blink 1s steps(1) infinite !important; }
}
