/* Fableprint brand mark v1.7: layered logo (arc, F, star) with intro, header, refresh and footer animations.
   Motion rules: transform and opacity only. One documented exception: the arc "draw" uses a registered custom
   property on a single mask for about 1.1s during the intro; browsers without @property fade it in instead. */
@property --fp-sweep{syntax:'<angle>';inherits:false;initial-value:0deg}
:root{--fp-ease:cubic-bezier(0.22,1,0.36,1);--fp-ice:#C8D3FF;--fp-glow:#5B7CFF;
  --fp-cx:37.9%;--fp-cy:46.4%;--fp-star-x:58.3%;--fp-star-y:60%}

/* ---------- shared mark layers ---------- */
.fp-mark,.brand-mark,.footer-mark__art{position:relative;display:block;aspect-ratio:1}
.fp-mark img,.brand-mark img,.footer-mark__art img{position:absolute;inset:0;width:100%;height:100%;display:block;user-select:none;pointer-events:none;-webkit-user-drag:none}
.fp-mark__arc,.brand-mark__arc,.footer-mark__arc{transform-origin:var(--fp-cx) var(--fp-cy)}
.fp-mark__star,.brand-mark__star,.footer-mark__star{transform-origin:var(--fp-star-x) var(--fp-star-y)}

/* ---------- INTRO (arrival-intro only; loader is display:none otherwise) ---------- */
.intro-loader__inner{display:grid;justify-items:center;width:max-content;max-width:90vw}
.intro-loader__inner .intro-loader__name,.intro-loader__inner .intro-loader__line{justify-self:stretch}
.fp-mark{width:clamp(150px,36vw,300px);margin:0 auto 1.1rem;isolation:isolate}
.fp-mark__glow{position:absolute;inset:6% 0 0 6%;border-radius:50%;background:radial-gradient(circle at 42% 52%,rgba(91,124,255,.38),rgba(91,124,255,0) 66%);opacity:0;z-index:0}
.fp-mark__arc{z-index:1;opacity:0;-webkit-mask-image:conic-gradient(from 346deg at var(--fp-cx) var(--fp-cy),#000 0,#000 var(--fp-sweep),transparent calc(var(--fp-sweep) + .6deg));mask-image:conic-gradient(from 346deg at var(--fp-cx) var(--fp-cy),#000 0,#000 var(--fp-sweep),transparent calc(var(--fp-sweep) + .6deg))}
.fp-mark__f{z-index:2;opacity:0}
.fp-mark{container-type:inline-size}
.fp-mark__sheen{position:absolute;inset:0;z-index:3;overflow:hidden;pointer-events:none}
.fp-mark .sheen-win{position:absolute;top:0;bottom:0;left:0;width:34cqw;overflow:hidden;opacity:0;transform:translateX(-40cqw)}
.fp-mark .sheen-win img{position:absolute;top:0;left:0;width:100cqw;height:100%;max-width:none;filter:brightness(2.7) saturate(.45);transform:translateX(40cqw)}
.fp-mark__star{z-index:4;opacity:0}
.fp-mark__comet{position:absolute;inset:0;z-index:5;transform-origin:var(--fp-cx) var(--fp-cy);opacity:0}
.fp-mark__comet i{position:absolute;left:var(--fp-cx);top:calc(46.4% - 40.9%);width:3.4%;aspect-ratio:1;margin:-1.7% 0 0 -1.7%;border-radius:50%;background:#fff;box-shadow:0 0 14px 5px rgba(140,165,255,.95),0 0 34px 12px rgba(91,124,255,.55)}
.fp-mark__ring{position:absolute;z-index:4;left:var(--fp-star-x);top:var(--fp-star-y);width:34%;aspect-ratio:1;margin:-17% 0 0 -17%;border-radius:50%;border:1px solid var(--fp-ice);opacity:0}

.arrival-intro .fp-mark__glow{animation:fp-glow 2000ms var(--fp-ease) 900ms both}
.arrival-intro .fp-mark__arc{animation:fp-arc-sweep 1150ms cubic-bezier(.65,0,.35,1) 150ms both,fp-fade 500ms ease-out 150ms both}
.arrival-intro .fp-mark__comet{animation:fp-comet 1150ms cubic-bezier(.65,0,.35,1) 150ms both}
.arrival-intro .fp-mark__f{animation:fp-f-in 900ms var(--fp-ease) 700ms both}
.arrival-intro .fp-mark .sheen-win{animation:fp-sheen-win 900ms cubic-bezier(.45,0,.2,1) 1150ms both}
.arrival-intro .fp-mark .sheen-win img{animation:fp-sheen-img 900ms cubic-bezier(.45,0,.2,1) 1150ms both}
.arrival-intro .fp-mark__star{animation:fp-star-pop 750ms var(--fp-ease) 1350ms both}
.arrival-intro .fp-mark__ring{animation:fp-ring 950ms cubic-bezier(.2,.7,.2,1) 1450ms both}

@keyframes fp-arc-sweep{from{--fp-sweep:0deg}to{--fp-sweep:158deg}}
@keyframes fp-fade{from{opacity:0}to{opacity:1}}
@keyframes fp-comet{0%{opacity:0;transform:rotate(-14deg)}8%{opacity:1}88%{opacity:1}100%{opacity:0;transform:rotate(128deg)}}
@keyframes fp-f-in{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
@keyframes fp-sheen-win{0%{opacity:0;transform:translateX(-40cqw)}15%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateX(106cqw)}}
@keyframes fp-sheen-img{from{transform:translateX(40cqw)}to{transform:translateX(-106cqw)}}
@keyframes fp-star-pop{0%{opacity:0;transform:scale(0) rotate(-35deg)}55%{opacity:1;transform:scale(1.38) rotate(6deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@keyframes fp-ring{0%{opacity:.75;transform:scale(.15)}100%{opacity:0;transform:scale(2.6)}}
@keyframes fp-glow{0%{opacity:0}35%{opacity:.95}100%{opacity:.4}}

/* ---------- HEADER MARK ---------- */
.site-header .brand{display:inline-flex;align-items:center;gap:.55rem}
/* the logo mark replaces the earlier text-glyph and dot decorations */
.brand::before,.site-header .brand::before,.brand:before{content:none!important;display:none!important;margin:0!important}
.brand-mark{width:clamp(32px,8.6vw,46px);flex:0 0 auto;margin:-3px 0}
.brand-mark__arc,.brand-mark__f,.brand-mark__star{transition:transform .6s var(--fp-ease),opacity .4s}
@media (hover:hover) and (pointer:fine){
 html:not(.motion-paused) .brand:hover .brand-mark__arc,html:not(.motion-paused) .brand:focus-visible .brand-mark__arc{transform:rotate(16deg)}
 html:not(.motion-paused) .brand:hover .brand-mark__star,html:not(.motion-paused) .brand:focus-visible .brand-mark__star{transform:scale(1.4) rotate(45deg)}
 html:not(.motion-paused) .brand:hover .brand-mark__f,html:not(.motion-paused) .brand:focus-visible .brand-mark__f{transform:translateY(-1px)}
}
/* one welcome moment after the intro finishes, and a light version on refresh */
.brand.brand--welcome .brand-mark__star{animation:fp-star-pop 800ms var(--fp-ease) both}
.brand.brand--welcome .brand-mark::after{content:"";position:absolute;left:var(--fp-star-x);top:var(--fp-star-y);width:70%;aspect-ratio:1;margin:-35% 0 0 -35%;border-radius:50%;border:1px solid var(--fp-ice);opacity:0;animation:fp-ring 900ms cubic-bezier(.2,.7,.2,1) 150ms both}
.arrival-refresh .brand-mark__arc{animation:fp-arc-sweep 650ms cubic-bezier(.65,0,.35,1) both,fp-fade 400ms ease-out both;-webkit-mask-image:conic-gradient(from 346deg at var(--fp-cx) var(--fp-cy),#000 0,#000 var(--fp-sweep),transparent calc(var(--fp-sweep) + .6deg));mask-image:conic-gradient(from 346deg at var(--fp-cx) var(--fp-cy),#000 0,#000 var(--fp-sweep),transparent calc(var(--fp-sweep) + .6deg))}
.arrival-refresh .brand-mark__star{animation:fp-star-pop 700ms var(--fp-ease) 350ms both}

/* ---------- FOOTER MARK ---------- */
.fp16-footer__glass{position:relative}
.footer-mark{position:absolute;right:clamp(-2rem,2vw,3rem);top:50%;transform:translateY(-50%);width:clamp(200px,28vw,380px);opacity:.3;pointer-events:none;z-index:0;overflow:visible}
.footer-mark__art>img{transition:transform .35s linear}
.fp16-footer__glass>*:not(.footer-mark){position:relative;z-index:1}
.footer-mark:not(.is-in) .footer-mark__arc,.footer-mark:not(.is-in) .footer-mark__f,.footer-mark:not(.is-in) .footer-mark__star{opacity:0}
.footer-mark.is-in .footer-mark__arc{animation:fp-fade 900ms var(--fp-ease) both}
.footer-mark.is-in .footer-mark__f{animation:fp-f-in 900ms var(--fp-ease) 250ms both}
.footer-mark.is-in .footer-mark__star{animation:fp-star-pop 800ms var(--fp-ease) 600ms both}
@media (max-width:760px){.footer-mark{width:min(62vw,240px);right:-1rem;top:auto;bottom:1rem;transform:none;opacity:.22}}

/* ---------- accessibility and motion preferences ---------- */
@media (prefers-reduced-motion:reduce){
 .fp-mark__arc,.fp-mark__f,.fp-mark__star,.fp-mark__glow{animation:none!important;opacity:1!important;-webkit-mask-image:none;mask-image:none}
 .fp-mark__comet,.fp-mark__ring,.fp-mark__sheen{display:none}
 .brand-mark__arc,.brand-mark__f,.brand-mark__star,.footer-mark__art>img{animation:none!important;transition:none!important}
 .footer-mark .footer-mark__arc,.footer-mark .footer-mark__f,.footer-mark .footer-mark__star{opacity:1!important}
}
html.motion-paused .brand-mark__arc,html.motion-paused .brand-mark__f,html.motion-paused .brand-mark__star{transition:none!important;animation:none!important}
html.motion-paused .footer-mark .footer-mark__arc,html.motion-paused .footer-mark .footer-mark__f,html.motion-paused .footer-mark .footer-mark__star{opacity:1!important;animation:none!important}

/* very small phones: keep the header on one line */
@media (max-width:360px){.brand-mark{width:26px;margin:-2px 0}.site-header .brand{gap:.3rem;font-size:.9rem!important;letter-spacing:-.05em!important}.header-inner{gap:4px}}
