@font-face{font-family:PhysHand;src:url('assets/Caveat-VariableFont_wght.ttf') format('truetype');font-weight:400 700;font-display:swap}

/* One stable composition for all three chapters. */
.hero.hero-interactive{display:grid;grid-template-columns:340px minmax(0,1fr);gap:30px;max-width:1080px;margin-inline:auto;align-items:center;padding:28px 0 30px;text-align:left}
.hero-copy,.hero-showcase{min-width:0}
.hero-copy{display:flex;flex-direction:column;justify-content:flex-start;align-self:center;padding:0}
.hero-brand-signature{display:flex;flex-direction:column;align-items:flex-start;width:max-content;max-width:100%}
.hero-brand-mark{display:block;width:160px;height:160px;object-fit:contain;margin:0 0 -26px 18px;flex:none}
.hero.hero-interactive h1{position:relative;display:inline-block;font-family:PhysHand,cursive;font-size:96px;font-weight:650;line-height:1.02;letter-spacing:-4px;white-space:nowrap;margin:0 0 14px;transform:rotate(-3deg);color:var(--peach)}
.hero-interactive h1>span:last-of-type{color:var(--green)}
.hero-interactive h1 svg{position:absolute;bottom:-8px;left:4%;width:96%;height:18px;fill:none;stroke:#b5caa0;stroke-width:2.6;stroke-linecap:round}
.hero-paper-title{font-family:var(--hand);font-size:30px;line-height:1.27;color:#61564a}
.hero-paper-subtitle{font-size:13px;line-height:1.7;margin-top:10px;max-width:320px;color:#837668}
.hero-authorship{margin-top:14px;padding-left:12px;border-left:2px solid #c2d4ae;text-align:left}
.hero-author-list{list-style:none;display:grid;grid-template-columns:repeat(4,max-content);gap:6px 10px;margin:0;padding:0;font-family:ByteSans,Arial,sans-serif;font-size:12.5px;line-height:1.55;font-weight:500;color:#695849}
.hero-author-list li{white-space:nowrap}
.hero-authorship sup{position:relative;font-size:.66em;line-height:0;vertical-align:super;color:#85936f;margin-left:2px}
.hero-affiliations{display:grid;gap:5px;margin-top:10px;font-size:11px;line-height:1.6;color:#837668}
.hero-affiliations p{display:grid;grid-template-columns:10px minmax(0,1fr);gap:3px;line-height:inherit}
.hero-affiliations sup{font-size:8px;line-height:1.6;vertical-align:baseline;margin:0}
.hero-author-note{margin-top:8px;font-size:10px;line-height:1.5;color:#9a8d7c}
.hero-author-note sup{margin-left:0}
.hero-correspondence{margin-top:5px}
.hero-links{margin-top:14px}
.hero-interactive .resource-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;width:100%;max-width:none;min-height:0;margin:0}
.hero-interactive .resource-button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;height:44px;min-height:44px;padding:7px 10px;font-size:13px;line-height:1.2;border-radius:12px;border-style:solid}
.hero-interactive .resource-button svg{width:17px;height:17px;flex:none}
.hero-interactive .resource-label{min-width:0;text-align:left;overflow-wrap:normal;word-break:normal}
.hero-interactive .resource-label small{font-size:8px;line-height:1.3;letter-spacing:0;margin-top:3px;white-space:nowrap}
.hero-interactive .resource-button.unavailable{background:#fffdf880;border-color:#dfd6c8;color:#8b8071}
.hero-explore{display:flex;align-items:center;justify-content:flex-start;gap:10px;font-size:12px;color:#4b7786;padding:12px 1px 0;margin-top:2px}
.hero-explore span{font-size:22px;line-height:1;transition:transform .2s}
.hero-explore:hover span{transform:translateY(3px)}

.hero-showcase{position:relative;min-width:0;padding:16px 16px 0;border:1px solid #e0d8c9;border-radius:22px;background:linear-gradient(145deg,#fffefa,#f7f4ec);box-shadow:0 22px 55px -39px #82705c75;--hero-progress:0;--hero-accent:#47788c;--hero-glow:#dcebf066;--hero-input-width:92px;--hero-input-gap:12px}
.hero-showcase[data-hero-active=interaction]{--hero-accent:#688459;--hero-glow:#e7efd966}
.hero-showcase[data-hero-active=viewpoint]{--hero-accent:#b08b4d;--hero-glow:#fae9c466}
.hero-showcase::before{content:'';position:absolute;inset:50px -12px 70px 80px;border-radius:45% 50% 42% 20%;background:radial-gradient(ellipse at 70% 40%,var(--hero-glow),transparent 70%);z-index:-1;pointer-events:none}
.hero-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:14px;border-bottom:1px solid #e4ded1;padding-bottom:10px}
.hero-tabs button{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:41px;overflow:hidden;padding:8px 7px 11px;background:transparent;border:1px solid transparent;border-radius:8px;font-family:var(--hand);font-size:16px;line-height:1.2;white-space:nowrap;color:#8a7b6b;transition:background .18s,border-color .18s,color .18s}
.hero-tabs button>span{font:10px ByteSans,Arial,sans-serif;opacity:.65}
.hero-tabs button[aria-selected=true]{background:#e9f1e1;color:#5d7651;border-color:#b7c9a7}
.hero-tabs button:hover{background:#f0f3e7;color:#52694a}
.hero-tabs button[data-hero-case=lighting][aria-selected=true]{background:#e8f0f3;color:#47788c;border-color:#acc9d4}
.hero-tabs button[data-hero-case=viewpoint][aria-selected=true]{background:#f9eddb;color:#907755;border-color:#dbc6a3}
.hero-tabs button::after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:3px;background:currentColor;transform:scaleX(0);transform-origin:left;opacity:.8;pointer-events:none}
.hero-tabs button[aria-selected=true]::after{transform:scaleX(var(--hero-progress))}
.hero-workbench{display:grid;grid-template-columns:var(--hero-input-width) minmax(0,1fr);gap:var(--hero-input-gap);align-items:start}
.hero-inputs{display:flex;flex-direction:column;align-items:center;gap:9px;padding-top:3px}
.hero-input{width:100%;min-width:0;padding:0;background:transparent;cursor:zoom-in}
.hero-input-label{display:flex;justify-content:space-between;align-items:center;text-align:left;font-family:var(--hand);font-size:11px;line-height:1.25;margin-bottom:6px;white-space:nowrap}
.hero-input-label>span{font-size:14px;opacity:.55}
.hero-input img{display:block;width:100%;height:var(--hero-input-width);object-fit:contain;background:#f1efe6;border:1px solid #e4dccd;border-radius:9px;padding:4px;transition:transform .2s,box-shadow .2s}
.hero-input:hover img{transform:translateY(-2px);box-shadow:0 4px 14px #6b695018}
.hero-input-plus{font-family:PhysHand,cursive;font-size:24px;line-height:1;color:#a39886}
.hero-input-arrow{width:60px;height:30px;align-self:flex-end;fill:none;stroke:#9daf8b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transform:rotate(-12deg)}
.hero-output{min-width:0}
.hero-result{position:relative;display:block;width:100%;height:auto;aspect-ratio:4/3;padding:0;box-sizing:border-box;background:#f2eee5;border:1px solid #ded6c8;border-radius:11px;overflow:hidden;cursor:zoom-in;box-shadow:0 10px 25px -18px #7362455c}
.hero-result img{display:block;width:100%;height:100%;object-fit:contain}
.hero-zoom{position:absolute;bottom:10px;right:10px;width:28px;height:28px;background:#fffaf0d9;border:1px solid #fff9;border-radius:7px;display:grid;place-items:center;font-size:18px;color:#6b6658;z-index:3}
.hero-result:hover .hero-zoom{background:#fff}
.hero-caption{display:block;height:78px;min-height:78px;padding:15px 0 0;box-sizing:border-box}
.hero-caption-index{display:none}
.hero-caption h2{font-family:var(--hand);font-size:20px;font-weight:400;line-height:1.3;margin:0 0 5px;color:#606d58}
.hero-caption p{font-size:11px;line-height:1.65;color:#8a7b69;max-width:620px}
.hero-load-status{position:absolute;right:12px;top:88px;z-index:4;background:#fffaf0ee;border:1px solid #d8d3bf;border-radius:7px;padding:7px 12px;font-size:11px;box-shadow:0 2px 8px #65563115}
.hero-load-status[hidden]{display:none}

/* The unchanged model image and illustrative paste share one fitted canvas. */
.hero-scene-canvas,.hero-chapter-outgoing{display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);overflow:hidden;pointer-events:none;background:#f1eee5}
.hero-scene-canvas #hero-result-image{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:1}
.hero-paste-composite{position:absolute;inset:0;display:block;overflow:hidden;pointer-events:none}
.hero-result .hero-paste-scene{position:absolute;max-width:none;object-fit:fill;pointer-events:none}
.hero-result .hero-paste-object{position:absolute;max-width:none;object-fit:contain;object-position:center;mask-size:contain;mask-position:center;mask-repeat:no-repeat;mask-mode:alpha;-webkit-mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;pointer-events:none}
.hero-chapter-outgoing{z-index:2}
.hero-chapter-outgoing>img{display:block;position:absolute;inset:0;object-fit:contain;width:100%;height:100%;z-index:1}
.hero-demo-controls[hidden],.hero-paste-note[hidden],.hero-paste-composite[hidden],#hero-result-label[hidden],.hero-scrubber[hidden]{display:none!important}
.hero-scrubber{padding:12px 0 0;min-height:42px}
.hero-demo-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:30px}
.hero-phase-controls{display:flex;align-items:center;gap:9px;flex:1;min-width:0;font-family:var(--hand)}
.hero-phase-controls button{font-family:inherit;font-size:12px;line-height:1.3;white-space:nowrap;padding:4px 0;border:0;border-radius:0;background:transparent}
.hero-phase-controls button[data-hero-phase=paste]{color:#b78371}
.hero-phase-controls button[data-hero-phase=ours]{color:#728d60}
.hero-phase-controls button[aria-pressed=true]{text-decoration:underline;text-underline-offset:5px}
.hero-phase-controls button:disabled{opacity:.4;cursor:default}
.hero-phase-controls button:focus-visible,.hero-replay:focus-visible{outline:2px solid var(--hero-accent);outline-offset:3px}
.hero-output-controls{display:flex;gap:6px;align-items:center;flex:none}
.hero-autoplay,.hero-replay{display:grid;place-items:center;width:30px;height:30px;min-width:30px;min-height:30px;border:0;border-radius:7px;background:#f0ece2;color:var(--ink);line-height:1;padding:7px}
.hero-autoplay[hidden]{display:none}
.hero-autoplay:hover,.hero-replay:hover{color:var(--hero-accent);background:#e9e5da}
.hero-autoplay:focus-visible{outline-color:var(--hero-accent)}
.hero-autoplay .hero-play-label{display:none}
.hero-replay{font-size:20px;padding:0}
.hero-play-icon{width:10px;height:11px;position:relative;display:block}
.hero-play-icon::before,.hero-play-icon::after{content:'';position:absolute;top:1px;width:3px;height:10px;border-radius:1px;background:currentColor}
.hero-play-icon::before{left:1px}.hero-play-icon::after{right:1px}
.hero-autoplay[data-mode=play] .hero-play-icon::before{width:0;height:0;left:2px;top:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:8px solid currentColor;border-radius:0;background:none}
.hero-autoplay[data-mode=play] .hero-play-icon::after{display:none}
#hero-blend-slider{--thumb:16px;flex:1;min-width:36px;width:100%;height:30px;margin:0;padding:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:ew-resize;touch-action:pan-y}
#hero-blend-slider::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(to right,#9eb681 var(--hero-slider-progress,0%),#dfd7c9 var(--hero-slider-progress,0%))}
#hero-blend-slider::-moz-range-track{height:4px;border-radius:4px;background:linear-gradient(to right,#9eb681 var(--hero-slider-progress,0%),#dfd7c9 var(--hero-slider-progress,0%))}
#hero-blend-slider::-webkit-slider-thumb{-webkit-appearance:none;width:var(--thumb);height:var(--thumb);margin-top:-6px;border:2px solid #fffcf6;border-radius:50%;background:#819d68;box-shadow:0 0 0 1px #819d6880,0 2px 4px #61564a20}
#hero-blend-slider::-moz-range-thumb{width:12px;height:12px;border:2px solid #fffcf6;border-radius:50%;background:#819d68;box-shadow:0 0 0 1px #819d6880}
#hero-blend-slider:focus-visible{outline:2px solid #91ab7a;outline-offset:3px;border-radius:5px}
#hero-blend-slider:disabled{opacity:.4;cursor:default}


@media(min-width:1500px){
 .hero.hero-interactive{max-width:1160px;grid-template-columns:360px minmax(0,1fr);gap:40px;padding-top:38px}
 .hero-brand-mark{width:198px;height:198px;margin:0 0 -33px 9px}
 .hero.hero-interactive h1{font-size:102px}
 .hero-paper-title{font-size:32px}
 .hero-showcase{--hero-input-width:104px;padding:18px 18px 0}
}
@media(min-width:861px) and (max-width:1100px){
 .hero.hero-interactive{grid-template-columns:280px minmax(0,1fr);gap:22px;padding:22px 0 28px}
 .hero-brand-mark{width:150px;height:150px;margin:0 0 -24px 6px}
 .hero.hero-interactive h1{font-size:78px;letter-spacing:-3px;margin-bottom:19px}
 .hero-paper-title{font-size:26px}
 .hero-paper-subtitle{font-size:12px;line-height:1.65;margin-top:12px}
 .hero-author-list{font-size:12px;grid-template-columns:repeat(3,max-content);column-gap:13px}
 .hero-authorship{margin-top:15px}
 .hero-affiliations{font-size:10px}
 .hero-links{margin-top:16px}
 .hero-interactive .resource-button{height:46px;min-height:46px;padding:7px 6px;font-size:12px;gap:6px}
 .hero-interactive .resource-button svg{width:15px;height:15px}
 .hero-interactive .resource-label small{font-size:7px}
 .hero-showcase{--hero-input-width:80px;--hero-input-gap:10px;padding:13px 13px 0;border-radius:18px}
 .hero-tabs{gap:5px;margin-bottom:12px;padding-bottom:8px}
 .hero-tabs button{font-size:14px;gap:5px;padding:7px 3px 10px;min-height:38px}
 .hero-input-label{font-size:10px}
 .hero-input-arrow{width:48px;height:26px}
 .hero-phase-controls{gap:6px}
 .hero-phase-controls button{font-size:10px}
 .hero-demo-controls{gap:8px}
 .hero-caption{height:78px;min-height:78px;padding-top:13px}
 .hero-caption h2{font-size:18px}
 .hero-caption p{font-size:10px}
}
@media(max-width:860px){
 .hero.hero-interactive{display:flex;flex-direction:column;gap:0;padding:24px 0 28px}
 .hero-copy{display:contents}
 .hero-lead{order:1;text-align:center}
 .hero-brand-signature{margin-inline:auto}
 .hero-authorship{max-width:360px;margin:20px auto 0}
 .hero-brand-mark{width:166px;height:166px;margin:0 0 -27px 10px}
 .hero.hero-interactive h1{font-size:90px;letter-spacing:-3px;margin-bottom:22px}
 .hero-paper-title{font-size:25px}
 .hero-paper-title br{display:none}
 .hero-paper-subtitle{font-size:12px;margin:11px auto 0;max-width:440px}
 .hero-showcase{order:2;width:100%;margin-top:25px;--hero-input-width:100px;--hero-input-gap:14px}
 .hero-caption{height:88px;min-height:88px}
 .hero-links{order:3;width:100%;max-width:420px;margin:20px auto 0}
 .hero-explore{justify-content:center}
}
@media(max-width:540px){
 .hero.hero-interactive{padding-top:19px}
 .hero-brand-mark{width:148px;height:148px;margin:0 0 -24px 9px}
 .hero.hero-interactive h1{font-size:80px}
 .hero-paper-title{font-size:23px}
 .hero-paper-subtitle{font-size:11px;line-height:1.6;max-width:330px}
 .hero-showcase{padding:12px 10px 0;border-radius:17px;margin-top:23px}
 .hero-tabs{gap:3px;padding-bottom:8px;margin-bottom:12px}
 .hero-tabs button{font-size:13px;gap:4px;padding:7px 2px 10px;min-height:38px}
 .hero-tabs button>span{font-size:9px}
 .hero-workbench{display:flex;flex-direction:column;gap:13px}
 .hero-inputs{flex-direction:row;justify-content:center;gap:17px;width:100%;padding:0}
 .hero-input{width:98px}
 .hero-input img{height:78px}
 .hero-input-label{font-size:10px;margin-bottom:5px}
 .hero-input-plus{padding-top:17px}
 .hero-input-arrow{display:none}
 .hero-output{width:100%}
 .hero-scrubber{padding-top:9px;min-height:39px}
 .hero-phase-controls{gap:6px}
 .hero-phase-controls button{font-size:10px}
 .hero-demo-controls{gap:8px}
 .hero-output-controls{gap:5px}
 .hero-autoplay,.hero-replay{width:27px;height:27px;min-height:27px;min-width:27px}
 .hero-caption{height:100px;min-height:100px;padding-top:13px}
 .hero-caption h2{font-size:19px}
 .hero-caption p{font-size:11px}
 .hero-links{max-width:360px;margin-top:18px}
 .hero-load-status{top:170px;right:10px;font-size:10px}
}
@media(max-width:360px){
 .hero-author-list{grid-template-columns:repeat(3,max-content);font-size:12px;column-gap:13px}
 .hero-brand-mark{width:134px;height:134px;margin-left:8px;margin-bottom:-22px}
 .hero.hero-interactive h1{font-size:72px}
 .hero-paper-title{font-size:21px}
 .hero-interactive .resource-button{font-size:12px;padding:8px 7px;gap:5px}
 .hero-interactive .resource-label small{font-size:7px}
 .hero-caption{height:108px;min-height:108px}
}
@media(prefers-reduced-motion:reduce){.hero-tabs button,.hero-input img,.hero-explore span{transition:none}}
