/* /solutions/ (All services overview) only. Every rule is scoped to
   body.so-page so no other route is affected. */

body.so-page .so-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 88px); align-items: end; }
body.so-page .so-head .ws-lead { max-width: 52ch; }

/* hero */
body.so-page .so-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(36px, 4vw, 56px); }
body.so-page .so-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
body.so-page .so-hero .ws-lead { margin-top: 24px; }
body.so-page .so-hero-note { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: var(--ws-muted); max-width: 56ch; }
body.so-page .so-hero .ws-btns { margin-top: 30px; }
body.so-page .so-photo { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: var(--ws-ice); }
body.so-page .so-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 42%; }
body.so-page .so-hero-photo img { aspect-ratio: 5 / 4; }
body.so-page .so-illus { position: absolute; left: 12px; bottom: 12px; padding: 4px 9px; border-radius: 4px; background: rgba(11,22,40,.64); color: #EDF2FA; font: 500 11.5px/1.25 'Inter', sans-serif; letter-spacing: .02em; }

/* shortcut strip injected by main.js */
body.so-page .ws-svcbar { padding: 22px 0; }
body.so-page .ws-svcbar-in { grid-template-columns: auto 1fr; gap: 28px; }
body.so-page .ws-svcbar b { font-size: 15px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
body.so-page .ws-svcbar nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
body.so-page .ws-svcbar nav a:focus-visible { outline-color: #9DBDF0; }

/* services + shared preview */
body.so-page .so-services { padding: clamp(56px, 7vw, 104px) 0; }
body.so-page .so-svx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); margin-top: 44px; align-items: start; }
body.so-page .so-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ws-line); }
body.so-page .so-row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 14px 22px 0; border-bottom: 1px solid var(--ws-line); transition: padding .3s var(--ws-ease), background .3s; scroll-margin-top: calc(var(--ws-header) + 80px); }
body.so-page .so-row .n { font: 500 13px ui-monospace, Menlo, monospace; color: var(--ws-muted); padding-top: 7px; }
body.so-page .so-row h3 { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.15; color: var(--ws-ink); }
body.so-page .so-row p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--ws-text-2); max-width: 54ch; }
body.so-page .so-row-ex { display: none; margin-top: 8px; font-size: 13px; color: var(--ws-muted); }
body.so-page .so-row-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; margin-top: 4px; font-size: 14.5px; font-weight: 600; color: var(--ws-navy); }
body.so-page .so-row-link .ws-arr { transition: transform .25s var(--ws-ease); }
body.so-page .so-row-link:hover .ws-arr, body.so-page .so-row-link:focus-visible .ws-arr { transform: translateX(4px); }
body.so-page .so-row-link:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
body.so-page .so-row.is-active { padding-left: 14px; background: linear-gradient(90deg, var(--ws-ice), transparent 85%); }
body.so-page .so-row.is-active .n { color: var(--ws-navy); }
body.so-page .so-stage { position: sticky; top: calc(var(--ws-header) + 28px); display: grid; }
body.so-page .so-fig { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .3s var(--ws-ease), visibility 0s .3s; }
body.so-page .so-fig.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
body.so-page .so-fig img { display: block; width: 100%; height: auto; }
body.so-page .so-fig figcaption { margin-top: 14px; font-size: 13.5px; color: var(--ws-muted); }

/* integration concept diagram */
body.so-page .so-diagram { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding: clamp(22px, 3vw, 36px); border: 1px dashed rgba(24,70,132,.35); border-radius: 14px; background: var(--ws-card); aspect-ratio: 1436 / 1079; }
body.so-page .so-dia-col { display: grid; gap: 8px; }
body.so-page .so-dia-col b { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ws-muted); margin-bottom: 4px; }
body.so-page .so-dia-col span { padding: 10px 12px; border: 1px solid var(--ws-line); border-radius: 8px; background: #fff; font-size: 13.5px; color: var(--ws-ink); position: relative; }
body.so-page .so-dia-col:not(.out) span::after, body.so-page .so-dia-col.out span::before { content: ""; position: absolute; top: 50%; width: 18px; height: 1.5px; background: var(--ws-navy); }
body.so-page .so-dia-col:not(.out) span::after { right: -19px; }
body.so-page .so-dia-col.out span::before { left: -19px; }
body.so-page .so-dia-core { display: grid; gap: 4px; padding: 22px 16px; border-radius: 12px; background: var(--ws-navy); color: #fff; text-align: center; max-width: 150px; }
body.so-page .so-dia-core b { font-size: 15px; }
body.so-page .so-dia-core span { font-size: 12px; color: rgba(255,255,255,.72); }

/* real work */
body.so-page .so-work { padding: clamp(56px, 7vw, 104px) 0; }
body.so-page .so-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; }
body.so-page .so-zoom img { display: block; width: 100%; height: auto; transition: transform .45s var(--ws-ease); }
body.so-page .so-zoom:hover img { transform: translateY(-3px); }
body.so-page .so-feat { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: 44px; }
body.so-page .so-feat-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
body.so-page .so-feat-body, body.so-page .so-proj-body { display: grid; gap: 10px; justify-items: start; }
body.so-page .so-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; color: var(--ws-navy); background: var(--ws-card); border: 1px solid rgba(24,70,132,.25); }
body.so-page .so-badge.client { color: #fff; background: var(--ws-navy); border-color: var(--ws-navy); }
body.so-page .so-proj-name { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.05; letter-spacing: -.035em !important; color: var(--ws-ink); margin-top: 4px; }
body.so-page .so-proj-cat { font-size: 14.5px; font-weight: 600; color: var(--ws-navy); }
body.so-page .so-proj-svc { font-size: 14px; color: var(--ws-text-2); line-height: 1.6; }
body.so-page .so-proj-svc a { color: var(--ws-navy); text-decoration: underline; text-underline-offset: 3px; }
body.so-page .so-feat-body .ws-btn { margin-top: 8px; }
body.so-page .so-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(24,70,132,.18); }
body.so-page .so-proj { display: grid; gap: 22px; align-content: start; }
body.so-page .so-proj .ws-link { margin-top: 6px; }
body.so-page .so-work-more { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin-top: 44px; font-size: 14.5px; color: var(--ws-text-2); }

/* process */
body.so-page .so-process { padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 88px); }
body.so-page .so-proc-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
body.so-page .so-proc-head .ws-lead { margin-top: 20px; }
body.so-page .so-proc-photo img { aspect-ratio: 4 / 3; object-position: 50% 40%; }
body.so-page .so-steps { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: so; border-top: 1px solid var(--ws-line-dark); }
body.so-page .so-steps li { counter-increment: so; position: relative; padding: 26px 22px 6px 0; }
body.so-page .so-steps li::before { content: "0" counter(so); display: block; font: 500 13px ui-monospace, Menlo, monospace; color: #9DBDF0; margin-bottom: 14px; }
body.so-page .so-steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #9DBDF0; }
body.so-page .so-steps h3 { font-size: 19px; color: #fff; margin-bottom: 8px; }
body.so-page .so-steps p { font-size: 15.5px; line-height: 1.55; color: var(--ws-on-dark-2); }

/* faq + cta */
body.so-page .so-faq { padding: clamp(56px, 7vw, 96px) 0; }
body.so-page .so-faq summary { min-height: 44px; align-items: center; }
body.so-page .so-cta { padding: clamp(56px, 7vw, 100px) 0; }
body.so-page .so-cta-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; position: relative; z-index: 1; }
body.so-page .so-cta .ws-lead { margin-top: 18px; }
body.so-page .so-cta .ws-btns { margin-top: 0; }
body.so-page .so-cta-sub { margin-top: 22px; font-size: 14.5px; }
body.so-page .so-cta-sub a { color: #B9D0F5; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 8px 0; }

/* responsive */
@media (max-width: 1200px) {
  body.so-page .so-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
}
@media (max-width: 1080px) {
  body.so-page .ws-svcbar-in { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 900px) {
  body.so-page .so-head, body.so-page .so-hero-grid, body.so-page .so-feat, body.so-page .so-pair, body.so-page .so-proc-head, body.so-page .so-cta-in { grid-template-columns: 1fr; }
  body.so-page .so-hero-photo img { aspect-ratio: 4 / 3; }
  body.so-page .so-svx { grid-template-columns: 1fr; }
  body.so-page .so-stage { display: none; }
  body.so-page .so-row-ex { display: block; }
  body.so-page .so-row.is-active { padding-left: 0; background: none; }
  body.so-page .so-row.is-active .n { color: var(--ws-muted); }
  body.so-page .so-cta-in { align-items: start; gap: 28px; }
}
@media (max-width: 760px) {
  body.so-page .ws-svcbar nav { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; margin-right: calc(var(--ws-gutter) * -1); padding-right: var(--ws-gutter); }
  body.so-page .ws-svcbar nav a { flex: none; scroll-snap-align: start; white-space: nowrap; }
  body.so-page .ws-svcbar b::after { content: " \2192"; color: #9DBDF0; }
  body.so-page .so-steps { grid-template-columns: 1fr; border-top: 0; margin-left: 4px; }
  body.so-page .so-steps li { padding: 0 0 26px 28px; border-left: 1px solid var(--ws-line-dark); }
  body.so-page .so-steps li::after { left: -5px; top: 2px; }
  body.so-page .so-steps li:last-child { border-left-color: transparent; }
  body.so-page .so-feat-thumbs { gap: 12px; }
}
@media (hover: none) {
  body.so-page .so-row.is-active { background: none; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.so-page .so-fig, body.so-page .so-row, body.so-page .so-zoom img, body.so-page .so-row-link .ws-arr { transition: none; }
}
