/* Shared motion language: layered paper, warm light, quiet but visible movement. */
.studio-motion{position:relative;width:200px;height:180px;isolation:isolate;perspective:700px}
.motion-halo{position:absolute;inset:14px -8px;border-radius:50%;background:radial-gradient(ellipse,#e7cfaa70,transparent 70%);transform:scale(.95)}
.motion-sheet{position:absolute;left:47px;top:23px;width:106px;height:134px;border-radius:14px;border:1px solid #d6d8cc;box-shadow:0 10px 22px #39432c0b;transform-origin:50% 88%;background:#e4e9d9}
.sheet-back{transform:rotate(-18deg) translateX(-15px);background:#d5dec9}.sheet-middle{transform:rotate(13deg) translateX(15px);background:#ead8bf;border-color:#dbc5a7}
.sheet-front{background:#fffdf7;transform:rotate(-3deg);display:flex;flex-direction:column;align-items:center;padding:22px 16px;overflow:hidden}
.sheet-mark{display:grid;place-items:center;font-family:serif;font-size:34px;color:#718060;width:46px;height:49px;border-radius:50% 50% 42% 42%;background:#e9edde}
.sheet-rule{width:64px;height:4px;border-radius:5px;background:#ccc6b6;margin-top:15px}.sheet-rule.short{width:43px;height:3px;margin-top:7px;background:#ddd6c8}.sheet-dot{position:absolute;right:12px;bottom:11px;width:7px;height:7px;border-radius:50%;background:#cd9d6a}
.motion-spark{position:absolute!important;width:5px!important;height:5px!important;border-radius:50%!important;background:#b6a178!important;transform:none;top:26px;left:24px}
.spark-two{top:137px;left:179px;background:#93a279!important}.spark-three{top:55px;left:182px;width:3px!important;height:3px!important}
.creation-motion{display:block;height:180px;margin:0 0 14px}.creation-motion i{animation:none;transform:none}.creation-motion.active i{animation:none}
.creation-motion.active .sheet-front{animation:studio-float 3.8s ease-in-out infinite}.creation-motion.active .sheet-back{animation:studio-back 5s ease-in-out infinite}.creation-motion.active .sheet-middle{animation:studio-middle 5s ease-in-out infinite}
.creation-motion.active .motion-halo{animation:studio-glow 4s ease-in-out infinite}.creation-motion.active .motion-spark{animation:studio-spark 2.8s ease-in-out infinite}.creation-motion.active .spark-two{animation-delay:.8s}.creation-motion.active .spark-three{animation-delay:1.5s}
.studio-motion[data-stage=generating] .sheet-mark{background:#f1dfc7;color:#a17c49}.studio-motion[data-stage=writing_report] .sheet-mark{background:#dde7e0;color:#55756c}
.creation-motion.active [data-stage=writing_report] .sheet-rule,.creation-motion.active [data-stage=rendering_report] .sheet-rule{transform-origin:left;animation:studio-write 2.6s ease-in-out infinite}.creation-motion.active [data-stage=writing_report] .short{animation-delay:.3s}
.progress-steps li.active>span{position:relative;border-color:#819268;background:#e6eddb}.progress-steps li.active>span:after{content:'';position:absolute;inset:-5px;border:1px solid #819268;border-radius:50%;animation:studio-pulse 2s ease-out infinite}
.progress-steps li.active small{color:#65734e}.progress-steps li{transition:color .35s}.progress-steps li.active{color:#38492f}
@keyframes studio-float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-4px) rotate(-1deg)}}
@keyframes studio-back{0%,100%{transform:rotate(-18deg) translateX(-15px)}50%{transform:rotate(-21deg) translate(-17px,-2px)}}
@keyframes studio-middle{0%,100%{transform:rotate(13deg) translateX(15px)}50%{transform:rotate(17deg) translate(17px,-3px)}}
@keyframes studio-glow{50%{transform:scale(1.15);opacity:.55}}
@keyframes studio-spark{0%,100%{transform:translateY(4px) scale(.75);opacity:.25}50%{transform:translateY(-7px) scale(1.15);opacity:.9}}
@keyframes studio-write{0%,100%{transform:scaleX(.6);opacity:.5}55%{transform:scaleX(1);opacity:1}}
@keyframes studio-pulse{from{transform:scale(.85);opacity:.7}to{transform:scale(1.5);opacity:0}}
.report-ready{min-height:calc(100dvh - 180px);padding:45px 20px 64px;display:flex;flex-direction:column;align-items:center;text-align:center}
.report-ready>.eyebrow{margin-bottom:0;color:#86755a}.report-ready .studio-motion{width:200px;height:200px;margin:8px auto 15px}.report-ready .motion-sheet{top:33px}.report-ready h1{font-family:'Songti SC',serif;font-size:clamp(32px,5vw,45px);line-height:1.4;margin:12px 0 16px}.report-ready .ready-kicker{color:#738063;font-size:14px;letter-spacing:.08em}.report-ready>p{font-size:16px}.report-ready .button{margin-top:30px;padding:15px 32px;min-width:230px;min-height:54px;font-size:17px;box-shadow:0 9px 24px #da772221}.report-ready .button span{transition:transform .25s}.report-ready .button:hover span{transform:translate(3px,-3px)}.report-ready p.ready-note{font-size:13px;margin:22px 0 8px;color:#85887f}
.report-ready .sheet-back{animation:ready-back .8s cubic-bezier(.2,.75,.2,1) both}.report-ready .sheet-middle{animation:ready-middle .8s .08s cubic-bezier(.2,.75,.2,1) both}.report-ready .sheet-front{animation:ready-front .75s cubic-bezier(.2,.75,.2,1) both}
@keyframes ready-back{from{transform:rotate(0);opacity:.3}to{transform:rotate(-18deg) translateX(-15px);opacity:1}}
@keyframes ready-middle{from{transform:rotate(0);opacity:.3}to{transform:rotate(13deg) translateX(15px);opacity:1}}
@keyframes ready-front{from{transform:translateY(20px) rotate(-3deg);opacity:0}to{transform:translateY(0) rotate(-3deg);opacity:1}}
/* Product motion: reading stays still; images, surfaces and state feedback have distinct roles. */
:root{--motion-ease:cubic-bezier(.22,.68,0,1);--motion-fast:160ms;--motion-panel:260ms}
#main .reveal{animation:none}.home-hero:before{animation:none}
#main .button,#header a,#header button,#main .choice-card,.tabs button,.account-nav a,.amount-presets button{transition:background-color var(--motion-fast),border-color var(--motion-fast),color var(--motion-fast),box-shadow var(--motion-fast)}
#main .button:hover,#main .button:active,#header a:active,#main .choice-card:hover,#main .choice-card:active,#main .work-card:hover,#main .product-card:hover{transform:none}
#main .button:active,#header .mobile-menu:active{box-shadow:inset 0 0 0 100px #32372c18}
#main .entry-card,#main .work-card,#main .product-card{transition:box-shadow var(--motion-panel)}
@media(hover:hover){#main .entry-card:hover,#main .work-card:hover{box-shadow:0 8px 24px #34392c0c}}
#main .choice-card{position:relative;overflow:hidden}#main .choice-card:has(input:checked){background:#eef2e7;border-color:#7f916b;box-shadow:inset 0 0 0 1px #7f916b}
.choice-card:after{content:'✓';position:absolute;right:9px;top:8px;width:20px;height:20px;line-height:20px;text-align:center;border-radius:50%;font-size:12px;color:white;background:#62744a;opacity:0;transition:opacity var(--motion-fast);pointer-events:none}.choice-card:has(input:checked):after{opacity:1}.season-grid .choice-card:after{right:4px;top:4px;width:15px;height:15px;line-height:15px;font-size:10px}
#main .amount-presets .selected{background:#e7eddf;color:#415234;border-color:#83966c;box-shadow:inset 0 0 0 1px #83966c}
.dropzone{transition:border-color var(--motion-fast),background-color var(--motion-fast),box-shadow var(--motion-fast)}.dropzone.dragging{transform:none;background:#edf1e8;box-shadow:inset 0 0 0 2px #83966c}
input,textarea,select{transition:border-color var(--motion-fast),box-shadow var(--motion-fast)}input:focus,textarea:focus{box-shadow:0 0 0 3px #83926c18}
#mobile-nav:not([hidden]){animation:none;overflow:hidden;box-sizing:border-box}.menu-lines{transition:background-color var(--motion-fast)}
#dialog[open]{animation:panel-enter var(--motion-panel) var(--motion-ease)}#dialog::backdrop{animation:backdrop-enter var(--motion-panel) ease-out;background:#20241d55;backdrop-filter:none}#dialog.motion-closing::backdrop{animation:backdrop-exit 180ms ease-in forwards}
@keyframes panel-enter{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes backdrop-enter{from{background:#20241d00}to{background:#20241d55}}
@keyframes backdrop-exit{from{background:#20241d55}to{background:#20241d00}}
/* The completed paper becomes the first report image. One surface carries the transition. */
dialog.report-reveal{position:fixed;inset:0;margin:0;padding:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;background:transparent;overflow:hidden;animation:none;color:var(--ink)}
dialog.report-reveal::backdrop{background:transparent;animation:none;backdrop-filter:none}
.reveal-backdrop{position:absolute;inset:0;background:#fafaf9}
.reveal-portrait{position:fixed;overflow:hidden;background:#fffdf7;border-radius:14px;box-shadow:0 12px 48px #44452f16;transform-origin:0 0}
.reveal-portrait img{position:absolute;inset:0;width:100%;height:100%}.reveal-paper{position:absolute;inset:0;display:grid;place-content:center;color:#718060;font:46px Georgia,serif;background:#fffdf7;border:1px solid #dddccf;border-radius:inherit}
.reveal-status{position:absolute;bottom:max(100px,env(safe-area-inset-bottom));width:100%;text-align:center;font-size:15px;color:#65705a}.reveal-status h2{font-size:20px;line-height:1.6;margin-bottom:8px}.reveal-status p{font-size:14px}.reveal-cancel{position:absolute;bottom:max(30px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);min-height:48px;min-width:112px;border:1px solid #cdd0c5;border-radius:30px;padding:10px 20px;background:#fafaf9;color:#616958}
.report-reveal.revealing .reveal-status{opacity:0;transition:opacity 150ms}.report-reveal #reveal-title:focus{outline:none}
body[data-page=progress] .progress-art:after{display:none}
@media(max-width:700px){.progress-page{padding-top:24px}.progress-copy h1{font-size:28px;margin-bottom:14px}.progress-copy .creation-motion{height:165px;margin-bottom:8px}.progress-copy .studio-motion{height:165px}.progress-steps{padding:12px 0;margin:8px 0}.progress-steps li{padding:10px 0}.report-ready{padding-top:26px}.report-ready .studio-motion{height:180px;margin-top:0}.report-ready .motion-sheet{top:23px}.report-ready .button{margin-top:24px}#dialog[open]{width:calc(100% - 24px);max-width:500px;border-radius:22px}}
body[data-motion-paused=true] #main *,body[data-motion-paused=true] #main *:before,body[data-motion-paused=true] #main *:after{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){#main *,#main *:before,#main *:after,#mobile-nav,#dialog,#dialog::backdrop,.report-reveal *{animation:none!important;transition:none!important}}

/* The reserved image surface stays visible while its image bytes decode. */
.report-image-loading{background:#e9e7df}
