.jp-workflow {
  max-width: 1180px;
  margin: 0 auto 48px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  scroll-margin-top: 24px;
}
.workflow-copy h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin: 20px 0;
}
.workflow-copy > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 350px;
}
.story-steps {
  display: grid;
  margin-top: 28px;
}
.story-steps button {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--line);
  padding: 18px 14px;
  color: var(--muted);
  min-height: 84px;
  transition:
    background 0.2s,
    color 0.2s;
}
.story-steps button > span:first-child {
  font:
    12px ui-monospace,
    monospace;
}
.story-steps strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.story-steps small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 6px;
  color: var(--muted);
}
.story-steps b {
  font-size: 16px;
  font-weight: 400;
  margin-left: auto;
  opacity: 0;
}
.story-steps button[aria-current] {
  border-color: var(--blue);
  background: #eef4ff;
  color: var(--blue);
}
.story-steps button[aria-current] b {
  opacity: 1;
}
.story-steps button:hover {
  background: var(--surface);
  color: var(--ink);
}
.story-playback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.story-playback button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  padding: 12px 0;
  min-height: 44px;
}
.story-playback button:hover {
  color: var(--blue);
}
.story-counter {
  font:
    12px ui-monospace,
    monospace;
  color: var(--muted);
}
.story-stage {
  position: relative;
  min-width: 0;
  height: 570px;
  background: #eef3fb;
  border: 1px solid #e1e8f3;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
}
.story-stage-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 24px;
  font-size: 13px;
  color: var(--ink);
  position: relative;
  z-index: 2;
}
.story-stage-status {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.story-scene {
  position: absolute;
  inset: 66px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.capture-phone {
  width: 254px;
  background: white;
  border: 5px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 24px -22px #18212f88;
  transform: translate(-25px, -23px) rotate(-5deg);
}
.capture-phone-header {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: var(--ink);
  font-size: 13px;
}
.capture-view {
  height: 280px;
  position: relative;
  overflow: hidden;
  background: #dddfdf;
}
.capture-view > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.capture-requirement {
  position: absolute;
  top: 12px;
  left: 10px;
  right: 10px;
  padding: 9px 6px;
  background: var(--ink);
  color: white;
  text-align: center;
  font-size: 12px;
  border-radius: 5px;
}
.capture-brackets {
  position: absolute;
  inset: 60px 20px 28px;
  border: 1px solid white;
  border-radius: 12px;
}
.capture-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
}
.capture-tools {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: var(--muted);
  font-size: 12px;
}
.capture-tools button {
  display: grid;
  place-items: center;
  background: white;
  border: 2px solid var(--blue);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  padding: 4px;
}
.capture-tools button span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--blue);
}
.capture-tools button:hover span {
  background: #0848a7;
}
.capture-tools button:active {
  transform: scale(0.94);
}
.capture-note,
.packet-complete {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  padding: 16px 20px;
  border-radius: 8px;
  bottom: 32px;
  right: 24px;
  box-shadow: 0 8px 18px -16px #18212f88;
}
.capture-note strong,
.packet-complete strong,
.record-review strong {
  font-size: 13px;
  display: block;
}
.capture-note div > span,
.packet-complete div > span,
.record-review div > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}
.story-check {
  display: grid;
  place-items: center;
  background: #edf7f1;
  color: #286347;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
}
.story-record {
  width: calc(100% - 48px);
  background: white;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 18px 28px -24px #18212f66;
}
.record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.record-kicker {
  font:
    12px ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: var(--muted);
}
.record-state {
  font-size: 12px;
  padding: 6px 8px;
  background: #eef4ff;
  color: #0848a7;
  border-radius: 4px;
}
.story-record h3,
.story-paper h3 {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin: 24px 0 8px;
}
.story-record > p,
.story-paper > p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 24px;
}
.record-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.record-photos figure {
  margin: 0;
  min-width: 0;
}
.record-photos img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}
.record-photos figcaption {
  font-size: 12px;
  color: var(--muted);
  padding: 9px 0;
}
.record-review {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding: 18px 0;
}
.story-record .button {
  width: 100%;
  min-height: 44px;
  font-size: 13px;
}
.story-paper {
  background: white;
  width: 290px;
  border: 1px solid #dbe2ed;
  padding: 22px;
  box-shadow:
    6px 6px 0 #e3eaf5,
    7px 7px 0 #ccd6e7;
  transform: translateY(-26px) rotate(3deg);
}
.paper-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 24px;
}
.paper-brand > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.story-paper h3 {
  margin-top: 12px;
}
.paper-photo {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.paper-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 14px 0;
  font-size: 12px;
  color: #286347;
}
.story-paper .button {
  width: 100%;
  font-size: 12px;
  min-height: 44px;
  padding: 10px;
}
.story-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.story-stage.is-capturing .capture-flash {
  animation: photo-shutter 0.45s ease-out;
}
.story-stage.is-capturing .capture-tools button {
  animation: shutter-press 0.45s ease-out;
}
.story-stage.animate-entry .scene-review .arriving-photo {
  animation: photo-arrive 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.story-stage.animate-entry .scene-packet .story-paper {
  animation: packet-arrive 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.story-stage.animate-entry .scene-packet .packet-complete {
  animation: record-confirm 0.45s 0.4s ease-out both;
}
.story-stage.is-paused * {
  animation-play-state: paused !important;
}
@keyframes photo-shutter {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}
@keyframes shutter-press {
  40% {
    transform: scale(0.87);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes photo-arrive {
  0% {
    transform: translate(-120px, 45px) rotate(-8deg) scale(1.6);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) rotate(0) scale(1);
  }
}
@keyframes packet-arrive {
  from {
    transform: translateY(8px) rotate(0);
    opacity: 0;
  }
  to {
    transform: translateY(-26px) rotate(3deg);
    opacity: 1;
  }
}
@keyframes record-confirm {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 1023px) {
  .jp-workflow {
    gap: 28px;
    grid-template-columns: 1fr 1.15fr;
    padding: 0 24px;
  }
  .story-stage {
    height: 540px;
  }
  .story-record {
    padding: 16px;
    width: calc(100% - 32px);
  }
  .record-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .record-photos img {
    height: 105px;
  }
  .capture-note,
  .packet-complete {
    right: 16px;
    bottom: 24px;
    padding: 14px;
  }
  .capture-phone {
    transform: translate(-8px, -20px) rotate(-4deg);
  }
  .story-steps button {
    gap: 10px;
    padding: 15px 10px;
  }
  .story-steps small {
    max-width: 210px;
  }
}
@media (max-width: 700px) {
  .jp-workflow {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
  }
  .workflow-copy h2 {
    font-size: 34px;
  }
  .workflow-copy > p {
    max-width: 360px;
  }
  .story-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
    gap: 6px;
  }
  .story-steps button {
    flex-direction: column;
    align-items: flex-start;
    min-height: 86px;
    border-left: 0;
    border-bottom: 2px solid var(--line);
    gap: 8px;
    padding: 12px 9px;
  }
  .story-steps button[aria-current] {
    border-bottom-color: var(--blue);
  }
  .story-steps strong {
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: -0.025em;
  }
  .story-steps small,
  .story-steps b {
    display: none;
  }
  .story-playback {
    margin-top: 4px;
  }
  .story-stage {
    height: 500px;
  }
  .story-stage-heading {
    padding: 18px 16px;
    font-size: 12px;
    gap: 8px;
  }
  .story-stage-status {
    font-size: 12px;
  }
  .story-scene {
    top: 54px;
  }
  .capture-phone {
    width: 230px;
    transform: translate(-6px, -22px) rotate(-4deg);
  }
  .capture-view {
    height: 245px;
  }
  .capture-note,
  .packet-complete {
    bottom: 18px;
    right: 14px;
  }
  .story-record {
    width: calc(100% - 28px);
    padding: 16px;
  }
  .record-photos {
    gap: 7px;
  }
  .record-photos img {
    height: 103px;
  }
  .story-record h3 {
    margin-top: 16px;
  }
  .record-photos figcaption {
    font-size: 12px;
  }
  .story-paper {
    width: 250px;
    padding: 18px;
    transform: translateY(-22px) rotate(3deg);
  }
  .story-paper h3 {
    font-size: 22px;
  }
  .paper-brand {
    margin-bottom: 18px;
  }
  .paper-photo {
    height: 112px;
  }
  .paper-checks {
    font-size: 12px;
    gap: 6px;
  }
  .record-kicker {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jp-workflow * {
    animation: none !important;
    transition: none !important;
  }
}
