.animation-hero{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center;padding-top:76px;padding-bottom:76px}.animation-hero h1{font-size:clamp(47px,5vw,75px)}.animation-hero-art{padding:20px;background:var(--soft);border:1px solid var(--line);box-shadow:12px 12px 0 var(--accent-soft)}.animation-hero-art img{width:100%;height:auto;border:1px solid var(--line)}.hero-animation-caption{display:flex;justify-content:space-between;align-items:center;margin-top:16px;gap:12px;font:11px Consolas,monospace}.hero-animation-caption button{padding:7px 12px;background:var(--surface);border:1px solid var(--line);color:var(--ink);font-size:11px}.animation-hero-art .small-note{margin:15px 0 0;font-size:11px;line-height:1.8}.animation-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:40px}.animation-card{text-align:left;padding:0;border:1px solid var(--line);background:var(--surface);color:var(--ink);min-width:0;transition:border-color .15s,transform .15s}.animation-card:hover{border-color:var(--accent);transform:translateY(-3px)}.animation-card[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}.animation-card img{width:100%;height:auto;border-bottom:1px solid var(--line)}.animation-card-copy{display:block;padding:18px}.animation-card-tag{display:flex;justify-content:space-between;gap:10px;font:10px Consolas,monospace;color:var(--accent);margin-bottom:11px}.animation-card strong{display:block;font-size:20px;line-height:1.25}.animation-card small{display:block;font-size:12px;line-height:1.8;color:var(--muted);margin-top:10px}.animation-detail{border-top:1px solid var(--line);padding-top:34px;scroll-margin-top:100px}.animation-detail-heading{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:24px}.animation-detail-heading h3{font-size:34px;margin:0}.animation-detail-heading>span{font:11px Consolas,monospace;color:var(--accent);white-space:nowrap}.animation-detail-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:35px;align-items:start}.animation-player{border:1px solid var(--line);background:var(--surface);min-width:0}.animation-player-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border-bottom:1px solid var(--line)}.animation-player-toolbar>span{font:10px Consolas,monospace;color:var(--muted)}.animation-player-controls{display:flex;gap:6px}.animation-player-controls button{border:1px solid var(--line);background:transparent;padding:6px 11px;font-size:11px}.animation-player-controls button[aria-pressed=true]{background:var(--ink);color:var(--bg)}.animation-enlarge{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.animation-enlarge img{width:100%;height:auto}.animation-player-metadata{border-top:1px solid var(--line);padding:11px 14px;font:10px Consolas,monospace;color:var(--muted);line-height:1.7}.animation-media-downloads{display:flex;gap:18px;padding:11px 14px;border-top:1px solid var(--line);font-size:12px;color:var(--accent)}.animation-explanation{font-size:14px;line-height:1.9}.animation-explanation h4{font-size:16px;margin:23px 0 10px}.animation-experiment{background:var(--soft);padding:17px;font-size:13px;line-height:1.8;border-left:2px solid var(--accent)}.animation-experiment p{margin:8px 0 0}.animation-code-area{margin-top:28px;border:1px solid var(--line);background:var(--surface);padding:26px;min-width:0}.animation-code-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.animation-code-heading h4{margin:0;font-size:21px}.animation-code-heading a{font-size:12px;color:var(--accent)}.animation-code-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}.animation-code-tabs button{padding:8px 13px;background:transparent;border:1px solid var(--line);font-size:12px}.animation-code-tabs button[aria-selected=true]{background:var(--ink);color:var(--bg)}.animation-code-context{padding:12px 16px;background:var(--soft);font-size:12px;line-height:1.8;border-left:2px solid var(--accent)}.animation-code-area .code-card{margin-top:15px}.animation-code-area .code-scroll{max-height:460px}.animation-code-area .code-scroll.short-code{max-height:none}.animation-code-note{font-size:12px;color:var(--muted);margin:16px 0 0;line-height:1.8}.animation-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:36px}.animation-steps article>span{font:28px Consolas,monospace;color:var(--accent)}.animation-steps h3{font-size:21px;margin:15px 0}.animation-steps p{font-size:14px;line-height:1.9}.animation-steps a{font-size:13px;color:var(--accent)}.animation-note{margin-top:28px;padding:20px 24px;background:var(--surface);border:1px solid var(--line);font-size:13px;line-height:1.9}.animation-note p{margin:8px 0 0}.animation-source{border:1px solid var(--line);background:var(--surface)}.animation-source>summary{display:flex;justify-content:space-between;gap:20px;padding:22px;cursor:pointer;font-size:15px}.animation-source>summary span{font-size:11px;color:var(--muted)}#animation-full-source{padding:0 22px 22px}#animation-full-source .code-scroll{max-height:650px}.animation-downloads{display:flex;flex-wrap:wrap;gap:20px;margin-top:20px;font-size:12px;color:var(--accent)}.animation-evidence{background:var(--soft);border-block:1px solid var(--line)}.animation-pipeline{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.animation-pipeline>div{border-top:1px solid var(--line);padding-top:20px}.animation-pipeline span{font:20px Consolas,monospace;color:var(--accent);display:block;margin-bottom:12px}.animation-pipeline strong{display:block;font-size:17px}.animation-pipeline p{font-size:13px;line-height:1.9;margin-top:12px}.animation-proof-note{font-size:12px;color:var(--muted);line-height:1.9;margin-top:20px;max-width:970px}.animation-related{display:flex;flex-wrap:wrap;gap:24px;border-top:1px solid var(--line);padding-top:24px;margin-top:30px;font-size:13px}#animation-image-dialog{width:min(900px,94vw)}#animation-full-image{width:100%;height:auto}
@media(max-width:1050px){.animation-hero{gap:30px}.animation-hero h1{font-size:54px}.animation-card-copy{padding:15px}.animation-card strong{font-size:18px}.animation-detail-grid{gap:24px}.animation-player-toolbar{flex-wrap:wrap}}
@media(max-width:760px){.animation-hero{grid-template-columns:1fr;padding-top:42px;padding-bottom:52px;gap:35px}.animation-hero-art{max-width:600px}.animation-card-grid{grid-template-columns:repeat(2,1fr);gap:14px}.animation-detail-grid,.animation-steps,.animation-pipeline{grid-template-columns:1fr;gap:25px}.animation-detail-heading{flex-direction:column;align-items:start;gap:16px}.animation-detail-heading h3{font-size:29px}.animation-code-area{padding:18px}.animation-source>summary{flex-direction:column;gap:10px}.animation-hero h1{font-size:48px}.header nav a:first-child{display:none}.header nav{gap:14px}}
@media(max-width:420px){.animation-hero h1{font-size:43px}.animation-card-grid{gap:10px}.animation-card-copy{padding:12px}.animation-card strong{font-size:15px}.animation-card small{font-size:11px}.animation-card-tag{font-size:8px}.animation-hero-art{padding:15px;box-shadow:7px 7px 0 var(--accent-soft)}.animation-code-heading{flex-direction:column;align-items:start;gap:10px}.animation-code-tabs button{font-size:11px;padding:8px 10px}.header nav a{font-size:11px}.hero-animation-caption{font-size:10px}.animation-downloads{gap:14px}.animation-card strong{overflow-wrap:anywhere}.animation-player-controls button{font-size:10px}}
