@view-transition { navigation:auto; }
* { box-sizing:border-box; }
body { margin:auto; max-width:1500px; padding:0 clamp(18px,5vw,76px); background:white; color:#191c20; font:16px/1.6 Arial,"Microsoft YaHei",sans-serif; }
header,footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid #c8cdd2; }
footer { border-top:1px solid #c8cdd2; border-bottom:0; margin-top:48px; }
a { color:inherit; text-underline-offset:4px; }
.brand { font-size:30px; font-weight:bold; letter-spacing:-.055em; }
h1 { line-height:1.04; font-size:clamp(40px,6vw,92px); letter-spacing:-.055em; font-weight:500; margin:.25em 0; }
h2 { font-size:clamp(26px,3vw,44px); font-weight:500; line-height:1.15; margin:0 0 18px; }
.case-kicker,figcaption,.mode-description { color:#465364; }
.pixel-lead { font-size:clamp(18px,2vw,26px); max-width:29ch; }
.pixel-intro { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:clamp(24px,5vw,80px); padding:clamp(28px,7vw,88px) 0; }
.pixel-intro img { display:block; justify-self:center; width:auto; height:auto; max-width:100%; max-height:min(61svh,560px); }
.pixel-section { border-top:1px solid #c8cdd2; padding:clamp(24px,4vw,56px) 0; }
.pixel-section > p { max-width:68ch; margin:0; }
.visual-grid,.poster-pair,.workflow,.gallery { display:grid; gap:clamp(8px,2vw,26px); }
.visual-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
.poster-pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
.visual-grid figure,.gallery figure { margin:0; min-width:0; }
.visual-grid img,.poster-pair img { display:block; width:100%; height:auto; }
.visual-grid figcaption { margin-top:8px; line-height:1.35; }
.visual-grid figcaption span { display:block; font-size:.86em; }
.workflow { grid-template-columns:repeat(3,minmax(0,1fr)); padding:0; list-style:none; }
.workflow li { border-top:1px solid #c8cdd2; padding-top:12px; }
.workflow p { margin:.35rem 0 0; }
.gallery { grid-template-columns:repeat(4,minmax(0,1fr)); }
.gallery img { display:block; width:auto; height:auto; max-width:100%; max-height:245px; }
.gallery figcaption { margin-top:8px; }
.pixel-lab { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(18px,4vw,54px); align-items:start; max-width:1050px; margin-inline:auto; }
.live-sample { display:grid; place-items:center; }
.live-sample canvas { display:block; width:auto; height:auto; max-width:100%; max-height:min(67svh,660px); }
.panel { display:grid; gap:14px; min-width:0; padding:clamp(14px,2vw,24px); border:1px solid #c8cdd2; }
.panel h3,.mode-description,.live-status { margin:0; }
.live-status:empty { display:none; }
.live-modes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.panel button,.live-upload { font:inherit; line-height:1.3; border:1px solid #aeb9c4; border-radius:4px; background:white; padding:8px; color:inherit; cursor:pointer; }
.panel button[aria-pressed=true] { color:white; background:#20282f; border-color:#20282f; }
.panel button:not([aria-pressed=true]):hover,.live-upload:hover { background:#eef3f8; }
.mode-params { display:grid; gap:10px; }
.mode-params label { display:grid; grid-template-columns:1fr auto; gap:2px 8px; }
.mode-params input[type=range] { grid-column:1/-1; width:100%; margin:0; }
.mode-params output { font-variant-numeric:tabular-nums; }
.panel input { accent-color:#354e66; }
.audio-tools:not([hidden]),.actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.audio-tools audio { width:100%; }
.live-upload { position:relative; display:inline-block; }
.live-upload input { position:absolute; inset:0; width:100%; opacity:0; cursor:pointer; }
.live-upload:focus-within,:focus-visible { outline:2px solid #305477; outline-offset:3px; }
.launch a { display:inline-block; border-bottom:1px solid currentColor; text-decoration:none; }
@media (max-width:820px) {
  .visual-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:650px) {
  .pixel-intro,.pixel-lab,.workflow { grid-template-columns:1fr; }
  .pixel-intro img,.live-sample canvas { max-height:50svh; }
  .gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion:reduce) { ::view-transition-group(*) { animation-duration:0s; } }
