/* Lab: 蝶 · 融合版. The original 蝶 page styles (detail.css, butterfly.css) do most of the work; this adds the
   WebGL opening and the new sections (画面近看, 2.5D 倒角, 约 2.3 mm 有多薄, 底胶). No zoom effects. Chinese sizes stay on the
   12px grid. */
.lab-dfusion{--df-ink:#1c2b3c;--df-mute:#526779;--df-slate:#344c68;--df-rule:rgba(52,76,104,.18);--df-rubber:#9eb0c2}
.lab-dfusion .bf{background:#eff4f8}

/* The opening: a tall track with one sticky canvas; one caption at a time. */
.df-stage{position:relative;height:620vh}
.df-sticky{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;background:#eff4f8}
.df-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:pan-y}
.lab-dfusion:not(.df-static) .df-fallback{display:none!important}
.df-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
/* While the scales load, the word stands where they will form it, then hands over. */
.df-word{position:absolute;left:0;right:0;top:50%;margin:0;transform:translateY(calc(-50% - 24px));text-align:center;pointer-events:none;
  font-family:"Terminal Grotesque",monospace;font-size:min(13vw,34svh,220px);line-height:1;color:var(--df-slate);transition:opacity .5s}
.df-ready .df-word,.df-static .df-word{opacity:0}
.df-word-zh{font-family:"Fusion Pixel",monospace;font-size:min(36vw,44svh,480px)}
.df-word-en{display:none}
.df-word:lang(en) .df-word-zh{display:none}.df-word:lang(en) .df-word-en{display:inline}
.df-captions{list-style:none;margin:0;padding:0;position:absolute;left:0;right:0;bottom:56px;text-align:center;pointer-events:none}
.df-captions li{position:absolute;left:0;right:0;bottom:0;padding:0 24px;opacity:0;transform:translateY(8px);transition:opacity .45s,transform .45s}
.df-captions li.is-on{opacity:1;transform:none}
.df-captions b{display:block;font-size:24px;font-weight:400;line-height:1.4;color:var(--df-ink)}
.df-captions span{display:block;margin-top:6px;font-size:12px;color:var(--df-mute)}
.df-captions b:lang(en){font-size:22px}.df-captions span:lang(en){font-size:14px}
.df-meter{position:absolute;left:50%;bottom:28px;width:120px;height:2px;margin-left:-60px;background:var(--df-rule)}
.df-meter i{display:block;height:100%;width:100%;background:var(--df-ink);transform-origin:0 50%;transform:scaleX(0)}

/* No WebGL or reduced motion: the art and the captions, plainly. */
.df-static .df-stage{height:auto}
.df-static .df-sticky{position:relative;height:auto;overflow:visible;padding:112px 24px 48px;display:flex;flex-direction:column;align-items:center;gap:24px}
.df-static .df-canvas,.df-static .df-meter,.df-static .df-word{display:none}
.df-static .df-fallback{display:block;width:min(100%,900px);height:auto}
.df-static .df-title{position:static;width:auto;height:auto;clip:auto;font-size:132px;line-height:1.05;font-weight:400;order:-1}
.df-static .df-captions{position:static;display:grid;gap:16px}
.df-static .df-captions li{position:static;opacity:1;transform:none}

/* Sections after the opening. */
.df-sec{padding-block:12vh 0}
.df-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px clamp(24px,5vw,80px);align-items:end;margin-bottom:40px}
.df-head h2{margin:0;font-size:clamp(36px,4.6vw,60px);line-height:1.1;font-weight:500}
.df-head p{margin:0;font-size:12px;line-height:2;color:var(--df-mute);max-width:30em}
.df-head p:lang(en){font-size:15px;line-height:1.6}

/* One wide photo (the art up close). */
.df-one{margin:0}
.df-one img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:14px}

/* Photo pairs (edge, base). */
.df-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.df-pair figure{margin:0}
.df-pair img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:14px}
.df-pair figcaption{margin-top:10px;font-size:12px;color:var(--df-mute)}
.df-pair figcaption:lang(en){font-size:14px}

@media(max-width:900px){
  .df-captions{bottom:96px}.df-meter{bottom:72px}
  .df-head{grid-template-columns:1fr}
  .df-pair{grid-template-columns:1fr}
  .df-static .df-title{font-size:84px}
}
@media(prefers-reduced-motion:reduce){.df-captions li{transition:none}}
