/* โลโก้แถบเมนู The Foundry Labs — เวกเตอร์บนพื้นโปร่ง ไม่มีกรอบ (25 พ.ย. 2569 · Claude ทำใหม่หลัง Ice ติว่าเล็กและมีกรอบ) */
.foundry-motion-logo{--fml-h:56px;display:inline-flex;align-items:center;gap:calc(var(--fml-h)*.2);height:var(--fml-h);min-width:0;white-space:nowrap}
.fml-mark{flex:none;display:block;width:var(--fml-h);height:var(--fml-h);overflow:visible}
.fml-spark{transform-origin:50px 50px;transform-box:view-box}
.fml-word{font:500 calc(var(--fml-h)*.5)/1 var(--font-mono,"IBM Plex Mono",ui-monospace,Menlo,monospace);letter-spacing:-.03em;color:var(--bone,#f2f0ea)}
.fml-word i{font-style:normal;color:#8b96a0}
.fml-word b{font-weight:500;background:var(--logo-dot,linear-gradient(135deg,#4FD6C4,#2E6BC4));-webkit-background-clip:text;background-clip:text;color:transparent}
header .logo.logo-anim{min-width:0;flex-shrink:1}
@media(min-width:941px) and (max-width:1260px){.foundry-motion-logo{--fml-h:46px}}
@media(max-width:940px){.foundry-motion-logo{--fml-h:42px}}
@media(max-width:360px){.foundry-motion-logo{--fml-h:36px}}

/* เล่น 1 รอบ ~1.9 วิ: วงเล็บกางออก → sparkle หมุนเข้าที่พร้อมแสงวาบ → คำโลโก้ไล่ขึ้นทีละส่วน · จบแล้วนิ่งเป็นโลโก้ปกติ */
.foundry-motion-logo.is-playing .fml-br{stroke-dasharray:120;animation:fml-draw 1s cubic-bezier(.2,.7,.2,1) both}
.foundry-motion-logo.is-playing .fml-spark{animation:fml-spark 1.3s cubic-bezier(.2,.8,.2,1) both}
.foundry-motion-logo.is-playing .fml-word{animation:fml-word 1.1s .55s cubic-bezier(.2,.7,.2,1) both}
@keyframes fml-draw{from{stroke-dashoffset:120;opacity:0}30%{opacity:1}to{stroke-dashoffset:0;opacity:1}}
@keyframes fml-spark{0%{transform:scale(0) rotate(-140deg);opacity:0;filter:brightness(2.2)}55%{transform:scale(1.18) rotate(8deg);opacity:1;filter:brightness(1.6)}100%{transform:none;opacity:1;filter:none}}
@keyframes fml-word{from{opacity:0;transform:translateX(-10px);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
@media(prefers-reduced-motion:reduce){.foundry-motion-logo.is-playing .fml-br,.foundry-motion-logo.is-playing .fml-spark,.foundry-motion-logo.is-playing .fml-word{animation:none}}
