.origin.paper {
  position: relative;
  isolation: isolate;
  padding-top: 180px;
  background: linear-gradient(155deg, #e4e8ee 0%, #faf4e5 51%, #efe4cf 100%);
}

.origin-sky {
  position: absolute;
  inset: 0 0 auto;
  height: 165px;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(#d6dfea80, transparent), radial-gradient(ellipse at 72% 5%, #fff5cc, transparent 63%);
}

.origin-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.origin-wires path { stroke: #282d40; stroke-width: 2; vector-effect: non-scaling-stroke; }
.origin-wires path + path { opacity: .42; stroke-width: 1.5; }

.origin-pigeon {
  --size: clamp(62px, 7vw, 98px);
  position: absolute;
  width: var(--size);
  height: var(--size);
  margin-left: calc(var(--size) * -.57);
  margin-top: calc(var(--size) * -.86);
  visibility: hidden;
}

.pigeon-left { left: 24%; top: 122.5px; }
.pigeon-far-left { left: 13%; --size: clamp(46px, 5vw, 70px); }
.pigeon-left-center { left: 38%; top: 128px; --size: clamp(50px, 5.5vw, 76px); }
.pigeon-middle { left: 52%; top: 129.4px; --size: clamp(54px, 6vw, 85px); visibility: visible; }
.pigeon-right-center { left: 66%; top: 125px; --size: clamp(48px, 5vw, 72px); }
.pigeon-right { left: 78%; top: 118.2px; }
.pigeon-far-right { left: 89%; --size: clamp(46px, 5vw, 70px); }

.pigeon-pose {
  width: 100%;
  height: 100%;
  background: url('/art/origin-pigeons.webp') 0 0 / 400% 200% no-repeat;
}

.origin .process article {
  border-radius: 18px;
  border: 1px solid #192131;
  background: linear-gradient(145deg, #fff3c6, #f2bc4b);
  box-shadow: 0 5px #192131, 0 14px 24px #181d3420, inset 0 1px #fff9;
  rotate: none;
  transform: none;
}
.origin .process article:nth-child(2) { background: linear-gradient(145deg, #fffdfa, #e6e0d5); }
.origin .process article:nth-child(3) { background: linear-gradient(145deg, #deeffc, #9dc7e5); }
.origin .process article:hover, .origin .process article:focus-within {
  box-shadow: 0 8px #192131, 0 18px 28px #181d342b;
}

.origin .process-visual {
  height: 112px;
  letter-spacing: 0;
  perspective: 450px;
}
.process-object {
  display: block;
  position: relative;
  transform-style: preserve-3d;
}
.process article:first-child .process-object {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 7px solid #21314f;
  background: linear-gradient(135deg, #fff 7%, #9dddf9b5 42%, #347daf);
  box-shadow: 4px 5px #10172a, inset 0 2px 4px #14233b90;
  transform: translate(-8px, -8px) rotateY(-18deg);
}
.process article:first-child .process-object::after {
  content: "";
  position: absolute;
  left: 83%;
  top: 85%;
  width: 15px;
  height: 43px;
  border-radius: 8px;
  background: linear-gradient(90deg,#405779,#141e36);
  box-shadow: 3px 2px #0a1325;
  transform: rotate(-42deg);
  transform-origin: top;
}
.process article:nth-child(2) .process-object {
  padding: 16px 20px 11px;
  border-radius: 10px;
  background: linear-gradient(135deg,#344973,#192540);
  border-top: 8px solid #6983ab;
  color: #ffe37b;
  font-size: 31px;
  box-shadow: 5px 7px #10172a, 8px 13px 16px #171c373f;
  transform: rotateY(-16deg) rotateZ(-6deg);
}
.process article:nth-child(3) .process-object {
  width: 87px;
  height: 87px;
  filter: drop-shadow(4px 5px 0 #79283a) drop-shadow(4px 5px 7px #18264556);
  transform: rotate(-11deg);
}
.process article:nth-child(3) .process-object::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 45deg, #ffb78a, #e43a54, #94233d, #ffa07f, #ffb78a);
  clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 38% 63%, 0 50%, 38% 37%);
}
.origin .process-toggle {
  border-radius: 7px;
  box-shadow: 2px 3px #192131;
}
@media (prefers-reduced-motion: reduce) {
  .origin .process article, .origin .process-visual { transition: none; }
  .origin .process article:hover, .origin .process article.is-active .process-visual { transform: none; }
}

@media (max-width: 750px) {
  .origin.paper { padding-top: 157px; }
  .origin-sky { height: 145px; }
  .pigeon-left { top: 107.7px; }
  .pigeon-left-center { top: 112px; }
  .pigeon-middle { top: 113.7px; }
  .pigeon-right-center { top: 109px; }
  .pigeon-right { top: 103.9px; }
}

.origin .process-visual { display: none; }
.origin .process article { min-height: 230px; padding: 30px; }
.origin .process article h3 { font-size: 27px; margin-top: 0; }
.origin .process article { padding:0 0 26px; border-radius:12px; overflow:hidden; border:2px solid #182035; background:#fff9ec; box-shadow:5px 6px #182035; }
.origin .process article:nth-child(n) { background:#fff9ec; }
.origin .process article::before { content:""; display:block; width:100%; height:195px; background:#edcf83 url('/art/idea-notebook.webp') center / 80% auto no-repeat; border-bottom:2px solid #182035; }
.origin .process article:nth-child(2)::before { background:#172944 url('/art/programming-backend.webp') center / cover; }
.origin .process article:nth-child(3)::before { background:#d1dfee url('/art/programming-frontend.webp') center / cover; }
.origin .process article h3, .origin .process article>p { margin-left:24px; margin-right:24px; }
.origin .process article h3 { margin-top:22px; }
.origin .process article .process-toggle { margin-left:24px; }
.origin .process article .process-detail { padding-top:18px; }
