/* The original brand mark anchors the identity. UI icons share one quiet line. */
.brand-icon-library{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.brand-icon{display:inline-block;flex:none;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.brand-emblem{display:block;flex:none;width:44px;height:44px;background:currentColor;mask:url('./assets/yifanj-logo.png') center/contain no-repeat;-webkit-mask:url('./assets/yifanj-logo.png') center/contain no-repeat}
.brand-page .wordmark{display:flex;align-items:center;gap:13px;font:32px/1.15 var(--serif);color:#3a3028;letter-spacing:.16em}
.brand-page .wordmark>.brand-emblem{width:40px;height:40px;color:#966b3e;margin:0}
.brand-page .wordmark>.brand-name{font:inherit;letter-spacing:inherit;margin:0}
.brand-name small{display:block;font:7px/1.8 var(--sans);letter-spacing:.13em;margin-top:6px}
.brand-header nav{gap:clamp(16px,2.1vw,30px)}
.hero-seal{position:absolute;right:var(--gutter);bottom:75px;width:164px;height:164px;display:grid;place-items:center;color:#ead7b8;pointer-events:none}
.seal-ring{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:.65;opacity:.7;animation:identity-revolve 50s linear infinite}
.hero-seal .brand-emblem{width:62px;height:62px;margin-bottom:17px}
.hero-seal>span:last-child{position:absolute;bottom:30px;font:7px var(--sans);letter-spacing:.2em}
.about-principles{gap:32px}.about-principles>span{position:relative;min-width:70px}.about-principles .brand-icon{display:block;width:28px;height:28px;margin-bottom:10px;color:#9b754c}.about-principles b{font-size:19px}
.service-kicker{display:flex;align-items:center;gap:14px}.service-kicker .brand-icon{width:25px;height:25px;color:#e0c29c}
.service-insignia{position:absolute;right:var(--gutter);bottom:28px;width:144px;height:144px;display:grid;place-items:center;color:#ead4b8;pointer-events:none}
.insignia-ring{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:.7;opacity:.65;animation:identity-revolve 45s linear infinite}
.service-glyph{width:51px;height:51px;margin-bottom:13px;stroke-width:1.15;animation:identity-breathe 6s ease-in-out infinite}
.service-insignia>span{position:absolute;bottom:22px;font:8px Georgia,serif;letter-spacing:.16em}
.agent-role-tabs button{display:flex;gap:7px;align-items:center}.agent-role-tabs .brand-icon{width:17px;height:17px;stroke-width:1.8}
.agent-steps button>span .brand-icon{width:17px;height:17px}
.demo-toolbar>span{display:flex;align-items:center;gap:7px}.ai-status-icon{width:14px;height:14px;color:#d4dfb8;animation:identity-breathe 4s ease-in-out infinite}
.agent-flow{position:absolute;inset:0;overflow:hidden;pointer-events:none}.agent-flow>svg{width:100%;height:100%;fill:none;stroke:#c9d8af}
.flow-base{opacity:.14;stroke-width:.8}.flow-trail{stroke-width:1.2;stroke-dasharray:20 340;animation:identity-flow 14s linear infinite;opacity:.65}.flow-node{fill:#d2d9b0;stroke:none;animation:identity-breathe 4s ease-in-out infinite}
.system-tabs button{grid-template-columns:25px 22px 1fr 15px;gap:9px}.system-tabs .brand-icon{width:18px;height:18px;color:#8a704d;stroke-width:1.6}.system-tabs [aria-selected=true] .brand-icon{color:#5b4128}
.sheet-glyph{position:absolute;right:8px;top:20px;width:68px;height:68px;color:#a58a60;opacity:.33;stroke-width:.9;animation:identity-drift 7s ease-in-out infinite}
.sheet-number{top:auto;bottom:5px;font-size:64px;opacity:.55}.sheet-body h3{padding-right:72px}.sheet-question,.sheet-description{max-width:calc(100% - 45px)}
.founder-halo{position:absolute;inset:0;z-index:-1;display:grid;place-items:center;pointer-events:none}.founder-halo svg{width:112%;max-width:470px;fill:none;stroke:#b69b72;stroke-width:.5;opacity:.23;animation:identity-revolve 90s linear infinite}.founder-halo circle:last-child{fill:#d2b886}
.case-route>span{display:inline-flex;align-items:center;gap:6px}.case-route .brand-icon{width:18px;height:18px;color:#8e6b48}
.client-regions{position:relative;isolation:isolate;justify-content:space-between;align-items:flex-end;padding:10px 0;margin:22px 0;width:100%;max-width:300px;min-height:90px}
.client-regions>svg{position:absolute;inset:0;width:100%;height:60px;z-index:-1;fill:none;stroke:#b3a083;stroke-width:1;opacity:.65}.client-regions .region-trail{stroke:#7e5c37;stroke-width:1.6;stroke-dasharray:14 140;animation:identity-flow 10s linear infinite}
.client-regions>span{display:flex;gap:6px;align-items:center;padding:4px 8px 4px 0;white-space:nowrap}.client-regions .brand-icon{width:16px;height:16px;stroke-width:1.7}
.client-wordmarks>div{position:relative}.client-wordmarks>div:after{content:'';position:absolute;bottom:-12px;left:50%;width:3px;height:3px;border-radius:50%;background:#a48a65;transform:translateX(-50%);opacity:.6}
.contact-invitation{position:relative;isolation:isolate}.contact-orbit{position:absolute;width:200px;height:200px;right:-24px;top:-56px;z-index:-1;pointer-events:none;color:#d8c89e;opacity:.14;display:grid;place-items:center}.contact-orbit svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:.7;animation:identity-revolve 65s linear infinite}.contact-orbit .brand-emblem{width:62px;height:62px}
.stationery-heading{display:grid;grid-template-columns:34px 1fr;column-gap:13px;align-items:center}.stationery-heading .brand-emblem{width:34px;height:34px;color:#7d6b45;grid-column:1;grid-row:1/3}.stationery-heading>span:not(.brand-emblem){font-size:32px;line-height:1.2;grid-column:2;grid-row:1}.stationery-heading>small{font-size:7px;margin-top:5px;letter-spacing:.13em;writing-mode:horizontal-tb;grid-column:2;grid-row:2}
.footer-wordmark{display:flex;align-items:center;gap:12px}.footer-wordmark .brand-emblem{width:29px;height:29px;color:#bdc6a9}
.chapter-nav .motion-shortcut{display:grid;place-items:center;border:1px solid currentColor;border-radius:50%;width:26px;height:26px;opacity:.7;margin-bottom:9px}.motion-shortcut .brand-icon{width:14px;height:14px;stroke-width:2.4}.motion-shortcut:hover{opacity:1}
/* Constant motion is limited to visible ornaments of the active chapter. */
.ambient-motion{animation-play-state:paused!important;transform-origin:center;transform-box:fill-box}
.motion-on:not(.page-hidden) .chapter.is-current .ambient-motion.is-in-view{animation-play-state:running!important}
.motion-on:not(.page-hidden) .chapter.is-current .service-page:not(.is-active) .ambient-motion.is-in-view{animation-play-state:paused!important}
@keyframes identity-revolve{to{transform:rotate(360deg)}}
@keyframes identity-breathe{0%,100%{opacity:.55;transform:scale(.94)}50%{opacity:1;transform:scale(1.04)}}
@keyframes identity-flow{to{stroke-dashoffset:-360}}
@keyframes identity-drift{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-5px) rotate(3deg)}}
@media(max-width:1100px){.brand-page .wordmark{font-size:28px;gap:9px}.brand-page .wordmark>.brand-emblem{width:33px;height:33px}.brand-name small{font-size:6px}.brand-header{gap:20px}.brand-header nav{gap:16px}.hero-seal{width:135px;height:135px}.hero-seal .brand-emblem{width:45px;height:45px}.hero-seal>span:last-child{font-size:6px;bottom:25px}}
@media(max-width:760px){
 .brand-page .wordmark{font-size:25px;gap:8px}.brand-page .wordmark>.brand-emblem{width:31px;height:31px}.brand-name small{font-size:5px;letter-spacing:.1em;margin-top:4px}.brand-header{gap:12px}.header-actions{gap:14px}.header-actions .login-link{padding:8px 12px}
 .hero-seal{right:26px;bottom:70px;width:94px;height:94px}.hero-seal .brand-emblem{width:33px;height:33px;margin-bottom:9px}.hero-seal>span:last-child{font-size:4.5px;bottom:16px;letter-spacing:.1em}
 .about-principles{gap:25px;padding:16px 0 22px}.about-principles .brand-icon{width:23px;height:23px;margin-bottom:8px}.about-principles b{font-size:17px}.about-principles>span{min-width:0}
 .service-kicker{gap:9px}.service-kicker .brand-icon{width:21px;height:21px}.service-insignia{right:26px;bottom:20px;width:86px;height:86px}.service-glyph{width:29px;height:29px;stroke-width:1.5;margin-bottom:7px}.service-insignia>span{font-size:5px;bottom:13px}
 .agent-role-tabs button{gap:5px;justify-content:center}.agent-role-tabs .brand-icon{width:13px;height:13px}.agent-steps button>span .brand-icon{width:14px;height:14px}.ai-status-icon{width:11px;height:11px}.demo-toolbar>span{gap:4px}.agent-flow{opacity:.6}
 .system-tabs button{grid-template-columns:16px 16px 1fr 10px;gap:4px}.system-tabs .brand-icon{width:13px;height:13px}.sheet-glyph{width:44px;height:44px;top:16px;right:0;stroke-width:1.2}.sheet-body h3{padding-right:50px}.sheet-number{font-size:48px}.sheet-question,.sheet-description{max-width:100%}
 .founder-halo svg{width:180px;opacity:.14}.case-route{flex-wrap:wrap;gap:8px}.case-route>span{gap:4px}.case-route .brand-icon{width:14px;height:14px}
 .client-regions{max-width:270px;margin:16px 0;min-height:70px}.client-regions>svg{height:42px}.client-regions .brand-icon{width:13px;height:13px}.client-wordmarks>div:after{bottom:-9px}
 .contact-orbit{width:130px;height:130px;right:0;top:-25px;opacity:.12}.contact-orbit .brand-emblem{width:42px;height:42px}.stationery-heading{column-gap:11px;grid-template-columns:30px 1fr}.stationery-heading .brand-emblem{width:30px;height:30px}.stationery-heading>span{font-size:26px}.stationery-heading>small{font-size:6px}.footer-wordmark{gap:7px;font-size:21px}.footer-wordmark .brand-emblem{width:22px;height:22px}
 .chapter-nav .motion-shortcut{margin:0 8px 0 0;width:26px;height:26px}.chapter-nav{gap:8px}.chapter-nav #chapter-select{flex:1;min-width:0}
}
@media(max-width:360px){.brand-page .wordmark{font-size:23px;gap:6px}.brand-page .wordmark>.brand-emblem{width:28px;height:28px}.header-actions{gap:10px}.header-actions .preview-link{gap:6px}.header-actions .login-link{padding:7px 9px}.hero-seal{width:75px;height:75px;bottom:64px}.hero-seal .brand-emblem{width:27px;height:27px}.hero-seal>span:last-child{font-size:3.5px;bottom:13px}.service-insignia{width:70px;height:70px}.service-glyph{width:25px;height:25px}.service-insignia>span{bottom:10px}.system-tabs button{font-size:8px;gap:3px}.case-route .brand-icon{width:12px;height:12px}}
@media(max-height:650px) and (min-width:761px){.hero-seal{width:105px;height:105px;bottom:55px}.hero-seal .brand-emblem{width:36px;height:36px}.hero-seal>span:last-child{bottom:19px;font-size:5px}.service-insignia{width:100px;height:100px}.service-glyph{width:35px;height:35px}.service-insignia>span{bottom:16px}.about-principles .brand-icon{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){.ambient-motion{animation:none!important}}
.motion-reduced .ambient-motion{animation:none!important}
@media(min-width:761px){.chapter-nav.is-dark>button{background:#29241999;border-radius:50%}.chapter-nav.is-dark .chapter-counter,.chapter-nav.is-dark .chapter-dots{filter:drop-shadow(0 1px 2px #000b)}}
@media(max-width:760px){.chapter-nav .motion-shortcut{width:44px;height:40px;position:relative;border:0}.chapter-nav .motion-shortcut:before{content:'';position:absolute;inset:7px 9px;border:1px solid currentColor;border-radius:50%;pointer-events:none}.chapter-nav .motion-shortcut .brand-icon{width:14px;height:14px}}
