/* Real artwork and an open editorial process, scoped to work details. */
#things .work-detail-body{min-width:0}
#things .work-detail-title:has(+ .work-archive){margin-bottom:10px}
#things .work-detail-body .work-archive{font:400 12px/1.8 var(--body);color:var(--gray);margin:0 0 20px;min-width:0;white-space:normal;overflow-wrap:anywhere}
#things .work-detail-body .process-lead{font:400 clamp(19px,2.2vw,27px)/1.65 var(--body);color:var(--paper);max-width:36ch;margin:0 0 30px;letter-spacing:-.015em}
#things .process-figure{margin:24px 0 0;max-width:100%;min-width:0}
#things .process-figure .photo-open{border-radius:32px;overflow:hidden;background:var(--control);border:0;cursor:zoom-in}
#things .process-figure .photo-open>img{display:block;width:100%;height:auto;border-radius:32px}
#things .process-figure .photo-open.is-tilted>img{display:none}
#things .process-figure.is-pet .tilted-image-host{max-width:291px;margin-inline:auto}
#things .process-figure:has(img[src$='youth-early.webp']){width:min(100%,480px);margin-inline:auto}
#things .process-figure .tilted-card-img{border-radius:32px}
#things .process-figure .photo-enlarge{border-radius:999px;padding:8px 12px}
#things .process-figure .photo-open:focus-visible{outline:2px solid var(--gold);outline-offset:5px}
#things .process-figure figcaption{font:400 12px/1.8 var(--body);color:var(--gray);padding:12px 3px 0;overflow-wrap:anywhere}
#things .process-figure.is-logo .photo-open,#things .process-figure.is-pet .photo-open{background:#f2edfb;padding:20px}
#things .process-figure.is-logo img{object-fit:contain}
#things .process-figure.is-pet{max-width:350px;margin-inline:auto}
#things .process-figure.is-pet .photo-open>img{max-width:291px;margin:auto}
#things .process-cover{margin-top:0;margin-bottom:42px}
#things .process-cover.is-logo .photo-open{padding:clamp(25px,5vw,50px)}
#things .process-intent{padding:0 0 40px;max-width:64ch;border-bottom:1px solid var(--line)}
#things .process-intent h3{font:500 15px/1.5 var(--body);color:var(--gold);margin:0 0 14px}
#things .process-intent p,#things .process-step>p:not(.process-index){font:400 15px/1.95 var(--body);color:var(--gray);margin:0;overflow-wrap:anywhere}
#things .process-heading{margin:40px 0 26px}
#things .process-heading>.eyebrow{color:var(--gray);margin-bottom:10px}
#things .process-heading h3{font:500 clamp(24px,3vw,33px)/1.4 var(--body);letter-spacing:-.02em}
#things .process-steps{list-style:none;display:grid;gap:42px;padding:0;margin:0;min-width:0}
#things .process-step{min-width:0;max-width:100%}
#things .process-step>.process-index{font:400 11px/1.5 var(--body);color:var(--gold);margin:0 0 9px;letter-spacing:.04em}
#things .process-step h3{font:500 clamp(19px,2.2vw,24px)/1.5 var(--body);letter-spacing:-.02em;margin:0 0 12px}
#things .process-steps--logo{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
#things .process-steps--logo .process-step{display:flex;flex-direction:column}
#things .process-steps--logo .process-figure{margin-top:auto;padding-top:22px}
#things .process-steps--logo .is-logo .photo-open{padding:14px}
#things .process-step .process-figure:not(.is-logo):not(.is-pet) img{max-height:640px;object-fit:contain}
#things .process-ending{font:400 16px/1.9 var(--body);color:var(--paper);padding-top:32px;margin:40px 0 0;border-top:1px solid var(--line)}
#things .process-credits{font:400 11px/1.9 var(--body);color:var(--gray);margin:24px 0 0;overflow-wrap:anywhere}
#things .process-credits a{color:var(--gray);text-decoration:underline;text-underline-offset:3px}
#things .process-credits a:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
#work-stories .work-thumb{object-position:45% 70%}
#flowing-works a[href='#work-stories'] .work-entry__media img{object-position:45% 70%}
@media(max-width:760px){#things .process-steps--logo{grid-template-columns:minmax(0,1fr)}#things .process-steps{gap:34px}#things .process-figure .photo-open,#things .process-figure .photo-open>img,#things .process-figure .tilted-card-img{border-radius:24px}#things .process-intent p,#things .process-step>p:not(.process-index){font-size:16px}#things .process-cover{margin-bottom:32px}}
@media(forced-colors:active){#things .process-figure .photo-open{border:1px solid ButtonText;background:Canvas}#things .process-credits a,#things .process-intent p,#things .process-step>p{color:CanvasText}}

/* Real work entrances and a native, user-started film. */
#things .work-launch{margin:0 0 30px}
#things .work-launch-link{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;max-width:100%;min-height:54px;padding:9px 10px 9px 24px;border:1px solid var(--line);border-radius:999px;background:var(--control);color:var(--paper);font:500 15px/1.6 var(--body);text-decoration:none}
#things .work-launch-link>span:first-child{min-width:0;overflow-wrap:anywhere}
#things .work-launch-arrow{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:#d4b5ff22;color:var(--gold)}
#things .work-launch-link:focus-visible,#things .work-film a:focus-visible,#things .work-film video:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
#things .work-launch>p,#things .work-film>p{margin:10px 0 0;font:400 12px/1.8 var(--body);color:var(--gray)}
#things .work-film{min-width:0;margin:0 0 42px}
#things .work-film h3{font:500 17px/1.5 var(--body);margin:0 0 15px;color:var(--paper)}
#things .work-film video{display:block;width:100%;height:auto;aspect-ratio:16/9;max-width:100%;border-radius:24px;background:#08050f}
#things .work-film-links{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:12px;font:400 12px/1.8 var(--body)}
#things .work-film-links a{color:var(--gray);text-underline-offset:4px;overflow-wrap:anywhere}
@media(max-width:760px){#things .work-launch-link{gap:16px;padding-left:18px;font-size:14px}#things .work-film video{border-radius:18px}}
@media(forced-colors:active){#things .work-launch-link{color:LinkText;background:Canvas;border-color:LinkText}#things .work-launch-arrow{color:LinkText;background:Canvas;border:1px solid LinkText}#things .work-film-links a{color:LinkText}}

/* One real stage at a time; the native four-stage list remains the fallback. */
#things .logo-stage-controls{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
#things .logo-stage-tab{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:10px 18px;border:1px solid var(--line);border-radius:999px;background:var(--control);font:500 14px/1.5 var(--body);color:var(--gray)}
#things .logo-stage-number{font-size:10px;opacity:.7;font-variant-numeric:tabular-nums}
#things .logo-stage-tab[aria-selected='true']{color:var(--ink);background:var(--gold);border-color:var(--gold)}
#things .logo-stage-tab:focus-visible,#things .process-step[role='tabpanel']:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
#things .has-stage-tabs .process-steps--logo{display:block}
#things .has-stage-tabs .process-step:not([hidden]){display:flex;flex-direction:column}
#things .has-stage-tabs .process-step[hidden]{display:none!important}
#things .has-stage-tabs .process-step>.process-figure{order:-1;margin:0 0 24px;padding:0}
#things .has-stage-tabs .is-logo .photo-open{display:block;aspect-ratio:4/3;padding:0}
#things .has-stage-tabs .is-logo .photo-open>img{position:absolute;inset:0;width:100%;height:100%;max-height:100%;padding:clamp(16px,4vw,34px);box-sizing:border-box;object-fit:contain;min-height:0}
#things .has-stage-tabs .process-step>p:not(.process-index){max-width:64ch}

/* Quiet adjacent-work links, reusing the drawer's existing navigation owner. */
#things .work-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:40px 0 0;padding-top:26px;border-top:1px solid var(--line)}
#things .work-pagination a{display:inline-flex;align-items:center;gap:12px;min-height:48px;max-width:100%;min-width:0;padding:8px 10px 8px 18px;border:1px solid var(--line);border-radius:999px;background:var(--control);font:400 13px/1.6 var(--body);color:var(--paper)}
#things .work-pagination .work-back{margin:0;white-space:nowrap}
#things .work-pagination a>span:first-child{min-width:0;overflow-wrap:anywhere}
#things .work-pagination small{display:block;font:400 10px/1.5 var(--body);color:var(--gray)}
#things .work-pagination .work-page-arrow{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:var(--night);color:var(--gold);font-size:16px}
#things .work-pagination a:hover{border-color:var(--gold)}
#things .work-pagination a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
#about .life-scene .scene-heading{align-items:center;padding-bottom:22px}
#about .life-scene .scene-heading h2{font:500 clamp(21px,2.2vw,28px)/1.45 var(--body);letter-spacing:-.02em}
@media(max-width:760px){#things .logo-stage-controls{gap:8px}#things .logo-stage-tab{flex:1 1 calc(50% - 8px);padding-inline:12px}#things .work-pagination{gap:10px}#things .work-pagination a:not(.work-back){flex:1 1 calc(50% - 10px)}#things .work-pagination .work-back{order:2;margin-inline:auto}#about .life-scene .scene-heading h2{font-size:23px}}
@media(forced-colors:active){#things .logo-stage-tab,#things .work-pagination a{background:ButtonFace;color:ButtonText;border-color:ButtonText}#things .logo-stage-tab[aria-selected='true']{background:Highlight;color:HighlightText;border-color:Highlight}#things .logo-stage-tab:focus-visible,#things .process-step[role='tabpanel']:focus-visible,#things .work-pagination a:focus-visible{outline-color:Highlight}#things .work-pagination small{color:ButtonText}#things .work-pagination .work-page-arrow{background:Canvas;color:LinkText}}
/* works-split:begin — 平小检 TV: images beside their text instead of full-width blocks. Desktop: the finished ident sits
   left of "制作的起点"; each stage shows its text left and the image right (sides alternate), capped in height. Mobile:
   stacked, smaller images, text straight after. The no-JS four-stage list stays a tidy two-column grid. */
@media(min-width:761px){
  #work-pingxiaojian .work-detail-body{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);column-gap:clamp(28px,3.6vw,52px);align-items:start}
  #work-pingxiaojian .work-detail-body>*{grid-column:1/-1}
  #work-pingxiaojian .process-cover{grid-column:1;margin:0 0 38px}
  #work-pingxiaojian .process-cover.is-logo .photo-open{padding:clamp(22px,3vw,36px)}
  #work-pingxiaojian .process-intent{grid-column:2;align-self:center;max-width:none;padding:0 0 38px;border-bottom:0}
  #work-pingxiaojian .process-journey{border-top:1px solid var(--line)}
  #work-pingxiaojian .has-stage-tabs .process-step:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);grid-template-rows:1fr auto auto auto 1fr;column-gap:clamp(28px,3.6vw,52px);align-items:start}
  #work-pingxiaojian .has-stage-tabs .process-step>.process-figure{grid-column:2;grid-row:1/-1;order:0;margin:0}
  #work-pingxiaojian .has-stage-tabs .process-step>.process-index{grid-column:1;grid-row:2}
  #work-pingxiaojian .has-stage-tabs .process-step>h3{grid-column:1;grid-row:3}
  #work-pingxiaojian .has-stage-tabs .process-step>p:not(.process-index){grid-column:1;grid-row:4}
  #work-pingxiaojian .has-stage-tabs .is-logo .photo-open{aspect-ratio:4/3;max-height:380px;margin-inline:auto}
}
@media(max-width:760px){
  #work-pingxiaojian .process-cover.is-logo .photo-open{padding:18px 22px}
  #work-pingxiaojian .process-cover.is-logo .photo-open>img{max-height:150px;width:auto;max-width:100%;margin-inline:auto}
  #work-pingxiaojian .has-stage-tabs .is-logo .photo-open{aspect-ratio:16/10}
  #work-pingxiaojian .has-stage-tabs .is-logo .photo-open>img{padding:14px}
  #work-pingxiaojian .has-stage-tabs .process-step>.process-figure{margin-bottom:18px}
}
/* works-split:end */
/* works-split-story:begin — 红船旁的青春答卷 · 红船三问 · 南湖红船: the same idea as 平小检. Desktop: the cover image
   sits beside "制作的起点" (南湖红船's film keeps the full content width above it, so it plays large); every step that has an image puts text and image side by side,
   images alternate right, left, right…; images are capped in height (an upright image such as the early sketch
   youth-early.webp, if it returns, stays small on the page so its zoom grows meaningfully). Mobile: stacked, index/title → image → text, smaller caps. */
@media(min-width:761px){
  :is(#work-stories,#work-three-questions,#work-nanhu) .work-detail-body{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);column-gap:clamp(28px,3.6vw,52px);align-items:start}
  :is(#work-stories,#work-three-questions,#work-nanhu) .work-detail-body>*{grid-column:1/-1}
  :is(#work-stories,#work-three-questions) .work-detail-body>.process-cover{grid-column:1;margin:0 0 38px}
  :is(#work-stories,#work-three-questions) .work-detail-body>.process-intent{grid-column:2;align-self:center;max-width:none;padding:0 0 38px;border-bottom:0}
  :is(#work-stories,#work-three-questions) .process-journey{border-top:1px solid var(--line)}
  :is(#work-stories,#work-three-questions,#work-nanhu) .process-step:has(>.process-figure){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);grid-template-rows:1fr auto auto auto 1fr;column-gap:clamp(28px,3.6vw,52px);align-items:start}
  :is(#work-stories,#work-three-questions,#work-nanhu) .process-step:has(>.process-figure)>.process-index{grid-column:1;grid-row:2}
  :is(#work-stories,#work-three-questions,#work-nanhu) .process-step:has(>.process-figure)>h3{grid-column:1;grid-row:3}
  :is(#work-stories,#work-three-questions,#work-nanhu) .process-step:has(>.process-figure)>p:not(.process-index){grid-column:1;grid-row:4}
  :is(#work-stories,#work-three-questions,#work-nanhu) .process-step>.process-figure{grid-column:2;grid-row:1/-1;margin:0;width:auto}
  /* every second image-bearing step mirrors: image left, text right */
  :is(#work-stories,#work-three-questions,#work-nanhu) .process-step:nth-child(even of .process-step:has(>.process-figure)){grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
  :is(#work-stories,#work-three-questions,#work-nanhu) .process-step:nth-child(even of .process-step:has(>.process-figure))>:not(.process-figure){grid-column:2}
  :is(#work-stories,#work-three-questions,#work-nanhu) .process-step:nth-child(even of .process-step:has(>.process-figure))>.process-figure{grid-column:1}
  #things :is(#work-stories,#work-three-questions,#work-nanhu) .process-figure .photo-open>img{max-height:400px;object-fit:contain}
  #work-stories .process-figure:has(img[src$='youth-early.webp']){justify-self:center;width:min(100%,300px)}
}
@media(max-width:760px){
  :is(#work-stories,#work-three-questions,#work-nanhu) .process-step:has(>.process-figure){display:flex;flex-direction:column}
  :is(#work-stories,#work-three-questions,#work-nanhu) .process-step>.process-figure{order:1;margin:4px 0 16px}
  :is(#work-stories,#work-three-questions,#work-nanhu) .process-step>p:not(.process-index){order:2}
  #things :is(#work-stories,#work-three-questions,#work-nanhu) .process-figure .photo-open>img{max-height:180px;object-fit:cover}
  #work-stories .process-figure:has(img[src$='youth-early.webp']){width:min(100%,220px)}
  #things #work-stories .process-figure:has(img:is([src$='youth-early.webp'],[src$='youth-cast.webp'])) .photo-open>img{max-height:none;object-fit:contain}
}
/* works-split-story:end */

/* TV logo zoom: keep a stable frameless hit target; only the artwork flies. */
#things #work-pingxiaojian .process-figure.is-logo.is-zoom-source .photo-open{opacity:1;transition:none}
#things #work-pingxiaojian .process-figure.is-logo.is-zoom-source .photo-open>img{opacity:0;transition:none}

/* Pingxiaojian TV: frameless; original artwork sets height. */
#things #work-pingxiaojian .process-figure.is-logo .photo-open{background:transparent;padding:0;border:0;box-shadow:none;border-radius:32px}
#things #work-pingxiaojian .has-stage-tabs .is-logo .photo-open{aspect-ratio:auto;max-height:none}
#things #work-pingxiaojian .process-figure.is-logo .photo-open>img{position:static;inset:auto;width:auto;height:auto;max-width:100%;max-height:380px;padding:0;object-fit:contain;margin-inline:auto;box-sizing:border-box;border-radius:32px}
@media(max-width:760px){#things #work-pingxiaojian .process-figure.is-logo .photo-open,#things #work-pingxiaojian .process-figure.is-logo .photo-open>img{border-radius:24px}#things #work-pingxiaojian .process-figure.is-logo .photo-open>img{max-height:180px}}

/* works-split-pet:begin — 泡泡桌宠: the same side-by-side rhythm as the other works. The pet artwork is small (291px) and
   is never enlarged on the page, so its card keeps its natural width and sits beside the text instead of floating
   centred in an empty row. Desktop: cover beside "制作的起点"; steps with an image put text and card side by side,
   alternating (text|card, card|text); text measure is capped so lines stay readable. Mobile: stacked, index/title →
   smaller card → text, like the other works. */
@media(min-width:761px){
  #work-deskpet .work-detail-body{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:clamp(32px,4vw,56px);align-items:start}
  #work-deskpet .work-detail-body>*{grid-column:1/-1}
  #work-deskpet .work-detail-body>.process-cover{grid-column:1;margin:0 0 40px}
  #work-deskpet .work-detail-body>.process-intent{grid-column:2;align-self:center;max-width:30em;padding:0 0 40px;border-bottom:0}
  #work-deskpet .process-journey{border-top:1px solid var(--line)}
  #work-deskpet .process-step>p:not(.process-index){max-width:34em}
  #work-deskpet .process-step:has(>.process-figure){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr auto auto auto 1fr;column-gap:clamp(32px,4vw,56px);align-items:start}
  #work-deskpet .process-step:has(>.process-figure)>.process-index{grid-column:1;grid-row:2}
  #work-deskpet .process-step:has(>.process-figure)>h3{grid-column:1;grid-row:3}
  #work-deskpet .process-step:has(>.process-figure)>p:not(.process-index){grid-column:1;grid-row:4}
  #work-deskpet .process-step>.process-figure{grid-column:2;grid-row:1/-1;margin:0}
  #work-deskpet .process-step:nth-child(even of .process-step:has(>.process-figure)){grid-template-columns:auto minmax(0,1fr)}
  #work-deskpet .process-step:nth-child(even of .process-step:has(>.process-figure))>:not(.process-figure){grid-column:2}
  #work-deskpet .process-step:nth-child(even of .process-step:has(>.process-figure))>.process-figure{grid-column:1}
  #things #work-deskpet .process-figure.is-pet{width:min(100%,300px);max-width:none;margin-inline:0}
  #things #work-deskpet .process-figure.is-pet .photo-open{padding:16px}
  #things #work-deskpet .process-ending{max-width:40em}
}
@media(max-width:760px){
  #work-deskpet .process-step:has(>.process-figure){display:flex;flex-direction:column}
  #work-deskpet .process-step>.process-figure{order:1;margin:4px 0 16px}
  #work-deskpet .process-step>p:not(.process-index){order:2}
  #things #work-deskpet .process-figure.is-pet{max-width:none;width:100%;margin-inline:0}
  #things #work-deskpet .process-figure.is-pet .photo-open{padding:14px}
  #things #work-deskpet .process-figure.is-pet .photo-open>img{max-height:200px;width:auto;max-width:100%}
  #things #work-deskpet .process-figure.is-pet .tilted-image-host{max-width:185px}
  #things #work-deskpet .process-cover{margin-bottom:32px}
}
#work-deskpet .work-detail-body p,#work-deskpet .work-detail-body h3,#work-deskpet .work-detail-body figcaption{text-wrap:pretty}
#work-deskpet .pet-keep{display:inline-block}
/* works-split-pet:end */
