/* Service pages (Discover, Implement, Upskill, Support): one shared layout. See service-page.js. */
.service-page h2 { font-size: clamp(35px, 3.7vw, 54px); }
.sp-kicker { margin-bottom: 22px; color: var(--muted); font-size: 13px; letter-spacing: .02em; }

/* Hero: the title on the left, the service's pixel animation on the right */
.sp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 4%; align-items: center; padding-block: 56px 70px; }
.sp-hero h1 { max-width: 14ch; }
.sp-hero .sp-sub { max-width: 16ch; margin-top: 14px; font-size: clamp(26px, 2.5vw, 38px); line-height: 1.12; letter-spacing: -.03em; }
.sp-hero .sp-lead { max-width: 40ch; margin-top: 30px; padding-top: 24px; border-top: 1px solid #c6c8c5; color: #4c4f50; font-size: 17px; line-height: 1.55; }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 32px; }
.sp-hero-art { position: relative; aspect-ratio: 1 / .98; }
.sp-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* An example: a Friday afternoon, before and after. service-page.js loops it while it is on screen */
.sp-example { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 9%; align-items: center; padding-block: 85px; border-top: 1px solid var(--rule); }
.sp-example h2 { margin-bottom: 26px; }
.sp-example-copy > p:not(.sp-kicker) { max-width: 52ch; color: var(--muted); }
.sp-example-copy .sp-note { margin-top: 16px; font-size: 12px; }
.sp-stat { padding: 40px 42px 34px; border-radius: 14px; background: #e8e9e6; --snappy: cubic-bezier(.34, 1.4, .64, 1); }
.sp-figures { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 22px; }
.sp-figures span { display: block; color: var(--muted); font-size: 12px; }
.sp-figures strong { position: relative; display: block; margin: 8px 0 6px; font-size: min(56px, 10cqw); font-weight: 400; line-height: 1; letter-spacing: -.04em; white-space: nowrap; transition: color .5s; }
.sp-figures small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.sp-before strong::after { content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.sp-arrow { position: relative; width: 36px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s ease .15s; }
.sp-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }
.sp-after { opacity: 0; transform: translateX(-10px); transition: opacity .45s .3s, transform .7s var(--snappy) .3s; }
.sp-count { font-weight: inherit; font-variant-numeric: tabular-nums; }
.sp-stat.is-after .sp-before strong { color: #8b8e8c; }
.sp-stat.is-after .sp-before strong::after { transform: scaleX(1); }
.sp-stat.is-after .sp-arrow { transform: scaleX(1); }
.sp-stat.is-after .sp-after { opacity: 1; transform: none; }
/* The week chart: each day's invoice typing fills in, then shrinks to a quick check and the time comes back */
.sp-week { margin-top: 30px; padding-top: 22px; border-top: 1px solid #d3d6d2; }
.sp-week-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 12px; }
.sp-week-state { display: grid; font-style: normal; }
.sp-week-state b { grid-area: 1 / 1; font-weight: 500; transition: opacity .4s; }
.sp-week-state b:last-child, .sp-stat.is-after .sp-week-state b:first-child { opacity: 0; }
.sp-stat.is-after .sp-week-state b:last-child { opacity: 1; }
.sp-week-back { padding: 5px 10px; border-radius: 20px; background: var(--ink); color: #fff; white-space: nowrap; opacity: 0; transform: scale(.9); transition: opacity .4s, transform .5s var(--snappy); }
.sp-week-back b, .sp-week-total b { font-weight: 500; font-variant-numeric: tabular-nums; }
.sp-stat.is-after .sp-week-back { opacity: 1; transform: none; transition-delay: .5s; }
.sp-week-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.sp-week-days > div { display: grid; justify-items: center; gap: 8px; }
.sp-week-days small { color: var(--muted); font-size: 11px; }
.sp-col { position: relative; width: 100%; height: 110px; border-radius: 7px; background: #f4f5f2 repeating-linear-gradient(transparent 0 21px, #e3e5e1 21px 22px); }
.sp-col::before { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: calc(55% - 4px); border: 1px dashed #8b8e8c; border-radius: 5px; opacity: 0; transition: opacity .4s; transition-delay: calc(.4s + var(--i) * .12s); }
.sp-col i { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 0; border-radius: 5px; background: var(--ink); transition: height .7s var(--snappy); transition-delay: calc(var(--i) * .35s); }
.sp-col u { position: absolute; left: 50%; bottom: 14px; display: grid; place-items: center; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; text-decoration: none; transform: scale(0); transition: transform .4s var(--snappy); transition-delay: calc(.35s + var(--i) * .12s); }
.sp-stat.is-before .sp-col i { height: calc(55% - 4px); }
.sp-stat.is-after .sp-col i { height: 6px; transition-duration: .6s; transition-delay: calc(var(--i) * .12s); }
.sp-stat.is-after .sp-col::before { opacity: 1; }
.sp-stat.is-after .sp-col u { transform: scale(1); }
.sp-week-total { margin-top: 14px; color: var(--muted); font-size: 12px; text-align: right; }
.sp-stat.is-reset, .sp-stat.is-reset * { transition: none !important; }




/* Built around your work (Implement): the three layers of a build */
.sp-stages { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.sp-stage { position: relative; padding: 16px 16px 22px; border-radius: 14px; background: #e8e9e6; opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i) * .15s); }
.sp-stage:not(:last-child)::after { content: ""; position: absolute; z-index: 1; right: -16px; top: 84px; width: 9px; height: 9px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); }
.is-visible > .sp-stage, .is-visible > div { opacity: 1; transform: none; }
.sp-stage h3 { margin: 0 0 8px; font-size: 24px; }
.sp-stage > p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.sp-stage-art { position: relative; display: grid; place-items: center; height: 152px; margin-bottom: 18px; overflow: hidden; border-radius: 10px; background: #f7f7f5 radial-gradient(circle, #dcdedb 1px, transparent 1.3px) 0 0 / 14px 14px; box-shadow: 0 10px 24px -16px #1e222055; }
.sp-app { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e4e6e2, 0 6px 14px -8px #1e222055; }
.sp-app svg { width: 64%; height: 64%; }
/* Foundation: three layers stack up, over and over */
.sp-art-foundation { align-content: center; gap: 6px; }
.sp-art-foundation span { width: 74%; padding: 8px 12px; border: 1px solid #e1e3df; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 500; text-align: center; animation: sp-stack 5s cubic-bezier(.34, 1.4, .64, 1) infinite both; animation-delay: calc(var(--i) * .35s); }
.sp-art-foundation span:last-child { background: var(--ink); border-color: var(--ink); color: #fff; }
@keyframes sp-stack { 0% { opacity: 0; transform: translateY(-16px); } 10%, 82% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(6px); } }
/* Integrations: three tools linked, with information passing along */
.sp-art-integrations { grid-template-columns: auto 1fr auto 1fr auto; gap: 0; padding: 0 18px; }
.sp-art-integrations i { position: relative; justify-self: stretch; height: 1px; margin: 0 6px; background: var(--ink); }
.sp-art-integrations i::after { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: sp-pass 1.8s ease-in-out infinite; }
.sp-art-integrations i:nth-of-type(2)::after { animation-delay: .9s; }
@keyframes sp-pass { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; } }
/* Automations: a trigger fires and three steps tick off, over and over */
.sp-art-automations { align-content: center; justify-items: start; gap: 6px; padding: 0 10%; }
.sp-trigger { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; padding: 6px 11px; white-space: nowrap; border-radius: 20px; background: var(--ink); color: #fff; font-size: 12px; }
.sp-trigger svg { width: 14px; height: 14px; }
.sp-run { position: relative; padding-left: 22px; color: var(--muted); font-size: 13px; animation: sp-run 4s ease infinite both; animation-delay: calc(.4s + var(--i) * .45s); }
.sp-run::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 9px; }
@keyframes sp-run { 0% { opacity: 0; transform: translateX(-6px); } 8%, 80% { opacity: 1; transform: none; color: var(--ink); } 92%, 100% { opacity: 0; } }


/* Implement cards: each example sits in a small app window on a dotted canvas, like the hero */
.sp-cards[data-frame] .sp-card { background: #e8e9e6 radial-gradient(circle, #d6d8d4 1px, transparent 1.3px) 0 0 / 14px 14px; }
.sp-window { width: 100%; max-width: 340px; overflow: hidden; border-radius: 14px; background: #fbfbfa; box-shadow: 0 26px 50px -22px #1e222066, 0 0 0 1px #1e22200d; }
.sp-window-bar { display: flex; align-items: center; gap: 5px; padding: 10px 12px; border-bottom: 1px solid #ecedea; background: #fff; }
.sp-window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #dcdedb; }
.sp-window-bar span { margin-left: 8px; color: var(--muted); font-size: 11px; }
.sp-window .dp-screen { max-width: none; border-radius: 0; background: transparent; box-shadow: none; }
.motion-paused .sp-art-foundation span, .motion-paused .sp-run, .motion-paused .sp-art-integrations i::after { animation: none; opacity: 1; transform: none; }


/* What you receive: each deliverable shown as a working example, played when it scrolls into view */
.sp-receive { padding-block: 85px; border-top: 1px solid var(--rule); }
.sp-receive h2 { margin-bottom: 44px; }
.sp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sp-card { display: flex; flex-direction: column; margin: 0; padding: 36px 36px 26px; border-radius: 14px; background: #e8e9e6; }
.dp-card { flex: 1; display: grid; place-items: center; min-height: 340px; color: var(--ink); font-size: 11px; line-height: 1.35; }
.dp-card .dp-screen { width: 100%; max-width: 330px; box-sizing: border-box; padding: 1.6em 1.6em 1.4em; border-radius: 12px; background: #f7f7f5; box-shadow: 0 22px 46px -18px #1e222038, 0 3px 10px #1e22200a; }
.sp-card figcaption { margin-top: 26px; padding-top: 16px; border-top: 1px solid #d3d6d2; font-size: 15px; line-height: 1.45; }

/* How we work together: the steps light up in turn as the page scrolls */
.sp-steps { display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, .62fr); gap: 9%; padding-block: 85px; border-top: 1px solid var(--rule); }
.sp-steps h2 { position: sticky; top: 40px; align-self: start; }
.sp-timeline { --progress: 0; position: relative; list-style: none; margin: 0 0 34px; padding: 0 0 0 66px; }
.sp-timeline::before, .sp-timeline::after { content: ""; position: absolute; left: 19px; top: 46px; }
.sp-timeline::before { bottom: 46px; border-left: 2px dotted #b9bdbc; }
.sp-timeline::after { width: 2px; height: calc((100% - 92px) * var(--progress)); background: var(--ink); }
.sp-timeline li { position: relative; padding: 28px 0; color: #9a9e9c; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.02em; transition: color .5s; }
.sp-timeline li + li { border-top: 1px solid var(--rule); }
.sp-timeline li span { position: absolute; z-index: 1; left: -66px; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border: 1px solid #b9bdbc; border-radius: 4px; background: var(--paper); color: var(--muted); font-size: 12px; letter-spacing: 0; transition: background .4s, color .4s, border-color .4s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.sp-timeline li.is-on { color: var(--ink); }
.sp-timeline li.is-on span { border-color: var(--ink); background: var(--ink); color: #fff; transform: scale(1.08); }
.sp-steps-note { max-width: 60ch; }
.sp-steps-note .text-link { margin-top: 4px; }



/* Closing strip: the logo drawn in squares beside the call to action */
.sp-close .section-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 6%; align-items: center; }
.sp-logo { position: relative; aspect-ratio: 1.35; }
.sp-logo canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

.motion-paused .sp-timeline li, .motion-paused .sp-timeline li span { transition: none; }

@media (max-width: 900px) {
  .sp-cards { gap: 16px; }
  .sp-card { padding: 26px 22px 20px; }
}
@media (max-width: 760px) {
  .sp-hero { grid-template-columns: 1fr; gap: 26px; padding-block: 40px 48px; }
  .sp-hero .sp-lead { font-size: 16px; }
  .sp-hero-art { aspect-ratio: 1 / 1.2; }
  .sp-example, .sp-steps { grid-template-columns: 1fr; gap: 34px; padding-block: 64px; }
  .sp-stat { padding: 28px 22px 24px; }
  .sp-figures { gap: 12px; }
  .sp-arrow { width: 20px; }
  .sp-receive { padding-block: 64px; }
  .sp-receive h2 { margin-bottom: 30px; }
  .sp-cards { grid-template-columns: 1fr; }
  .dp-card { min-height: 300px; }
  .sp-steps h2 { position: static; }
  .sp-close .section-shell { grid-template-columns: 1fr; gap: 30px; }
  .sp-logo { aspect-ratio: 1.6; }
  .sp-col { height: 90px; }
  .sp-stages { grid-template-columns: 1fr; gap: 26px; }
  .sp-stage:not(:last-child)::after { right: 50%; top: auto; bottom: -19px; transform: rotate(135deg); }
  .sp-timeline { padding-left: 56px; }
  .sp-timeline li { padding: 22px 0; font-size: 21px; }
  .sp-timeline li span { left: -56px; width: 36px; height: 36px; margin-top: -18px; }
  .sp-timeline::before, .sp-timeline::after { left: 17px; }
}

/* Illustrated team portraits (portraits.js) */
.has-portrait { overflow: hidden; padding: 0; background: none !important; box-shadow: 0 0 0 1.5px #fff, 0 .2em .5em -.2em rgba(30, 34, 32, .35); }
.has-portrait svg { display: block; width: 100%; height: 100%; }
.pt-eyes { transform-box: fill-box; transform-origin: center; animation: pt-blink 5.5s infinite; }
@keyframes pt-blink { 0%, 94%, 100% { transform: none; } 96% { transform: scaleY(.1); } }
.motion-paused .pt-eyes { animation: none; }

/* Pixel icons for each service (pixel-glyphs.js), used on the Services and About pages */
.sv-glyph { display: inline-block; flex: none; color: var(--ink); }
.sv-glyph svg { display: block; width: 100%; height: 100%; overflow: visible; fill: currentColor; }
.sv-glyph rect { transform-box: fill-box; transform-origin: center; }
@keyframes sv-gather { from { opacity: 0; transform: scale(0); } }
.motion-paused .sv-glyph rect { animation: none !important; }
