/* Criterionyx - service page content + signature widget framing.
   Reuses tokens from illustration.css and chrome from page.css. */

/* ---------- service hero intro (longer copy variant) ---------- */
.hero.svc .hero-inner { grid-template-columns: 1fr; max-width: 920px; }
.hero.svc .lede { max-width: 760px; }

/* ---------- signature widget band ---------- */
.signature { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px) 0; }
.sig-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr;
}
.sig-viz { position: relative; background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 40px, var(--surface-2);
  padding: 22px 26px; display: flex; flex-direction: column; }
.sig-viz .sig-cap { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sig-viz .sig-cap .lbl { font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--faint); text-transform: uppercase; }
.sig-viz .sig-cap .tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; color: var(--signal); }
.sig-viz .sig-cap .tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: sigblip 1.5s ease-in-out infinite; }
@keyframes sigblip { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.sig-viz svg { width: 100%; height: auto; display: block; overflow: visible; }
.sig-viz svg text { font-family: "IBM Plex Mono", monospace; fill: var(--faint); }
.sig-side { padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); }
.sig-side .k { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sig-side .k::before { content: ""; width: 20px; height: 1.5px; background: var(--accent); }
.sig-side h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.14; letter-spacing: -.02em; }
.sig-side p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.sig-side .note { margin-top: 16px; font-size: 12px; color: var(--faint); }
.sig-side .note b { color: var(--muted); font-weight: 600; }

/* ---------- capabilities (What we do / Approach / Outcomes) ---------- */
.caps { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px) 0; }
.caps-head { margin-bottom: 30px; }
.caps-head .kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); }
.caps-head .kicker::before { content: ""; width: 24px; height: 1.5px; background: var(--accent); }
.caps-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; max-width: 720px; }
.caps-head .caps-intro { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 620px; }
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-col { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; box-shadow: var(--shadow); }
.cap-col .ch { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cap-col .ch .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.cap-col .ch h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.cap-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.cap-col li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cap-col li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13'%3E%3Cpath d='M3.2 6.7l2 2 4.4-4.6' stroke='%232d6fd2' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.cap-col.accent-outcome li::before {
  background: var(--signal-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13'%3E%3Cpath d='M3.2 6.7l2 2 4.4-4.6' stroke='%23e53935' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.cap-col.accent-outcome .ch .ico { background: var(--signal-soft); color: var(--signal); }

/* ---------- entrance (gated by .play, added on scroll) ---------- */
.an { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .sig-viz .an-pop { transform-box: fill-box; transform-origin: center; }
  .sig-viz.play .an-pop { transform: scale(0); animation: pop .5s var(--delay,0s) cubic-bezier(.34,1.56,.64,1) forwards; }
  .sig-viz .an-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
  .sig-viz.play .an-draw { stroke-dashoffset: 1; animation: draw 1.3s var(--delay,0s) ease forwards; }
  .sig-viz .an-grow { transform-box: fill-box; transform-origin: bottom; }
  .sig-viz.play .an-grow { transform: scaleY(0); animation: growUp .7s var(--delay,0s) cubic-bezier(.34,1.2,.64,1) forwards; }
  .sig-viz .an-fade { }
  .sig-viz.play .an-fade { opacity: 0; animation: fadeIn .7s var(--delay,.2s) ease forwards; }
  .pulse { animation: pulser 1.8s ease-in-out infinite; }
}
@keyframes pop { to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes growUp { to { transform: scaleY(1); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pulser { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

@media (max-width: 900px) {
  .sig-card { grid-template-columns: 1fr; }
  .sig-side { border-left: 0; border-top: 1px solid var(--line); }
  .caps-grid { grid-template-columns: 1fr; }
}
