/* ===================== SERVICES ===================== */

/* ---------- hero ---------- */
.svc-hero { overflow: hidden; }
.svc-hero::after { content: ""; position: absolute; right: -10vw; top: 10%; width: 55vw; height: 55vw; max-width: 760px; max-height: 760px; border-radius: 50%; border: 1px dashed rgba(var(--accent-rgb), 0.18); box-shadow: inset 0 0 120px rgba(var(--accent-rgb), 0.08); pointer-events: none; z-index: -1; animation: svcspin 120s linear infinite; }
@keyframes svcspin { to { transform: rotate(360deg); } }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(30px, 5vw, 80px); align-items: end; }
.svc-title { max-width: 15ch; font-size: clamp(40px, 5.2vw, 78px); }
.svc-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.svc-index { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 18px; }
.svc-index .mono-label { margin-bottom: 8px; }
.svc-index a { display: grid; grid-template-columns: 76px 1fr 24px; align-items: center; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--line); transition: background 0.3s, padding 0.4s var(--ease); }
.svc-index a:hover { background: rgba(var(--accent-rgb), 0.07); padding-left: 12px; }
.svc-index-n { font-size: 44px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.svc-index a span { display: flex; flex-direction: column; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.svc-index a em { font-style: normal; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.svc-index i { font-style: normal; color: var(--dim); transition: transform 0.35s var(--ease), color 0.3s; }
.svc-index a:hover i { color: var(--cyan); transform: translateY(3px); }
@media (max-width: 960px) { .svc-hero-grid { grid-template-columns: 1fr; } .svc-index { max-width: 520px; } }

/* ---------- operating system orbit ---------- */
.os-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.os { position: relative; width: min(600px, 100%); aspect-ratio: 1; margin: 0 auto; touch-action: pan-y; }
.os-ring { position: absolute; inset: 0; }
.os-rings { width: 100%; height: 100%; overflow: visible; }
.os-rings circle { fill: none; stroke: rgba(150, 172, 255, 0.16); stroke-width: 1; stroke-dasharray: 3 7; }
.os-rings circle:nth-child(2) { stroke: rgba(150, 172, 255, 0.24); stroke-dasharray: none; }
.os-rings circle:nth-child(3) { stroke: rgba(var(--accent-rgb), 0.3); stroke-dasharray: 2 5; }
.os-nodes { position: absolute; inset: 0; will-change: transform; }
.os-spoke { position: absolute; left: 50%; top: 50%; width: 36%; height: 1px; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(150, 172, 255, 0.02), rgba(150, 172, 255, 0.16)); pointer-events: none; transition: background 0.4s; }
.os-spoke.is-on { height: 2px; margin-top: -0.5px; background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.15), var(--cyan)); box-shadow: 0 0 14px rgba(70, 225, 255, 0.6); }
.os-spoke.is-on::after { content: ""; position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(70, 225, 255, 0.9); animation: ospacket 1.6s var(--ease) infinite; }
@keyframes ospacket { from { left: 100%; opacity: 0; } 15% { opacity: 1; } to { left: 8%; opacity: 0; } }
.os-node { position: absolute; transform: translate(-50%, -50%); z-index: 2; border-radius: 999px; }
.os-node-in { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(8, 14, 40, 0.86); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; transition: border-color 0.35s, background 0.35s, box-shadow 0.35s, transform 0.35s var(--ease); }
.os-node-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.04em; color: var(--accent); background: rgba(var(--accent-rgb), 0.12); border: 1px solid rgba(var(--accent-rgb), 0.35); transition: all 0.35s; }
.os-node-name { font-size: 13px; font-weight: 500; color: var(--muted); transition: color 0.3s; }
.os-node:hover .os-node-in { border-color: rgba(var(--accent-rgb), 0.7); }
.os-node:hover .os-node-name { color: var(--text); }
.os-node.is-on .os-node-in { border-color: var(--cyan); background: rgba(14, 30, 70, 0.95); box-shadow: 0 0 0 4px rgba(70, 225, 255, 0.12), 0 0 30px -4px rgba(70, 225, 255, 0.6); transform: scale(1.08); }
.os-node.is-on .os-node-dot { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }
.os-node.is-on .os-node-name { color: #fff; }
.os-core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at 50% 35%, rgba(36, 60, 140, 0.95), rgba(8, 14, 40, 0.98) 70%); border: 1px solid rgba(var(--accent-rgb), 0.55); box-shadow: 0 0 80px -10px rgba(var(--accent-rgb), 0.75), inset 0 0 40px rgba(var(--accent-rgb), 0.25); z-index: 1; }
.os-core-glow { position: absolute; inset: -18%; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), 0.35); animation: oscorepulse 3s var(--ease) infinite; }
@keyframes oscorepulse { 0% { transform: scale(0.85); opacity: 0.9; } 100% { transform: scale(1.25); opacity: 0; } }
.os-core-code { font-size: clamp(22px, 3vw, 34px); font-weight: 600; color: #fff; letter-spacing: 0.04em; }
.os-core-label { font-size: 12px; color: var(--accent); font-family: var(--f-mono); }
.os-panel { padding: clamp(26px, 3vw, 38px); min-height: 330px; display: flex; flex-direction: column; }
.os-panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.os-count { font-size: 13px; color: var(--accent); letter-spacing: 0.06em; }
.os-panel-title { font-size: clamp(28px, 3vw, 40px) !important; letter-spacing: -0.035em !important; line-height: 1.05; margin-bottom: 14px !important; }
.os-panel-desc { font-size: 17px !important; line-height: 1.6; min-height: 3.2em; }
.os-panel-link { align-self: flex-start; margin-top: 22px; }
.os-panel-nav { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 30px; }
.os-step { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); font-size: 18px; color: var(--muted); transition: all 0.3s; }
.os-step:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.os-progress { flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.os-progress i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.os-panel.is-swap .os-panel-title, .os-panel.is-swap .os-panel-desc { animation: osswap 0.55s var(--ease); }
@keyframes osswap { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 960px) {
  .os-wrap { grid-template-columns: 1fr; }
  .os { width: min(440px, 100%); }
  .os-node-name { display: none; }
  .os-node-in { padding: 4px; }
  .os-node-dot { width: 32px; height: 32px; font-size: 9.5px; }
  .os-panel { min-height: 0; }
}

/* ---------- workstreams tabs ---------- */
.ws { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; padding: 14px; border-radius: var(--r-lg); background: rgba(5, 10, 28, 0.55); border: 1px solid var(--line); }
.ws-tabs { display: flex; flex-direction: column; gap: 4px; }
.ws-tab { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 14px; color: var(--muted); font-weight: 500; font-size: 15.5px; transition: background 0.3s, color 0.3s; position: relative; }
.ws-tab .mono { font-size: 11.5px; color: var(--dim); transition: color 0.3s; }
.ws-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.ws-tab[aria-selected="true"] { color: #fff; background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.45); }
.ws-tab[aria-selected="true"] .mono { color: var(--cyan); }
.ws-tab[aria-selected="true"]::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.ws-stage { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 44px); border-radius: 18px; background: linear-gradient(180deg, rgba(20, 32, 78, 0.55), rgba(10, 18, 48, 0.55)); border: 1px solid var(--line); min-height: 400px; }
.ws-panel h3 { font-size: clamp(26px, 2.8vw, 38px); margin: 14px 0 26px; max-width: 22ch; }
.ws-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ws-list li { position: relative; padding: 18px 18px 18px 50px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.ws-list li::before { content: "✓"; position: absolute; left: 16px; top: 17px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(87, 242, 176, 0.15); color: var(--mint); border: 1px solid rgba(87, 242, 176, 0.4); }
.ws-mix { margin-top: auto; padding-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 11.5px; }
.ws-bar { flex: 1; min-width: 200px; display: flex; gap: 4px; height: 8px; }
.ws-bar i { flex: 1; border-radius: 4px; background: rgba(150, 172, 255, 0.14); transition: flex 0.6s var(--ease), background 0.4s, box-shadow 0.4s; }
.ws-bar i.is-on { flex: 2.6; background: var(--grad); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.7); }
.ws-mix-note { width: 100%; }
@media (max-width: 960px) {
  .ws { grid-template-columns: 1fr; }
  .ws-tabs { flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .ws-tabs::-webkit-scrollbar { display: none; }
  .ws-tab { flex: none; padding: 12px 16px; font-size: 14.5px; }
  .ws-tab[aria-selected="true"]::after { display: none; }
  .ws-stage { min-height: 0; }
}
@media (max-width: 640px) { .ws-list { grid-template-columns: 1fr; } .ws { padding: 8px; } }

/* ---------- on-page ---------- */
.onpage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; scroll-margin-top: 90px; }
#on-page { scroll-margin-top: 40px; }
.onpage-copy .lead { margin-top: 20px; }
.op-layers { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; }
.op-layer { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.op-layer > .mono { font-size: 12.5px; color: var(--accent); padding-top: 3px; }
.op-layer h3 { font-size: 19px; margin-bottom: 6px; }
.op-layer p { color: var(--muted); font-size: 15px; }
.op-body { padding: 26px 22px 24px; }
.op-gauge { position: relative; width: min(300px, 100%); margin: 0 auto; }
.op-gauge svg { width: 100%; overflow: visible; }
.op-track { fill: none; stroke: rgba(150, 172, 255, 0.14); stroke-width: 12; stroke-linecap: round; }
.op-fill { fill: none; stroke: url(#op-g); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 252; stroke-dashoffset: 252; filter: drop-shadow(0 0 10px rgba(87, 242, 176, 0.45)); }
.op-score { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; }
.op-score b { font-size: clamp(48px, 5vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.op-score .mono { font-size: 11px; color: var(--mint); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }
.op-note { text-align: center; font-size: 11.5px; margin: 18px 0 20px; }
.op-surfaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.op-surfaces li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; color: var(--dim); transition: all 0.45s var(--ease); }
.op-surfaces .mono { font-size: 10px; min-width: 28px; text-align: center; padding: 2px 4px; border-radius: 5px; background: rgba(255, 255, 255, 0.05); color: var(--dim); transition: all 0.45s; }
.op-surfaces li.is-on { color: var(--text); border-color: rgba(87, 242, 176, 0.4); background: rgba(87, 242, 176, 0.06); }
.op-surfaces li.is-on .mono { background: var(--mint); color: var(--bg); }
@media (max-width: 960px) { .onpage-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .op-surfaces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- engagement ---------- */
.eng-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.eng-head { position: sticky; top: calc(var(--header-h) + 40px); }
.eng-head .lead { margin: 20px 0 28px; }
.eng-list { position: relative; display: flex; flex-direction: column; gap: 16px; padding-left: 36px; }
.eng-line { position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: var(--line-2); border-radius: 2px; }
.eng-line b { position: absolute; inset: 0; background: var(--grad); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8); }
.eng-item { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.5s, background 0.5s, opacity 0.5s; opacity: 0.85; }
.eng-item::before { content: ""; position: absolute; left: -33px; top: 32px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--dim); transition: all 0.4s; }
.eng-item.is-on { opacity: 1; border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.06); }
.eng-item.is-on::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.eng-n { font-size: 30px; font-weight: 500; color: transparent; -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.7); line-height: 1; }
.eng-item h3 { font-size: 21px; margin-bottom: 8px; }
.eng-item p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) { .eng-grid { grid-template-columns: 1fr; } .eng-head { position: static; } }
@media (max-width: 560px) { .eng-item { grid-template-columns: 1fr; padding: 22px; } .eng-n { font-size: 24px; } .eng-list { padding-left: 28px; } .eng-item::before { left: -25px; } .eng-line { left: 5px; } }

/* ---------- service lines ---------- */
.line-card { display: flex; flex-direction: column; gap: 6px; min-height: 250px; transform-style: preserve-3d; }
.line-card .code { margin-bottom: 18px; }
.line-go { margin-top: auto; align-self: flex-end; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: all 0.35s var(--ease); }
.line-card:hover .line-go { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: translateX(4px); }

/* ---------- why ---------- */
.why-card { padding: clamp(26px, 3vw, 40px); }
.why-n { display: block; font-size: 12.5px; color: var(--accent); margin-bottom: 30px; }
.why-card h3 { font-size: clamp(22px, 2.2vw, 28px); }
.ind-strip { margin: 54px 0 18px; display: flex; flex-direction: column; gap: 18px; }
.svc-quote { margin: 0; padding: clamp(28px, 5vw, 56px); text-align: center; background: radial-gradient(80% 120% at 50% 0%, rgba(154, 131, 255, 0.2), transparent 60%), linear-gradient(180deg, rgba(20, 32, 78, 0.6), rgba(10, 18, 48, 0.6)); }
.svc-case-tag { display: block; margin-bottom: 16px; }
.svc-quote blockquote, .svc-quote .svc-case { margin: 0 auto; max-width: 38ch; font-family: var(--f-serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -0.01em; }
.svc-quote figcaption { display: flex; flex-direction: column; margin-top: 24px; font-size: 14.5px; }
.svc-quote figcaption span { color: var(--muted); }

/* ---------- faq ---------- */
.svc-faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.svc-faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 30px); }
@media (max-width: 900px) { .svc-faq-grid { grid-template-columns: 1fr; } .svc-faq-grid .section-head { position: static; } }

/* illustration label in window bars (same look as home) */
.wb-status.is-illus { color: var(--dim); border: 1px dashed var(--line-2); border-radius: 6px; padding: 2px 7px; font-size: 10.5px; text-transform: uppercase; }

.op-more { margin-top: 28px; }

/* ---------- day theme ---------- */
html[data-theme="light"] .os-rings circle { stroke: rgba(30, 50, 120, 0.16); }
html[data-theme="light"] .os-rings circle:nth-child(2) { stroke: rgba(30, 50, 120, 0.22); }
html[data-theme="light"] .os-spoke { background: linear-gradient(90deg, rgba(30, 50, 120, 0.02), rgba(30, 50, 120, 0.18)); }
html[data-theme="light"] .os-spoke.is-on { box-shadow: 0 0 12px rgba(10, 143, 179, 0.4); }
html[data-theme="light"] .os-spoke.is-on::after { background: var(--cyan); box-shadow: 0 0 10px 2px rgba(10, 143, 179, 0.55); }
html[data-theme="light"] .os-node-in { background: rgba(255, 255, 255, 0.94); box-shadow: 0 6px 18px -10px rgba(20, 40, 110, 0.35); }
html[data-theme="light"] .os-node.is-on .os-node-in { background: #fff; box-shadow: 0 0 0 4px rgba(10, 143, 179, 0.12), 0 12px 28px -10px rgba(10, 143, 179, 0.5); }
html[data-theme="light"] .os-node.is-on .os-node-dot { color: #fff; }
html[data-theme="light"] .os-node.is-on .os-node-name { color: var(--text); }
html[data-theme="light"] .os-core { background: radial-gradient(circle at 50% 32%, #5a83f7, #2a49c9 72%); border-color: rgba(var(--accent-rgb), 0.6); box-shadow: 0 28px 60px -18px rgba(var(--accent-rgb), 0.6), inset 0 0 40px rgba(255, 255, 255, 0.12); }
html[data-theme="light"] .os-core-label { color: rgba(255, 255, 255, 0.82); }
html[data-theme="light"] .ws { background: rgba(255, 255, 255, 0.6); box-shadow: 0 18px 44px -30px rgba(20, 40, 110, 0.35); }
html[data-theme="light"] .ws-tab:hover { background: rgba(30, 50, 120, 0.05); }
html[data-theme="light"] .ws-tab[aria-selected="true"] { color: var(--text); background: #fff; box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.4), 0 8px 20px -14px rgba(var(--accent-rgb), 0.6); }
html[data-theme="light"] .ws-tab[aria-selected="true"]::after { box-shadow: 0 0 8px rgba(10, 143, 179, 0.6); }
html[data-theme="light"] .ws-stage { background: #fff; box-shadow: 0 16px 40px -28px rgba(20, 40, 110, 0.4); }
html[data-theme="light"] .ws-list li { background: var(--bg); }
html[data-theme="light"] .ws-list li::before { background: rgba(11, 149, 102, 0.12); border-color: rgba(11, 149, 102, 0.35); }
html[data-theme="light"] .ws-bar i { background: rgba(30, 50, 120, 0.1); }
html[data-theme="light"] .ws-bar i.is-on { box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4); }
html[data-theme="light"] .op-layer { background: #fff; }
html[data-theme="light"] .eng-item { background: #fff; opacity: 0.85; }
html[data-theme="light"] .eng-item.is-on { opacity: 1; background: #fff; box-shadow: 0 16px 36px -24px rgba(var(--accent-rgb), 0.5); }
html[data-theme="light"] .eng-item.is-on::before { box-shadow: 0 0 10px rgba(10, 143, 179, 0.55); }
html[data-theme="light"] .eng-line b { box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.45); }
html[data-theme="light"] .svc-quote { background: radial-gradient(80% 120% at 50% 0%, rgba(115, 86, 238, 0.1), transparent 60%), #fff; }
