/* A pinned explanation, five freely scrolling, inspectable stations. */
.process-lab { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(36px, 6vw, 84px); align-items: start; }
.lab-side { position: sticky; top: 106px; }
.lab-eyebrow, .lab-file, .lab-meta, .lab-position, .lab-demo-badge { font-family: var(--mono); font-size: .75rem; letter-spacing: .025em; }
.lab-eyebrow { display: block; color: var(--ink-2); margin: 0 0 18px; }
.lab-side h2.display { font-size: clamp(36px, 4vw, 54px); }
.lab-intro { color: var(--ink-2); font-size: 1rem; max-width: 35ch; margin: 22px 0; }
.lab-brief { padding: 16px 0; border-block: 1px solid var(--rule); }
.lab-brief label { display: block; font-size: .875rem; margin-bottom: 7px; }
.lab-brief select { width: 100%; max-width: 100%; font: inherit; font-size: 1rem; padding: 10px 30px 10px 12px; border: 1px solid #d8d8d6; background: var(--paper); color: var(--ink); border-radius: 5px; cursor: pointer; }
.lab-brief > span { display: block; margin-top: 8px; font-size: .75rem; color: var(--ink-2); }
.lab-reset { padding: 10px 0 0; background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; font-size: .875rem; cursor: pointer; }
.lab-nav { margin: 17px 0; }
.lab-nav a { display: flex; align-items: center; gap: 13px; position: relative; padding: 9px 10px; border-radius: 4px; font-size: .875rem; color: var(--ink-2); transition: background .2s, color .2s; }
.lab-nav a > span { font: .75rem var(--mono); color: var(--ink-2); }
.lab-nav a i { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: #cececa; }
.lab-nav a[aria-current] { background: var(--wash-2); color: var(--ink); }
.lab-nav a[aria-current] i { background: var(--ink); box-shadow: 0 0 0 4px #deded9; }
.lab-nav a.is-past i { background: var(--ink); }
.lab-nav a:hover { background: var(--wash); }
.lab-position { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 13px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.lab-position button { border: 0; padding: 0; background: none; font: inherit; font-size: .75rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.lab-disclaimer { margin: 15px 0 0; max-width: 44ch; font-size: .75rem; line-height: 1.6; color: var(--ink-2); }
.lab-stations { min-width: 0; }
.lab-stage { --stage-p: 1; --image-cover: 0%; --image-blur: 0px; position: relative; padding-bottom: clamp(80px, 12vw, 160px); scroll-margin-top: 110px; }
.lab-stage:last-child { padding-bottom: 0; }
.lab-stage-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--rule); padding-top: 19px; margin-bottom: 18px; }
.lab-stage-head .lab-eyebrow { margin: 0; color: var(--ink); }
.lab-file { color: var(--ink-2); }
.lab-stage h3.display { font-size: clamp(32px, 3.7vw, 49px); line-height: 1.04; max-width: 20ch; }
.lab-description { margin: 20px 0 28px; color: var(--ink-2); font-size: 1rem; line-height: 1.75; }
.lab-surface { background: #fff; border: 1px solid #dededb; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px -18px #1113; }
.lab-surface-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 53px; border-bottom: 1px solid var(--rule); padding: 13px 20px; background: #fafaf9; font-size: .875rem; }
.lab-meta { color: var(--ink-2); }
.lab-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 27px 20px 0; }
.lab-inputs > div { padding: 13px 9px; border: 1px solid var(--rule); border-radius: 5px; background: white; }
.lab-inputs span { display: block; font: .75rem var(--mono); margin-bottom: 7px; color: var(--ink-2); }
.lab-inputs strong { font-size: .875rem; line-height: 1.4; font-weight: 500; display: block; }
.lab-connections { height: 75px; margin: 0 16%; position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.lab-connections i { border-bottom: 1px solid #c2c2bd; height: 39px; }
.lab-connections i:first-child { border-left: 1px solid #c2c2bd; border-bottom-left-radius: 12px; }
.lab-connections i:nth-child(2) { border-right: 1px solid #c2c2bd; border-bottom-right-radius: 12px; }
.lab-connections i:nth-child(3) { position: absolute; top: 0; left: 50%; height: 75px; border-left: 1px solid #c2c2bd; }
.lab-connections b { position: absolute; width: 5px; height: 18px; background: var(--ink); left: calc(50% - 2px); top: 5px; border-radius: 5px; opacity: 0; }
.lab-enhanced:not(.lab-still) .lab-connections b { opacity: calc(sin(var(--stage-p) * 3.14159)); transform: translateY(calc(var(--stage-p) * 52px)); }
.lab-topic-result { padding: 25px; margin: 0 20px 24px; background: #151517; color: #fff; border-radius: 7px; }
.lab-topic-result .lab-eyebrow { color: #bababf; font-size: .75rem; margin-bottom: 14px; }
.lab-topic-result strong { display: block; font: 400 clamp(25px, 2.6vw, 35px)/1.12 var(--serif); }
.lab-topic-result p { color: #cccbd0; font-size: .875rem; line-height: 1.65; margin: 14px 0 0; }
.lab-enhanced:not(.lab-still) .lab-topic-result { opacity: calc(.3 + var(--stage-p) * .7); transform: translateY(calc((1 - var(--stage-p)) * 12px)); }
.lab-footnote { padding: 14px 20px; border-top: 1px solid var(--rule); font-size: .75rem; color: var(--ink-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.lab-image { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wash-2); }
.lab-image > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block; }
.lab-image-veil, .lab-image-grid { position: absolute; inset: 0; pointer-events: none; }
.lab-enhanced:not(.lab-still) .lab-image > img { filter: blur(var(--image-blur)); }
.lab-enhanced:not(.lab-still) .lab-image-veil { background: #e9e9e5; clip-path: inset(0 0 0 calc(100% - var(--image-cover))); }
.lab-enhanced:not(.lab-still) .lab-image-grid { background-image: linear-gradient(#ffffff40 1px, transparent 1px), linear-gradient(90deg, #ffffff40 1px, transparent 1px); background-size: 12.5% 12.5%; opacity: calc(1 - var(--stage-p)); }
.lab-scan { display: none; }
.lab-enhanced:not(.lab-still) .lab-scan { display: block; position: absolute; inset-block: 0; left: calc(100% - var(--image-cover)); width: 1px; background: #fff; box-shadow: 0 0 18px 4px #fff8; opacity: calc(1 - var(--stage-p)); }
.lab-image-tag { position: absolute; bottom: 14px; left: 15px; padding: 5px 9px; color: white; background: #151517c9; border: 1px solid #ffffff40; border-radius: 3px; font: .75rem var(--mono); }
.lab-prompt { padding: 22px; }
.lab-prompt .lab-eyebrow { margin: 0 0 10px; }
.lab-prompt p { font-size: .875rem; line-height: 1.75; color: var(--ink-2); margin: 0; }
.lab-tone { display: flex; gap: 3px; background: #eaeae7; padding: 3px; border-radius: 5px; }
.lab-tone button { padding: 6px 10px; border: 0; border-radius: 3px; background: none; color: var(--ink-2); font-size: .875rem; cursor: pointer; }
.lab-tone button[aria-pressed="true"] { color: var(--ink); background: white; box-shadow: 0 1px 3px #1111; }
.lab-caption { padding: 25px; }
.lab-caption > div + div { border-top: 1px solid var(--rule-soft); padding-top: 20px; margin-top: 20px; }
.lab-caption .lab-eyebrow { margin-bottom: 10px; }
.lab-caption p { margin: 0; font-size: 1rem; line-height: 1.85; }
.lab-caption > div:first-child p { font-size: 1.25rem; font-weight: 500; line-height: 1.5; }
.lab-enhanced:not(.lab-still) .lab-word { opacity: .15; transition: opacity .18s linear; }
.lab-enhanced:not(.lab-still) .lab-word.is-written { opacity: 1; }
.lab-fault { display: flex; align-items: flex-start; gap: 12px; padding: 20px; cursor: pointer; border-bottom: 1px solid var(--rule); }
.lab-fault input { margin: 4px 0 0; width: 18px; height: 18px; flex: 0 0 auto; }
.lab-fault strong { display: block; font-size: .875rem; font-weight: 500; }
.lab-fault small { display: block; color: var(--ink-2); font-size: .875rem; margin-top: 4px; }
.lab-checks { padding: 8px 20px; }
.lab-checks > div { display: flex; align-items: center; gap: 12px; padding: 17px 0; }
.lab-checks > div + div { border-top: 1px solid var(--rule-soft); }
.lab-checks i { width: 25px; height: 25px; border: 1px solid #cececa; border-radius: 50%; display: grid; place-items: center; font-size: .875rem; font-style: normal; }
.lab-checks span { flex: 1; font-size: 1rem; }
.lab-checks small { display: block; font-size: .875rem; color: var(--ink-2); }
.lab-checks b { font: .75rem var(--mono); min-width: 40px; text-align: right; }
.lab-enhanced:not(.lab-still) .lab-checks > div { opacity: .3; transition: opacity .25s; }
.lab-enhanced:not(.lab-still) .lab-checks > div.is-checked { opacity: 1; }
.lab-checks .is-failed { color: #9e302b; }
.lab-checks .is-failed i { color: #9e302b; border-color: #dbaa9d; background: #fff2ed; }
.lab-verdict { padding: 17px 20px; border-top: 1px solid var(--rule); font-size: .875rem; background: var(--wash); }
.lab-verdict.is-blocked { background: #fff2ed; color: #8b2923; border-top-color: #e6c4ba; }
.lab-demo-badge { border: 1px solid #d5d5d0; border-radius: 3px; padding: 3px 7px; color: var(--ink-2); }
.lab-post-head { display: flex; align-items: center; gap: 11px; padding: 20px 22px 0; }
.lab-avatar { display: grid; place-items: center; height: 38px; width: 38px; background: var(--ink); color: white; border-radius: 50%; font: 24px var(--serif); }
.lab-post-head strong { font-size: .875rem; font-weight: 500; }
.lab-post-head div > span { display: block; font-size: .75rem; color: var(--ink-2); }
.lab-post-text { font-size: 1rem; line-height: 1.75; white-space: pre-line; padding: 0 22px; margin: 17px 0 22px; }
.lab-post-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.lab-delivery { display: flex; align-items: center; gap: 16px; padding: 24px 22px; font: .75rem var(--mono); }
.lab-delivery > i { position: relative; flex: 1; height: 1px; background: #cececa; }
.lab-delivery b { position: absolute; top: -3px; left: 100%; height: 7px; width: 7px; border-radius: 50%; background: var(--ink); }
.lab-enhanced:not(.lab-still) .lab-delivery b { left: calc(var(--stage-p) * 100%); }
.lab-final.is-blocked .lab-delivery b { left: 0 !important; background: #9e302b; }
.lab-inspect { border-bottom: 1px solid var(--rule); margin-top: 16px; }
.lab-inspect summary { cursor: pointer; font-size: .875rem; padding: 15px 0; }
.lab-inspect summary > span { float: right; font: .75rem var(--mono); color: var(--ink-2); padding-top: 3px; }
.lab-inspect p { color: var(--ink-2); font-size: .875rem; line-height: 1.7; }
.lab-inspect pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 20px; margin: 15px 0 20px; color: #d6e6df; background: #17191b; border-radius: 6px; font: .875rem/1.8 var(--mono); }
.lab-endnote { margin: 30px 0 0; color: var(--ink-2); font-size: .875rem; }
.lab-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 961px) and (max-height: 800px) {
  .lab-side { top: 88px; }
  .lab-side h2.display { font-size: 38px; }
  .lab-intro { margin: 14px 0; font-size: .875rem; }
  .lab-brief { padding-block: 10px; }
  .lab-nav { margin-block: 8px; }
  .lab-nav a { padding-block: 7px; }
  .lab-disclaimer { margin-top: 10px; }
}
@media (max-width: 960px), (max-height: 650px) {
  .process-lab { grid-template-columns: 1fr; gap: 44px; }
  .lab-side { position: static; }
  .lab-side h2.display { font-size: clamp(36px, 7vw, 54px); }
  .lab-intro, .lab-disclaimer { max-width: 65ch; }
  .lab-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .lab-nav a { border: 1px solid var(--rule); gap: 8px; }
  .lab-nav a i { display: none; }
  .lab-brief select { max-width: 420px; }
}
@media (max-width: 480px) {
  .lab-stage-head { display: block; }
  .lab-file { display: block; margin-top: 6px; }
  .lab-inputs { padding: 18px 12px 0; gap: 5px; }
  .lab-inputs > div { padding: 10px 6px; }
  .lab-inputs strong { font-size: .875rem; overflow-wrap: anywhere; }
  .lab-topic-result { margin-inline: 12px; padding: 20px; }
  .lab-caption, .lab-prompt { padding: 20px; }
  .lab-inspect summary > span { display: block; float: none; margin-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .process-lab *, .process-lab *::before, .process-lab *::after { transition: none !important; animation: none !important; }
}
