.head-motion{--hm-ink:#f8eddf;--hm-dim:#dbc6be;--hm-accent:#f2c691;--hm-rule:#aa7e674d;margin-block:clamp(34px,6vw,90px);scroll-margin-top:6rem}
.head-motion [hidden]{display:none!important}
.hm-shell{display:grid;grid-template-columns:minmax(0,.81fr) minmax(0,1.19fr);gap:clamp(22px,6vw,86px);align-items:center;position:relative;isolation:isolate;overflow:hidden;border:1px solid #58382f;border-radius:clamp(18px,3vw,32px);background:radial-gradient(ellipse at 10% 12%,#4b272a 0%,transparent 58%),linear-gradient(135deg,#281921,#1b141c 64%,#22181d);padding:clamp(18px,4.8vw,64px);color:var(--hm-ink);box-shadow:0 26px 52px #331e201f}
.head-motion a,.head-motion button{outline-offset:4px}
.head-motion :is(a,button,input):focus-visible{outline:2px solid var(--hm-accent)}
.hm-kicker{display:flex;align-items:center;gap:.7rem;color:var(--hm-accent);font-size:.76rem;letter-spacing:.13em;font-weight:740;margin:0 0 18px}
.hm-kicker span{display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;border:1px solid #d3a17b88;border-radius:50%;letter-spacing:0;font-variant-numeric:tabular-nums}
.head-motion h2{font:400 clamp(2.55rem,6.1vw,5.7rem)/.98 Georgia,serif;letter-spacing:-.062em;margin:0;color:var(--hm-ink);text-wrap:balance}
.head-motion h2 em{color:var(--hm-accent);font-weight:400}
.head-motion .hm-deck{font-size:clamp(1rem,1.5vw,1.1rem);line-height:1.57;color:var(--hm-dim);max-width:35ch;margin:20px 0 23px}
.head-motion .hm-link{display:inline-flex;align-items:center;min-height:48px;padding:9px 17px;border-radius:8px;background:var(--hm-accent);color:#27191f;font-size:.96rem;font-weight:780;text-decoration:none}
.head-motion .hm-link:hover{background:#ffe0b7}
.hm-free{font-size:.83rem;color:var(--hm-dim);margin:11px 0 0}
.hm-chapters{display:flex;flex-wrap:wrap;gap:0 18px;margin-top:14px}
.head-motion .hm-chapters a{display:inline-flex;align-items:center;min-height:44px;font-size:.94rem;color:var(--hm-accent);text-underline-offset:4px}
.hm-studio{min-width:0;overflow:hidden;border:1px solid var(--hm-rule);border-radius:18px;background:#21161f;box-shadow:0 18px 35px #10091055}
.hm-stage{position:relative;display:grid;place-items:center;overflow:hidden;isolation:isolate;aspect-ratio:1.43;background:radial-gradient(ellipse at 51% 53%,#78433d,#3c252d 42%,#1b141d 75%)}
.hm-stage:before{content:"";position:absolute;z-index:-1;inset:12% 18%;border:1px solid #d9a77938;border-radius:50%;background:repeating-radial-gradient(ellipse,#ffe3bc04 0 1px,transparent 1px 18px)}
.hm-plate{position:relative;width:min(88%,390px);aspect-ratio:1000/950}
.hm-plate img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 15px 13px #1d0b12b5)}
.hm-marker{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.hm-marker path{stroke:#f2c691;stroke-width:1.15px;vector-effect:non-scaling-stroke;fill:none}
#hm-halo{stroke:#f2c691;stroke-width:1px;vector-effect:non-scaling-stroke;fill:#f2c69127}
#hm-dot{fill:#ffdaac}
.hm-overlay{position:absolute;left:0;top:42%;color:#ffe3be;background:#21141ef2;border:1px solid #daaa7b88;border-radius:4px;padding:4px 7px;font-size:.7rem;font-weight:750;white-space:nowrap}
.hm-view{position:absolute;inset:auto 0 0;display:flex;justify-content:space-between;gap:6px;color:#efcfac;padding:9px 14px;background:#1c131be8;font-size:.68rem;font-weight:690;letter-spacing:.11em;border-top:1px solid var(--hm-rule)}
.hm-controls{padding:13px 15px 0;border-top:1px solid var(--hm-rule)}
.hm-actions,.hm-layer,.hm-steps{display:flex;flex-wrap:wrap;gap:6px}
.hm-actions{justify-content:space-between}
.head-motion button{border:1px solid #b48a7655;border-radius:7px;background:#30202c;color:var(--hm-ink);padding:6px 9px;font:650 .84rem/1.2 system-ui,sans-serif;min-height:42px}
.head-motion button:hover{border-color:var(--hm-accent)}
.head-motion button[aria-pressed=true],.head-motion .hm-play{background:#f2c691;color:#261a20;border-color:#f2c691}
.hm-play{display:inline-flex;align-items:center;gap:7px}
.hm-play-icon{width:0;height:0;border-block:5px solid transparent;border-left:8px solid currentColor}
.hm-play[data-running=true] .hm-play-icon{width:7px;height:10px;border:0;border-inline:2px solid currentColor}
.hm-timeline{margin-top:9px}
.hm-timeline input{display:block;accent-color:#f2c691;width:100%;margin:0 0 2px;height:23px}
.hm-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.head-motion .hm-steps button{text-align:center;min-width:0}
.hm-reading{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;align-items:baseline;margin:13px 15px 0;padding:13px 0 0;border-top:1px solid var(--hm-rule)}
.hm-reading-label{font-size:.7rem;letter-spacing:.075em;font-weight:750;color:var(--hm-accent);margin:0}
.head-motion h3{font:400 1.38rem/1.12 Georgia,serif;color:var(--hm-ink);margin:0}
.head-motion #hm-note-text{font-size:.92rem;color:var(--hm-dim);line-height:1.45;margin:5px 0 0}
.hm-credit,.hm-status{font-size:.78rem;line-height:1.45;color:var(--hm-dim);margin:11px 15px 14px}
.hm-status{margin:8px 0 0}
.head-motion .hm-credit a{color:var(--hm-accent);text-underline-offset:3px}
.polish-hero .head-motion-jump{display:inline-flex;align-items:center;min-height:42px;color:#50341d;font-size:.94rem;font-weight:750;text-underline-offset:4px;margin-inline-start:1.1rem}
@media(max-width:950px){.hm-shell{gap:24px}.hm-plate{width:min(86%,340px)}}
@media(max-width:730px){.hm-shell{grid-template-columns:minmax(0,1fr)}.hm-plate{width:min(81%,380px)}.hm-intro{padding:5px 3px}.hm-chapters{margin-top:4px}}
@media(max-width:380px){.hm-reading{grid-template-columns:1fr;gap:4px}.hm-layer{width:100%}.hm-view{font-size:.60rem}.hm-steps button{padding-inline:3px}.polish-hero .head-motion-jump{margin-inline-start:0;display:flex;width:max-content}}
/* Retain the study’s contrast against the parent site’s light-theme rules. */
:root .head-motion{scroll-margin-top:8.3rem}
:root .head-motion .hm-kicker,:root .head-motion .hm-reading-label,:root .head-motion h2 em{color:var(--hm-accent)}
:root .head-motion .hm-free,:root .head-motion .hm-credit,:root .head-motion .hm-status{color:var(--hm-dim)}
:root .head-motion button[aria-pressed=true],:root .head-motion .hm-play{color:#261a20}
:root .head-motion .hm-timeline input{accent-color:var(--hm-accent);color-scheme:dark}
@media(max-width:730px){.hm-plate{width:min(76%,380px)}:root .head-motion{scroll-margin-top:6.5rem}}
:root body .head-motion #head-motion-title em{color:#f2c691!important}
:root .head-motion button{min-height:44px}
