/* Existing black gallery, with project-specific illustrations and real media. */
.card-study img { object-fit: cover; background: #0b0b0d; }
.card[data-slug="/chubby-runner"] img { object-position: 0% 50%; }
.wp-hero:has(.project-lab) { aspect-ratio: auto; height: auto; overflow: visible; }
.project-lab { background: #0b0b0d; border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden; }
.project-lab h2 { font: 300 clamp(32px, 4vw, 62px)/1.1 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.project-lab h3 { font: 400 20px/1.3 var(--sans); letter-spacing: -.01em; }
.project-lab p { font: 300 15px/1.5 var(--sans); color: #b2b2b9; }
.project-lab svg { fill: none; stroke: currentColor; stroke-width: 1.3; }
.project-lab button { min-height: 44px; padding: 12px 18px; color: #b9b9c0; transition: color .2s, background .2s; }
.project-lab button:hover { color: #fff; background: #242428; }
.project-lab button[aria-pressed="true"] { background: #efefef; color: #111; }
.project-lab button:focus-visible,.study-links a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.project-lab .lab-caption { padding: 24px 36px; margin: 0; border-top: 1px solid var(--line); font-size: 13px; color: #a2a2aa; }
.lab-filmstrip { position: relative; background: #121215; }
.wp-hero .lab-filmstrip img { height: auto; object-fit: contain; }
.lab-media-caption { display: block; padding: 20px 30px; font-size: 14px; color: #b9b9c0; border-top: 1px solid var(--line); }
.lab-registers button { border: 1px solid #38383e; border-radius: 2px; }
.lab-storyboard>h2,.lab-guide>h2,.lab-delivery>h2,.lab-extract>h2,.lab-restyle>h2 { margin: 44px 44px 34px; }
.lab-shots { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; padding: 0 44px 34px; }
.lab-shot h3 { margin: 7px 0 7px; }
.lab-shot>p { margin: 0; max-width: 27ch; }
.lab-shot .lab-time { margin-top: 18px; font-size: 12px; letter-spacing: .04em; color: #b2b2bb; }
.lab-framing { height: 200px; background: #202025; position: relative; overflow: hidden; border: 1px solid #3a3a41; }
.lab-framing::before { content: ''; position: absolute; inset: 30px 35px 0; border: 1px solid #53535d; transform: perspective(170px) rotateY(-12deg); }
.lab-figure { position: absolute; width: 32px; height: 56px; left: 45%; top: 55%; background: #94949d; border-radius: 35% 35% 0 0; }
.lab-figure::before { content: ''; position: absolute; width: 21px; height: 23px; border-radius: 50%; background: #94949d; top: -24px; left: 5px; }
.framing-1 .lab-figure { width: 86px; height: 140px; top: 55%; left: 36%; }
.framing-1 .lab-figure::before { width: 55px; height: 60px; top: -62px; left: 15px; }
.framing-2 .lab-figure { width: 100px; height: 160px; top: 74%; left: 32%; transform: rotate(-9deg); }
.framing-2 .lab-figure::before { width: 65px; height: 70px; top: -72px; left: 17px; }
.lab-frame-guide { position: absolute; inset: 15px; border: 1px solid #686875; opacity: .5; }
.lab-timeline { display: grid; grid-template-columns: 4fr 3fr 3fr; margin: 0 44px 30px; border-top: 2px solid #aaaab3; font-size: 11px; letter-spacing: .06em; color: #a9a9b0; }
.lab-timeline span { padding-top: 12px; border-left: 1px solid #6c6c76; padding-left: 10px; }
.lab-registers { display: flex; gap: 10px; padding: 36px 44px 0; flex-wrap: wrap; }
.lab-prompt-print { margin: 34px 44px 42px; max-width: 850px; }
.lab-prompt-print h2 { margin-bottom: 32px; }
.lab-prompt-print dl { display: grid; grid-template-columns: 100px 1fr; gap: 18px 32px; margin: 0; font-size: clamp(16px,1.6vw,21px); line-height: 1.5; }
.lab-prompt-print dt { color: #a4a4ad; font-size: 13px; align-self: center; }
.lab-prompt-print dd { margin: 0; color: #e3e3e8; font-weight: 300; }
.lab-loop>h2 { margin: 44px 44px 52px; }
.lab-loop-track { display: flex; justify-content: space-between; margin: 0 44px; position: relative; gap: 10px; }
.lab-loop-track::before { content: ''; position: absolute; left: 7%; right: 7%; top: 24px; height: 1px; background: #52525b; }
.lab-loop-track button { position: relative; padding: 0 12px 12px; background: none !important; color: #a9a9b3; font-size: 18px; min-width: 95px; }
.lab-loop-dot { display: block; height: 16px; width: 16px; border: 1px solid #8e8e98; border-radius: 50%; background: #0b0b0d; margin: 16px auto 18px; }
.lab-loop-track button[aria-pressed="true"] { color: #fff; }
.lab-loop-track button[aria-pressed="true"] .lab-loop-dot { background: #f1f1f1; box-shadow: 0 0 0 6px #34343c; }
.lab-loop .lab-loop-explainer { font-size: clamp(19px,2.2vw,28px); color: #efefef; font-weight: 300; text-align: center; min-height: 100px; padding: 32px 24px; margin: 0; }
.lab-delivery-path,.lab-restyle-flow { display: grid; grid-template-columns: 1fr 44px 1fr 44px 1fr; align-items: center; padding: 22px 44px 55px; gap: 20px; }
.lab-delivery-path>div,.lab-restyle-flow>div { text-align: center; }
.lab-delivery-path>div>svg { height: 115px; width: 115px; display: block; margin: 0 auto 24px; stroke: #b4b4bf; }
.lab-delivery-path span { font-size: 15px; color: #c3c3cc; }
.lab-path-arrow svg { width: 30px; height: 30px; stroke: #7e7e8c; }
.lab-segments { display: grid; grid-template-columns: repeat(3,1fr); height: 115px; width: 150px; gap: 9px; margin: 0 auto 24px; align-content: center; }
.lab-segments i { height: 35px; border: 1px solid #848492; background: #222228; }
.lab-retry-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 44px 44px 36px; }
.lab-retry-head h2 { max-width: 10ch; }
.lab-retry-head button { border: 1px solid #4a4a53; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.lab-retry-head button svg { height: 20px; width: 20px; }
.lab-retry-list { margin: 0 44px; }
.lab-retry-list>div { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 20px; padding: 22px 0; border-top: 1px solid #393940; font-size: 18px; font-weight: 300; }
.lab-status { height: 7px; width: 7px; border-radius: 50%; background: #a4a4b0; }
.lab-status.is-failed { border: 1px solid #dedee5; background: none; }
.lab-status.is-queued { background: #dedee5; }
.lab-retry-state { color: #a4a4ae; font-size: 14px; }
.lab-retry-footer { display: flex; gap: 26px; margin: 26px 44px 34px; font-size: 12px; color: #a4a4ae; }
.lab-extract-row { display: grid; grid-template-columns: 1.3fr 50px 1fr; align-items: center; gap: 28px; padding: 0 44px 46px; }
.lab-extract pre { margin: 0; padding: 30px 0; font: 15px/1.9 ui-monospace,monospace; color: #c0c0cc; white-space: pre-wrap; overflow-wrap: anywhere; }
.lab-extract-result { text-align: center; }
.lab-extract-result svg { width: 90px; height: 65px; stroke: #c0c0cc; }
.lab-extract-result p { color: #ededf0; margin-top: 20px; font-size: 19px; }
.lab-guide-index { display: grid; grid-template-columns: repeat(2,1fr); margin: 0 44px 46px; gap: 0 44px; }
.lab-guide-index span { font-size: 22px; font-weight: 300; padding: 24px 0; border-top: 1px solid #39393f; }
.lab-game-heading { display: flex; justify-content: space-between; align-items: center; margin: 44px 44px 32px; gap: 20px; }
.lab-game-heading>span { font-size: 11px; letter-spacing: .06em; color: #9999a5; }
.lab-game-stage { height: 275px; position: relative; margin: 0 44px 36px; background: #16161b; overflow: hidden; }
.lab-game-floor { height: 2px; background: #9b9baa; position: absolute; left: 0; right: 0; bottom: 42px; }
.lab-game-runner { position: absolute; left: 25%; bottom: 44px; width: 42px; height: 58px; }
.lab-game-runner i { position: absolute; top: 0; left: 12px; width: 19px; height: 18px; background: #dedee6; }
.lab-game-runner b { position: absolute; top: 20px; left: 10px; width: 23px; height: 23px; background: #bdbdc8; }
.lab-game-runner em,.lab-game-runner span { position: absolute; bottom: 0; width: 10px; height: 18px; background: #9292a2; }
.lab-game-runner em { left: 7px; transform: rotate(20deg); }
.lab-game-runner span { right: 3px; transform: rotate(-20deg); }
.lab-game-obstacle { position: absolute; left: 68%; bottom: 44px; width: 34px; height: 47px; border: 1px solid #a9a9b5; }
.lab-game-lines { position: absolute; bottom: 100px; left: 8%; width: 65px; height: 1px; background: #4a4a56; box-shadow: 10px 14px #4a4a56,-3px 28px #4a4a56; }
.lab-restyle-flow>div>span { display: block; height: 115px; width: 140px; margin: 0 auto 24px; position: relative; border: 1px solid #565662; }
.lab-wire { background: repeating-linear-gradient(0deg,transparent 0 21px,#3f3f4b 22px 23px),repeating-linear-gradient(90deg,transparent 0 21px,#3f3f4b 22px 23px); }
.lab-anchor::after { content: ''; position: absolute; inset: 25px 30px; background: #acacba; clip-path: polygon(0 100%,35% 35%,50% 55%,70% 0,100% 100%); }
.lab-render { background: linear-gradient(155deg,#383843,#19191f); }
.lab-render::after { content: ''; position: absolute; inset: 30px 25px; background: #a1a1b0; clip-path: polygon(0 100%,35% 35%,50% 55%,70% 0,100% 100%); }
.lab-restyle-flow h3 { font-size: 15px; color: #c3c3cd; font-weight: 300; }
.study-features { margin: 36px 0; }
.study-features section { padding: 25px 0 3px; border-top: 1px solid var(--line-strong); }
.study-features h2 { font-size: 20px; font-weight: 400; margin: 0 0 9px; letter-spacing: -.01em; }
.study-features p { font-size: 16px; }
.study-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 34px 0; }
.study-links a { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; color: #efefef; border-bottom: 1px solid #71717a; text-decoration: none; font-size: 14px; }
.study-links a:hover { border-color: #fff; }
.study-links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.wp-side .study-side-stack { color: #b4b4bd; font-size: 13px; line-height: 1.7; padding-top: 18px; }
@media(max-width:900px) {
  .project-lab h2 { font-size: clamp(27px,5.5vw,44px); }
  .project-lab .lab-caption { padding: 20px; font-size: 12px; }
  .lab-storyboard>h2,.lab-guide>h2,.lab-delivery>h2,.lab-extract>h2,.lab-restyle>h2 { margin: 28px 22px; }
  .lab-shots { padding: 0 22px 25px; gap: 12px; }
  .lab-framing { height: 135px; }
  .lab-shot h3 { font-size: 16px; }
  .lab-shot>p { font-size: 12px; }
  .lab-timeline { margin: 0 22px 24px; }
  .lab-registers { padding: 22px 22px 0; gap: 8px; }
  .lab-prompt-print { margin: 28px 22px; }
  .lab-prompt-print dl { grid-template-columns: 64px 1fr; gap: 18px; font-size: 16px; }
  .lab-loop>h2 { margin: 28px 22px 38px; }
  .lab-loop-track { margin: 0 16px; gap: 0; }
  .lab-loop-track button { min-width: 0; padding: 0 6px 12px; font-size: 14px; }
  .lab-loop .lab-loop-explainer { font-size: 20px; min-height: 95px; }
  .lab-registers button { padding: 10px 12px; font-size: 12px; }
  .lab-delivery-path,.lab-restyle-flow { grid-template-columns: 1fr 18px 1fr 18px 1fr; padding: 10px 18px 30px; gap: 8px; }
  .lab-delivery-path>div>svg { width: 70px; height: 70px; margin-bottom: 15px; }
  .lab-delivery-path span,.lab-restyle-flow h3 { font-size: 12px; }
  .lab-path-arrow svg { width: 18px; height: 18px; }
  .lab-segments { width: 74px; height: 70px; gap: 5px; margin-bottom: 15px; }
  .lab-segments i { height: 20px; }
  .lab-retry-head { margin: 28px 22px; flex-wrap: wrap; }
  .lab-retry-head h2 { max-width: none; }
  .lab-retry-list { margin: 0 22px; }
  .lab-retry-list>div { font-size: 15px; gap: 12px; }
  .lab-retry-state { font-size: 12px; }
  .lab-retry-footer { margin: 22px; gap: 15px; font-size: 11px; }
  .lab-extract-row { grid-template-columns: 1fr; padding: 0 22px 30px; gap: 5px; }
  .lab-extract pre { font-size: 12px; padding: 15px 0; }
  .lab-extract-row>.lab-path-arrow { transform: rotate(90deg); justify-self: center; }
  .lab-extract-result { margin-top: 18px; }
  .lab-extract-result svg { height: 45px; width: 65px; }
  .lab-extract-result p { font-size: 16px; margin-top: 10px; }
  .lab-guide-index { margin: 0 22px 28px; gap: 0 20px; }
  .lab-guide-index span { font-size: 16px; padding: 18px 0; }
  .lab-game-heading { margin: 28px 22px; flex-wrap: wrap; }
  .lab-game-stage { margin: 0 22px 28px; height: 200px; }
  .lab-restyle-flow>div>span { height: 72px; width: 75px; margin-bottom: 16px; }
  .lab-anchor::after,.lab-render::after { inset: 18px 15px; }
  .study-features h2 { font-size: 19px; }
}
@media(max-width:480px) {
  .lab-delivery-path { grid-template-columns: 1fr; justify-items: center; gap: 14px; padding: 8px 22px 30px; }
  .lab-delivery-path>.lab-path-arrow { transform: rotate(90deg); }
  .lab-delivery-path>div { display: flex; align-items: center; gap: 22px; width: 220px; text-align: left; }
  .lab-delivery-path>div>svg,.lab-delivery-path .lab-segments { flex: 0 0 64px; width: 64px; height: 64px; margin: 0; }
  .lab-delivery-path .lab-segments { gap: 4px; }
  .lab-delivery-path .lab-segments i { height: 19px; }
}
@media(prefers-reduced-motion:reduce) { .project-lab button { transition: none; } }
