﻿/* Proof gallery on Home */
.approved-work-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  color: #dcebd6;
}
.approved-work-controls[hidden] { display: none; }
.approved-work-controls output { margin-right: 8px; font: 500 .82rem Geist Mono, monospace; }
.approved-work-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid #a8bd9b88;
  border-radius: 50%;
  background: #132719;
  color: #edf6e6;
  font: 500 1.16rem Geist, sans-serif;
  cursor: pointer;
}
.approved-work-controls button:disabled { opacity: .5; cursor: default; }
.approved-work-controls button:not(:disabled):hover { color: #153221; background: #bde483; }
.approved-work-controls button:focus-visible,
#work [data-project-gallery]:focus-visible { outline: 2px solid #bde483; outline-offset: 3px; }

#work [data-project-gallery] {
  --project-width: min(740px, 79%);
  position: relative;
  display: flex;
  gap: 17px;
  align-items: stretch;
  margin-top: 12px;
  padding-block: 5px 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: #789c71 #193320;
}
#work [data-project-gallery] > .az-178 {
  flex: 0 0 var(--project-width);
  scroll-snap-align: start;
}
#work [data-project-gallery]::after {
  content: "";
  display: block;
  flex: 0 0 max(0px, calc(100% - var(--project-width) - 17px));
}
#work [data-project-gallery] .az-198 { height: clamp(185px, 24vw, 310px); }
#work [data-project-gallery] .az-198::after {
  position: absolute;
  inset: 18% 0 0 40%;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, #a8d594 0 1px, transparent 1.3px) 0 0 / 8px 8px;
  mask-image: radial-gradient(ellipse at 79% 45%, #000c, transparent 67%);
  opacity: .46;
}
#work [data-project-gallery] [data-project-current] .az-196 { border-color: #a0cd8170; }

@media (prefers-reduced-motion: no-preference) {
  #work [data-project-gallery][data-motion-seen] [data-project-current] .az-198::after {
    animation: approved-proof-wipe .67s ease-out both;
  }
}
@keyframes approved-proof-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

/* About's engineering narrative and shipping rules */
.about-page .backlog-intro { align-items: start; }
.about-page .backlog-intro p {
  font-size: clamp(1.22rem, 2.55vw, 2.58rem);
  line-height: 1.29;
  letter-spacing: -.041em;
  text-wrap: pretty;
}
.approved-inline-anchor { white-space: nowrap; }
.approved-inline-art {
  display: inline-grid;
  position: relative;
  width: 1.15em;
  height: .83em;
  margin-inline: .12em .04em;
  vertical-align: -.1em;
  place-items: center;
  color: #286845;
}
.approved-inline-art::before,
.approved-inline-art::after { content: ""; position: absolute; }
.approved-inline-art--queue::before {
  inset: 17% 15%;
  background: repeating-linear-gradient(currentColor 0 1px, transparent 1px .16em);
}
.approved-inline-art--queue::after { inset: 17% 42% auto 15%; height: .27em; border: 1px solid #286845; background: #ddedcc; }
.approved-inline-art--stack::before {
  inset: 11% 23% 20% 13%;
  border: 1px solid #286845;
  background: #d8ead1;
  box-shadow: .11em .12em 0 #559177, .23em .24em 0 #a2c5a6;
}
.approved-inline-art--launch::before {
  inset: 12% 19% 18% 12%;
  border: 1px solid currentColor;
  background: linear-gradient(currentColor 0 25%, transparent 25%);
}
.approved-inline-art--launch::after {
  width: .28em;
  height: .15em;
  border: solid currentColor;
  border-width: 0 0 1px 1px;
  transform: rotate(-45deg);
}
.about-page .shipping-rule[data-motion-current] {
  background: linear-gradient(90deg,#dfeede,transparent 76%);
}
.about-page .shipping-rule[data-motion-current]::before { color: #0d572f; font-weight: 650; }

/* Staff Augmentation's four hiring steps */
.staff-specialist-links li { position: relative; }
.staff-specialist-links li::before {
  position: absolute;
  content: "";
  inset: 0 auto 0 -8px;
  width: 2px;
  background: #75aa59;
  opacity: 0;
}
.staff-specialist-links li:is(:hover,:focus-within)::before { opacity: 1; }
.staff-page .staff-process .approved-staff-path {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 21px;
  border-bottom: 1px solid #b5c8b6;
}
.staff-page .staff-process .approved-staff-path::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #4c9958;
  transform-origin: top;
  transform: scaleY(var(--sequence-progress, 0));
  pointer-events: none;
}
.staff-page .staff-process .approved-staff-path > article {
  display: grid;
  grid-template-columns: minmax(95px,.36fr) minmax(0,.83fr) minmax(0,1fr);
  align-items: center;
  gap: 10px clamp(17px, 4vw, 60px);
  min-height: clamp(100px, 10vw, 140px);
  padding: clamp(14px, 2vw, 25px) clamp(13px, 3vw, 40px);
  border-top: 1px solid #b5c8b6;
  background: transparent;
}
.staff-page .approved-staff-path > article[data-motion-current] { background: #e5efe0; }
.staff-page .approved-staff-path article h3 { margin: 0; font-size: clamp(1.14rem, 2.3vw, 2.18rem); }
.staff-page .approved-staff-path article p { max-width: 40ch; }

.approved-stage-art {
  height: clamp(47px, 6vw, 78px);
  width: min(100%, 146px);
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  gap: 6%;
  color: #28694a;
  background: radial-gradient(circle,#6c92775e 0 .65px,transparent .92px) 0 0 / 6px 6px, #e2eedf;
  border: 1px solid #aac0ac;
}
.approved-stage-art i { display: block; width: 18%; height: 52%; background: #f5f8f2; border: 1px solid #5d8768; }
.approved-stage-art--brief { flex-direction: column; }
.approved-stage-art--brief i { width: 60%; height: 1px; }
.approved-stage-art--brief i:last-child { width: 40%; align-self: start; margin-left: 20%; border-style: dashed; }
.approved-stage-art--profiles i { background: linear-gradient(#f5f8f2 57%,#b9d4b7 57% 66%,#f5f8f2 66%); }
.approved-stage-art--profiles i:nth-child(2) { height: 71%; border-color: #1d6b47; }
.approved-stage-art--approve i {
  display: grid;
  place-items: center;
  width: auto;
  height: 62%;
  aspect-ratio: 1;
  background: #cae2b6;
}
.approved-stage-art--approve i::after {
  content: "";
  width: 44%;
  height: 22%;
  border: solid #245f40;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}
.approved-stage-art--join i { width: 12%; height: auto; aspect-ratio: 1; border-radius: 50%; background: #a7caaa; }
.approved-stage-art--join i:last-child { background: #1e6a44; }

/* The Chatbot / Agent bridge uses the same geometry as its existing packet. */
.approved-agent-route {
  display: none;
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.approved-agent-route[data-visible] { display: block; }
.approved-agent-discovery {
  display: flex;
  align-items: center;
  gap: 12%;
  position: relative;
  width: min(100%, 310px);
  height: 48px;
  margin-top: 13px;
}
.approved-agent-discovery::before {
  content: "";
  position: absolute;
  inset: 50% 4px auto 0;
  height: 1px;
  background: #c4eeb142;
}
.approved-agent-discovery i {
  width: 20%;
  height: 57%;
  z-index: 1;
  background: linear-gradient(#285033 45%, #c8e5b6 45% 49%, #285033 49%);
  border: 1px solid #98bd91;
}
.approved-agent-discovery i:nth-child(2) { height: 82%; }
.approved-agent-discovery i:last-child { background: #b9df90; }

/* Three views of the same artifact from prototype to tracking */
.approved-product-stage {
  grid-column: 1 / -1;
  position: relative;
  min-height: clamp(116px, 18vw, 258px);
  margin-top: clamp(15px, 2.7vw, 36px);
  border: 1px solid #adbfae;
  background: #e6ede2;
  isolation: isolate;
  overflow: hidden;
}
.approved-product-stage::before {
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
  background: radial-gradient(circle,#58866b 0 .66px,transparent 1px) 0 0 / 6px 6px;
  mask-image: radial-gradient(ellipse at 45% 50%, #0007, transparent 68%);
}
.approved-product-assembly {
  position: absolute;
  inset: 10% max(8%, calc((100% - 540px) / 2));
  border-inline: 1px dashed #8ba48b;
  color: #42734d;
}

.approved-product-assembly i {
  position: absolute;
  inset: var(--piece-y) auto auto var(--piece-x);
  width: var(--piece-width);
  height: var(--piece-height);
  display: block;
  border: 1px solid currentColor;
  background: #becfba;
}

.approved-product-assembly i:nth-child(1) {
  --piece-x: 19%; --piece-y: 8%; --piece-width: 62%; --piece-height: 14%;
  background: #3c6c50;
}
.approved-product-assembly i:nth-child(2) {
  --piece-x: 19%; --piece-y: 26%; --piece-width: 18%; --piece-height: 66%;
  background: #a5c4a5;
}
.approved-product-assembly i:nth-child(3) {
  --piece-x: 39%; --piece-y: 26%; --piece-width: 42%; --piece-height: 27%;
  background: #cee2c3;
}
.approved-product-assembly i:nth-child(n+4) {
  --piece-y: 57%; --piece-width: 12.7%; --piece-height: 35%;
  background: #eef3e9;
}
.approved-product-assembly i:nth-child(4) { --piece-x: 39%; }
.approved-product-assembly i:nth-child(5) { --piece-x: 53.65%; }
.approved-product-assembly i:nth-child(6) { --piece-x: 68.3%; }

.software-demo[data-stage="design"] .approved-product-assembly i {
  border-style: dashed;
  background: transparent;
}
.software-demo[data-stage="design"] .approved-product-assembly i:nth-child(1) { --piece-x: 12%; --piece-y: 2%; }
.software-demo[data-stage="design"] .approved-product-assembly i:nth-child(2) { --piece-x: 8%; --piece-y: 25%; }
.software-demo[data-stage="design"] .approved-product-assembly i:nth-child(3) { --piece-x: 37%; --piece-y: 30%; }
.software-demo[data-stage="design"] .approved-product-assembly i:nth-child(4) { --piece-x: 36%; --piece-y: 65%; --piece-height: 29%; }
.software-demo[data-stage="design"] .approved-product-assembly i:nth-child(5) { --piece-x: 56%; --piece-y: 65%; --piece-height: 29%; }
.software-demo[data-stage="design"] .approved-product-assembly i:nth-child(6) { --piece-x: 76%; --piece-y: 65%; --piece-height: 29%; }

.software-demo[data-stage="growth"] .approved-product-assembly {
  background: linear-gradient(90deg, transparent 0 10%, #8ba48b 10% 90%, transparent 90%) 0 51% / 100% 1px no-repeat;
}
.software-demo[data-stage="growth"] .approved-product-assembly i {
  --piece-y: 38%; --piece-width: 9%; --piece-height: 24%;
  background: #e6ede2;
}
.software-demo[data-stage="growth"] .approved-product-assembly i:nth-child(1) { --piece-x: 12%; }
.software-demo[data-stage="growth"] .approved-product-assembly i:nth-child(2) { --piece-x: 25%; }
.software-demo[data-stage="growth"] .approved-product-assembly i:nth-child(3) {
  --piece-x: 40%; --piece-y: 28%; --piece-width: 20%; --piece-height: 45%;
  background: #366b48;
}
.software-demo[data-stage="growth"] .approved-product-assembly i:nth-child(4) { --piece-x: 65%; }
.software-demo[data-stage="growth"] .approved-product-assembly i:nth-child(5) { --piece-x: 78%; }
.software-demo[data-stage="growth"] .approved-product-assembly i:nth-child(6) {
  --piece-x: 45%; --piece-y: 44%; --piece-width: 10%; --piece-height: 13%;
  background: #bce598;
  border-color: #bce598;
}

.software-directory-page .software-b-launch-path { grid-template-columns: minmax(0,1fr); gap: 0; }
.software-directory-page .software-b-launch-path li {
  display: grid;
  grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  align-items: baseline;
  column-gap: 22px;
  padding: 17px 12px 17px 46px;
}
.software-directory-page .software-b-launch-path li::before { top: 19px; left: 9px; }
.software-directory-page .software-b-launch-path li[data-motion-current] { background: #e9f2e4; }

/* Strategy's active source feeds the illustration below it. */
.approved-strategy-branches {
  height: clamp(35px, 5.5vw, 73px);
  position: relative;
  pointer-events: none;
  background: #f4f8f1;
}
.approved-strategy-branches i {
  position: absolute;
  inset: 0 auto 40% var(--branch-start);
  width: var(--branch-width);
  border-left: 1px solid #a7bdaa;
  border-bottom: 1px solid #a7bdaa;
  border-bottom-left-radius: 23px;
}
.approved-strategy-branches i:nth-child(1) { --branch-start: 12.5%; --branch-width: 52.5%; }
.approved-strategy-branches i:nth-child(2) { --branch-start: 37.5%; --branch-width: 27.5%; }
.approved-strategy-branches i:nth-child(3) { --branch-start: 62.5%; --branch-width: 2.5%; }
.approved-strategy-branches i:nth-child(4) {
  --branch-start: 65%;
  --branch-width: 22.5%;
  border-left: 0;
  border-right: 1px solid #a7bdaa;
  border-radius: 0 0 23px 0;
}
.approved-strategy-branches::after {
  content: "";
  position: absolute;
  inset: 60% auto 0 65%;
  width: 1px;
  background: #276c49;
}
.strategy-map[data-active-route="0"] .approved-strategy-branches i:nth-child(1),
.strategy-map[data-active-route="1"] .approved-strategy-branches i:nth-child(2),
.strategy-map[data-active-route="2"] .approved-strategy-branches i:nth-child(3),
.strategy-map[data-active-route="3"] .approved-strategy-branches i:nth-child(4) {
  border-color: #276c49;
  border-width: 2px;
  --branch-entry: approved-branch-trace;
  z-index: 1;
}
.strategy-chapter-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: #b9e28d;
  transform: scaleX(0);
  transform-origin: left;
}
.strategy-chapter[data-motion-current] .strategy-chapter-art::after {
  transform: scaleX(var(--motion-arrival, 0));
}

/* Automation projects keep their different evidence formats. */
.approved-contract-flow {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: center;
  gap: 14%;
  width: min(83%, 320px);
  position: relative;
}
.approved-contract-flow::before, .approved-contract-flow::after {
  position: absolute;
  content: "";
  inset: 50% 0 auto;
  height: 1px;
  background: #a1bb9b;
}
.approved-contract-flow::after {
  background: #c9ed92;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
}
[data-motion-current] .approved-contract-flow::after { transform: scaleX(var(--motion-arrival, 0)); }
.approved-contract-flow i {
  position: relative;
  display: block;
  aspect-ratio: .8;
  z-index: 1;
  border: 1px solid #c3e7a63a;
  background: repeating-linear-gradient(#9fc090 0 1px, transparent 1px 7px) 50% / 65% 58% no-repeat, #1b442c;
}
.approved-contract-flow i:nth-child(2) {
  background: repeating-linear-gradient(#b4d499 0 1px, transparent 1px 9px) 50% / 65% 66% no-repeat, #336242;
}
.approved-contract-flow i:nth-child(3) { background: #cae9a4; border-color: #cae9a4; }
.approved-contract-flow i:nth-child(3)::before {
  content: "";
  position: absolute;
  inset: 38% 26% 44% 26%;
  border: solid #245b3c;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.automation-case-result { position: relative; }
.automation-case-result::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: #719d70;
  transform: scaleX(0);
  transform-origin: left;
}
.automation-case-index [data-motion-current] .automation-case-result::after {
  transform: scaleX(var(--motion-arrival, 0));
}

@media (prefers-reduced-motion: no-preference) {
  .approved-product-assembly i { transition: inset .6s cubic-bezier(.2,.66,.32,1), width .55s, height .55s, background .5s; }
  .approved-stage-art i { transition: translate .45s ease-out; }
  [data-motion-current] .approved-stage-art--profiles i:nth-child(2) { translate: 0 -4px; }
  [data-motion-current] .approved-stage-art--join i:last-child { translate: -4px 0; }
  .approved-inline-art[data-motion-seen] { animation: approved-inline-ink .62s ease-out both; }
  .approved-agent-discovery[data-motion-seen] i { animation: approved-discovery-in 3s ease-out infinite both; }
  .approved-agent-discovery[data-motion-seen] i:nth-child(2) { animation-delay: .14s; }
  .approved-agent-discovery[data-motion-seen] i:last-child { animation-delay: .28s; }
  .approved-strategy-branches[data-motion-seen] i {
    animation: var(--branch-entry, none) .65s ease-out both;
  }
}

@keyframes approved-inline-ink {
  from { opacity: .5; translate: 0 2px; }
  to { opacity: 1; translate: 0 0; }
}

/* Draws in over the first .6s, then holds before the next loop. */
@keyframes approved-discovery-in {
  0% { clip-path: inset(0 100% 0 0); }
  20%, 100% { clip-path: inset(0); }
}

@keyframes approved-branch-trace {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

@media (max-width: 700px) {
  .approved-strategy-branches i:nth-child(odd) { --branch-start: 25%; --branch-width: 40%; }
  .approved-strategy-branches i:nth-child(even) { --branch-start: 65%; --branch-width: 10%; border-left: 0; border-right: 1px solid #a7bdaa; border-radius: 0 0 23px 0; }
}

@media (max-width: 550px) {
  #work [data-project-gallery] { --project-width: 91%; }
  .staff-page .staff-process .approved-staff-path > article {
    grid-template-columns: minmax(68px,.35fr) minmax(0,1fr);
    align-items: start;
    column-gap: 12px;
  }
  .staff-page .approved-staff-path .approved-stage-art { grid-row: span 2; }
  .staff-page .approved-staff-path article p { grid-column: 2; }
  .software-directory-page .software-b-launch-path li {
    grid-template-columns: minmax(0,1fr);
    row-gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .approved-agent-route,
  .approved-staff-path::after,
  .approved-contract-flow::after,
  .strategy-chapter-art::after,
  .automation-case-result::after { display: none; }
}
