@font-face{font-family:Notebook Serif;src:url("./media/notebook-serif.woff") format("woff");font-weight:400;font-display:swap}
:root{
  color-scheme:light;--paper:#f6f2eb;--ink:#2b2925;--muted:#615c54;--line:#bdb4a7;--red:#aa4a39;
  --serif:"Notebook Serif","Songti SC","STSong","Noto Serif CJK SC","SimSun",serif;
  --sans:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  --ease:cubic-bezier(.22,.61,.25,1);font-family:var(--sans);background:var(--paper);color:var(--ink);
}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;overflow:hidden}
figure,h1,h2,p{margin:0}
button,input,a{font:inherit;color:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--red);outline-offset:4px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#show{position:relative;isolation:isolate;overflow:hidden;width:100%;height:100%;height:100dvh;background:var(--paper) url("./media/paper.webp") 50% 50% / 650px 305px;color:var(--ink);container-type:size}
#stage{position:absolute;inset:0;overflow:hidden}
.scene{position:absolute;inset:0;display:grid;place-items:center;visibility:hidden;opacity:0;pointer-events:none;
  z-index:0;transition:opacity .65s var(--ease),visibility 0s linear .65s;
}
.scene.active{visibility:visible;opacity:1;z-index:2;pointer-events:auto;transition-delay:0s}
.scene.previous{z-index:1}
.scene:not(.active):not(.previous){display:none}
.layout,.artwork{position:relative;width:min(100cqw,250cqh);height:min(100cqh,52cqw)}
.artwork{width:min(100cqw,232.85cqh);height:auto;aspect-ratio:1914/822;perspective:1400px;}
.artwork img{position:absolute;display:block;pointer-events:none;user-select:none}
.hero-leaf{left:5.49%;top:21.90%;width:56.90%;transform-origin:12% 67%}
.hero-title{left:62.17%;top:26.16%;width:32.60%}
#show[data-state=playing] [data-scene=intro].active .hero-leaf,
[data-scene=close].active .hero-leaf{animation:paper-lift 1.65s var(--ease) both}
#show[data-state=playing] [data-scene=intro].active .hero-title,
[data-scene=close].active .hero-title{animation:title-lock 1s var(--ease) .12s both}
@keyframes paper-lift{from{transform:translate(-.7%,2.6%) rotateY(-8deg) rotateZ(-1.25deg)}to{transform:none}}
@keyframes title-lock{from{opacity:.25;transform:translateY(.18em)}to{opacity:1;transform:none}}
.copy{position:absolute;z-index:2}
.copy h2{font:400 clamp(45px,6.3cqw,160px)/1.13 var(--serif);letter-spacing:-.055em}
.copy h2 span{display:block}
.copy p{font:500 clamp(14px,1.4cqw,30px)/1.55 var(--sans);letter-spacing:.025em;color:var(--muted);margin-top:1.65cqw}
.copy p.kicker{font-size:clamp(13px,1.38cqw,27px);color:var(--red);margin:0 0 1.1cqw .22em;letter-spacing:.12em}
.scene.active .copy{animation:copy-in .9s var(--ease) both}
@keyframes copy-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
/* The photographed sheet is the same physical object in the title and camera scenes. */
.capture-copy{left:10.8%;top:26.5%}
.capture-copy h2{font-size:clamp(58px,7.8cqw,178px)}
.photo-sheet,.proof-sheet,.daily-proof,.data-sheet,.practice-sheet{
  background:#f9f6ef url("./media/paper.webp") center/550px 258px;
  box-shadow:0 .12cqw .19cqw #3d322c19,0 1.1cqw 1.2cqw -.9cqw #32292165,0 2.0cqw 2.5cqw -1.5cqw #45362338;
}
.photo-sheet{position:absolute;left:41.5%;top:11%;width:48%;height:78%;padding:clamp(8px,.9cqw,22px);transform:rotate(-1.5deg);transform-origin:14% 76%}
.photo-window{width:100%;height:100%;background:#dbd2c1;overflow:hidden}
.photo-window video{width:100%;height:100%;display:block;object-fit:cover;object-position:50% 37%}
.photo-sheet:after,.proof-sheet:after,.practice-sheet:after{
  content:"";position:absolute;width:clamp(12px,1.8cqw,39px);aspect-ratio:1;border:solid var(--red);border-width:0 2px 2px 0;right:.31cqw;bottom:.3cqw;pointer-events:none
}
[data-scene=capture].active .photo-sheet{animation:landed-sheet 1.08s var(--ease) both}
@keyframes landed-sheet{from{transform:perspective(1300px) rotateY(-10deg) rotateZ(-4deg) translate(4%,3%);opacity:0}to{transform:rotate(-1.5deg);opacity:1}}
/* Registered source and cleaned images share the same optical coordinates. */
.model-figure{position:absolute;left:8.3%;top:50%;width:min(44%,89cqh);transform:translateY(-50%)}
.proof-sheet{position:relative;padding:clamp(7px,.75cqw,19px)}
#comparison{--wipe:0%;--lens-x:82.5%;--lens-y:43.5%;position:relative;width:100%;aspect-ratio:352/248;isolation:isolate;
  background:#ede7da}
#comparison>img{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;user-select:none}
.proof-clean{clip-path:inset(0 calc(100% - var(--wipe)) 0 0)}
.wipe-edge{position:absolute;left:clamp(0%,var(--wipe),100%);top:0;bottom:0;width:1.5px;z-index:2;background:var(--red);pointer-events:none}
.proof-target{position:absolute;left:var(--lens-x);top:var(--lens-y);width:12%;aspect-ratio:1;border:1px solid #985945;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
.proof-lens{position:absolute;right:-6%;bottom:4%;width:30%;aspect-ratio:1;border-radius:50%;z-index:3;overflow:hidden;
  box-shadow:0 0 0 1px #a67857,0 .38cqw .85cqw #30242036;background:#fff;}
.proof-lens,.lens-clean{background-image:url("./media/before.webp");background-repeat:no-repeat;background-size:600% auto;
  background-position:calc(var(--lens-x) * 1.2 - 10%) calc(var(--lens-y) * 1.31 - 15.5%);}
.lens-clean{position:absolute;inset:0;background-image:url("./media/after.webp");
  clip-path:inset(0 clamp(0%,calc(50% - (var(--wipe) - var(--lens-x)) * 6),100%) 0 0)}
.proof-key{display:flex;justify-content:space-between;padding:.6cqw .2cqw 0;color:var(--muted);font-size:clamp(13px,1.04cqw,22px)}
.proof-key span:last-child{color:#834839}
.model-copy{left:62.4%;top:29.4%}
.model-copy h2{font-size:clamp(48px,6.1cqw,144px)}
[data-scene=model].active .proof-sheet{animation:proof-unfold .95s var(--ease) both}
@keyframes proof-unfold{from{opacity:.2;transform:perspective(1200px) rotateY(7deg) translateX(-1.1%)}to{opacity:1;transform:none}}
/* A daily card is pinned by a single red bookmark to the white sheet. */
.daily-sleeve{position:absolute;left:13.0%;top:9.5%;height:81%;width:34%;display:grid;place-items:center}
.daily-proof{position:relative;height:100%;max-width:100%;aspect-ratio:432/762;padding:clamp(4px,.55cqw,14px);transform:rotate(-1.3deg)}
.daily-proof:before{content:"";position:absolute;z-index:2;right:13%;top:-1.8%;width:6.4%;height:8.1%;background:var(--red);clip-path:polygon(0 0,100% 0,100% 100%,50% 81%,0 100%)}
.daily-proof video,.practice-sheet video{display:block;width:100%;height:100%;object-fit:fill;background:#eeedef;}
.daily-copy{left:60.0%;top:21%}
.daily-copy h2{font-size:clamp(68px,8.1cqw,180px);line-height:1.03}
.daily-copy p{margin-top:1.25cqw}
[data-scene=daily].active .daily-proof{animation:bookmark .95s var(--ease) both}
@keyframes bookmark{from{opacity:.18;transform:translateY(8%) rotate(2.1deg)}to{opacity:1;transform:rotate(-1.3deg)}}
/* The count is copied from the same account whose two detail panels are shown. */
.stats-copy{left:12%;top:23%}
.stats-copy h2{font-size:clamp(41px,4.2cqw,100px)}
.data-count{margin-top:1.85cqw;display:flex;flex-direction:column;align-items:flex-start}
.data-count strong{font:400 clamp(75px,10.25cqw,220px)/.98 var(--serif);font-variant-numeric:lining-nums tabular-nums;letter-spacing:-.07em}
.data-count span{margin:.8cqw 0 0 .16em;font-size:clamp(13px,1.18cqw,25px);color:var(--muted)}
.data-desk{position:absolute;left:50%;top:11.2%;width:39%;height:77%;display:flex;flex-direction:column;align-items:stretch;gap:1.2cqw}
.data-controls{display:flex;align-items:center;justify-content:flex-start;gap:1.6cqw}
.data-controls button{padding:.3em 0 .4em;border:0;position:relative;background:none;color:var(--muted);font-weight:500;font-size:clamp(15px,1.65cqw,35px)}
.data-controls button:disabled{opacity:1;cursor:default}
.data-controls button[aria-pressed=true],.data-controls button[aria-selected=true]{color:var(--ink)}
.data-controls button[aria-pressed=true]:after,.data-controls button[aria-selected=true]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--red);transform:rotate(-1deg)}
.data-sheet{min-height:0;flex:1;align-self:flex-start;width:100%;padding:clamp(6px,.7cqw,16px);display:grid;place-items:stretch;background-color:#f8f5ee;overflow:hidden}
.stat-panel{min-height:0;display:flex;align-items:center;justify-content:center;background:#f1f0ed}
.stat-panel img{width:100%;height:100%;object-fit:contain;display:block}
.stat-panel.active img{animation:panel-open .32s ease-out both}
@keyframes panel-open{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:none}}
/* The practice recording and the enlarged mastery selector are true screen crops. */
.practice-copy{left:12.6%;top:17.2%}
.practice-copy h2{font-size:clamp(51px,6.0cqw,142px)}
.practice-copy p{margin-top:1.06cqw}
.mastery-snippet{width:min(24cqw,425px);margin:1.8cqw 0 0;padding:.27cqw;background:#fbf8f1;box-shadow:0 3px 9px #392c2021;opacity:clamp(0,calc((var(--progress,0) - .37) * 7),1);transform:translateY(calc((1 - clamp(0,(var(--progress,0) - .37) * 7,1)) * 8px))}
.mastery-snippet img{display:block;width:100%;height:auto}
.practice-sheet{position:absolute;left:59.8%;top:7.5%;height:85%;max-width:34%;aspect-ratio:432/888;padding:clamp(4px,.55cqw,14px);transform:rotate(1.2deg)}
[data-scene=practice].active .practice-sheet{animation:practice-slide .88s var(--ease) both}
@keyframes practice-slide{from{opacity:.2;transform:perspective(1300px) rotateY(-8deg) rotateZ(3deg) translate(3%,2%)}to{opacity:1;transform:rotate(1.2deg)}}
/* The operator's menu and all presenter controls live outside the artwork. */
.cover-actions{position:absolute;z-index:5;left:66%;top:76%;display:flex;justify-content:center;gap:.55rem}
.cover-actions:empty{display:none}
.cover-button{display:inline-flex;align-items:center;justify-content:center;gap:.6em;min-height:42px;padding:.52em 1.08em;border:1px solid #9c8a76;border-radius:2px;background:#f8f4ecb3;color:var(--ink);font-size:clamp(14px,1.1cqw,22px);font-weight:550;letter-spacing:.055em;transition:background .2s,border-color .2s}
.cover-button:hover{border-color:var(--red);background:#fff8ef}
.play-mark{display:block;width:0;height:0;border-style:solid;border-width:.30em 0 .30em .46em;border-color:transparent transparent transparent var(--red)}
#show[data-state=playing] .cover-actions,#show[data-state=paused] .cover-actions{display:none}
.stage-tools{position:absolute;top:max(13px,2.3cqh,env(safe-area-inset-top));right:max(14px,2.0cqw,env(safe-area-inset-right));z-index:10}
#controlsToggle{width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;color:#5c584f;opacity:.68;transition:opacity .2s}
#show[data-state=playing] #controlsToggle{opacity:.28}
#show #controlsToggle:hover,#show #controlsToggle:focus-visible,#show #controlsToggle[aria-expanded=true]{opacity:1}
.operator-icon{display:flex;flex-direction:column;gap:4px;align-items:flex-end;width:20px}
.operator-icon i{display:block;height:1.7px;width:100%;background:currentColor;border-radius:1px}.operator-icon i:nth-child(2){width:75%}.operator-icon i:nth-child(3){width:52%}
#controls{position:absolute;right:max(15px,2.8cqw,env(safe-area-inset-right));top:max(60px,7cqh);width:min(390px,calc(100% - 30px));max-height:calc(100% - 78px);overflow:auto;z-index:12;background:#fcfaf5f7;box-shadow:0 14px 50px #30292033;border:1px solid #cfc7b9;border-radius:4px;padding:18px;backdrop-filter:blur(12px)}
#controls header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
#controls h2{font:600 17px var(--sans)}
#controls button{border:1px solid #d6cfc2;background:transparent;border-radius:3px;min-height:36px;padding:5px 9px;font-size:14px}
#controls button:hover,#controls button[aria-current],#controls button[aria-pressed=true]{border-color:#a65a49;background:#f2e9df}
#controls .x-icon{border:0;min-width:36px;font-size:22px;padding:0}
.jumps,.operator-actions{display:flex;flex-wrap:wrap;gap:6px}
.timeline{display:flex;align-items:center;gap:9px;margin:14px 0;font-size:13px;font-variant-numeric:tabular-nums}.timeline input{min-width:0;flex:1;accent-color:var(--red)}
#back{display:inline-block;margin-top:16px;font-size:14px;text-decoration-thickness:1px;text-underline-offset:3px;color:var(--muted)}
#captions,.no-script{position:absolute;left:50%;transform:translateX(-50%);bottom:max(1.6cqh,env(safe-area-inset-bottom));z-index:8;max-width:min(84%,1200px);width:max-content;background:#fbf8f1ed;padding:.38em .84em;border:1px solid #d7cec0;color:var(--ink);line-height:1.5;text-align:center;font-size:clamp(15px,1.6cqw,29px);border-radius:3px}
#captions:empty{display:none}
#show[data-state=paused] .scene,#show[data-state=paused] .scene *{animation-play-state:paused}
.proof-key span:first-child{color:#834839}.proof-key span:last-child{color:var(--muted)}
.review-final{position:absolute;inset:clamp(4px,.55cqw,14px);display:block;width:calc(100% - 2 * clamp(4px,.55cqw,14px));height:calc(100% - 2 * clamp(4px,.55cqw,14px));object-fit:contain;background:#f3f2f5;opacity:clamp(0,calc((var(--progress,0) - .84) * 15),1);pointer-events:none}
@media(max-aspect-ratio:6/5){
  .layout,.artwork{width:100cqw;height:100cqh;aspect-ratio:auto}
  .artwork img{position:absolute}
  .hero-title{left:50%;top:16%;width:min(62%,42cqh);transform:translateX(-50%)}
  .hero-leaf{left:4%;top:48%;width:92%;max-height:33%;object-fit:contain}
  #show[data-state=playing] [data-scene=intro].active .hero-title,[data-scene=close].active .hero-title{animation:mobile-title .7s ease-out both}
  @keyframes mobile-title{from{opacity:.3;transform:translate(-50%,.25em)}to{opacity:1;transform:translateX(-50%)}}
  .cover-actions{top:auto;left:0;right:0;bottom:max(9cqh,40px)}
  .copy{left:8%;top:10%;right:8%}
  .copy h2,.capture-copy h2,.model-copy h2,.daily-copy h2,.practice-copy h2,.stats-copy h2{font-size:clamp(36px,9.4cqw,86px);line-height:1.14}
  .copy h2 span{display:inline}
  .capture-copy h2 span:before{content:"，"}
  .daily-copy h2 span:before{content:""}
  .model-copy h2 span:before,.practice-copy h2 span:before{content:" · ";font-size:.65em;color:var(--red)}
  .copy p,.daily-copy p,.practice-copy p{margin-top:.65em;font-size:clamp(14px,3.8cqw,22px)}
  .copy p.kicker{font-size:clamp(13px,3.5cqw,20px);margin:0 0 .7em}
  .photo-sheet{left:9%;top:32%;width:82%;height:50%;padding:2.15cqw}
  .photo-window video{object-position:50% 39%}
  .photo-sheet:after,.proof-sheet:after,.practice-sheet:after{width:3.8cqw;right:.5cqw;bottom:.5cqw}
  .model-figure{left:8%;top:54%;width:82%}
  .proof-sheet{padding:1.8cqw}
  .proof-key{font-size:clamp(13px,3.1cqw,18px);padding-top:.6em}
  .daily-sleeve{left:20%;width:60%;top:31%;height:58%}
  .daily-proof{padding:1.2cqw}
  .stats-copy{top:9%}
  .stats-copy h2{font-size:clamp(28px,6.4cqw,55px)}
  .data-count{margin-top:.36em;align-items:baseline;flex-direction:row;gap:1.6cqw}
  .data-count strong{font-size:clamp(54px,13cqw,98px)}
  .data-count span{font-size:clamp(12px,3cqw,18px)}
  .data-desk{left:8%;width:84%;top:34%;height:54%;gap:2.5cqw}
  .data-controls{gap:6cqw}
  .data-controls button{font-size:clamp(17px,4.5cqw,28px);min-height:42px}
  .data-sheet{padding:1.2cqw}
  .practice-copy{top:8%}
  .practice-sheet{left:30%;top:29%;height:55%;width:auto;max-width:56%;padding:1.1cqw}
  .mastery-snippet{position:absolute;top:60cqh;left:-2cqw;width:min(60cqw,350px);margin:0;z-index:3;padding:.6cqw}
  .review-final{inset:1.1cqw;width:calc(100% - 2.2cqw);height:calc(100% - 2.2cqw)}
  #captions{max-width:92%;font-size:clamp(14px,3.4cqw,21px);bottom:max(2.2cqh,env(safe-area-inset-bottom))}
}
@media(max-height:460px) and (min-aspect-ratio:6/5){
  .stage-tools{top:3px;right:8px}
  #controls{top:6px;right:55px;max-height:calc(100% - 12px)}
  .layout{height:100cqh}
  .copy h2,.capture-copy h2,.daily-copy h2,.model-copy h2,.practice-copy h2{font-size:min(7.2cqw,16cqh)}
  .cover-actions{top:75%}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-delay:0s!important;transition-duration:.001ms!important}
  .photo-sheet,.daily-proof,.practice-sheet{transform:none}
}
[data-scene=daily] .daily-copy p{opacity:0;transform:translateY(5px);transition:opacity .4s ease,transform .45s var(--ease)}
[data-scene=daily][data-detail=shown] .daily-copy p{opacity:1;transform:none}
